Update dependencies
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
FROM golang:1.10.3-alpine3.8 AS build
|
FROM golang:1.12.6-alpine3.9 AS build
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/abh/geoipapi
|
WORKDIR /go/src/github.com/abh/geoipapi
|
||||||
ADD . /go/src/github.com/abh/geoipapi
|
ADD . /go/src/github.com/abh/geoipapi
|
||||||
RUN go install -v ./...
|
RUN go install -v ./...
|
||||||
|
|
||||||
#FROM alpine:3.7
|
FROM quay.io/ntppool/dnsmapper:geoip-data-201906
|
||||||
FROM quay.io/ntppool/dnsmapper:geoip-data-201807
|
USER root
|
||||||
RUN apk --no-cache add ca-certificates
|
RUN apk --no-cache add ca-certificates
|
||||||
|
|
||||||
RUN addgroup geoip && adduser -D -G geoip geoip
|
RUN addgroup geoip && adduser -D -G geoip geoip
|
||||||
|
|||||||
24
Gopkg.lock
generated
24
Gopkg.lock
generated
@@ -2,31 +2,31 @@
|
|||||||
|
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
digest = "1:b07ac3d21c03b19da0bec9c83d5e9625d3d4c7d62df62d5c23e9b4f172d173ab"
|
digest = "1:a7203c292d7f5f6c16ea98ea749abbdcd3abb81f2a4c2f966d3685fccdf5a7c0"
|
||||||
name = "github.com/oschwald/geoip2-golang"
|
name = "github.com/oschwald/geoip2-golang"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
pruneopts = "NUT"
|
pruneopts = "NUT"
|
||||||
revision = "7118115686e16b77967cdbf55d1b944fe14ad312"
|
revision = "347ca45869a87337a71b11efe9b3043bc10df97f"
|
||||||
version = "v1.2.1"
|
|
||||||
|
|
||||||
[[projects]]
|
|
||||||
digest = "1:c503e149d838cd0852612a6211eb72225ae4888e0a23a26262512eef42370a82"
|
|
||||||
name = "github.com/oschwald/maxminddb-golang"
|
|
||||||
packages = ["."]
|
|
||||||
pruneopts = "NUT"
|
|
||||||
revision = "c5bec84d1963260297932a1b7a1753c8420717a7"
|
|
||||||
version = "v1.3.0"
|
version = "v1.3.0"
|
||||||
|
|
||||||
|
[[projects]]
|
||||||
|
digest = "1:64198924e9a427441edb6785067ec35eeca8b12d3520c6ce97a01aba509e321a"
|
||||||
|
name = "github.com/oschwald/maxminddb-golang"
|
||||||
|
packages = ["."]
|
||||||
|
pruneopts = "NUT"
|
||||||
|
revision = "2905694a1b00c5574f1418a7dbf8a22a7d247559"
|
||||||
|
version = "v1.3.1"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
digest = "1:64107e3c8f52f341891a565d117bf263ed396fe0c16bad19634b25be25debfaa"
|
digest = "1:3b0776f2db863b8e8c7171671ff28c6bd073679476f34780b6a298cac01b0df1"
|
||||||
name = "golang.org/x/sys"
|
name = "golang.org/x/sys"
|
||||||
packages = [
|
packages = [
|
||||||
"unix",
|
"unix",
|
||||||
"windows",
|
"windows",
|
||||||
]
|
]
|
||||||
pruneopts = "NUT"
|
pruneopts = "NUT"
|
||||||
revision = "1b2967e3c290b7c545b3db0deeda16e9be4f98a2"
|
revision = "c5567b49c5d04a5f83870795b8c0e2df43a8ce32"
|
||||||
|
|
||||||
[solve-meta]
|
[solve-meta]
|
||||||
analyzer-name = "dep"
|
analyzer-name = "dep"
|
||||||
|
|||||||
77
vendor/github.com/oschwald/geoip2-golang/reader.go
generated
vendored
77
vendor/github.com/oschwald/geoip2-golang/reader.go
generated
vendored
@@ -14,6 +14,71 @@ import (
|
|||||||
"github.com/oschwald/maxminddb-golang"
|
"github.com/oschwald/maxminddb-golang"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// The Enterprise struct corresponds to the data in the GeoIP2 Enterprise
|
||||||
|
// database.
|
||||||
|
type Enterprise struct {
|
||||||
|
City struct {
|
||||||
|
Confidence uint8 `maxminddb:"confidence"`
|
||||||
|
GeoNameID uint `maxminddb:"geoname_id"`
|
||||||
|
Names map[string]string `maxminddb:"names"`
|
||||||
|
} `maxminddb:"city"`
|
||||||
|
Continent struct {
|
||||||
|
Code string `maxminddb:"code"`
|
||||||
|
GeoNameID uint `maxminddb:"geoname_id"`
|
||||||
|
Names map[string]string `maxminddb:"names"`
|
||||||
|
} `maxminddb:"continent"`
|
||||||
|
Country struct {
|
||||||
|
GeoNameID uint `maxminddb:"geoname_id"`
|
||||||
|
IsoCode string `maxminddb:"iso_code"`
|
||||||
|
Names map[string]string `maxminddb:"names"`
|
||||||
|
Confidence uint8 `maxminddb:"confidence"`
|
||||||
|
IsInEuropeanUnion bool `maxminddb:"is_in_european_union"`
|
||||||
|
} `maxminddb:"country"`
|
||||||
|
Location struct {
|
||||||
|
AccuracyRadius uint16 `maxminddb:"accuracy_radius"`
|
||||||
|
Latitude float64 `maxminddb:"latitude"`
|
||||||
|
Longitude float64 `maxminddb:"longitude"`
|
||||||
|
MetroCode uint `maxminddb:"metro_code"`
|
||||||
|
TimeZone string `maxminddb:"time_zone"`
|
||||||
|
} `maxminddb:"location"`
|
||||||
|
Postal struct {
|
||||||
|
Code string `maxminddb:"code"`
|
||||||
|
Confidence uint8 `maxminddb:"confidence"`
|
||||||
|
} `maxminddb:"postal"`
|
||||||
|
RegisteredCountry struct {
|
||||||
|
GeoNameID uint `maxminddb:"geoname_id"`
|
||||||
|
IsoCode string `maxminddb:"iso_code"`
|
||||||
|
Names map[string]string `maxminddb:"names"`
|
||||||
|
Confidence uint8 `maxminddb:"confidence"`
|
||||||
|
IsInEuropeanUnion bool `maxminddb:"is_in_european_union"`
|
||||||
|
} `maxminddb:"registered_country"`
|
||||||
|
RepresentedCountry struct {
|
||||||
|
GeoNameID uint `maxminddb:"geoname_id"`
|
||||||
|
IsInEuropeanUnion bool `maxminddb:"is_in_european_union"`
|
||||||
|
IsoCode string `maxminddb:"iso_code"`
|
||||||
|
Names map[string]string `maxminddb:"names"`
|
||||||
|
Type string `maxminddb:"type"`
|
||||||
|
} `maxminddb:"represented_country"`
|
||||||
|
Subdivisions []struct {
|
||||||
|
Confidence uint8 `maxminddb:"confidence"`
|
||||||
|
GeoNameID uint `maxminddb:"geoname_id"`
|
||||||
|
IsoCode string `maxminddb:"iso_code"`
|
||||||
|
Names map[string]string `maxminddb:"names"`
|
||||||
|
} `maxminddb:"subdivisions"`
|
||||||
|
Traits struct {
|
||||||
|
AutonomousSystemNumber uint `maxminddb:"autonomous_system_number"`
|
||||||
|
AutonomousSystemOrganization string `maxminddb:"autonomous_system_organization"`
|
||||||
|
ConnectionType string `maxminddb:"connection_type"`
|
||||||
|
Domain string `maxminddb:"domain"`
|
||||||
|
IsAnonymousProxy bool `maxminddb:"is_anonymous_proxy"`
|
||||||
|
IsLegitimateProxy bool `maxminddb:"is_legitimate_proxy"`
|
||||||
|
IsSatelliteProvider bool `maxminddb:"is_satellite_provider"`
|
||||||
|
ISP string `maxminddb:"isp"`
|
||||||
|
Organization string `maxminddb:"organization"`
|
||||||
|
UserType string `maxminddb:"user_type"`
|
||||||
|
} `maxminddb:"traits"`
|
||||||
|
}
|
||||||
|
|
||||||
// The City struct corresponds to the data in the GeoIP2/GeoLite2 City
|
// The City struct corresponds to the data in the GeoIP2/GeoLite2 City
|
||||||
// databases.
|
// databases.
|
||||||
type City struct {
|
type City struct {
|
||||||
@@ -234,6 +299,18 @@ func getDBType(reader *maxminddb.Reader) (databaseType, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Enterprise takes an IP address as a net.IP struct and returns an Enterprise
|
||||||
|
// struct and/or an error. This is intended to be used with the GeoIP2
|
||||||
|
// Enterprise database.
|
||||||
|
func (r *Reader) Enterprise(ipAddress net.IP) (*Enterprise, error) {
|
||||||
|
if isEnterprise&r.databaseType == 0 {
|
||||||
|
return nil, InvalidMethodError{"Enterprise", r.Metadata().DatabaseType}
|
||||||
|
}
|
||||||
|
var enterprise Enterprise
|
||||||
|
err := r.mmdbReader.Lookup(ipAddress, &enterprise)
|
||||||
|
return &enterprise, err
|
||||||
|
}
|
||||||
|
|
||||||
// City takes an IP address as a net.IP struct and returns a City struct
|
// City takes an IP address as a net.IP struct and returns a City struct
|
||||||
// and/or an error. Although this can be used with other databases, this
|
// and/or an error. Although this can be used with other databases, this
|
||||||
// method generally should be used with the GeoIP2 or GeoLite2 City databases.
|
// method generally should be used with the GeoIP2 or GeoLite2 City databases.
|
||||||
|
|||||||
2
vendor/github.com/oschwald/maxminddb-golang/reader.go
generated
vendored
2
vendor/github.com/oschwald/maxminddb-golang/reader.go
generated
vendored
@@ -162,7 +162,7 @@ func (r *Reader) decode(offset uintptr, result interface{}) error {
|
|||||||
return errors.New("result param must be a pointer")
|
return errors.New("result param must be a pointer")
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err := r.decoder.decode(uint(offset), reflect.ValueOf(result), 0)
|
_, err := r.decoder.decode(uint(offset), rv, 0)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
9
vendor/github.com/oschwald/maxminddb-golang/verifier.go
generated
vendored
9
vendor/github.com/oschwald/maxminddb-golang/verifier.go
generated
vendored
@@ -1,6 +1,9 @@
|
|||||||
package maxminddb
|
package maxminddb
|
||||||
|
|
||||||
import "reflect"
|
import (
|
||||||
|
"reflect"
|
||||||
|
"runtime"
|
||||||
|
)
|
||||||
|
|
||||||
type verifier struct {
|
type verifier struct {
|
||||||
reader *Reader
|
reader *Reader
|
||||||
@@ -15,7 +18,9 @@ func (r *Reader) Verify() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
return v.verifyDatabase()
|
err := v.verifyDatabase()
|
||||||
|
runtime.KeepAlive(v.reader)
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *verifier) verifyMetadata() error {
|
func (v *verifier) verifyMetadata() error {
|
||||||
|
|||||||
14
vendor/golang.org/x/sys/unix/aliases.go
generated
vendored
Normal file
14
vendor/golang.org/x/sys/unix/aliases.go
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
// 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 aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||||
|
// +build go1.9
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import "syscall"
|
||||||
|
|
||||||
|
type Signal = syscall.Signal
|
||||||
|
type Errno = syscall.Errno
|
||||||
|
type SysProcAttr = syscall.SysProcAttr
|
||||||
17
vendor/golang.org/x/sys/unix/asm_aix_ppc64.s
generated
vendored
Normal file
17
vendor/golang.org/x/sys/unix/asm_aix_ppc64.s
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
// 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 !gccgo
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
//
|
||||||
|
// System calls for ppc64, AIX are implemented in runtime/syscall_aix.go
|
||||||
|
//
|
||||||
|
|
||||||
|
TEXT ·syscall6(SB),NOSPLIT,$0-88
|
||||||
|
JMP syscall·syscall6(SB)
|
||||||
|
|
||||||
|
TEXT ·rawSyscall6(SB),NOSPLIT,$0-88
|
||||||
|
JMP syscall·rawSyscall6(SB)
|
||||||
29
vendor/golang.org/x/sys/unix/asm_freebsd_arm64.s
generated
vendored
Normal file
29
vendor/golang.org/x/sys/unix/asm_freebsd_arm64.s
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
// 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 !gccgo
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
//
|
||||||
|
// System call support for ARM64, FreeBSD
|
||||||
|
//
|
||||||
|
|
||||||
|
// Just jump to package syscall's implementation for all these functions.
|
||||||
|
// The runtime may know about them.
|
||||||
|
|
||||||
|
TEXT ·Syscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·Syscall(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·Syscall6(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall9(SB),NOSPLIT,$0-104
|
||||||
|
JMP syscall·Syscall9(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·RawSyscall(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·RawSyscall6(SB)
|
||||||
12
vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s
generated
vendored
12
vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s
generated
vendored
@@ -15,12 +15,6 @@
|
|||||||
// Just jump to package syscall's implementation for all these functions.
|
// Just jump to package syscall's implementation for all these functions.
|
||||||
// The runtime may know about them.
|
// The runtime may know about them.
|
||||||
|
|
||||||
TEXT ·Syscall(SB),NOSPLIT,$0-56
|
|
||||||
BR syscall·Syscall(SB)
|
|
||||||
|
|
||||||
TEXT ·Syscall6(SB),NOSPLIT,$0-80
|
|
||||||
BR syscall·Syscall6(SB)
|
|
||||||
|
|
||||||
TEXT ·SyscallNoError(SB),NOSPLIT,$0-48
|
TEXT ·SyscallNoError(SB),NOSPLIT,$0-48
|
||||||
BL runtime·entersyscall(SB)
|
BL runtime·entersyscall(SB)
|
||||||
MOVD a1+8(FP), R3
|
MOVD a1+8(FP), R3
|
||||||
@@ -36,12 +30,6 @@ TEXT ·SyscallNoError(SB),NOSPLIT,$0-48
|
|||||||
BL runtime·exitsyscall(SB)
|
BL runtime·exitsyscall(SB)
|
||||||
RET
|
RET
|
||||||
|
|
||||||
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
|
|
||||||
BR syscall·RawSyscall(SB)
|
|
||||||
|
|
||||||
TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
|
|
||||||
BR syscall·RawSyscall6(SB)
|
|
||||||
|
|
||||||
TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48
|
TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48
|
||||||
MOVD a1+8(FP), R3
|
MOVD a1+8(FP), R3
|
||||||
MOVD a2+16(FP), R4
|
MOVD a2+16(FP), R4
|
||||||
|
|||||||
54
vendor/golang.org/x/sys/unix/asm_linux_riscv64.s
generated
vendored
Normal file
54
vendor/golang.org/x/sys/unix/asm_linux_riscv64.s
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
// Copyright 2019 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 riscv64,!gccgo
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
//
|
||||||
|
// System calls for linux/riscv64.
|
||||||
|
//
|
||||||
|
// Where available, just jump to package syscall's implementation of
|
||||||
|
// these functions.
|
||||||
|
|
||||||
|
TEXT ·Syscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·Syscall(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·Syscall6(SB)
|
||||||
|
|
||||||
|
TEXT ·SyscallNoError(SB),NOSPLIT,$0-48
|
||||||
|
CALL runtime·entersyscall(SB)
|
||||||
|
MOV a1+8(FP), A0
|
||||||
|
MOV a2+16(FP), A1
|
||||||
|
MOV a3+24(FP), A2
|
||||||
|
MOV $0, A3
|
||||||
|
MOV $0, A4
|
||||||
|
MOV $0, A5
|
||||||
|
MOV $0, A6
|
||||||
|
MOV trap+0(FP), A7 // syscall entry
|
||||||
|
ECALL
|
||||||
|
MOV A0, r1+32(FP) // r1
|
||||||
|
MOV A1, r2+40(FP) // r2
|
||||||
|
CALL runtime·exitsyscall(SB)
|
||||||
|
RET
|
||||||
|
|
||||||
|
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·RawSyscall(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·RawSyscall6(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48
|
||||||
|
MOV a1+8(FP), A0
|
||||||
|
MOV a2+16(FP), A1
|
||||||
|
MOV a3+24(FP), A2
|
||||||
|
MOV ZERO, A3
|
||||||
|
MOV ZERO, A4
|
||||||
|
MOV ZERO, A5
|
||||||
|
MOV trap+0(FP), A7 // syscall entry
|
||||||
|
ECALL
|
||||||
|
MOV A0, r1+32(FP)
|
||||||
|
MOV A1, r2+40(FP)
|
||||||
|
RET
|
||||||
29
vendor/golang.org/x/sys/unix/asm_netbsd_arm64.s
generated
vendored
Normal file
29
vendor/golang.org/x/sys/unix/asm_netbsd_arm64.s
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build !gccgo
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
//
|
||||||
|
// System call support for ARM64, NetBSD
|
||||||
|
//
|
||||||
|
|
||||||
|
// Just jump to package syscall's implementation for all these functions.
|
||||||
|
// The runtime may know about them.
|
||||||
|
|
||||||
|
TEXT ·Syscall(SB),NOSPLIT,$0-56
|
||||||
|
B syscall·Syscall(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall6(SB),NOSPLIT,$0-80
|
||||||
|
B syscall·Syscall6(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall9(SB),NOSPLIT,$0-104
|
||||||
|
B syscall·Syscall9(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
|
||||||
|
B syscall·RawSyscall(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
|
||||||
|
B syscall·RawSyscall6(SB)
|
||||||
29
vendor/golang.org/x/sys/unix/asm_openbsd_arm64.s
generated
vendored
Normal file
29
vendor/golang.org/x/sys/unix/asm_openbsd_arm64.s
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build !gccgo
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
//
|
||||||
|
// System call support for arm64, OpenBSD
|
||||||
|
//
|
||||||
|
|
||||||
|
// Just jump to package syscall's implementation for all these functions.
|
||||||
|
// The runtime may know about them.
|
||||||
|
|
||||||
|
TEXT ·Syscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·Syscall(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·Syscall6(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall9(SB),NOSPLIT,$0-104
|
||||||
|
JMP syscall·Syscall9(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·RawSyscall(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·RawSyscall6(SB)
|
||||||
2
vendor/golang.org/x/sys/unix/constants.go
generated
vendored
2
vendor/golang.org/x/sys/unix/constants.go
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
|||||||
27
vendor/golang.org/x/sys/unix/dev_aix_ppc.go
generated
vendored
Normal file
27
vendor/golang.org/x/sys/unix/dev_aix_ppc.go
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
// 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 aix
|
||||||
|
// +build ppc
|
||||||
|
|
||||||
|
// Functions to access/create device major and minor numbers matching the
|
||||||
|
// encoding used by AIX.
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
// Major returns the major component of a Linux device number.
|
||||||
|
func Major(dev uint64) uint32 {
|
||||||
|
return uint32((dev >> 16) & 0xffff)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Minor returns the minor component of a Linux device number.
|
||||||
|
func Minor(dev uint64) uint32 {
|
||||||
|
return uint32(dev & 0xffff)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Mkdev returns a Linux device number generated from the given major and minor
|
||||||
|
// components.
|
||||||
|
func Mkdev(major, minor uint32) uint64 {
|
||||||
|
return uint64(((major) << 16) | (minor))
|
||||||
|
}
|
||||||
29
vendor/golang.org/x/sys/unix/dev_aix_ppc64.go
generated
vendored
Normal file
29
vendor/golang.org/x/sys/unix/dev_aix_ppc64.go
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
// 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 aix
|
||||||
|
// +build ppc64
|
||||||
|
|
||||||
|
// Functions to access/create device major and minor numbers matching the
|
||||||
|
// encoding used AIX.
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
// Major returns the major component of a Linux device number.
|
||||||
|
func Major(dev uint64) uint32 {
|
||||||
|
return uint32((dev & 0x3fffffff00000000) >> 32)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Minor returns the minor component of a Linux device number.
|
||||||
|
func Minor(dev uint64) uint32 {
|
||||||
|
return uint32((dev & 0x00000000ffffffff) >> 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Mkdev returns a Linux device number generated from the given major and minor
|
||||||
|
// components.
|
||||||
|
func Mkdev(major, minor uint32) uint64 {
|
||||||
|
var DEVNO64 uint64
|
||||||
|
DEVNO64 = 0x8000000000000000
|
||||||
|
return ((uint64(major) << 32) | (uint64(minor) & 0x00000000FFFFFFFF) | DEVNO64)
|
||||||
|
}
|
||||||
2
vendor/golang.org/x/sys/unix/dirent.go
generated
vendored
2
vendor/golang.org/x/sys/unix/dirent.go
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris
|
// +build aix darwin dragonfly freebsd linux nacl netbsd openbsd solaris
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
|||||||
2
vendor/golang.org/x/sys/unix/env_unix.go
generated
vendored
2
vendor/golang.org/x/sys/unix/env_unix.go
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||||
|
|
||||||
// Unix environment variables.
|
// Unix environment variables.
|
||||||
|
|
||||||
|
|||||||
2
vendor/golang.org/x/sys/unix/fcntl.go
generated
vendored
2
vendor/golang.org/x/sys/unix/fcntl.go
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build darwin dragonfly freebsd linux netbsd openbsd
|
// +build dragonfly freebsd linux netbsd openbsd
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
|||||||
18
vendor/golang.org/x/sys/unix/fcntl_darwin.go
generated
vendored
Normal file
18
vendor/golang.org/x/sys/unix/fcntl_darwin.go
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import "unsafe"
|
||||||
|
|
||||||
|
// FcntlInt performs a fcntl syscall on fd with the provided command and argument.
|
||||||
|
func FcntlInt(fd uintptr, cmd, arg int) (int, error) {
|
||||||
|
return fcntl(int(fd), cmd, arg)
|
||||||
|
}
|
||||||
|
|
||||||
|
// 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 {
|
||||||
|
_, err := fcntl(int(fd), cmd, int(uintptr(unsafe.Pointer(lk))))
|
||||||
|
return err
|
||||||
|
}
|
||||||
1
vendor/golang.org/x/sys/unix/gccgo.go
generated
vendored
1
vendor/golang.org/x/sys/unix/gccgo.go
generated
vendored
@@ -3,6 +3,7 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build gccgo
|
// +build gccgo
|
||||||
|
// +build !aix
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/gccgo_c.c
generated
vendored
1
vendor/golang.org/x/sys/unix/gccgo_c.c
generated
vendored
@@ -3,6 +3,7 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build gccgo
|
// +build gccgo
|
||||||
|
// +build !aix
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|||||||
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 aix 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
|
||||||
|
}
|
||||||
61
vendor/golang.org/x/sys/unix/mkasm_darwin.go
generated
vendored
Normal file
61
vendor/golang.org/x/sys/unix/mkasm_darwin.go
generated
vendored
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
// 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 ignore
|
||||||
|
|
||||||
|
// mkasm_darwin.go generates assembly trampolines to call libSystem routines from Go.
|
||||||
|
//This program must be run after mksyscall.go.
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bytes"
|
||||||
|
"fmt"
|
||||||
|
"io/ioutil"
|
||||||
|
"log"
|
||||||
|
"os"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
in1, err := ioutil.ReadFile("syscall_darwin.go")
|
||||||
|
if err != nil {
|
||||||
|
log.Fatalf("can't open syscall_darwin.go: %s", err)
|
||||||
|
}
|
||||||
|
arch := os.Args[1]
|
||||||
|
in2, err := ioutil.ReadFile(fmt.Sprintf("syscall_darwin_%s.go", arch))
|
||||||
|
if err != nil {
|
||||||
|
log.Fatalf("can't open syscall_darwin_%s.go: %s", arch, err)
|
||||||
|
}
|
||||||
|
in3, err := ioutil.ReadFile(fmt.Sprintf("zsyscall_darwin_%s.go", arch))
|
||||||
|
if err != nil {
|
||||||
|
log.Fatalf("can't open zsyscall_darwin_%s.go: %s", arch, err)
|
||||||
|
}
|
||||||
|
in := string(in1) + string(in2) + string(in3)
|
||||||
|
|
||||||
|
trampolines := map[string]bool{}
|
||||||
|
|
||||||
|
var out bytes.Buffer
|
||||||
|
|
||||||
|
fmt.Fprintf(&out, "// go run mkasm_darwin.go %s\n", strings.Join(os.Args[1:], " "))
|
||||||
|
fmt.Fprintf(&out, "// Code generated by the command above; DO NOT EDIT.\n")
|
||||||
|
fmt.Fprintf(&out, "\n")
|
||||||
|
fmt.Fprintf(&out, "// +build go1.12\n")
|
||||||
|
fmt.Fprintf(&out, "\n")
|
||||||
|
fmt.Fprintf(&out, "#include \"textflag.h\"\n")
|
||||||
|
for _, line := range strings.Split(in, "\n") {
|
||||||
|
if !strings.HasPrefix(line, "func ") || !strings.HasSuffix(line, "_trampoline()") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
fn := line[5 : len(line)-13]
|
||||||
|
if !trampolines[fn] {
|
||||||
|
trampolines[fn] = true
|
||||||
|
fmt.Fprintf(&out, "TEXT ·%s_trampoline(SB),NOSPLIT,$0-0\n", fn)
|
||||||
|
fmt.Fprintf(&out, "\tJMP\t%s(SB)\n", fn)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
err = ioutil.WriteFile(fmt.Sprintf("zsyscall_darwin_%s.s", arch), out.Bytes(), 0644)
|
||||||
|
if err != nil {
|
||||||
|
log.Fatalf("can't write zsyscall_darwin_%s.s: %s", arch, err)
|
||||||
|
}
|
||||||
|
}
|
||||||
34
vendor/golang.org/x/sys/unix/mkpost.go
generated
vendored
34
vendor/golang.org/x/sys/unix/mkpost.go
generated
vendored
@@ -28,10 +28,10 @@ func main() {
|
|||||||
if goarch == "" {
|
if goarch == "" {
|
||||||
goarch = os.Getenv("GOARCH")
|
goarch = os.Getenv("GOARCH")
|
||||||
}
|
}
|
||||||
// Check that we are using the new build system if we should be.
|
// Check that we are using the Docker-based build system if we should be.
|
||||||
if goos == "linux" && goarch != "sparc64" {
|
if goos == "linux" {
|
||||||
if os.Getenv("GOLANG_SYS_BUILD") != "docker" {
|
if os.Getenv("GOLANG_SYS_BUILD") != "docker" {
|
||||||
os.Stderr.WriteString("In the new build system, mkpost should not be called directly.\n")
|
os.Stderr.WriteString("In the Docker-based build system, mkpost should not be called directly.\n")
|
||||||
os.Stderr.WriteString("See README.md\n")
|
os.Stderr.WriteString("See README.md\n")
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
@@ -42,9 +42,20 @@ func main() {
|
|||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if goos == "aix" {
|
||||||
|
// Replace type of Atim, Mtim and Ctim by Timespec in Stat_t
|
||||||
|
// to avoid having both StTimespec and Timespec.
|
||||||
|
sttimespec := regexp.MustCompile(`_Ctype_struct_st_timespec`)
|
||||||
|
b = sttimespec.ReplaceAll(b, []byte("Timespec"))
|
||||||
|
}
|
||||||
|
|
||||||
// Intentionally export __val fields in Fsid and Sigset_t
|
// Intentionally export __val fields in Fsid and Sigset_t
|
||||||
valRegex := regexp.MustCompile(`type (Fsid|Sigset_t) struct {(\s+)X__val(\s+\S+\s+)}`)
|
valRegex := regexp.MustCompile(`type (Fsid|Sigset_t) struct {(\s+)X__(bits|val)(\s+\S+\s+)}`)
|
||||||
b = valRegex.ReplaceAll(b, []byte("type $1 struct {${2}Val$3}"))
|
b = valRegex.ReplaceAll(b, []byte("type $1 struct {${2}Val$4}"))
|
||||||
|
|
||||||
|
// Intentionally export __fds_bits field in FdSet
|
||||||
|
fdSetRegex := regexp.MustCompile(`type (FdSet) struct {(\s+)X__fds_bits(\s+\S+\s+)}`)
|
||||||
|
b = fdSetRegex.ReplaceAll(b, []byte("type $1 struct {${2}Bits$3}"))
|
||||||
|
|
||||||
// If we have empty Ptrace structs, we should delete them. Only s390x emits
|
// If we have empty Ptrace structs, we should delete them. Only s390x emits
|
||||||
// nonempty Ptrace structs.
|
// nonempty Ptrace structs.
|
||||||
@@ -65,6 +76,10 @@ func main() {
|
|||||||
convertUtsnameRegex := regexp.MustCompile(`((Sys|Node|Domain)name|Release|Version|Machine)(\s+)\[(\d+)\]u?int8`)
|
convertUtsnameRegex := regexp.MustCompile(`((Sys|Node|Domain)name|Release|Version|Machine)(\s+)\[(\d+)\]u?int8`)
|
||||||
b = convertUtsnameRegex.ReplaceAll(b, []byte("$1$3[$4]byte"))
|
b = convertUtsnameRegex.ReplaceAll(b, []byte("$1$3[$4]byte"))
|
||||||
|
|
||||||
|
// Convert [1024]int8 to [1024]byte in Ptmget members
|
||||||
|
convertPtmget := regexp.MustCompile(`([SC]n)(\s+)\[(\d+)\]u?int8`)
|
||||||
|
b = convertPtmget.ReplaceAll(b, []byte("$1[$3]byte"))
|
||||||
|
|
||||||
// Remove spare fields (e.g. in Statx_t)
|
// Remove spare fields (e.g. in Statx_t)
|
||||||
spareFieldsRegex := regexp.MustCompile(`X__spare\S*`)
|
spareFieldsRegex := regexp.MustCompile(`X__spare\S*`)
|
||||||
b = spareFieldsRegex.ReplaceAll(b, []byte("_"))
|
b = spareFieldsRegex.ReplaceAll(b, []byte("_"))
|
||||||
@@ -88,6 +103,15 @@ func main() {
|
|||||||
cgoCommandRegex := regexp.MustCompile(`(cgo -godefs .*)`)
|
cgoCommandRegex := regexp.MustCompile(`(cgo -godefs .*)`)
|
||||||
b = cgoCommandRegex.ReplaceAll(b, []byte(replacement))
|
b = cgoCommandRegex.ReplaceAll(b, []byte(replacement))
|
||||||
|
|
||||||
|
// Rename Stat_t time fields
|
||||||
|
if goos == "freebsd" && goarch == "386" {
|
||||||
|
// Hide Stat_t.[AMCB]tim_ext fields
|
||||||
|
renameStatTimeExtFieldsRegex := regexp.MustCompile(`[AMCB]tim_ext`)
|
||||||
|
b = renameStatTimeExtFieldsRegex.ReplaceAll(b, []byte("_"))
|
||||||
|
}
|
||||||
|
renameStatTimeFieldsRegex := regexp.MustCompile(`([AMCB])(?:irth)?time?(?:spec)?\s+(Timespec|StTimespec)`)
|
||||||
|
b = renameStatTimeFieldsRegex.ReplaceAll(b, []byte("${1}tim ${2}"))
|
||||||
|
|
||||||
// gofmt
|
// gofmt
|
||||||
b, err = format.Source(b)
|
b, err = format.Source(b)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
407
vendor/golang.org/x/sys/unix/mksyscall.go
generated
vendored
Normal file
407
vendor/golang.org/x/sys/unix/mksyscall.go
generated
vendored
Normal file
@@ -0,0 +1,407 @@
|
|||||||
|
// 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 ignore
|
||||||
|
|
||||||
|
/*
|
||||||
|
This program reads a file containing function prototypes
|
||||||
|
(like syscall_darwin.go) and generates system call bodies.
|
||||||
|
The prototypes are marked by lines beginning with "//sys"
|
||||||
|
and read like func declarations if //sys is replaced by func, but:
|
||||||
|
* The parameter lists must give a name for each argument.
|
||||||
|
This includes return parameters.
|
||||||
|
* The parameter lists must give a type for each argument:
|
||||||
|
the (x, y, z int) shorthand is not allowed.
|
||||||
|
* If the return parameter is an error number, it must be named errno.
|
||||||
|
|
||||||
|
A line beginning with //sysnb is like //sys, except that the
|
||||||
|
goroutine will not be suspended during the execution of the system
|
||||||
|
call. This must only be used for system calls which can never
|
||||||
|
block, as otherwise the system call could cause all goroutines to
|
||||||
|
hang.
|
||||||
|
*/
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bufio"
|
||||||
|
"flag"
|
||||||
|
"fmt"
|
||||||
|
"os"
|
||||||
|
"regexp"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
b32 = flag.Bool("b32", false, "32bit big-endian")
|
||||||
|
l32 = flag.Bool("l32", false, "32bit little-endian")
|
||||||
|
plan9 = flag.Bool("plan9", false, "plan9")
|
||||||
|
openbsd = flag.Bool("openbsd", false, "openbsd")
|
||||||
|
netbsd = flag.Bool("netbsd", false, "netbsd")
|
||||||
|
dragonfly = flag.Bool("dragonfly", false, "dragonfly")
|
||||||
|
arm = flag.Bool("arm", false, "arm") // 64-bit value should use (even, odd)-pair
|
||||||
|
tags = flag.String("tags", "", "build tags")
|
||||||
|
filename = flag.String("output", "", "output file name (standard output if omitted)")
|
||||||
|
)
|
||||||
|
|
||||||
|
// cmdLine returns this programs's commandline arguments
|
||||||
|
func cmdLine() string {
|
||||||
|
return "go run mksyscall.go " + strings.Join(os.Args[1:], " ")
|
||||||
|
}
|
||||||
|
|
||||||
|
// buildTags returns build tags
|
||||||
|
func buildTags() string {
|
||||||
|
return *tags
|
||||||
|
}
|
||||||
|
|
||||||
|
// Param is function parameter
|
||||||
|
type Param struct {
|
||||||
|
Name string
|
||||||
|
Type string
|
||||||
|
}
|
||||||
|
|
||||||
|
// usage prints the program usage
|
||||||
|
func usage() {
|
||||||
|
fmt.Fprintf(os.Stderr, "usage: go run mksyscall.go [-b32 | -l32] [-tags x,y] [file ...]\n")
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
// parseParamList parses parameter list and returns a slice of parameters
|
||||||
|
func parseParamList(list string) []string {
|
||||||
|
list = strings.TrimSpace(list)
|
||||||
|
if list == "" {
|
||||||
|
return []string{}
|
||||||
|
}
|
||||||
|
return regexp.MustCompile(`\s*,\s*`).Split(list, -1)
|
||||||
|
}
|
||||||
|
|
||||||
|
// parseParam splits a parameter into name and type
|
||||||
|
func parseParam(p string) Param {
|
||||||
|
ps := regexp.MustCompile(`^(\S*) (\S*)$`).FindStringSubmatch(p)
|
||||||
|
if ps == nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "malformed parameter: %s\n", p)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
return Param{ps[1], ps[2]}
|
||||||
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
// Get the OS and architecture (using GOARCH_TARGET if it exists)
|
||||||
|
goos := os.Getenv("GOOS")
|
||||||
|
if goos == "" {
|
||||||
|
fmt.Fprintln(os.Stderr, "GOOS not defined in environment")
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
goarch := os.Getenv("GOARCH_TARGET")
|
||||||
|
if goarch == "" {
|
||||||
|
goarch = os.Getenv("GOARCH")
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check that we are using the Docker-based build system if we should
|
||||||
|
if goos == "linux" {
|
||||||
|
if os.Getenv("GOLANG_SYS_BUILD") != "docker" {
|
||||||
|
fmt.Fprintf(os.Stderr, "In the Docker-based build system, mksyscall should not be called directly.\n")
|
||||||
|
fmt.Fprintf(os.Stderr, "See README.md\n")
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
flag.Usage = usage
|
||||||
|
flag.Parse()
|
||||||
|
if len(flag.Args()) <= 0 {
|
||||||
|
fmt.Fprintf(os.Stderr, "no files to parse provided\n")
|
||||||
|
usage()
|
||||||
|
}
|
||||||
|
|
||||||
|
endianness := ""
|
||||||
|
if *b32 {
|
||||||
|
endianness = "big-endian"
|
||||||
|
} else if *l32 {
|
||||||
|
endianness = "little-endian"
|
||||||
|
}
|
||||||
|
|
||||||
|
libc := false
|
||||||
|
if goos == "darwin" && strings.Contains(buildTags(), ",go1.12") {
|
||||||
|
libc = true
|
||||||
|
}
|
||||||
|
trampolines := map[string]bool{}
|
||||||
|
|
||||||
|
text := ""
|
||||||
|
for _, path := range flag.Args() {
|
||||||
|
file, err := os.Open(path)
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, err.Error())
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
s := bufio.NewScanner(file)
|
||||||
|
for s.Scan() {
|
||||||
|
t := s.Text()
|
||||||
|
t = strings.TrimSpace(t)
|
||||||
|
t = regexp.MustCompile(`\s+`).ReplaceAllString(t, ` `)
|
||||||
|
nonblock := regexp.MustCompile(`^\/\/sysnb `).FindStringSubmatch(t)
|
||||||
|
if regexp.MustCompile(`^\/\/sys `).FindStringSubmatch(t) == nil && nonblock == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
// Line must be of the form
|
||||||
|
// func Open(path string, mode int, perm int) (fd int, errno error)
|
||||||
|
// Split into name, in params, out params.
|
||||||
|
f := regexp.MustCompile(`^\/\/sys(nb)? (\w+)\(([^()]*)\)\s*(?:\(([^()]+)\))?\s*(?:=\s*((?i)SYS_[A-Z0-9_]+))?$`).FindStringSubmatch(t)
|
||||||
|
if f == nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "%s:%s\nmalformed //sys declaration\n", path, t)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
funct, inps, outps, sysname := f[2], f[3], f[4], f[5]
|
||||||
|
|
||||||
|
// ClockGettime doesn't have a syscall number on Darwin, only generate libc wrappers.
|
||||||
|
if goos == "darwin" && !libc && funct == "ClockGettime" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
// Split argument lists on comma.
|
||||||
|
in := parseParamList(inps)
|
||||||
|
out := parseParamList(outps)
|
||||||
|
|
||||||
|
// Try in vain to keep people from editing this file.
|
||||||
|
// The theory is that they jump into the middle of the file
|
||||||
|
// without reading the header.
|
||||||
|
text += "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n\n"
|
||||||
|
|
||||||
|
// Go function header.
|
||||||
|
outDecl := ""
|
||||||
|
if len(out) > 0 {
|
||||||
|
outDecl = fmt.Sprintf(" (%s)", strings.Join(out, ", "))
|
||||||
|
}
|
||||||
|
text += fmt.Sprintf("func %s(%s)%s {\n", funct, strings.Join(in, ", "), outDecl)
|
||||||
|
|
||||||
|
// Check if err return available
|
||||||
|
errvar := ""
|
||||||
|
for _, param := range out {
|
||||||
|
p := parseParam(param)
|
||||||
|
if p.Type == "error" {
|
||||||
|
errvar = p.Name
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Prepare arguments to Syscall.
|
||||||
|
var args []string
|
||||||
|
n := 0
|
||||||
|
for _, param := range in {
|
||||||
|
p := parseParam(param)
|
||||||
|
if regexp.MustCompile(`^\*`).FindStringSubmatch(p.Type) != nil {
|
||||||
|
args = append(args, "uintptr(unsafe.Pointer("+p.Name+"))")
|
||||||
|
} else if p.Type == "string" && errvar != "" {
|
||||||
|
text += fmt.Sprintf("\tvar _p%d *byte\n", n)
|
||||||
|
text += fmt.Sprintf("\t_p%d, %s = BytePtrFromString(%s)\n", n, errvar, p.Name)
|
||||||
|
text += fmt.Sprintf("\tif %s != nil {\n\t\treturn\n\t}\n", errvar)
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(unsafe.Pointer(_p%d))", n))
|
||||||
|
n++
|
||||||
|
} else if p.Type == "string" {
|
||||||
|
fmt.Fprintf(os.Stderr, path+":"+funct+" uses string arguments, but has no error return\n")
|
||||||
|
text += fmt.Sprintf("\tvar _p%d *byte\n", n)
|
||||||
|
text += fmt.Sprintf("\t_p%d, _ = BytePtrFromString(%s)\n", n, p.Name)
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(unsafe.Pointer(_p%d))", n))
|
||||||
|
n++
|
||||||
|
} else if regexp.MustCompile(`^\[\](.*)`).FindStringSubmatch(p.Type) != nil {
|
||||||
|
// Convert slice into pointer, length.
|
||||||
|
// Have to be careful not to take address of &a[0] if len == 0:
|
||||||
|
// pass dummy pointer in that case.
|
||||||
|
// Used to pass nil, but some OSes or simulators reject write(fd, nil, 0).
|
||||||
|
text += fmt.Sprintf("\tvar _p%d unsafe.Pointer\n", n)
|
||||||
|
text += fmt.Sprintf("\tif len(%s) > 0 {\n\t\t_p%d = unsafe.Pointer(&%s[0])\n\t}", p.Name, n, p.Name)
|
||||||
|
text += fmt.Sprintf(" else {\n\t\t_p%d = unsafe.Pointer(&_zero)\n\t}\n", n)
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(_p%d)", n), fmt.Sprintf("uintptr(len(%s))", p.Name))
|
||||||
|
n++
|
||||||
|
} else if p.Type == "int64" && (*openbsd || *netbsd) {
|
||||||
|
args = append(args, "0")
|
||||||
|
if endianness == "big-endian" {
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(%s>>32)", p.Name), fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
} else if endianness == "little-endian" {
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(%s)", p.Name), fmt.Sprintf("uintptr(%s>>32)", p.Name))
|
||||||
|
} else {
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
}
|
||||||
|
} else if p.Type == "int64" && *dragonfly {
|
||||||
|
if regexp.MustCompile(`^(?i)extp(read|write)`).FindStringSubmatch(funct) == nil {
|
||||||
|
args = append(args, "0")
|
||||||
|
}
|
||||||
|
if endianness == "big-endian" {
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(%s>>32)", p.Name), fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
} else if endianness == "little-endian" {
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(%s)", p.Name), fmt.Sprintf("uintptr(%s>>32)", p.Name))
|
||||||
|
} else {
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
}
|
||||||
|
} else if (p.Type == "int64" || p.Type == "uint64") && endianness != "" {
|
||||||
|
if len(args)%2 == 1 && *arm {
|
||||||
|
// arm abi specifies 64-bit argument uses
|
||||||
|
// (even, odd) pair
|
||||||
|
args = append(args, "0")
|
||||||
|
}
|
||||||
|
if endianness == "big-endian" {
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(%s>>32)", p.Name), fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
} else {
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(%s)", p.Name), fmt.Sprintf("uintptr(%s>>32)", p.Name))
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Determine which form to use; pad args with zeros.
|
||||||
|
asm := "Syscall"
|
||||||
|
if nonblock != nil {
|
||||||
|
if errvar == "" && goos == "linux" {
|
||||||
|
asm = "RawSyscallNoError"
|
||||||
|
} else {
|
||||||
|
asm = "RawSyscall"
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if errvar == "" && goos == "linux" {
|
||||||
|
asm = "SyscallNoError"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if len(args) <= 3 {
|
||||||
|
for len(args) < 3 {
|
||||||
|
args = append(args, "0")
|
||||||
|
}
|
||||||
|
} else if len(args) <= 6 {
|
||||||
|
asm += "6"
|
||||||
|
for len(args) < 6 {
|
||||||
|
args = append(args, "0")
|
||||||
|
}
|
||||||
|
} else if len(args) <= 9 {
|
||||||
|
asm += "9"
|
||||||
|
for len(args) < 9 {
|
||||||
|
args = append(args, "0")
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
fmt.Fprintf(os.Stderr, "%s:%s too many arguments to system call\n", path, funct)
|
||||||
|
}
|
||||||
|
|
||||||
|
// System call number.
|
||||||
|
if sysname == "" {
|
||||||
|
sysname = "SYS_" + funct
|
||||||
|
sysname = regexp.MustCompile(`([a-z])([A-Z])`).ReplaceAllString(sysname, `${1}_$2`)
|
||||||
|
sysname = strings.ToUpper(sysname)
|
||||||
|
}
|
||||||
|
|
||||||
|
var libcFn string
|
||||||
|
if libc {
|
||||||
|
asm = "syscall_" + strings.ToLower(asm[:1]) + asm[1:] // internal syscall call
|
||||||
|
sysname = strings.TrimPrefix(sysname, "SYS_") // remove SYS_
|
||||||
|
sysname = strings.ToLower(sysname) // lowercase
|
||||||
|
if sysname == "getdirentries64" {
|
||||||
|
// Special case - libSystem name and
|
||||||
|
// raw syscall name don't match.
|
||||||
|
sysname = "__getdirentries64"
|
||||||
|
}
|
||||||
|
libcFn = sysname
|
||||||
|
sysname = "funcPC(libc_" + sysname + "_trampoline)"
|
||||||
|
}
|
||||||
|
|
||||||
|
// Actual call.
|
||||||
|
arglist := strings.Join(args, ", ")
|
||||||
|
call := fmt.Sprintf("%s(%s, %s)", asm, sysname, arglist)
|
||||||
|
|
||||||
|
// Assign return values.
|
||||||
|
body := ""
|
||||||
|
ret := []string{"_", "_", "_"}
|
||||||
|
doErrno := false
|
||||||
|
for i := 0; i < len(out); i++ {
|
||||||
|
p := parseParam(out[i])
|
||||||
|
reg := ""
|
||||||
|
if p.Name == "err" && !*plan9 {
|
||||||
|
reg = "e1"
|
||||||
|
ret[2] = reg
|
||||||
|
doErrno = true
|
||||||
|
} else if p.Name == "err" && *plan9 {
|
||||||
|
ret[0] = "r0"
|
||||||
|
ret[2] = "e1"
|
||||||
|
break
|
||||||
|
} else {
|
||||||
|
reg = fmt.Sprintf("r%d", i)
|
||||||
|
ret[i] = reg
|
||||||
|
}
|
||||||
|
if p.Type == "bool" {
|
||||||
|
reg = fmt.Sprintf("%s != 0", reg)
|
||||||
|
}
|
||||||
|
if p.Type == "int64" && endianness != "" {
|
||||||
|
// 64-bit number in r1:r0 or r0:r1.
|
||||||
|
if i+2 > len(out) {
|
||||||
|
fmt.Fprintf(os.Stderr, "%s:%s not enough registers for int64 return\n", path, funct)
|
||||||
|
}
|
||||||
|
if endianness == "big-endian" {
|
||||||
|
reg = fmt.Sprintf("int64(r%d)<<32 | int64(r%d)", i, i+1)
|
||||||
|
} else {
|
||||||
|
reg = fmt.Sprintf("int64(r%d)<<32 | int64(r%d)", i+1, i)
|
||||||
|
}
|
||||||
|
ret[i] = fmt.Sprintf("r%d", i)
|
||||||
|
ret[i+1] = fmt.Sprintf("r%d", i+1)
|
||||||
|
}
|
||||||
|
if reg != "e1" || *plan9 {
|
||||||
|
body += fmt.Sprintf("\t%s = %s(%s)\n", p.Name, p.Type, reg)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ret[0] == "_" && ret[1] == "_" && ret[2] == "_" {
|
||||||
|
text += fmt.Sprintf("\t%s\n", call)
|
||||||
|
} else {
|
||||||
|
if errvar == "" && goos == "linux" {
|
||||||
|
// raw syscall without error on Linux, see golang.org/issue/22924
|
||||||
|
text += fmt.Sprintf("\t%s, %s := %s\n", ret[0], ret[1], call)
|
||||||
|
} else {
|
||||||
|
text += fmt.Sprintf("\t%s, %s, %s := %s\n", ret[0], ret[1], ret[2], call)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
text += body
|
||||||
|
|
||||||
|
if *plan9 && ret[2] == "e1" {
|
||||||
|
text += "\tif int32(r0) == -1 {\n"
|
||||||
|
text += "\t\terr = e1\n"
|
||||||
|
text += "\t}\n"
|
||||||
|
} else if doErrno {
|
||||||
|
text += "\tif e1 != 0 {\n"
|
||||||
|
text += "\t\terr = errnoErr(e1)\n"
|
||||||
|
text += "\t}\n"
|
||||||
|
}
|
||||||
|
text += "\treturn\n"
|
||||||
|
text += "}\n\n"
|
||||||
|
|
||||||
|
if libc && !trampolines[libcFn] {
|
||||||
|
// some system calls share a trampoline, like read and readlen.
|
||||||
|
trampolines[libcFn] = true
|
||||||
|
// Declare assembly trampoline.
|
||||||
|
text += fmt.Sprintf("func libc_%s_trampoline()\n", libcFn)
|
||||||
|
// Assembly trampoline calls the libc_* function, which this magic
|
||||||
|
// redirects to use the function from libSystem.
|
||||||
|
text += fmt.Sprintf("//go:linkname libc_%s libc_%s\n", libcFn, libcFn)
|
||||||
|
text += fmt.Sprintf("//go:cgo_import_dynamic libc_%s %s \"/usr/lib/libSystem.B.dylib\"\n", libcFn, libcFn)
|
||||||
|
text += "\n"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if err := s.Err(); err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, err.Error())
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
file.Close()
|
||||||
|
}
|
||||||
|
fmt.Printf(srcTemplate, cmdLine(), buildTags(), text)
|
||||||
|
}
|
||||||
|
|
||||||
|
const srcTemplate = `// %s
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build %s
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
"syscall"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
var _ syscall.Errno
|
||||||
|
|
||||||
|
%s
|
||||||
|
`
|
||||||
415
vendor/golang.org/x/sys/unix/mksyscall_aix_ppc.go
generated
vendored
Normal file
415
vendor/golang.org/x/sys/unix/mksyscall_aix_ppc.go
generated
vendored
Normal file
@@ -0,0 +1,415 @@
|
|||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build ignore
|
||||||
|
|
||||||
|
/*
|
||||||
|
This program reads a file containing function prototypes
|
||||||
|
(like syscall_aix.go) and generates system call bodies.
|
||||||
|
The prototypes are marked by lines beginning with "//sys"
|
||||||
|
and read like func declarations if //sys is replaced by func, but:
|
||||||
|
* The parameter lists must give a name for each argument.
|
||||||
|
This includes return parameters.
|
||||||
|
* The parameter lists must give a type for each argument:
|
||||||
|
the (x, y, z int) shorthand is not allowed.
|
||||||
|
* If the return parameter is an error number, it must be named err.
|
||||||
|
* If go func name needs to be different than its libc name,
|
||||||
|
* or the function is not in libc, name could be specified
|
||||||
|
* at the end, after "=" sign, like
|
||||||
|
//sys getsockopt(s int, level int, name int, val uintptr, vallen *_Socklen) (err error) = libsocket.getsockopt
|
||||||
|
*/
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bufio"
|
||||||
|
"flag"
|
||||||
|
"fmt"
|
||||||
|
"os"
|
||||||
|
"regexp"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
b32 = flag.Bool("b32", false, "32bit big-endian")
|
||||||
|
l32 = flag.Bool("l32", false, "32bit little-endian")
|
||||||
|
aix = flag.Bool("aix", false, "aix")
|
||||||
|
tags = flag.String("tags", "", "build tags")
|
||||||
|
)
|
||||||
|
|
||||||
|
// cmdLine returns this programs's commandline arguments
|
||||||
|
func cmdLine() string {
|
||||||
|
return "go run mksyscall_aix_ppc.go " + strings.Join(os.Args[1:], " ")
|
||||||
|
}
|
||||||
|
|
||||||
|
// buildTags returns build tags
|
||||||
|
func buildTags() string {
|
||||||
|
return *tags
|
||||||
|
}
|
||||||
|
|
||||||
|
// Param is function parameter
|
||||||
|
type Param struct {
|
||||||
|
Name string
|
||||||
|
Type string
|
||||||
|
}
|
||||||
|
|
||||||
|
// usage prints the program usage
|
||||||
|
func usage() {
|
||||||
|
fmt.Fprintf(os.Stderr, "usage: go run mksyscall_aix_ppc.go [-b32 | -l32] [-tags x,y] [file ...]\n")
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
// parseParamList parses parameter list and returns a slice of parameters
|
||||||
|
func parseParamList(list string) []string {
|
||||||
|
list = strings.TrimSpace(list)
|
||||||
|
if list == "" {
|
||||||
|
return []string{}
|
||||||
|
}
|
||||||
|
return regexp.MustCompile(`\s*,\s*`).Split(list, -1)
|
||||||
|
}
|
||||||
|
|
||||||
|
// parseParam splits a parameter into name and type
|
||||||
|
func parseParam(p string) Param {
|
||||||
|
ps := regexp.MustCompile(`^(\S*) (\S*)$`).FindStringSubmatch(p)
|
||||||
|
if ps == nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "malformed parameter: %s\n", p)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
return Param{ps[1], ps[2]}
|
||||||
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
flag.Usage = usage
|
||||||
|
flag.Parse()
|
||||||
|
if len(flag.Args()) <= 0 {
|
||||||
|
fmt.Fprintf(os.Stderr, "no files to parse provided\n")
|
||||||
|
usage()
|
||||||
|
}
|
||||||
|
|
||||||
|
endianness := ""
|
||||||
|
if *b32 {
|
||||||
|
endianness = "big-endian"
|
||||||
|
} else if *l32 {
|
||||||
|
endianness = "little-endian"
|
||||||
|
}
|
||||||
|
|
||||||
|
pack := ""
|
||||||
|
text := ""
|
||||||
|
cExtern := "/*\n#include <stdint.h>\n#include <stddef.h>\n"
|
||||||
|
for _, path := range flag.Args() {
|
||||||
|
file, err := os.Open(path)
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, err.Error())
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
s := bufio.NewScanner(file)
|
||||||
|
for s.Scan() {
|
||||||
|
t := s.Text()
|
||||||
|
t = strings.TrimSpace(t)
|
||||||
|
t = regexp.MustCompile(`\s+`).ReplaceAllString(t, ` `)
|
||||||
|
if p := regexp.MustCompile(`^package (\S+)$`).FindStringSubmatch(t); p != nil && pack == "" {
|
||||||
|
pack = p[1]
|
||||||
|
}
|
||||||
|
nonblock := regexp.MustCompile(`^\/\/sysnb `).FindStringSubmatch(t)
|
||||||
|
if regexp.MustCompile(`^\/\/sys `).FindStringSubmatch(t) == nil && nonblock == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
// Line must be of the form
|
||||||
|
// func Open(path string, mode int, perm int) (fd int, err error)
|
||||||
|
// Split into name, in params, out params.
|
||||||
|
f := regexp.MustCompile(`^\/\/sys(nb)? (\w+)\(([^()]*)\)\s*(?:\(([^()]+)\))?\s*(?:=\s*(?:(\w*)\.)?(\w*))?$`).FindStringSubmatch(t)
|
||||||
|
if f == nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "%s:%s\nmalformed //sys declaration\n", path, t)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
funct, inps, outps, modname, sysname := f[2], f[3], f[4], f[5], f[6]
|
||||||
|
|
||||||
|
// Split argument lists on comma.
|
||||||
|
in := parseParamList(inps)
|
||||||
|
out := parseParamList(outps)
|
||||||
|
|
||||||
|
inps = strings.Join(in, ", ")
|
||||||
|
outps = strings.Join(out, ", ")
|
||||||
|
|
||||||
|
// Try in vain to keep people from editing this file.
|
||||||
|
// The theory is that they jump into the middle of the file
|
||||||
|
// without reading the header.
|
||||||
|
text += "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n\n"
|
||||||
|
|
||||||
|
// Check if value return, err return available
|
||||||
|
errvar := ""
|
||||||
|
retvar := ""
|
||||||
|
rettype := ""
|
||||||
|
for _, param := range out {
|
||||||
|
p := parseParam(param)
|
||||||
|
if p.Type == "error" {
|
||||||
|
errvar = p.Name
|
||||||
|
} else {
|
||||||
|
retvar = p.Name
|
||||||
|
rettype = p.Type
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// System call name.
|
||||||
|
if sysname == "" {
|
||||||
|
sysname = funct
|
||||||
|
}
|
||||||
|
sysname = regexp.MustCompile(`([a-z])([A-Z])`).ReplaceAllString(sysname, `${1}_$2`)
|
||||||
|
sysname = strings.ToLower(sysname) // All libc functions are lowercase.
|
||||||
|
|
||||||
|
cRettype := ""
|
||||||
|
if rettype == "unsafe.Pointer" {
|
||||||
|
cRettype = "uintptr_t"
|
||||||
|
} else if rettype == "uintptr" {
|
||||||
|
cRettype = "uintptr_t"
|
||||||
|
} else if regexp.MustCompile(`^_`).FindStringSubmatch(rettype) != nil {
|
||||||
|
cRettype = "uintptr_t"
|
||||||
|
} else if rettype == "int" {
|
||||||
|
cRettype = "int"
|
||||||
|
} else if rettype == "int32" {
|
||||||
|
cRettype = "int"
|
||||||
|
} else if rettype == "int64" {
|
||||||
|
cRettype = "long long"
|
||||||
|
} else if rettype == "uint32" {
|
||||||
|
cRettype = "unsigned int"
|
||||||
|
} else if rettype == "uint64" {
|
||||||
|
cRettype = "unsigned long long"
|
||||||
|
} else {
|
||||||
|
cRettype = "int"
|
||||||
|
}
|
||||||
|
if sysname == "exit" {
|
||||||
|
cRettype = "void"
|
||||||
|
}
|
||||||
|
|
||||||
|
// Change p.Types to c
|
||||||
|
var cIn []string
|
||||||
|
for _, param := range in {
|
||||||
|
p := parseParam(param)
|
||||||
|
if regexp.MustCompile(`^\*`).FindStringSubmatch(p.Type) != nil {
|
||||||
|
cIn = append(cIn, "uintptr_t")
|
||||||
|
} else if p.Type == "string" {
|
||||||
|
cIn = append(cIn, "uintptr_t")
|
||||||
|
} else if regexp.MustCompile(`^\[\](.*)`).FindStringSubmatch(p.Type) != nil {
|
||||||
|
cIn = append(cIn, "uintptr_t", "size_t")
|
||||||
|
} else if p.Type == "unsafe.Pointer" {
|
||||||
|
cIn = append(cIn, "uintptr_t")
|
||||||
|
} else if p.Type == "uintptr" {
|
||||||
|
cIn = append(cIn, "uintptr_t")
|
||||||
|
} else if regexp.MustCompile(`^_`).FindStringSubmatch(p.Type) != nil {
|
||||||
|
cIn = append(cIn, "uintptr_t")
|
||||||
|
} else if p.Type == "int" {
|
||||||
|
cIn = append(cIn, "int")
|
||||||
|
} else if p.Type == "int32" {
|
||||||
|
cIn = append(cIn, "int")
|
||||||
|
} else if p.Type == "int64" {
|
||||||
|
cIn = append(cIn, "long long")
|
||||||
|
} else if p.Type == "uint32" {
|
||||||
|
cIn = append(cIn, "unsigned int")
|
||||||
|
} else if p.Type == "uint64" {
|
||||||
|
cIn = append(cIn, "unsigned long long")
|
||||||
|
} else {
|
||||||
|
cIn = append(cIn, "int")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if funct != "fcntl" && funct != "FcntlInt" && funct != "readlen" && funct != "writelen" {
|
||||||
|
if sysname == "select" {
|
||||||
|
// select is a keyword of Go. Its name is
|
||||||
|
// changed to c_select.
|
||||||
|
cExtern += "#define c_select select\n"
|
||||||
|
}
|
||||||
|
// Imports of system calls from libc
|
||||||
|
cExtern += fmt.Sprintf("%s %s", cRettype, sysname)
|
||||||
|
cIn := strings.Join(cIn, ", ")
|
||||||
|
cExtern += fmt.Sprintf("(%s);\n", cIn)
|
||||||
|
}
|
||||||
|
|
||||||
|
// So file name.
|
||||||
|
if *aix {
|
||||||
|
if modname == "" {
|
||||||
|
modname = "libc.a/shr_64.o"
|
||||||
|
} else {
|
||||||
|
fmt.Fprintf(os.Stderr, "%s: only syscall using libc are available\n", funct)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
strconvfunc := "C.CString"
|
||||||
|
|
||||||
|
// Go function header.
|
||||||
|
if outps != "" {
|
||||||
|
outps = fmt.Sprintf(" (%s)", outps)
|
||||||
|
}
|
||||||
|
if text != "" {
|
||||||
|
text += "\n"
|
||||||
|
}
|
||||||
|
|
||||||
|
text += fmt.Sprintf("func %s(%s)%s {\n", funct, strings.Join(in, ", "), outps)
|
||||||
|
|
||||||
|
// Prepare arguments to Syscall.
|
||||||
|
var args []string
|
||||||
|
n := 0
|
||||||
|
argN := 0
|
||||||
|
for _, param := range in {
|
||||||
|
p := parseParam(param)
|
||||||
|
if regexp.MustCompile(`^\*`).FindStringSubmatch(p.Type) != nil {
|
||||||
|
args = append(args, "C.uintptr_t(uintptr(unsafe.Pointer("+p.Name+")))")
|
||||||
|
} else if p.Type == "string" && errvar != "" {
|
||||||
|
text += fmt.Sprintf("\t_p%d := uintptr(unsafe.Pointer(%s(%s)))\n", n, strconvfunc, p.Name)
|
||||||
|
args = append(args, fmt.Sprintf("C.uintptr_t(_p%d)", n))
|
||||||
|
n++
|
||||||
|
} else if p.Type == "string" {
|
||||||
|
fmt.Fprintf(os.Stderr, path+":"+funct+" uses string arguments, but has no error return\n")
|
||||||
|
text += fmt.Sprintf("\t_p%d := uintptr(unsafe.Pointer(%s(%s)))\n", n, strconvfunc, p.Name)
|
||||||
|
args = append(args, fmt.Sprintf("C.uintptr_t(_p%d)", n))
|
||||||
|
n++
|
||||||
|
} else if m := regexp.MustCompile(`^\[\](.*)`).FindStringSubmatch(p.Type); m != nil {
|
||||||
|
// Convert slice into pointer, length.
|
||||||
|
// Have to be careful not to take address of &a[0] if len == 0:
|
||||||
|
// pass nil in that case.
|
||||||
|
text += fmt.Sprintf("\tvar _p%d *%s\n", n, m[1])
|
||||||
|
text += fmt.Sprintf("\tif len(%s) > 0 {\n\t\t_p%d = &%s[0]\n\t}\n", p.Name, n, p.Name)
|
||||||
|
args = append(args, fmt.Sprintf("C.uintptr_t(uintptr(unsafe.Pointer(_p%d)))", n))
|
||||||
|
n++
|
||||||
|
text += fmt.Sprintf("\tvar _p%d int\n", n)
|
||||||
|
text += fmt.Sprintf("\t_p%d = len(%s)\n", n, p.Name)
|
||||||
|
args = append(args, fmt.Sprintf("C.size_t(_p%d)", n))
|
||||||
|
n++
|
||||||
|
} else if p.Type == "int64" && endianness != "" {
|
||||||
|
if endianness == "big-endian" {
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(%s>>32)", p.Name), fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
} else {
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(%s)", p.Name), fmt.Sprintf("uintptr(%s>>32)", p.Name))
|
||||||
|
}
|
||||||
|
n++
|
||||||
|
} else if p.Type == "bool" {
|
||||||
|
text += fmt.Sprintf("\tvar _p%d uint32\n", n)
|
||||||
|
text += fmt.Sprintf("\tif %s {\n\t\t_p%d = 1\n\t} else {\n\t\t_p%d = 0\n\t}\n", p.Name, n, n)
|
||||||
|
args = append(args, fmt.Sprintf("_p%d", n))
|
||||||
|
} else if regexp.MustCompile(`^_`).FindStringSubmatch(p.Type) != nil {
|
||||||
|
args = append(args, fmt.Sprintf("C.uintptr_t(uintptr(%s))", p.Name))
|
||||||
|
} else if p.Type == "unsafe.Pointer" {
|
||||||
|
args = append(args, fmt.Sprintf("C.uintptr_t(uintptr(%s))", p.Name))
|
||||||
|
} else if p.Type == "int" {
|
||||||
|
if (argN == 2) && ((funct == "readlen") || (funct == "writelen")) {
|
||||||
|
args = append(args, fmt.Sprintf("C.size_t(%s)", p.Name))
|
||||||
|
} else if argN == 0 && funct == "fcntl" {
|
||||||
|
args = append(args, fmt.Sprintf("C.uintptr_t(%s)", p.Name))
|
||||||
|
} else if (argN == 2) && ((funct == "fcntl") || (funct == "FcntlInt")) {
|
||||||
|
args = append(args, fmt.Sprintf("C.uintptr_t(%s)", p.Name))
|
||||||
|
} else {
|
||||||
|
args = append(args, fmt.Sprintf("C.int(%s)", p.Name))
|
||||||
|
}
|
||||||
|
} else if p.Type == "int32" {
|
||||||
|
args = append(args, fmt.Sprintf("C.int(%s)", p.Name))
|
||||||
|
} else if p.Type == "int64" {
|
||||||
|
args = append(args, fmt.Sprintf("C.longlong(%s)", p.Name))
|
||||||
|
} else if p.Type == "uint32" {
|
||||||
|
args = append(args, fmt.Sprintf("C.uint(%s)", p.Name))
|
||||||
|
} else if p.Type == "uint64" {
|
||||||
|
args = append(args, fmt.Sprintf("C.ulonglong(%s)", p.Name))
|
||||||
|
} else if p.Type == "uintptr" {
|
||||||
|
args = append(args, fmt.Sprintf("C.uintptr_t(%s)", p.Name))
|
||||||
|
} else {
|
||||||
|
args = append(args, fmt.Sprintf("C.int(%s)", p.Name))
|
||||||
|
}
|
||||||
|
argN++
|
||||||
|
}
|
||||||
|
|
||||||
|
// Actual call.
|
||||||
|
arglist := strings.Join(args, ", ")
|
||||||
|
call := ""
|
||||||
|
if sysname == "exit" {
|
||||||
|
if errvar != "" {
|
||||||
|
call += "er :="
|
||||||
|
} else {
|
||||||
|
call += ""
|
||||||
|
}
|
||||||
|
} else if errvar != "" {
|
||||||
|
call += "r0,er :="
|
||||||
|
} else if retvar != "" {
|
||||||
|
call += "r0,_ :="
|
||||||
|
} else {
|
||||||
|
call += ""
|
||||||
|
}
|
||||||
|
if sysname == "select" {
|
||||||
|
// select is a keyword of Go. Its name is
|
||||||
|
// changed to c_select.
|
||||||
|
call += fmt.Sprintf("C.c_%s(%s)", sysname, arglist)
|
||||||
|
} else {
|
||||||
|
call += fmt.Sprintf("C.%s(%s)", sysname, arglist)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Assign return values.
|
||||||
|
body := ""
|
||||||
|
for i := 0; i < len(out); i++ {
|
||||||
|
p := parseParam(out[i])
|
||||||
|
reg := ""
|
||||||
|
if p.Name == "err" {
|
||||||
|
reg = "e1"
|
||||||
|
} else {
|
||||||
|
reg = "r0"
|
||||||
|
}
|
||||||
|
if reg != "e1" {
|
||||||
|
body += fmt.Sprintf("\t%s = %s(%s)\n", p.Name, p.Type, reg)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// verify return
|
||||||
|
if sysname != "exit" && errvar != "" {
|
||||||
|
if regexp.MustCompile(`^uintptr`).FindStringSubmatch(cRettype) != nil {
|
||||||
|
body += "\tif (uintptr(r0) ==^uintptr(0) && er != nil) {\n"
|
||||||
|
body += fmt.Sprintf("\t\t%s = er\n", errvar)
|
||||||
|
body += "\t}\n"
|
||||||
|
} else {
|
||||||
|
body += "\tif (r0 ==-1 && er != nil) {\n"
|
||||||
|
body += fmt.Sprintf("\t\t%s = er\n", errvar)
|
||||||
|
body += "\t}\n"
|
||||||
|
}
|
||||||
|
} else if errvar != "" {
|
||||||
|
body += "\tif (er != nil) {\n"
|
||||||
|
body += fmt.Sprintf("\t\t%s = er\n", errvar)
|
||||||
|
body += "\t}\n"
|
||||||
|
}
|
||||||
|
|
||||||
|
text += fmt.Sprintf("\t%s\n", call)
|
||||||
|
text += body
|
||||||
|
|
||||||
|
text += "\treturn\n"
|
||||||
|
text += "}\n"
|
||||||
|
}
|
||||||
|
if err := s.Err(); err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, err.Error())
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
file.Close()
|
||||||
|
}
|
||||||
|
imp := ""
|
||||||
|
if pack != "unix" {
|
||||||
|
imp = "import \"golang.org/x/sys/unix\"\n"
|
||||||
|
|
||||||
|
}
|
||||||
|
fmt.Printf(srcTemplate, cmdLine(), buildTags(), pack, cExtern, imp, text)
|
||||||
|
}
|
||||||
|
|
||||||
|
const srcTemplate = `// %s
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build %s
|
||||||
|
|
||||||
|
package %s
|
||||||
|
|
||||||
|
|
||||||
|
%s
|
||||||
|
*/
|
||||||
|
import "C"
|
||||||
|
import (
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
%s
|
||||||
|
|
||||||
|
%s
|
||||||
|
`
|
||||||
614
vendor/golang.org/x/sys/unix/mksyscall_aix_ppc64.go
generated
vendored
Normal file
614
vendor/golang.org/x/sys/unix/mksyscall_aix_ppc64.go
generated
vendored
Normal file
@@ -0,0 +1,614 @@
|
|||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build ignore
|
||||||
|
|
||||||
|
/*
|
||||||
|
This program reads a file containing function prototypes
|
||||||
|
(like syscall_aix.go) and generates system call bodies.
|
||||||
|
The prototypes are marked by lines beginning with "//sys"
|
||||||
|
and read like func declarations if //sys is replaced by func, but:
|
||||||
|
* The parameter lists must give a name for each argument.
|
||||||
|
This includes return parameters.
|
||||||
|
* The parameter lists must give a type for each argument:
|
||||||
|
the (x, y, z int) shorthand is not allowed.
|
||||||
|
* If the return parameter is an error number, it must be named err.
|
||||||
|
* If go func name needs to be different than its libc name,
|
||||||
|
* or the function is not in libc, name could be specified
|
||||||
|
* at the end, after "=" sign, like
|
||||||
|
//sys getsockopt(s int, level int, name int, val uintptr, vallen *_Socklen) (err error) = libsocket.getsockopt
|
||||||
|
|
||||||
|
|
||||||
|
This program will generate three files and handle both gc and gccgo implementation:
|
||||||
|
- zsyscall_aix_ppc64.go: the common part of each implementation (error handler, pointer creation)
|
||||||
|
- zsyscall_aix_ppc64_gc.go: gc part with //go_cgo_import_dynamic and a call to syscall6
|
||||||
|
- zsyscall_aix_ppc64_gccgo.go: gccgo part with C function and conversion to C type.
|
||||||
|
|
||||||
|
The generated code looks like this
|
||||||
|
|
||||||
|
zsyscall_aix_ppc64.go
|
||||||
|
func asyscall(...) (n int, err error) {
|
||||||
|
// Pointer Creation
|
||||||
|
r1, e1 := callasyscall(...)
|
||||||
|
// Type Conversion
|
||||||
|
// Error Handler
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
zsyscall_aix_ppc64_gc.go
|
||||||
|
//go:cgo_import_dynamic libc_asyscall asyscall "libc.a/shr_64.o"
|
||||||
|
//go:linkname libc_asyscall libc_asyscall
|
||||||
|
var asyscall syscallFunc
|
||||||
|
|
||||||
|
func callasyscall(...) (r1 uintptr, e1 Errno) {
|
||||||
|
r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_asyscall)), "nb_args", ... )
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
zsyscall_aix_ppc64_ggcgo.go
|
||||||
|
|
||||||
|
// int asyscall(...)
|
||||||
|
|
||||||
|
import "C"
|
||||||
|
|
||||||
|
func callasyscall(...) (r1 uintptr, e1 Errno) {
|
||||||
|
r1 = uintptr(C.asyscall(...))
|
||||||
|
e1 = syscall.GetErrno()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bufio"
|
||||||
|
"flag"
|
||||||
|
"fmt"
|
||||||
|
"io/ioutil"
|
||||||
|
"os"
|
||||||
|
"regexp"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
b32 = flag.Bool("b32", false, "32bit big-endian")
|
||||||
|
l32 = flag.Bool("l32", false, "32bit little-endian")
|
||||||
|
aix = flag.Bool("aix", false, "aix")
|
||||||
|
tags = flag.String("tags", "", "build tags")
|
||||||
|
)
|
||||||
|
|
||||||
|
// cmdLine returns this programs's commandline arguments
|
||||||
|
func cmdLine() string {
|
||||||
|
return "go run mksyscall_aix_ppc64.go " + strings.Join(os.Args[1:], " ")
|
||||||
|
}
|
||||||
|
|
||||||
|
// buildTags returns build tags
|
||||||
|
func buildTags() string {
|
||||||
|
return *tags
|
||||||
|
}
|
||||||
|
|
||||||
|
// Param is function parameter
|
||||||
|
type Param struct {
|
||||||
|
Name string
|
||||||
|
Type string
|
||||||
|
}
|
||||||
|
|
||||||
|
// usage prints the program usage
|
||||||
|
func usage() {
|
||||||
|
fmt.Fprintf(os.Stderr, "usage: go run mksyscall_aix_ppc64.go [-b32 | -l32] [-tags x,y] [file ...]\n")
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
// parseParamList parses parameter list and returns a slice of parameters
|
||||||
|
func parseParamList(list string) []string {
|
||||||
|
list = strings.TrimSpace(list)
|
||||||
|
if list == "" {
|
||||||
|
return []string{}
|
||||||
|
}
|
||||||
|
return regexp.MustCompile(`\s*,\s*`).Split(list, -1)
|
||||||
|
}
|
||||||
|
|
||||||
|
// parseParam splits a parameter into name and type
|
||||||
|
func parseParam(p string) Param {
|
||||||
|
ps := regexp.MustCompile(`^(\S*) (\S*)$`).FindStringSubmatch(p)
|
||||||
|
if ps == nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "malformed parameter: %s\n", p)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
return Param{ps[1], ps[2]}
|
||||||
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
flag.Usage = usage
|
||||||
|
flag.Parse()
|
||||||
|
if len(flag.Args()) <= 0 {
|
||||||
|
fmt.Fprintf(os.Stderr, "no files to parse provided\n")
|
||||||
|
usage()
|
||||||
|
}
|
||||||
|
|
||||||
|
endianness := ""
|
||||||
|
if *b32 {
|
||||||
|
endianness = "big-endian"
|
||||||
|
} else if *l32 {
|
||||||
|
endianness = "little-endian"
|
||||||
|
}
|
||||||
|
|
||||||
|
pack := ""
|
||||||
|
// GCCGO
|
||||||
|
textgccgo := ""
|
||||||
|
cExtern := "/*\n#include <stdint.h>\n"
|
||||||
|
// GC
|
||||||
|
textgc := ""
|
||||||
|
dynimports := ""
|
||||||
|
linknames := ""
|
||||||
|
var vars []string
|
||||||
|
// COMMON
|
||||||
|
textcommon := ""
|
||||||
|
for _, path := range flag.Args() {
|
||||||
|
file, err := os.Open(path)
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, err.Error())
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
s := bufio.NewScanner(file)
|
||||||
|
for s.Scan() {
|
||||||
|
t := s.Text()
|
||||||
|
t = strings.TrimSpace(t)
|
||||||
|
t = regexp.MustCompile(`\s+`).ReplaceAllString(t, ` `)
|
||||||
|
if p := regexp.MustCompile(`^package (\S+)$`).FindStringSubmatch(t); p != nil && pack == "" {
|
||||||
|
pack = p[1]
|
||||||
|
}
|
||||||
|
nonblock := regexp.MustCompile(`^\/\/sysnb `).FindStringSubmatch(t)
|
||||||
|
if regexp.MustCompile(`^\/\/sys `).FindStringSubmatch(t) == nil && nonblock == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
// Line must be of the form
|
||||||
|
// func Open(path string, mode int, perm int) (fd int, err error)
|
||||||
|
// Split into name, in params, out params.
|
||||||
|
f := regexp.MustCompile(`^\/\/sys(nb)? (\w+)\(([^()]*)\)\s*(?:\(([^()]+)\))?\s*(?:=\s*(?:(\w*)\.)?(\w*))?$`).FindStringSubmatch(t)
|
||||||
|
if f == nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "%s:%s\nmalformed //sys declaration\n", path, t)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
funct, inps, outps, modname, sysname := f[2], f[3], f[4], f[5], f[6]
|
||||||
|
|
||||||
|
// Split argument lists on comma.
|
||||||
|
in := parseParamList(inps)
|
||||||
|
out := parseParamList(outps)
|
||||||
|
|
||||||
|
inps = strings.Join(in, ", ")
|
||||||
|
outps = strings.Join(out, ", ")
|
||||||
|
|
||||||
|
if sysname == "" {
|
||||||
|
sysname = funct
|
||||||
|
}
|
||||||
|
|
||||||
|
onlyCommon := false
|
||||||
|
if funct == "readlen" || funct == "writelen" || funct == "FcntlInt" || funct == "FcntlFlock" {
|
||||||
|
// This function call another syscall which is already implemented.
|
||||||
|
// Therefore, the gc and gccgo part must not be generated.
|
||||||
|
onlyCommon = true
|
||||||
|
}
|
||||||
|
|
||||||
|
// Try in vain to keep people from editing this file.
|
||||||
|
// The theory is that they jump into the middle of the file
|
||||||
|
// without reading the header.
|
||||||
|
|
||||||
|
textcommon += "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n\n"
|
||||||
|
if !onlyCommon {
|
||||||
|
textgccgo += "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n\n"
|
||||||
|
textgc += "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n\n"
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check if value return, err return available
|
||||||
|
errvar := ""
|
||||||
|
rettype := ""
|
||||||
|
for _, param := range out {
|
||||||
|
p := parseParam(param)
|
||||||
|
if p.Type == "error" {
|
||||||
|
errvar = p.Name
|
||||||
|
} else {
|
||||||
|
rettype = p.Type
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
sysname = regexp.MustCompile(`([a-z])([A-Z])`).ReplaceAllString(sysname, `${1}_$2`)
|
||||||
|
sysname = strings.ToLower(sysname) // All libc functions are lowercase.
|
||||||
|
|
||||||
|
// GCCGO Prototype return type
|
||||||
|
cRettype := ""
|
||||||
|
if rettype == "unsafe.Pointer" {
|
||||||
|
cRettype = "uintptr_t"
|
||||||
|
} else if rettype == "uintptr" {
|
||||||
|
cRettype = "uintptr_t"
|
||||||
|
} else if regexp.MustCompile(`^_`).FindStringSubmatch(rettype) != nil {
|
||||||
|
cRettype = "uintptr_t"
|
||||||
|
} else if rettype == "int" {
|
||||||
|
cRettype = "int"
|
||||||
|
} else if rettype == "int32" {
|
||||||
|
cRettype = "int"
|
||||||
|
} else if rettype == "int64" {
|
||||||
|
cRettype = "long long"
|
||||||
|
} else if rettype == "uint32" {
|
||||||
|
cRettype = "unsigned int"
|
||||||
|
} else if rettype == "uint64" {
|
||||||
|
cRettype = "unsigned long long"
|
||||||
|
} else {
|
||||||
|
cRettype = "int"
|
||||||
|
}
|
||||||
|
if sysname == "exit" {
|
||||||
|
cRettype = "void"
|
||||||
|
}
|
||||||
|
|
||||||
|
// GCCGO Prototype arguments type
|
||||||
|
var cIn []string
|
||||||
|
for i, param := range in {
|
||||||
|
p := parseParam(param)
|
||||||
|
if regexp.MustCompile(`^\*`).FindStringSubmatch(p.Type) != nil {
|
||||||
|
cIn = append(cIn, "uintptr_t")
|
||||||
|
} else if p.Type == "string" {
|
||||||
|
cIn = append(cIn, "uintptr_t")
|
||||||
|
} else if regexp.MustCompile(`^\[\](.*)`).FindStringSubmatch(p.Type) != nil {
|
||||||
|
cIn = append(cIn, "uintptr_t", "size_t")
|
||||||
|
} else if p.Type == "unsafe.Pointer" {
|
||||||
|
cIn = append(cIn, "uintptr_t")
|
||||||
|
} else if p.Type == "uintptr" {
|
||||||
|
cIn = append(cIn, "uintptr_t")
|
||||||
|
} else if regexp.MustCompile(`^_`).FindStringSubmatch(p.Type) != nil {
|
||||||
|
cIn = append(cIn, "uintptr_t")
|
||||||
|
} else if p.Type == "int" {
|
||||||
|
if (i == 0 || i == 2) && funct == "fcntl" {
|
||||||
|
// These fcntl arguments needs to be uintptr to be able to call FcntlInt and FcntlFlock
|
||||||
|
cIn = append(cIn, "uintptr_t")
|
||||||
|
} else {
|
||||||
|
cIn = append(cIn, "int")
|
||||||
|
}
|
||||||
|
|
||||||
|
} else if p.Type == "int32" {
|
||||||
|
cIn = append(cIn, "int")
|
||||||
|
} else if p.Type == "int64" {
|
||||||
|
cIn = append(cIn, "long long")
|
||||||
|
} else if p.Type == "uint32" {
|
||||||
|
cIn = append(cIn, "unsigned int")
|
||||||
|
} else if p.Type == "uint64" {
|
||||||
|
cIn = append(cIn, "unsigned long long")
|
||||||
|
} else {
|
||||||
|
cIn = append(cIn, "int")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if !onlyCommon {
|
||||||
|
// GCCGO Prototype Generation
|
||||||
|
// Imports of system calls from libc
|
||||||
|
if sysname == "select" {
|
||||||
|
// select is a keyword of Go. Its name is
|
||||||
|
// changed to c_select.
|
||||||
|
cExtern += "#define c_select select\n"
|
||||||
|
}
|
||||||
|
cExtern += fmt.Sprintf("%s %s", cRettype, sysname)
|
||||||
|
cIn := strings.Join(cIn, ", ")
|
||||||
|
cExtern += fmt.Sprintf("(%s);\n", cIn)
|
||||||
|
}
|
||||||
|
// GC Library name
|
||||||
|
if modname == "" {
|
||||||
|
modname = "libc.a/shr_64.o"
|
||||||
|
} else {
|
||||||
|
fmt.Fprintf(os.Stderr, "%s: only syscall using libc are available\n", funct)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
sysvarname := fmt.Sprintf("libc_%s", sysname)
|
||||||
|
|
||||||
|
if !onlyCommon {
|
||||||
|
// GC Runtime import of function to allow cross-platform builds.
|
||||||
|
dynimports += fmt.Sprintf("//go:cgo_import_dynamic %s %s \"%s\"\n", sysvarname, sysname, modname)
|
||||||
|
// GC Link symbol to proc address variable.
|
||||||
|
linknames += fmt.Sprintf("//go:linkname %s %s\n", sysvarname, sysvarname)
|
||||||
|
// GC Library proc address variable.
|
||||||
|
vars = append(vars, sysvarname)
|
||||||
|
}
|
||||||
|
|
||||||
|
strconvfunc := "BytePtrFromString"
|
||||||
|
strconvtype := "*byte"
|
||||||
|
|
||||||
|
// Go function header.
|
||||||
|
if outps != "" {
|
||||||
|
outps = fmt.Sprintf(" (%s)", outps)
|
||||||
|
}
|
||||||
|
if textcommon != "" {
|
||||||
|
textcommon += "\n"
|
||||||
|
}
|
||||||
|
|
||||||
|
textcommon += fmt.Sprintf("func %s(%s)%s {\n", funct, strings.Join(in, ", "), outps)
|
||||||
|
|
||||||
|
// Prepare arguments tocall.
|
||||||
|
var argscommon []string // Arguments in the common part
|
||||||
|
var argscall []string // Arguments for call prototype
|
||||||
|
var argsgc []string // Arguments for gc call (with syscall6)
|
||||||
|
var argsgccgo []string // Arguments for gccgo call (with C.name_of_syscall)
|
||||||
|
n := 0
|
||||||
|
argN := 0
|
||||||
|
for _, param := range in {
|
||||||
|
p := parseParam(param)
|
||||||
|
if regexp.MustCompile(`^\*`).FindStringSubmatch(p.Type) != nil {
|
||||||
|
argscommon = append(argscommon, fmt.Sprintf("uintptr(unsafe.Pointer(%s))", p.Name))
|
||||||
|
argscall = append(argscall, fmt.Sprintf("%s uintptr", p.Name))
|
||||||
|
argsgc = append(argsgc, p.Name)
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.uintptr_t(%s)", p.Name))
|
||||||
|
} else if p.Type == "string" && errvar != "" {
|
||||||
|
textcommon += fmt.Sprintf("\tvar _p%d %s\n", n, strconvtype)
|
||||||
|
textcommon += fmt.Sprintf("\t_p%d, %s = %s(%s)\n", n, errvar, strconvfunc, p.Name)
|
||||||
|
textcommon += fmt.Sprintf("\tif %s != nil {\n\t\treturn\n\t}\n", errvar)
|
||||||
|
|
||||||
|
argscommon = append(argscommon, fmt.Sprintf("uintptr(unsafe.Pointer(_p%d))", n))
|
||||||
|
argscall = append(argscall, fmt.Sprintf("_p%d uintptr ", n))
|
||||||
|
argsgc = append(argsgc, fmt.Sprintf("_p%d", n))
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.uintptr_t(_p%d)", n))
|
||||||
|
n++
|
||||||
|
} else if p.Type == "string" {
|
||||||
|
fmt.Fprintf(os.Stderr, path+":"+funct+" uses string arguments, but has no error return\n")
|
||||||
|
textcommon += fmt.Sprintf("\tvar _p%d %s\n", n, strconvtype)
|
||||||
|
textcommon += fmt.Sprintf("\t_p%d, %s = %s(%s)\n", n, errvar, strconvfunc, p.Name)
|
||||||
|
textcommon += fmt.Sprintf("\tif %s != nil {\n\t\treturn\n\t}\n", errvar)
|
||||||
|
|
||||||
|
argscommon = append(argscommon, fmt.Sprintf("uintptr(unsafe.Pointer(_p%d))", n))
|
||||||
|
argscall = append(argscall, fmt.Sprintf("_p%d uintptr", n))
|
||||||
|
argsgc = append(argsgc, fmt.Sprintf("_p%d", n))
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.uintptr_t(_p%d)", n))
|
||||||
|
n++
|
||||||
|
} else if m := regexp.MustCompile(`^\[\](.*)`).FindStringSubmatch(p.Type); m != nil {
|
||||||
|
// Convert slice into pointer, length.
|
||||||
|
// Have to be careful not to take address of &a[0] if len == 0:
|
||||||
|
// pass nil in that case.
|
||||||
|
textcommon += fmt.Sprintf("\tvar _p%d *%s\n", n, m[1])
|
||||||
|
textcommon += fmt.Sprintf("\tif len(%s) > 0 {\n\t\t_p%d = &%s[0]\n\t}\n", p.Name, n, p.Name)
|
||||||
|
argscommon = append(argscommon, fmt.Sprintf("uintptr(unsafe.Pointer(_p%d))", n), fmt.Sprintf("len(%s)", p.Name))
|
||||||
|
argscall = append(argscall, fmt.Sprintf("_p%d uintptr", n), fmt.Sprintf("_lenp%d int", n))
|
||||||
|
argsgc = append(argsgc, fmt.Sprintf("_p%d", n), fmt.Sprintf("uintptr(_lenp%d)", n))
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.uintptr_t(_p%d)", n), fmt.Sprintf("C.size_t(_lenp%d)", n))
|
||||||
|
n++
|
||||||
|
} else if p.Type == "int64" && endianness != "" {
|
||||||
|
fmt.Fprintf(os.Stderr, path+":"+funct+" uses int64 with 32 bits mode. Case not yet implemented\n")
|
||||||
|
} else if p.Type == "bool" {
|
||||||
|
fmt.Fprintf(os.Stderr, path+":"+funct+" uses bool. Case not yet implemented\n")
|
||||||
|
} else if regexp.MustCompile(`^_`).FindStringSubmatch(p.Type) != nil || p.Type == "unsafe.Pointer" {
|
||||||
|
argscommon = append(argscommon, fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
argscall = append(argscall, fmt.Sprintf("%s uintptr", p.Name))
|
||||||
|
argsgc = append(argsgc, p.Name)
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.uintptr_t(%s)", p.Name))
|
||||||
|
} else if p.Type == "int" {
|
||||||
|
if (argN == 0 || argN == 2) && ((funct == "fcntl") || (funct == "FcntlInt") || (funct == "FcntlFlock")) {
|
||||||
|
// These fcntl arguments need to be uintptr to be able to call FcntlInt and FcntlFlock
|
||||||
|
argscommon = append(argscommon, fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
argscall = append(argscall, fmt.Sprintf("%s uintptr", p.Name))
|
||||||
|
argsgc = append(argsgc, p.Name)
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.uintptr_t(%s)", p.Name))
|
||||||
|
|
||||||
|
} else {
|
||||||
|
argscommon = append(argscommon, p.Name)
|
||||||
|
argscall = append(argscall, fmt.Sprintf("%s int", p.Name))
|
||||||
|
argsgc = append(argsgc, fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.int(%s)", p.Name))
|
||||||
|
}
|
||||||
|
} else if p.Type == "int32" {
|
||||||
|
argscommon = append(argscommon, p.Name)
|
||||||
|
argscall = append(argscall, fmt.Sprintf("%s int32", p.Name))
|
||||||
|
argsgc = append(argsgc, fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.int(%s)", p.Name))
|
||||||
|
} else if p.Type == "int64" {
|
||||||
|
argscommon = append(argscommon, p.Name)
|
||||||
|
argscall = append(argscall, fmt.Sprintf("%s int64", p.Name))
|
||||||
|
argsgc = append(argsgc, fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.longlong(%s)", p.Name))
|
||||||
|
} else if p.Type == "uint32" {
|
||||||
|
argscommon = append(argscommon, p.Name)
|
||||||
|
argscall = append(argscall, fmt.Sprintf("%s uint32", p.Name))
|
||||||
|
argsgc = append(argsgc, fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.uint(%s)", p.Name))
|
||||||
|
} else if p.Type == "uint64" {
|
||||||
|
argscommon = append(argscommon, p.Name)
|
||||||
|
argscall = append(argscall, fmt.Sprintf("%s uint64", p.Name))
|
||||||
|
argsgc = append(argsgc, fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.ulonglong(%s)", p.Name))
|
||||||
|
} else if p.Type == "uintptr" {
|
||||||
|
argscommon = append(argscommon, p.Name)
|
||||||
|
argscall = append(argscall, fmt.Sprintf("%s uintptr", p.Name))
|
||||||
|
argsgc = append(argsgc, p.Name)
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.uintptr_t(%s)", p.Name))
|
||||||
|
} else {
|
||||||
|
argscommon = append(argscommon, fmt.Sprintf("int(%s)", p.Name))
|
||||||
|
argscall = append(argscall, fmt.Sprintf("%s int", p.Name))
|
||||||
|
argsgc = append(argsgc, fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.int(%s)", p.Name))
|
||||||
|
}
|
||||||
|
argN++
|
||||||
|
}
|
||||||
|
nargs := len(argsgc)
|
||||||
|
|
||||||
|
// COMMON function generation
|
||||||
|
argscommonlist := strings.Join(argscommon, ", ")
|
||||||
|
callcommon := fmt.Sprintf("call%s(%s)", sysname, argscommonlist)
|
||||||
|
ret := []string{"_", "_"}
|
||||||
|
body := ""
|
||||||
|
doErrno := false
|
||||||
|
for i := 0; i < len(out); i++ {
|
||||||
|
p := parseParam(out[i])
|
||||||
|
reg := ""
|
||||||
|
if p.Name == "err" {
|
||||||
|
reg = "e1"
|
||||||
|
ret[1] = reg
|
||||||
|
doErrno = true
|
||||||
|
} else {
|
||||||
|
reg = "r0"
|
||||||
|
ret[0] = reg
|
||||||
|
}
|
||||||
|
if p.Type == "bool" {
|
||||||
|
reg = fmt.Sprintf("%s != 0", reg)
|
||||||
|
}
|
||||||
|
if reg != "e1" {
|
||||||
|
body += fmt.Sprintf("\t%s = %s(%s)\n", p.Name, p.Type, reg)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ret[0] == "_" && ret[1] == "_" {
|
||||||
|
textcommon += fmt.Sprintf("\t%s\n", callcommon)
|
||||||
|
} else {
|
||||||
|
textcommon += fmt.Sprintf("\t%s, %s := %s\n", ret[0], ret[1], callcommon)
|
||||||
|
}
|
||||||
|
textcommon += body
|
||||||
|
|
||||||
|
if doErrno {
|
||||||
|
textcommon += "\tif e1 != 0 {\n"
|
||||||
|
textcommon += "\t\terr = errnoErr(e1)\n"
|
||||||
|
textcommon += "\t}\n"
|
||||||
|
}
|
||||||
|
textcommon += "\treturn\n"
|
||||||
|
textcommon += "}\n"
|
||||||
|
|
||||||
|
if onlyCommon {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
// CALL Prototype
|
||||||
|
callProto := fmt.Sprintf("func call%s(%s) (r1 uintptr, e1 Errno) {\n", sysname, strings.Join(argscall, ", "))
|
||||||
|
|
||||||
|
// GC function generation
|
||||||
|
asm := "syscall6"
|
||||||
|
if nonblock != nil {
|
||||||
|
asm = "rawSyscall6"
|
||||||
|
}
|
||||||
|
|
||||||
|
if len(argsgc) <= 6 {
|
||||||
|
for len(argsgc) < 6 {
|
||||||
|
argsgc = append(argsgc, "0")
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
fmt.Fprintf(os.Stderr, "%s: too many arguments to system call", funct)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
argsgclist := strings.Join(argsgc, ", ")
|
||||||
|
callgc := fmt.Sprintf("%s(uintptr(unsafe.Pointer(&%s)), %d, %s)", asm, sysvarname, nargs, argsgclist)
|
||||||
|
|
||||||
|
textgc += callProto
|
||||||
|
textgc += fmt.Sprintf("\tr1, _, e1 = %s\n", callgc)
|
||||||
|
textgc += "\treturn\n}\n"
|
||||||
|
|
||||||
|
// GCCGO function generation
|
||||||
|
argsgccgolist := strings.Join(argsgccgo, ", ")
|
||||||
|
var callgccgo string
|
||||||
|
if sysname == "select" {
|
||||||
|
// select is a keyword of Go. Its name is
|
||||||
|
// changed to c_select.
|
||||||
|
callgccgo = fmt.Sprintf("C.c_%s(%s)", sysname, argsgccgolist)
|
||||||
|
} else {
|
||||||
|
callgccgo = fmt.Sprintf("C.%s(%s)", sysname, argsgccgolist)
|
||||||
|
}
|
||||||
|
textgccgo += callProto
|
||||||
|
textgccgo += fmt.Sprintf("\tr1 = uintptr(%s)\n", callgccgo)
|
||||||
|
textgccgo += "\te1 = syscall.GetErrno()\n"
|
||||||
|
textgccgo += "\treturn\n}\n"
|
||||||
|
}
|
||||||
|
if err := s.Err(); err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, err.Error())
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
file.Close()
|
||||||
|
}
|
||||||
|
imp := ""
|
||||||
|
if pack != "unix" {
|
||||||
|
imp = "import \"golang.org/x/sys/unix\"\n"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Print zsyscall_aix_ppc64.go
|
||||||
|
err := ioutil.WriteFile("zsyscall_aix_ppc64.go",
|
||||||
|
[]byte(fmt.Sprintf(srcTemplate1, cmdLine(), buildTags(), pack, imp, textcommon)),
|
||||||
|
0644)
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, err.Error())
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Print zsyscall_aix_ppc64_gc.go
|
||||||
|
vardecls := "\t" + strings.Join(vars, ",\n\t")
|
||||||
|
vardecls += " syscallFunc"
|
||||||
|
err = ioutil.WriteFile("zsyscall_aix_ppc64_gc.go",
|
||||||
|
[]byte(fmt.Sprintf(srcTemplate2, cmdLine(), buildTags(), pack, imp, dynimports, linknames, vardecls, textgc)),
|
||||||
|
0644)
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, err.Error())
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Print zsyscall_aix_ppc64_gccgo.go
|
||||||
|
err = ioutil.WriteFile("zsyscall_aix_ppc64_gccgo.go",
|
||||||
|
[]byte(fmt.Sprintf(srcTemplate3, cmdLine(), buildTags(), pack, cExtern, imp, textgccgo)),
|
||||||
|
0644)
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, err.Error())
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const srcTemplate1 = `// %s
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build %s
|
||||||
|
|
||||||
|
package %s
|
||||||
|
|
||||||
|
import (
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
%s
|
||||||
|
|
||||||
|
%s
|
||||||
|
`
|
||||||
|
const srcTemplate2 = `// %s
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build %s
|
||||||
|
// +build !gccgo
|
||||||
|
|
||||||
|
package %s
|
||||||
|
|
||||||
|
import (
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
%s
|
||||||
|
%s
|
||||||
|
%s
|
||||||
|
type syscallFunc uintptr
|
||||||
|
|
||||||
|
var (
|
||||||
|
%s
|
||||||
|
)
|
||||||
|
|
||||||
|
// Implemented in runtime/syscall_aix.go.
|
||||||
|
func rawSyscall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
|
||||||
|
func syscall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
|
||||||
|
|
||||||
|
%s
|
||||||
|
`
|
||||||
|
const srcTemplate3 = `// %s
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build %s
|
||||||
|
// +build gccgo
|
||||||
|
|
||||||
|
package %s
|
||||||
|
|
||||||
|
%s
|
||||||
|
*/
|
||||||
|
import "C"
|
||||||
|
import (
|
||||||
|
"syscall"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
%s
|
||||||
|
|
||||||
|
%s
|
||||||
|
`
|
||||||
335
vendor/golang.org/x/sys/unix/mksyscall_solaris.go
generated
vendored
Normal file
335
vendor/golang.org/x/sys/unix/mksyscall_solaris.go
generated
vendored
Normal file
@@ -0,0 +1,335 @@
|
|||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build ignore
|
||||||
|
|
||||||
|
/*
|
||||||
|
This program reads a file containing function prototypes
|
||||||
|
(like syscall_solaris.go) and generates system call bodies.
|
||||||
|
The prototypes are marked by lines beginning with "//sys"
|
||||||
|
and read like func declarations if //sys is replaced by func, but:
|
||||||
|
* The parameter lists must give a name for each argument.
|
||||||
|
This includes return parameters.
|
||||||
|
* The parameter lists must give a type for each argument:
|
||||||
|
the (x, y, z int) shorthand is not allowed.
|
||||||
|
* If the return parameter is an error number, it must be named err.
|
||||||
|
* If go func name needs to be different than its libc name,
|
||||||
|
* or the function is not in libc, name could be specified
|
||||||
|
* at the end, after "=" sign, like
|
||||||
|
//sys getsockopt(s int, level int, name int, val uintptr, vallen *_Socklen) (err error) = libsocket.getsockopt
|
||||||
|
*/
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bufio"
|
||||||
|
"flag"
|
||||||
|
"fmt"
|
||||||
|
"os"
|
||||||
|
"regexp"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
b32 = flag.Bool("b32", false, "32bit big-endian")
|
||||||
|
l32 = flag.Bool("l32", false, "32bit little-endian")
|
||||||
|
tags = flag.String("tags", "", "build tags")
|
||||||
|
)
|
||||||
|
|
||||||
|
// cmdLine returns this programs's commandline arguments
|
||||||
|
func cmdLine() string {
|
||||||
|
return "go run mksyscall_solaris.go " + strings.Join(os.Args[1:], " ")
|
||||||
|
}
|
||||||
|
|
||||||
|
// buildTags returns build tags
|
||||||
|
func buildTags() string {
|
||||||
|
return *tags
|
||||||
|
}
|
||||||
|
|
||||||
|
// Param is function parameter
|
||||||
|
type Param struct {
|
||||||
|
Name string
|
||||||
|
Type string
|
||||||
|
}
|
||||||
|
|
||||||
|
// usage prints the program usage
|
||||||
|
func usage() {
|
||||||
|
fmt.Fprintf(os.Stderr, "usage: go run mksyscall_solaris.go [-b32 | -l32] [-tags x,y] [file ...]\n")
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
// parseParamList parses parameter list and returns a slice of parameters
|
||||||
|
func parseParamList(list string) []string {
|
||||||
|
list = strings.TrimSpace(list)
|
||||||
|
if list == "" {
|
||||||
|
return []string{}
|
||||||
|
}
|
||||||
|
return regexp.MustCompile(`\s*,\s*`).Split(list, -1)
|
||||||
|
}
|
||||||
|
|
||||||
|
// parseParam splits a parameter into name and type
|
||||||
|
func parseParam(p string) Param {
|
||||||
|
ps := regexp.MustCompile(`^(\S*) (\S*)$`).FindStringSubmatch(p)
|
||||||
|
if ps == nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "malformed parameter: %s\n", p)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
return Param{ps[1], ps[2]}
|
||||||
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
flag.Usage = usage
|
||||||
|
flag.Parse()
|
||||||
|
if len(flag.Args()) <= 0 {
|
||||||
|
fmt.Fprintf(os.Stderr, "no files to parse provided\n")
|
||||||
|
usage()
|
||||||
|
}
|
||||||
|
|
||||||
|
endianness := ""
|
||||||
|
if *b32 {
|
||||||
|
endianness = "big-endian"
|
||||||
|
} else if *l32 {
|
||||||
|
endianness = "little-endian"
|
||||||
|
}
|
||||||
|
|
||||||
|
pack := ""
|
||||||
|
text := ""
|
||||||
|
dynimports := ""
|
||||||
|
linknames := ""
|
||||||
|
var vars []string
|
||||||
|
for _, path := range flag.Args() {
|
||||||
|
file, err := os.Open(path)
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, err.Error())
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
s := bufio.NewScanner(file)
|
||||||
|
for s.Scan() {
|
||||||
|
t := s.Text()
|
||||||
|
t = strings.TrimSpace(t)
|
||||||
|
t = regexp.MustCompile(`\s+`).ReplaceAllString(t, ` `)
|
||||||
|
if p := regexp.MustCompile(`^package (\S+)$`).FindStringSubmatch(t); p != nil && pack == "" {
|
||||||
|
pack = p[1]
|
||||||
|
}
|
||||||
|
nonblock := regexp.MustCompile(`^\/\/sysnb `).FindStringSubmatch(t)
|
||||||
|
if regexp.MustCompile(`^\/\/sys `).FindStringSubmatch(t) == nil && nonblock == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
// Line must be of the form
|
||||||
|
// func Open(path string, mode int, perm int) (fd int, err error)
|
||||||
|
// Split into name, in params, out params.
|
||||||
|
f := regexp.MustCompile(`^\/\/sys(nb)? (\w+)\(([^()]*)\)\s*(?:\(([^()]+)\))?\s*(?:=\s*(?:(\w*)\.)?(\w*))?$`).FindStringSubmatch(t)
|
||||||
|
if f == nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "%s:%s\nmalformed //sys declaration\n", path, t)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
funct, inps, outps, modname, sysname := f[2], f[3], f[4], f[5], f[6]
|
||||||
|
|
||||||
|
// Split argument lists on comma.
|
||||||
|
in := parseParamList(inps)
|
||||||
|
out := parseParamList(outps)
|
||||||
|
|
||||||
|
inps = strings.Join(in, ", ")
|
||||||
|
outps = strings.Join(out, ", ")
|
||||||
|
|
||||||
|
// Try in vain to keep people from editing this file.
|
||||||
|
// The theory is that they jump into the middle of the file
|
||||||
|
// without reading the header.
|
||||||
|
text += "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n\n"
|
||||||
|
|
||||||
|
// So file name.
|
||||||
|
if modname == "" {
|
||||||
|
modname = "libc"
|
||||||
|
}
|
||||||
|
|
||||||
|
// System call name.
|
||||||
|
if sysname == "" {
|
||||||
|
sysname = funct
|
||||||
|
}
|
||||||
|
|
||||||
|
// System call pointer variable name.
|
||||||
|
sysvarname := fmt.Sprintf("proc%s", sysname)
|
||||||
|
|
||||||
|
strconvfunc := "BytePtrFromString"
|
||||||
|
strconvtype := "*byte"
|
||||||
|
|
||||||
|
sysname = strings.ToLower(sysname) // All libc functions are lowercase.
|
||||||
|
|
||||||
|
// Runtime import of function to allow cross-platform builds.
|
||||||
|
dynimports += fmt.Sprintf("//go:cgo_import_dynamic libc_%s %s \"%s.so\"\n", sysname, sysname, modname)
|
||||||
|
// Link symbol to proc address variable.
|
||||||
|
linknames += fmt.Sprintf("//go:linkname %s libc_%s\n", sysvarname, sysname)
|
||||||
|
// Library proc address variable.
|
||||||
|
vars = append(vars, sysvarname)
|
||||||
|
|
||||||
|
// Go function header.
|
||||||
|
outlist := strings.Join(out, ", ")
|
||||||
|
if outlist != "" {
|
||||||
|
outlist = fmt.Sprintf(" (%s)", outlist)
|
||||||
|
}
|
||||||
|
if text != "" {
|
||||||
|
text += "\n"
|
||||||
|
}
|
||||||
|
text += fmt.Sprintf("func %s(%s)%s {\n", funct, strings.Join(in, ", "), outlist)
|
||||||
|
|
||||||
|
// Check if err return available
|
||||||
|
errvar := ""
|
||||||
|
for _, param := range out {
|
||||||
|
p := parseParam(param)
|
||||||
|
if p.Type == "error" {
|
||||||
|
errvar = p.Name
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Prepare arguments to Syscall.
|
||||||
|
var args []string
|
||||||
|
n := 0
|
||||||
|
for _, param := range in {
|
||||||
|
p := parseParam(param)
|
||||||
|
if regexp.MustCompile(`^\*`).FindStringSubmatch(p.Type) != nil {
|
||||||
|
args = append(args, "uintptr(unsafe.Pointer("+p.Name+"))")
|
||||||
|
} else if p.Type == "string" && errvar != "" {
|
||||||
|
text += fmt.Sprintf("\tvar _p%d %s\n", n, strconvtype)
|
||||||
|
text += fmt.Sprintf("\t_p%d, %s = %s(%s)\n", n, errvar, strconvfunc, p.Name)
|
||||||
|
text += fmt.Sprintf("\tif %s != nil {\n\t\treturn\n\t}\n", errvar)
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(unsafe.Pointer(_p%d))", n))
|
||||||
|
n++
|
||||||
|
} else if p.Type == "string" {
|
||||||
|
fmt.Fprintf(os.Stderr, path+":"+funct+" uses string arguments, but has no error return\n")
|
||||||
|
text += fmt.Sprintf("\tvar _p%d %s\n", n, strconvtype)
|
||||||
|
text += fmt.Sprintf("\t_p%d, _ = %s(%s)\n", n, strconvfunc, p.Name)
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(unsafe.Pointer(_p%d))", n))
|
||||||
|
n++
|
||||||
|
} else if s := regexp.MustCompile(`^\[\](.*)`).FindStringSubmatch(p.Type); s != nil {
|
||||||
|
// Convert slice into pointer, length.
|
||||||
|
// Have to be careful not to take address of &a[0] if len == 0:
|
||||||
|
// pass nil in that case.
|
||||||
|
text += fmt.Sprintf("\tvar _p%d *%s\n", n, s[1])
|
||||||
|
text += fmt.Sprintf("\tif len(%s) > 0 {\n\t\t_p%d = &%s[0]\n\t}\n", p.Name, n, p.Name)
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(unsafe.Pointer(_p%d))", n), fmt.Sprintf("uintptr(len(%s))", p.Name))
|
||||||
|
n++
|
||||||
|
} else if p.Type == "int64" && endianness != "" {
|
||||||
|
if endianness == "big-endian" {
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(%s>>32)", p.Name), fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
} else {
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(%s)", p.Name), fmt.Sprintf("uintptr(%s>>32)", p.Name))
|
||||||
|
}
|
||||||
|
} else if p.Type == "bool" {
|
||||||
|
text += fmt.Sprintf("\tvar _p%d uint32\n", n)
|
||||||
|
text += fmt.Sprintf("\tif %s {\n\t\t_p%d = 1\n\t} else {\n\t\t_p%d = 0\n\t}\n", p.Name, n, n)
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(_p%d)", n))
|
||||||
|
n++
|
||||||
|
} else {
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
nargs := len(args)
|
||||||
|
|
||||||
|
// Determine which form to use; pad args with zeros.
|
||||||
|
asm := "sysvicall6"
|
||||||
|
if nonblock != nil {
|
||||||
|
asm = "rawSysvicall6"
|
||||||
|
}
|
||||||
|
if len(args) <= 6 {
|
||||||
|
for len(args) < 6 {
|
||||||
|
args = append(args, "0")
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
fmt.Fprintf(os.Stderr, "%s: too many arguments to system call\n", path)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Actual call.
|
||||||
|
arglist := strings.Join(args, ", ")
|
||||||
|
call := fmt.Sprintf("%s(uintptr(unsafe.Pointer(&%s)), %d, %s)", asm, sysvarname, nargs, arglist)
|
||||||
|
|
||||||
|
// Assign return values.
|
||||||
|
body := ""
|
||||||
|
ret := []string{"_", "_", "_"}
|
||||||
|
doErrno := false
|
||||||
|
for i := 0; i < len(out); i++ {
|
||||||
|
p := parseParam(out[i])
|
||||||
|
reg := ""
|
||||||
|
if p.Name == "err" {
|
||||||
|
reg = "e1"
|
||||||
|
ret[2] = reg
|
||||||
|
doErrno = true
|
||||||
|
} else {
|
||||||
|
reg = fmt.Sprintf("r%d", i)
|
||||||
|
ret[i] = reg
|
||||||
|
}
|
||||||
|
if p.Type == "bool" {
|
||||||
|
reg = fmt.Sprintf("%d != 0", reg)
|
||||||
|
}
|
||||||
|
if p.Type == "int64" && endianness != "" {
|
||||||
|
// 64-bit number in r1:r0 or r0:r1.
|
||||||
|
if i+2 > len(out) {
|
||||||
|
fmt.Fprintf(os.Stderr, "%s: not enough registers for int64 return\n", path)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
if endianness == "big-endian" {
|
||||||
|
reg = fmt.Sprintf("int64(r%d)<<32 | int64(r%d)", i, i+1)
|
||||||
|
} else {
|
||||||
|
reg = fmt.Sprintf("int64(r%d)<<32 | int64(r%d)", i+1, i)
|
||||||
|
}
|
||||||
|
ret[i] = fmt.Sprintf("r%d", i)
|
||||||
|
ret[i+1] = fmt.Sprintf("r%d", i+1)
|
||||||
|
}
|
||||||
|
if reg != "e1" {
|
||||||
|
body += fmt.Sprintf("\t%s = %s(%s)\n", p.Name, p.Type, reg)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ret[0] == "_" && ret[1] == "_" && ret[2] == "_" {
|
||||||
|
text += fmt.Sprintf("\t%s\n", call)
|
||||||
|
} else {
|
||||||
|
text += fmt.Sprintf("\t%s, %s, %s := %s\n", ret[0], ret[1], ret[2], call)
|
||||||
|
}
|
||||||
|
text += body
|
||||||
|
|
||||||
|
if doErrno {
|
||||||
|
text += "\tif e1 != 0 {\n"
|
||||||
|
text += "\t\terr = e1\n"
|
||||||
|
text += "\t}\n"
|
||||||
|
}
|
||||||
|
text += "\treturn\n"
|
||||||
|
text += "}\n"
|
||||||
|
}
|
||||||
|
if err := s.Err(); err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, err.Error())
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
file.Close()
|
||||||
|
}
|
||||||
|
imp := ""
|
||||||
|
if pack != "unix" {
|
||||||
|
imp = "import \"golang.org/x/sys/unix\"\n"
|
||||||
|
|
||||||
|
}
|
||||||
|
vardecls := "\t" + strings.Join(vars, ",\n\t")
|
||||||
|
vardecls += " syscallFunc"
|
||||||
|
fmt.Printf(srcTemplate, cmdLine(), buildTags(), pack, imp, dynimports, linknames, vardecls, text)
|
||||||
|
}
|
||||||
|
|
||||||
|
const srcTemplate = `// %s
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build %s
|
||||||
|
|
||||||
|
package %s
|
||||||
|
|
||||||
|
import (
|
||||||
|
"syscall"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
%s
|
||||||
|
%s
|
||||||
|
%s
|
||||||
|
var (
|
||||||
|
%s
|
||||||
|
)
|
||||||
|
|
||||||
|
%s
|
||||||
|
`
|
||||||
355
vendor/golang.org/x/sys/unix/mksysctl_openbsd.go
generated
vendored
Normal file
355
vendor/golang.org/x/sys/unix/mksysctl_openbsd.go
generated
vendored
Normal file
@@ -0,0 +1,355 @@
|
|||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build ignore
|
||||||
|
|
||||||
|
// Parse the header files for OpenBSD and generate a Go usable sysctl MIB.
|
||||||
|
//
|
||||||
|
// Build a MIB with each entry being an array containing the level, type and
|
||||||
|
// a hash that will contain additional entries if the current entry is a node.
|
||||||
|
// We then walk this MIB and create a flattened sysctl name to OID hash.
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bufio"
|
||||||
|
"fmt"
|
||||||
|
"os"
|
||||||
|
"path/filepath"
|
||||||
|
"regexp"
|
||||||
|
"sort"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
goos, goarch string
|
||||||
|
)
|
||||||
|
|
||||||
|
// cmdLine returns this programs's commandline arguments.
|
||||||
|
func cmdLine() string {
|
||||||
|
return "go run mksysctl_openbsd.go " + strings.Join(os.Args[1:], " ")
|
||||||
|
}
|
||||||
|
|
||||||
|
// buildTags returns build tags.
|
||||||
|
func buildTags() string {
|
||||||
|
return fmt.Sprintf("%s,%s", goarch, goos)
|
||||||
|
}
|
||||||
|
|
||||||
|
// reMatch performs regular expression match and stores the substring slice to value pointed by m.
|
||||||
|
func reMatch(re *regexp.Regexp, str string, m *[]string) bool {
|
||||||
|
*m = re.FindStringSubmatch(str)
|
||||||
|
if *m != nil {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
type nodeElement struct {
|
||||||
|
n int
|
||||||
|
t string
|
||||||
|
pE *map[string]nodeElement
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
debugEnabled bool
|
||||||
|
mib map[string]nodeElement
|
||||||
|
node *map[string]nodeElement
|
||||||
|
nodeMap map[string]string
|
||||||
|
sysCtl []string
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
ctlNames1RE = regexp.MustCompile(`^#define\s+(CTL_NAMES)\s+{`)
|
||||||
|
ctlNames2RE = regexp.MustCompile(`^#define\s+(CTL_(.*)_NAMES)\s+{`)
|
||||||
|
ctlNames3RE = regexp.MustCompile(`^#define\s+((.*)CTL_NAMES)\s+{`)
|
||||||
|
netInetRE = regexp.MustCompile(`^netinet/`)
|
||||||
|
netInet6RE = regexp.MustCompile(`^netinet6/`)
|
||||||
|
netRE = regexp.MustCompile(`^net/`)
|
||||||
|
bracesRE = regexp.MustCompile(`{.*}`)
|
||||||
|
ctlTypeRE = regexp.MustCompile(`{\s+"(\w+)",\s+(CTLTYPE_[A-Z]+)\s+}`)
|
||||||
|
fsNetKernRE = regexp.MustCompile(`^(fs|net|kern)_`)
|
||||||
|
)
|
||||||
|
|
||||||
|
func debug(s string) {
|
||||||
|
if debugEnabled {
|
||||||
|
fmt.Fprintln(os.Stderr, s)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Walk the MIB and build a sysctl name to OID mapping.
|
||||||
|
func buildSysctl(pNode *map[string]nodeElement, name string, oid []int) {
|
||||||
|
lNode := pNode // local copy of pointer to node
|
||||||
|
var keys []string
|
||||||
|
for k := range *lNode {
|
||||||
|
keys = append(keys, k)
|
||||||
|
}
|
||||||
|
sort.Strings(keys)
|
||||||
|
|
||||||
|
for _, key := range keys {
|
||||||
|
nodename := name
|
||||||
|
if name != "" {
|
||||||
|
nodename += "."
|
||||||
|
}
|
||||||
|
nodename += key
|
||||||
|
|
||||||
|
nodeoid := append(oid, (*pNode)[key].n)
|
||||||
|
|
||||||
|
if (*pNode)[key].t == `CTLTYPE_NODE` {
|
||||||
|
if _, ok := nodeMap[nodename]; ok {
|
||||||
|
lNode = &mib
|
||||||
|
ctlName := nodeMap[nodename]
|
||||||
|
for _, part := range strings.Split(ctlName, ".") {
|
||||||
|
lNode = ((*lNode)[part]).pE
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
lNode = (*pNode)[key].pE
|
||||||
|
}
|
||||||
|
buildSysctl(lNode, nodename, nodeoid)
|
||||||
|
} else if (*pNode)[key].t != "" {
|
||||||
|
oidStr := []string{}
|
||||||
|
for j := range nodeoid {
|
||||||
|
oidStr = append(oidStr, fmt.Sprintf("%d", nodeoid[j]))
|
||||||
|
}
|
||||||
|
text := "\t{ \"" + nodename + "\", []_C_int{ " + strings.Join(oidStr, ", ") + " } }, \n"
|
||||||
|
sysCtl = append(sysCtl, text)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
// Get the OS (using GOOS_TARGET if it exist)
|
||||||
|
goos = os.Getenv("GOOS_TARGET")
|
||||||
|
if goos == "" {
|
||||||
|
goos = os.Getenv("GOOS")
|
||||||
|
}
|
||||||
|
// Get the architecture (using GOARCH_TARGET if it exists)
|
||||||
|
goarch = os.Getenv("GOARCH_TARGET")
|
||||||
|
if goarch == "" {
|
||||||
|
goarch = os.Getenv("GOARCH")
|
||||||
|
}
|
||||||
|
// Check if GOOS and GOARCH environment variables are defined
|
||||||
|
if goarch == "" || goos == "" {
|
||||||
|
fmt.Fprintf(os.Stderr, "GOARCH or GOOS not defined in environment\n")
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
mib = make(map[string]nodeElement)
|
||||||
|
headers := [...]string{
|
||||||
|
`sys/sysctl.h`,
|
||||||
|
`sys/socket.h`,
|
||||||
|
`sys/tty.h`,
|
||||||
|
`sys/malloc.h`,
|
||||||
|
`sys/mount.h`,
|
||||||
|
`sys/namei.h`,
|
||||||
|
`sys/sem.h`,
|
||||||
|
`sys/shm.h`,
|
||||||
|
`sys/vmmeter.h`,
|
||||||
|
`uvm/uvmexp.h`,
|
||||||
|
`uvm/uvm_param.h`,
|
||||||
|
`uvm/uvm_swap_encrypt.h`,
|
||||||
|
`ddb/db_var.h`,
|
||||||
|
`net/if.h`,
|
||||||
|
`net/if_pfsync.h`,
|
||||||
|
`net/pipex.h`,
|
||||||
|
`netinet/in.h`,
|
||||||
|
`netinet/icmp_var.h`,
|
||||||
|
`netinet/igmp_var.h`,
|
||||||
|
`netinet/ip_ah.h`,
|
||||||
|
`netinet/ip_carp.h`,
|
||||||
|
`netinet/ip_divert.h`,
|
||||||
|
`netinet/ip_esp.h`,
|
||||||
|
`netinet/ip_ether.h`,
|
||||||
|
`netinet/ip_gre.h`,
|
||||||
|
`netinet/ip_ipcomp.h`,
|
||||||
|
`netinet/ip_ipip.h`,
|
||||||
|
`netinet/pim_var.h`,
|
||||||
|
`netinet/tcp_var.h`,
|
||||||
|
`netinet/udp_var.h`,
|
||||||
|
`netinet6/in6.h`,
|
||||||
|
`netinet6/ip6_divert.h`,
|
||||||
|
`netinet6/pim6_var.h`,
|
||||||
|
`netinet/icmp6.h`,
|
||||||
|
`netmpls/mpls.h`,
|
||||||
|
}
|
||||||
|
|
||||||
|
ctls := [...]string{
|
||||||
|
`kern`,
|
||||||
|
`vm`,
|
||||||
|
`fs`,
|
||||||
|
`net`,
|
||||||
|
//debug /* Special handling required */
|
||||||
|
`hw`,
|
||||||
|
//machdep /* Arch specific */
|
||||||
|
`user`,
|
||||||
|
`ddb`,
|
||||||
|
//vfs /* Special handling required */
|
||||||
|
`fs.posix`,
|
||||||
|
`kern.forkstat`,
|
||||||
|
`kern.intrcnt`,
|
||||||
|
`kern.malloc`,
|
||||||
|
`kern.nchstats`,
|
||||||
|
`kern.seminfo`,
|
||||||
|
`kern.shminfo`,
|
||||||
|
`kern.timecounter`,
|
||||||
|
`kern.tty`,
|
||||||
|
`kern.watchdog`,
|
||||||
|
`net.bpf`,
|
||||||
|
`net.ifq`,
|
||||||
|
`net.inet`,
|
||||||
|
`net.inet.ah`,
|
||||||
|
`net.inet.carp`,
|
||||||
|
`net.inet.divert`,
|
||||||
|
`net.inet.esp`,
|
||||||
|
`net.inet.etherip`,
|
||||||
|
`net.inet.gre`,
|
||||||
|
`net.inet.icmp`,
|
||||||
|
`net.inet.igmp`,
|
||||||
|
`net.inet.ip`,
|
||||||
|
`net.inet.ip.ifq`,
|
||||||
|
`net.inet.ipcomp`,
|
||||||
|
`net.inet.ipip`,
|
||||||
|
`net.inet.mobileip`,
|
||||||
|
`net.inet.pfsync`,
|
||||||
|
`net.inet.pim`,
|
||||||
|
`net.inet.tcp`,
|
||||||
|
`net.inet.udp`,
|
||||||
|
`net.inet6`,
|
||||||
|
`net.inet6.divert`,
|
||||||
|
`net.inet6.ip6`,
|
||||||
|
`net.inet6.icmp6`,
|
||||||
|
`net.inet6.pim6`,
|
||||||
|
`net.inet6.tcp6`,
|
||||||
|
`net.inet6.udp6`,
|
||||||
|
`net.mpls`,
|
||||||
|
`net.mpls.ifq`,
|
||||||
|
`net.key`,
|
||||||
|
`net.pflow`,
|
||||||
|
`net.pfsync`,
|
||||||
|
`net.pipex`,
|
||||||
|
`net.rt`,
|
||||||
|
`vm.swapencrypt`,
|
||||||
|
//vfsgenctl /* Special handling required */
|
||||||
|
}
|
||||||
|
|
||||||
|
// Node name "fixups"
|
||||||
|
ctlMap := map[string]string{
|
||||||
|
"ipproto": "net.inet",
|
||||||
|
"net.inet.ipproto": "net.inet",
|
||||||
|
"net.inet6.ipv6proto": "net.inet6",
|
||||||
|
"net.inet6.ipv6": "net.inet6.ip6",
|
||||||
|
"net.inet.icmpv6": "net.inet6.icmp6",
|
||||||
|
"net.inet6.divert6": "net.inet6.divert",
|
||||||
|
"net.inet6.tcp6": "net.inet.tcp",
|
||||||
|
"net.inet6.udp6": "net.inet.udp",
|
||||||
|
"mpls": "net.mpls",
|
||||||
|
"swpenc": "vm.swapencrypt",
|
||||||
|
}
|
||||||
|
|
||||||
|
// Node mappings
|
||||||
|
nodeMap = map[string]string{
|
||||||
|
"net.inet.ip.ifq": "net.ifq",
|
||||||
|
"net.inet.pfsync": "net.pfsync",
|
||||||
|
"net.mpls.ifq": "net.ifq",
|
||||||
|
}
|
||||||
|
|
||||||
|
mCtls := make(map[string]bool)
|
||||||
|
for _, ctl := range ctls {
|
||||||
|
mCtls[ctl] = true
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, header := range headers {
|
||||||
|
debug("Processing " + header)
|
||||||
|
file, err := os.Open(filepath.Join("/usr/include", header))
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "%v\n", err)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
s := bufio.NewScanner(file)
|
||||||
|
for s.Scan() {
|
||||||
|
var sub []string
|
||||||
|
if reMatch(ctlNames1RE, s.Text(), &sub) ||
|
||||||
|
reMatch(ctlNames2RE, s.Text(), &sub) ||
|
||||||
|
reMatch(ctlNames3RE, s.Text(), &sub) {
|
||||||
|
if sub[1] == `CTL_NAMES` {
|
||||||
|
// Top level.
|
||||||
|
node = &mib
|
||||||
|
} else {
|
||||||
|
// Node.
|
||||||
|
nodename := strings.ToLower(sub[2])
|
||||||
|
ctlName := ""
|
||||||
|
if reMatch(netInetRE, header, &sub) {
|
||||||
|
ctlName = "net.inet." + nodename
|
||||||
|
} else if reMatch(netInet6RE, header, &sub) {
|
||||||
|
ctlName = "net.inet6." + nodename
|
||||||
|
} else if reMatch(netRE, header, &sub) {
|
||||||
|
ctlName = "net." + nodename
|
||||||
|
} else {
|
||||||
|
ctlName = nodename
|
||||||
|
ctlName = fsNetKernRE.ReplaceAllString(ctlName, `$1.`)
|
||||||
|
}
|
||||||
|
|
||||||
|
if val, ok := ctlMap[ctlName]; ok {
|
||||||
|
ctlName = val
|
||||||
|
}
|
||||||
|
if _, ok := mCtls[ctlName]; !ok {
|
||||||
|
debug("Ignoring " + ctlName + "...")
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
// Walk down from the top of the MIB.
|
||||||
|
node = &mib
|
||||||
|
for _, part := range strings.Split(ctlName, ".") {
|
||||||
|
if _, ok := (*node)[part]; !ok {
|
||||||
|
debug("Missing node " + part)
|
||||||
|
(*node)[part] = nodeElement{n: 0, t: "", pE: &map[string]nodeElement{}}
|
||||||
|
}
|
||||||
|
node = (*node)[part].pE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Populate current node with entries.
|
||||||
|
i := -1
|
||||||
|
for !strings.HasPrefix(s.Text(), "}") {
|
||||||
|
s.Scan()
|
||||||
|
if reMatch(bracesRE, s.Text(), &sub) {
|
||||||
|
i++
|
||||||
|
}
|
||||||
|
if !reMatch(ctlTypeRE, s.Text(), &sub) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
(*node)[sub[1]] = nodeElement{n: i, t: sub[2], pE: &map[string]nodeElement{}}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
err = s.Err()
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "%v\n", err)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
file.Close()
|
||||||
|
}
|
||||||
|
buildSysctl(&mib, "", []int{})
|
||||||
|
|
||||||
|
sort.Strings(sysCtl)
|
||||||
|
text := strings.Join(sysCtl, "")
|
||||||
|
|
||||||
|
fmt.Printf(srcTemplate, cmdLine(), buildTags(), text)
|
||||||
|
}
|
||||||
|
|
||||||
|
const srcTemplate = `// %s
|
||||||
|
// Code generated by the command above; DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build %s
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
type mibentry struct {
|
||||||
|
ctlname string
|
||||||
|
ctloid []_C_int
|
||||||
|
}
|
||||||
|
|
||||||
|
var sysctlMib = []mibentry {
|
||||||
|
%s
|
||||||
|
}
|
||||||
|
`
|
||||||
190
vendor/golang.org/x/sys/unix/mksysnum.go
generated
vendored
Normal file
190
vendor/golang.org/x/sys/unix/mksysnum.go
generated
vendored
Normal file
@@ -0,0 +1,190 @@
|
|||||||
|
// 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 ignore
|
||||||
|
|
||||||
|
// Generate system call table for DragonFly, NetBSD,
|
||||||
|
// FreeBSD, OpenBSD or Darwin from master list
|
||||||
|
// (for example, /usr/src/sys/kern/syscalls.master or
|
||||||
|
// sys/syscall.h).
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bufio"
|
||||||
|
"fmt"
|
||||||
|
"io"
|
||||||
|
"io/ioutil"
|
||||||
|
"net/http"
|
||||||
|
"os"
|
||||||
|
"regexp"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
goos, goarch string
|
||||||
|
)
|
||||||
|
|
||||||
|
// cmdLine returns this programs's commandline arguments
|
||||||
|
func cmdLine() string {
|
||||||
|
return "go run mksysnum.go " + strings.Join(os.Args[1:], " ")
|
||||||
|
}
|
||||||
|
|
||||||
|
// buildTags returns build tags
|
||||||
|
func buildTags() string {
|
||||||
|
return fmt.Sprintf("%s,%s", goarch, goos)
|
||||||
|
}
|
||||||
|
|
||||||
|
func checkErr(err error) {
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "%v\n", err)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// source string and substring slice for regexp
|
||||||
|
type re struct {
|
||||||
|
str string // source string
|
||||||
|
sub []string // matched sub-string
|
||||||
|
}
|
||||||
|
|
||||||
|
// Match performs regular expression match
|
||||||
|
func (r *re) Match(exp string) bool {
|
||||||
|
r.sub = regexp.MustCompile(exp).FindStringSubmatch(r.str)
|
||||||
|
if r.sub != nil {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
// fetchFile fetches a text file from URL
|
||||||
|
func fetchFile(URL string) io.Reader {
|
||||||
|
resp, err := http.Get(URL)
|
||||||
|
checkErr(err)
|
||||||
|
defer resp.Body.Close()
|
||||||
|
body, err := ioutil.ReadAll(resp.Body)
|
||||||
|
checkErr(err)
|
||||||
|
return strings.NewReader(string(body))
|
||||||
|
}
|
||||||
|
|
||||||
|
// readFile reads a text file from path
|
||||||
|
func readFile(path string) io.Reader {
|
||||||
|
file, err := os.Open(os.Args[1])
|
||||||
|
checkErr(err)
|
||||||
|
return file
|
||||||
|
}
|
||||||
|
|
||||||
|
func format(name, num, proto string) string {
|
||||||
|
name = strings.ToUpper(name)
|
||||||
|
// There are multiple entries for enosys and nosys, so comment them out.
|
||||||
|
nm := re{str: name}
|
||||||
|
if nm.Match(`^SYS_E?NOSYS$`) {
|
||||||
|
name = fmt.Sprintf("// %s", name)
|
||||||
|
}
|
||||||
|
if name == `SYS_SYS_EXIT` {
|
||||||
|
name = `SYS_EXIT`
|
||||||
|
}
|
||||||
|
return fmt.Sprintf(" %s = %s; // %s\n", name, num, proto)
|
||||||
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
// Get the OS (using GOOS_TARGET if it exist)
|
||||||
|
goos = os.Getenv("GOOS_TARGET")
|
||||||
|
if goos == "" {
|
||||||
|
goos = os.Getenv("GOOS")
|
||||||
|
}
|
||||||
|
// Get the architecture (using GOARCH_TARGET if it exists)
|
||||||
|
goarch = os.Getenv("GOARCH_TARGET")
|
||||||
|
if goarch == "" {
|
||||||
|
goarch = os.Getenv("GOARCH")
|
||||||
|
}
|
||||||
|
// Check if GOOS and GOARCH environment variables are defined
|
||||||
|
if goarch == "" || goos == "" {
|
||||||
|
fmt.Fprintf(os.Stderr, "GOARCH or GOOS not defined in environment\n")
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
file := strings.TrimSpace(os.Args[1])
|
||||||
|
var syscalls io.Reader
|
||||||
|
if strings.HasPrefix(file, "https://") || strings.HasPrefix(file, "http://") {
|
||||||
|
// Download syscalls.master file
|
||||||
|
syscalls = fetchFile(file)
|
||||||
|
} else {
|
||||||
|
syscalls = readFile(file)
|
||||||
|
}
|
||||||
|
|
||||||
|
var text, line string
|
||||||
|
s := bufio.NewScanner(syscalls)
|
||||||
|
for s.Scan() {
|
||||||
|
t := re{str: line}
|
||||||
|
if t.Match(`^(.*)\\$`) {
|
||||||
|
// Handle continuation
|
||||||
|
line = t.sub[1]
|
||||||
|
line += strings.TrimLeft(s.Text(), " \t")
|
||||||
|
} else {
|
||||||
|
// New line
|
||||||
|
line = s.Text()
|
||||||
|
}
|
||||||
|
t = re{str: line}
|
||||||
|
if t.Match(`\\$`) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
t = re{str: line}
|
||||||
|
|
||||||
|
switch goos {
|
||||||
|
case "dragonfly":
|
||||||
|
if t.Match(`^([0-9]+)\s+STD\s+({ \S+\s+(\w+).*)$`) {
|
||||||
|
num, proto := t.sub[1], t.sub[2]
|
||||||
|
name := fmt.Sprintf("SYS_%s", t.sub[3])
|
||||||
|
text += format(name, num, proto)
|
||||||
|
}
|
||||||
|
case "freebsd":
|
||||||
|
if t.Match(`^([0-9]+)\s+\S+\s+(?:(?:NO)?STD|COMPAT10)\s+({ \S+\s+(\w+).*)$`) {
|
||||||
|
num, proto := t.sub[1], t.sub[2]
|
||||||
|
name := fmt.Sprintf("SYS_%s", t.sub[3])
|
||||||
|
text += format(name, num, proto)
|
||||||
|
}
|
||||||
|
case "openbsd":
|
||||||
|
if t.Match(`^([0-9]+)\s+STD\s+(NOLOCK\s+)?({ \S+\s+\*?(\w+).*)$`) {
|
||||||
|
num, proto, name := t.sub[1], t.sub[3], t.sub[4]
|
||||||
|
text += format(name, num, proto)
|
||||||
|
}
|
||||||
|
case "netbsd":
|
||||||
|
if t.Match(`^([0-9]+)\s+((STD)|(NOERR))\s+(RUMP\s+)?({\s+\S+\s*\*?\s*\|(\S+)\|(\S*)\|(\w+).*\s+})(\s+(\S+))?$`) {
|
||||||
|
num, proto, compat := t.sub[1], t.sub[6], t.sub[8]
|
||||||
|
name := t.sub[7] + "_" + t.sub[9]
|
||||||
|
if t.sub[11] != "" {
|
||||||
|
name = t.sub[7] + "_" + t.sub[11]
|
||||||
|
}
|
||||||
|
name = strings.ToUpper(name)
|
||||||
|
if compat == "" || compat == "13" || compat == "30" || compat == "50" {
|
||||||
|
text += fmt.Sprintf(" %s = %s; // %s\n", name, num, proto)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case "darwin":
|
||||||
|
if t.Match(`^#define\s+SYS_(\w+)\s+([0-9]+)`) {
|
||||||
|
name, num := t.sub[1], t.sub[2]
|
||||||
|
name = strings.ToUpper(name)
|
||||||
|
text += fmt.Sprintf(" SYS_%s = %s;\n", name, num)
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
fmt.Fprintf(os.Stderr, "unrecognized GOOS=%s\n", goos)
|
||||||
|
os.Exit(1)
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
err := s.Err()
|
||||||
|
checkErr(err)
|
||||||
|
|
||||||
|
fmt.Printf(template, cmdLine(), buildTags(), text)
|
||||||
|
}
|
||||||
|
|
||||||
|
const template = `// %s
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build %s
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
const(
|
||||||
|
%s)`
|
||||||
38
vendor/golang.org/x/sys/unix/openbsd_pledge.go
generated
vendored
38
vendor/golang.org/x/sys/unix/openbsd_pledge.go
generated
vendored
@@ -1,38 +0,0 @@
|
|||||||
// Copyright 2016 The Go Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style
|
|
||||||
// license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
// +build openbsd
|
|
||||||
// +build 386 amd64 arm
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
import (
|
|
||||||
"syscall"
|
|
||||||
"unsafe"
|
|
||||||
)
|
|
||||||
|
|
||||||
const (
|
|
||||||
_SYS_PLEDGE = 108
|
|
||||||
)
|
|
||||||
|
|
||||||
// Pledge implements the pledge syscall. For more information see pledge(2).
|
|
||||||
func Pledge(promises string, paths []string) error {
|
|
||||||
promisesPtr, err := syscall.BytePtrFromString(promises)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
promisesUnsafe, pathsUnsafe := unsafe.Pointer(promisesPtr), unsafe.Pointer(nil)
|
|
||||||
if paths != nil {
|
|
||||||
var pathsPtr []*byte
|
|
||||||
if pathsPtr, err = syscall.SlicePtrFromStrings(paths); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
pathsUnsafe = unsafe.Pointer(&pathsPtr[0])
|
|
||||||
}
|
|
||||||
_, _, e := syscall.Syscall(_SYS_PLEDGE, uintptr(promisesUnsafe), uintptr(pathsUnsafe), 0)
|
|
||||||
if e != 0 {
|
|
||||||
return e
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
2
vendor/golang.org/x/sys/unix/pagesize_unix.go
generated
vendored
2
vendor/golang.org/x/sys/unix/pagesize_unix.go
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||||
|
|
||||||
// For Unix, get the pagesize from the runtime.
|
// For Unix, get the pagesize from the runtime.
|
||||||
|
|
||||||
|
|||||||
163
vendor/golang.org/x/sys/unix/pledge_openbsd.go
generated
vendored
Normal file
163
vendor/golang.org/x/sys/unix/pledge_openbsd.go
generated
vendored
Normal file
@@ -0,0 +1,163 @@
|
|||||||
|
// Copyright 2016 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
"errors"
|
||||||
|
"fmt"
|
||||||
|
"strconv"
|
||||||
|
"syscall"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Pledge implements the pledge syscall.
|
||||||
|
//
|
||||||
|
// The pledge syscall does not accept execpromises on OpenBSD releases
|
||||||
|
// before 6.3.
|
||||||
|
//
|
||||||
|
// execpromises must be empty when Pledge is called on OpenBSD
|
||||||
|
// releases predating 6.3, otherwise an error will be returned.
|
||||||
|
//
|
||||||
|
// For more information see pledge(2).
|
||||||
|
func Pledge(promises, execpromises string) error {
|
||||||
|
maj, min, err := majmin()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
err = pledgeAvailable(maj, min, execpromises)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
pptr, err := syscall.BytePtrFromString(promises)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
// This variable will hold either a nil unsafe.Pointer or
|
||||||
|
// an unsafe.Pointer to a string (execpromises).
|
||||||
|
var expr unsafe.Pointer
|
||||||
|
|
||||||
|
// If we're running on OpenBSD > 6.2, pass execpromises to the syscall.
|
||||||
|
if maj > 6 || (maj == 6 && min > 2) {
|
||||||
|
exptr, err := syscall.BytePtrFromString(execpromises)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
expr = unsafe.Pointer(exptr)
|
||||||
|
}
|
||||||
|
|
||||||
|
_, _, e := syscall.Syscall(SYS_PLEDGE, uintptr(unsafe.Pointer(pptr)), uintptr(expr), 0)
|
||||||
|
if e != 0 {
|
||||||
|
return e
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// PledgePromises implements the pledge syscall.
|
||||||
|
//
|
||||||
|
// This changes the promises and leaves the execpromises untouched.
|
||||||
|
//
|
||||||
|
// For more information see pledge(2).
|
||||||
|
func PledgePromises(promises string) error {
|
||||||
|
maj, min, err := majmin()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
err = pledgeAvailable(maj, min, "")
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
// This variable holds the execpromises and is always nil.
|
||||||
|
var expr unsafe.Pointer
|
||||||
|
|
||||||
|
pptr, err := syscall.BytePtrFromString(promises)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
_, _, e := syscall.Syscall(SYS_PLEDGE, uintptr(unsafe.Pointer(pptr)), uintptr(expr), 0)
|
||||||
|
if e != 0 {
|
||||||
|
return e
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// PledgeExecpromises implements the pledge syscall.
|
||||||
|
//
|
||||||
|
// This changes the execpromises and leaves the promises untouched.
|
||||||
|
//
|
||||||
|
// For more information see pledge(2).
|
||||||
|
func PledgeExecpromises(execpromises string) error {
|
||||||
|
maj, min, err := majmin()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
err = pledgeAvailable(maj, min, execpromises)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
// This variable holds the promises and is always nil.
|
||||||
|
var pptr unsafe.Pointer
|
||||||
|
|
||||||
|
exptr, err := syscall.BytePtrFromString(execpromises)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
_, _, e := syscall.Syscall(SYS_PLEDGE, uintptr(pptr), uintptr(unsafe.Pointer(exptr)), 0)
|
||||||
|
if e != 0 {
|
||||||
|
return e
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// majmin returns major and minor version number for an OpenBSD system.
|
||||||
|
func majmin() (major int, minor int, err error) {
|
||||||
|
var v Utsname
|
||||||
|
err = Uname(&v)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
major, err = strconv.Atoi(string(v.Release[0]))
|
||||||
|
if err != nil {
|
||||||
|
err = errors.New("cannot parse major version number returned by uname")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
minor, err = strconv.Atoi(string(v.Release[2]))
|
||||||
|
if err != nil {
|
||||||
|
err = errors.New("cannot parse minor version number returned by uname")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// pledgeAvailable checks for availability of the pledge(2) syscall
|
||||||
|
// based on the running OpenBSD version.
|
||||||
|
func pledgeAvailable(maj, min int, execpromises string) error {
|
||||||
|
// If OpenBSD <= 5.9, pledge is not available.
|
||||||
|
if (maj == 5 && min != 9) || maj < 5 {
|
||||||
|
return fmt.Errorf("pledge syscall is not available on OpenBSD %d.%d", maj, min)
|
||||||
|
}
|
||||||
|
|
||||||
|
// If OpenBSD <= 6.2 and execpromises is not empty,
|
||||||
|
// return an error - execpromises is not available before 6.3
|
||||||
|
if (maj < 6 || (maj == 6 && min <= 2)) && execpromises != "" {
|
||||||
|
return fmt.Errorf("cannot use execpromises on OpenBSD %d.%d", maj, min)
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
2
vendor/golang.org/x/sys/unix/race0.go
generated
vendored
2
vendor/golang.org/x/sys/unix/race0.go
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly
|
// +build aix darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
|||||||
12
vendor/golang.org/x/sys/unix/readdirent_getdents.go
generated
vendored
Normal file
12
vendor/golang.org/x/sys/unix/readdirent_getdents.go
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
// Copyright 2019 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 aix dragonfly freebsd linux netbsd openbsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
// ReadDirent reads directory entries from fd and writes them into buf.
|
||||||
|
func ReadDirent(fd int, buf []byte) (n int, err error) {
|
||||||
|
return Getdents(fd, buf)
|
||||||
|
}
|
||||||
19
vendor/golang.org/x/sys/unix/readdirent_getdirentries.go
generated
vendored
Normal file
19
vendor/golang.org/x/sys/unix/readdirent_getdirentries.go
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
// Copyright 2019 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
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import "unsafe"
|
||||||
|
|
||||||
|
// ReadDirent reads directory entries from fd and writes them into buf.
|
||||||
|
func ReadDirent(fd int, buf []byte) (n int, err error) {
|
||||||
|
// Final argument is (basep *uintptr) and the syscall doesn't take nil.
|
||||||
|
// 64 bits should be enough. (32 bits isn't even on 386). Since the
|
||||||
|
// actual system call is getdirentries64, 64 is a good guess.
|
||||||
|
// TODO(rsc): Can we use a single global basep for all calls?
|
||||||
|
var base = (*uintptr)(unsafe.Pointer(new(uint64)))
|
||||||
|
return Getdirentries(fd, buf, base)
|
||||||
|
}
|
||||||
32
vendor/golang.org/x/sys/unix/sockcmsg_unix.go
generated
vendored
32
vendor/golang.org/x/sys/unix/sockcmsg_unix.go
generated
vendored
@@ -2,23 +2,39 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||||
|
|
||||||
// Socket control messages
|
// Socket control messages
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import "unsafe"
|
import (
|
||||||
|
"runtime"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
// Round the length of a raw sockaddr up to align it properly.
|
// Round the length of a raw sockaddr up to align it properly.
|
||||||
func cmsgAlignOf(salen int) int {
|
func cmsgAlignOf(salen int) int {
|
||||||
salign := sizeofPtr
|
salign := SizeofPtr
|
||||||
// NOTE: It seems like 64-bit Darwin, DragonFly BSD and
|
|
||||||
// Solaris kernels still require 32-bit aligned access to
|
switch runtime.GOOS {
|
||||||
// network subsystem.
|
case "aix":
|
||||||
if darwin64Bit || dragonfly64Bit || solaris64Bit {
|
// There is no alignment on AIX.
|
||||||
salign = 4
|
salign = 1
|
||||||
|
case "darwin", "dragonfly", "solaris", "illumos":
|
||||||
|
// NOTE: It seems like 64-bit Darwin, DragonFly BSD,
|
||||||
|
// illumos, and Solaris kernels still require 32-bit
|
||||||
|
// aligned access to network subsystem.
|
||||||
|
if SizeofPtr == 8 {
|
||||||
|
salign = 4
|
||||||
|
}
|
||||||
|
case "netbsd", "openbsd":
|
||||||
|
// NetBSD and OpenBSD armv7 require 64-bit alignment.
|
||||||
|
if runtime.GOARCH == "arm" {
|
||||||
|
salign = 8
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (salen + salign - 1) & ^(salign - 1)
|
return (salen + salign - 1) & ^(salign - 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
vendor/golang.org/x/sys/unix/str.go
generated
vendored
2
vendor/golang.org/x/sys/unix/str.go
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
|||||||
3
vendor/golang.org/x/sys/unix/syscall.go
generated
vendored
3
vendor/golang.org/x/sys/unix/syscall.go
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||||
|
|
||||||
// Package unix contains an interface to the low-level operating system
|
// Package unix contains an interface to the low-level operating system
|
||||||
// primitives. OS details vary depending on the underlying system, and
|
// primitives. OS details vary depending on the underlying system, and
|
||||||
@@ -50,5 +50,4 @@ func BytePtrFromString(s string) (*byte, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Single-word zero for use when we need a valid pointer to 0 bytes.
|
// Single-word zero for use when we need a valid pointer to 0 bytes.
|
||||||
// See mkunix.pl.
|
|
||||||
var _zero uintptr
|
var _zero uintptr
|
||||||
|
|||||||
557
vendor/golang.org/x/sys/unix/syscall_aix.go
generated
vendored
Normal file
557
vendor/golang.org/x/sys/unix/syscall_aix.go
generated
vendored
Normal file
@@ -0,0 +1,557 @@
|
|||||||
|
// 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 aix
|
||||||
|
|
||||||
|
// Aix system calls.
|
||||||
|
// This file is compiled as ordinary Go code,
|
||||||
|
// but it is also input to mksyscall,
|
||||||
|
// which parses the //sys lines and generates system call stubs.
|
||||||
|
// Note that sometimes we use a lowercase //sys name and
|
||||||
|
// wrap it in our own nicer implementation.
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import "unsafe"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Wrapped
|
||||||
|
*/
|
||||||
|
|
||||||
|
//sys utimes(path string, times *[2]Timeval) (err error)
|
||||||
|
func Utimes(path string, tv []Timeval) error {
|
||||||
|
if len(tv) != 2 {
|
||||||
|
return EINVAL
|
||||||
|
}
|
||||||
|
return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys utimensat(dirfd int, path string, times *[2]Timespec, flag int) (err error)
|
||||||
|
func UtimesNano(path string, ts []Timespec) error {
|
||||||
|
if len(ts) != 2 {
|
||||||
|
return EINVAL
|
||||||
|
}
|
||||||
|
return utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error {
|
||||||
|
if ts == nil {
|
||||||
|
return utimensat(dirfd, path, nil, flags)
|
||||||
|
}
|
||||||
|
if len(ts) != 2 {
|
||||||
|
return EINVAL
|
||||||
|
}
|
||||||
|
return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), flags)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||||
|
if sa.Port < 0 || sa.Port > 0xFFFF {
|
||||||
|
return nil, 0, EINVAL
|
||||||
|
}
|
||||||
|
sa.raw.Family = AF_INET
|
||||||
|
p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port))
|
||||||
|
p[0] = byte(sa.Port >> 8)
|
||||||
|
p[1] = byte(sa.Port)
|
||||||
|
for i := 0; i < len(sa.Addr); i++ {
|
||||||
|
sa.raw.Addr[i] = sa.Addr[i]
|
||||||
|
}
|
||||||
|
return unsafe.Pointer(&sa.raw), SizeofSockaddrInet4, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (sa *SockaddrInet6) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||||
|
if sa.Port < 0 || sa.Port > 0xFFFF {
|
||||||
|
return nil, 0, EINVAL
|
||||||
|
}
|
||||||
|
sa.raw.Family = AF_INET6
|
||||||
|
p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port))
|
||||||
|
p[0] = byte(sa.Port >> 8)
|
||||||
|
p[1] = byte(sa.Port)
|
||||||
|
sa.raw.Scope_id = sa.ZoneId
|
||||||
|
for i := 0; i < len(sa.Addr); i++ {
|
||||||
|
sa.raw.Addr[i] = sa.Addr[i]
|
||||||
|
}
|
||||||
|
return unsafe.Pointer(&sa.raw), SizeofSockaddrInet6, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||||
|
name := sa.Name
|
||||||
|
n := len(name)
|
||||||
|
if n > len(sa.raw.Path) {
|
||||||
|
return nil, 0, EINVAL
|
||||||
|
}
|
||||||
|
if n == len(sa.raw.Path) && name[0] != '@' {
|
||||||
|
return nil, 0, EINVAL
|
||||||
|
}
|
||||||
|
sa.raw.Family = AF_UNIX
|
||||||
|
for i := 0; i < n; i++ {
|
||||||
|
sa.raw.Path[i] = uint8(name[i])
|
||||||
|
}
|
||||||
|
// length is family (uint16), name, NUL.
|
||||||
|
sl := _Socklen(2)
|
||||||
|
if n > 0 {
|
||||||
|
sl += _Socklen(n) + 1
|
||||||
|
}
|
||||||
|
if sa.raw.Path[0] == '@' {
|
||||||
|
sa.raw.Path[0] = 0
|
||||||
|
// Don't count trailing NUL for abstract address.
|
||||||
|
sl--
|
||||||
|
}
|
||||||
|
|
||||||
|
return unsafe.Pointer(&sa.raw), sl, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Getsockname(fd int) (sa Sockaddr, err error) {
|
||||||
|
var rsa RawSockaddrAny
|
||||||
|
var len _Socklen = SizeofSockaddrAny
|
||||||
|
if err = getsockname(fd, &rsa, &len); err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
return anyToSockaddr(fd, &rsa)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys getcwd(buf []byte) (err error)
|
||||||
|
|
||||||
|
const ImplementsGetwd = true
|
||||||
|
|
||||||
|
func Getwd() (ret string, err error) {
|
||||||
|
for len := uint64(4096); ; len *= 2 {
|
||||||
|
b := make([]byte, len)
|
||||||
|
err := getcwd(b)
|
||||||
|
if err == nil {
|
||||||
|
i := 0
|
||||||
|
for b[i] != 0 {
|
||||||
|
i++
|
||||||
|
}
|
||||||
|
return string(b[0:i]), nil
|
||||||
|
}
|
||||||
|
if err != ERANGE {
|
||||||
|
return "", err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func Getcwd(buf []byte) (n int, err error) {
|
||||||
|
err = getcwd(buf)
|
||||||
|
if err == nil {
|
||||||
|
i := 0
|
||||||
|
for buf[i] != 0 {
|
||||||
|
i++
|
||||||
|
}
|
||||||
|
n = i + 1
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Getgroups() (gids []int, err error) {
|
||||||
|
n, err := getgroups(0, nil)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if n == 0 {
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Sanity check group count. Max is 16 on BSD.
|
||||||
|
if n < 0 || n > 1000 {
|
||||||
|
return nil, EINVAL
|
||||||
|
}
|
||||||
|
|
||||||
|
a := make([]_Gid_t, n)
|
||||||
|
n, err = getgroups(n, &a[0])
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
gids = make([]int, n)
|
||||||
|
for i, v := range a[0:n] {
|
||||||
|
gids[i] = int(v)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Setgroups(gids []int) (err error) {
|
||||||
|
if len(gids) == 0 {
|
||||||
|
return setgroups(0, nil)
|
||||||
|
}
|
||||||
|
|
||||||
|
a := make([]_Gid_t, len(gids))
|
||||||
|
for i, v := range gids {
|
||||||
|
a[i] = _Gid_t(v)
|
||||||
|
}
|
||||||
|
return setgroups(len(a), &a[0])
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Socket
|
||||||
|
*/
|
||||||
|
|
||||||
|
//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error)
|
||||||
|
|
||||||
|
func Accept(fd int) (nfd int, sa Sockaddr, err error) {
|
||||||
|
var rsa RawSockaddrAny
|
||||||
|
var len _Socklen = SizeofSockaddrAny
|
||||||
|
nfd, err = accept(fd, &rsa, &len)
|
||||||
|
if nfd == -1 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
sa, err = anyToSockaddr(fd, &rsa)
|
||||||
|
if err != nil {
|
||||||
|
Close(nfd)
|
||||||
|
nfd = 0
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
|
||||||
|
// Recvmsg not implemented on AIX
|
||||||
|
sa := new(SockaddrUnix)
|
||||||
|
return -1, -1, -1, sa, ENOSYS
|
||||||
|
}
|
||||||
|
|
||||||
|
func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error) {
|
||||||
|
_, err = SendmsgN(fd, p, oob, to, flags)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error) {
|
||||||
|
// SendmsgN not implemented on AIX
|
||||||
|
return -1, ENOSYS
|
||||||
|
}
|
||||||
|
|
||||||
|
func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||||
|
switch rsa.Addr.Family {
|
||||||
|
|
||||||
|
case AF_UNIX:
|
||||||
|
pp := (*RawSockaddrUnix)(unsafe.Pointer(rsa))
|
||||||
|
sa := new(SockaddrUnix)
|
||||||
|
|
||||||
|
// Some versions of AIX have a bug in getsockname (see IV78655).
|
||||||
|
// We can't rely on sa.Len being set correctly.
|
||||||
|
n := SizeofSockaddrUnix - 3 // subtract leading Family, Len, terminating NUL.
|
||||||
|
for i := 0; i < n; i++ {
|
||||||
|
if pp.Path[i] == 0 {
|
||||||
|
n = i
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
||||||
|
sa.Name = string(bytes)
|
||||||
|
return sa, nil
|
||||||
|
|
||||||
|
case AF_INET:
|
||||||
|
pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa))
|
||||||
|
sa := new(SockaddrInet4)
|
||||||
|
p := (*[2]byte)(unsafe.Pointer(&pp.Port))
|
||||||
|
sa.Port = int(p[0])<<8 + int(p[1])
|
||||||
|
for i := 0; i < len(sa.Addr); i++ {
|
||||||
|
sa.Addr[i] = pp.Addr[i]
|
||||||
|
}
|
||||||
|
return sa, nil
|
||||||
|
|
||||||
|
case AF_INET6:
|
||||||
|
pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa))
|
||||||
|
sa := new(SockaddrInet6)
|
||||||
|
p := (*[2]byte)(unsafe.Pointer(&pp.Port))
|
||||||
|
sa.Port = int(p[0])<<8 + int(p[1])
|
||||||
|
sa.ZoneId = pp.Scope_id
|
||||||
|
for i := 0; i < len(sa.Addr); i++ {
|
||||||
|
sa.Addr[i] = pp.Addr[i]
|
||||||
|
}
|
||||||
|
return sa, nil
|
||||||
|
}
|
||||||
|
return nil, EAFNOSUPPORT
|
||||||
|
}
|
||||||
|
|
||||||
|
func Gettimeofday(tv *Timeval) (err error) {
|
||||||
|
err = gettimeofday(tv, nil)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||||
|
if raceenabled {
|
||||||
|
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
||||||
|
}
|
||||||
|
return sendfile(outfd, infd, offset, count)
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||||
|
return -1, ENOSYS
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys getdirent(fd int, buf []byte) (n int, err error)
|
||||||
|
func Getdents(fd int, buf []byte) (n int, err error) {
|
||||||
|
return getdirent(fd, buf)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys wait4(pid Pid_t, status *_C_int, options int, rusage *Rusage) (wpid Pid_t, err error)
|
||||||
|
func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) {
|
||||||
|
var status _C_int
|
||||||
|
var r Pid_t
|
||||||
|
err = ERESTART
|
||||||
|
// AIX wait4 may return with ERESTART errno, while the processus is still
|
||||||
|
// active.
|
||||||
|
for err == ERESTART {
|
||||||
|
r, err = wait4(Pid_t(pid), &status, options, rusage)
|
||||||
|
}
|
||||||
|
wpid = int(r)
|
||||||
|
if wstatus != nil {
|
||||||
|
*wstatus = WaitStatus(status)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Wait
|
||||||
|
*/
|
||||||
|
|
||||||
|
type WaitStatus uint32
|
||||||
|
|
||||||
|
func (w WaitStatus) Stopped() bool { return w&0x40 != 0 }
|
||||||
|
func (w WaitStatus) StopSignal() Signal {
|
||||||
|
if !w.Stopped() {
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
return Signal(w>>8) & 0xFF
|
||||||
|
}
|
||||||
|
|
||||||
|
func (w WaitStatus) Exited() bool { return w&0xFF == 0 }
|
||||||
|
func (w WaitStatus) ExitStatus() int {
|
||||||
|
if !w.Exited() {
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
return int((w >> 8) & 0xFF)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (w WaitStatus) Signaled() bool { return w&0x40 == 0 && w&0xFF != 0 }
|
||||||
|
func (w WaitStatus) Signal() Signal {
|
||||||
|
if !w.Signaled() {
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
return Signal(w>>16) & 0xFF
|
||||||
|
}
|
||||||
|
|
||||||
|
func (w WaitStatus) Continued() bool { return w&0x01000000 != 0 }
|
||||||
|
|
||||||
|
func (w WaitStatus) CoreDump() bool { return w&0x200 != 0 }
|
||||||
|
|
||||||
|
func (w WaitStatus) TrapCause() int { return -1 }
|
||||||
|
|
||||||
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||||
|
|
||||||
|
// ioctl itself should not be exposed directly, but additional get/set
|
||||||
|
// functions for specific types are permissible.
|
||||||
|
|
||||||
|
// IoctlSetInt performs an ioctl operation which sets an integer value
|
||||||
|
// on fd, using the specified request number.
|
||||||
|
func IoctlSetInt(fd int, req uint, value int) error {
|
||||||
|
return ioctl(fd, req, uintptr(value))
|
||||||
|
}
|
||||||
|
|
||||||
|
func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||||
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
|
}
|
||||||
|
|
||||||
|
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
||||||
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
|
}
|
||||||
|
|
||||||
|
// IoctlGetInt performs an ioctl operation which gets an integer value
|
||||||
|
// from fd, using the specified request number.
|
||||||
|
func IoctlGetInt(fd int, req uint) (int, error) {
|
||||||
|
var value int
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return value, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
||||||
|
var value Winsize
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
||||||
|
var value Termios
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
|
// fcntl must never be called with cmd=F_DUP2FD because it doesn't work on AIX
|
||||||
|
// There is no way to create a custom fcntl and to keep //sys fcntl easily,
|
||||||
|
// Therefore, the programmer must call dup2 instead of fcntl in this case.
|
||||||
|
|
||||||
|
// FcntlInt performs a fcntl syscall on fd with the provided command and argument.
|
||||||
|
//sys FcntlInt(fd uintptr, cmd int, arg int) (r int,err error) = fcntl
|
||||||
|
|
||||||
|
// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
|
||||||
|
//sys FcntlFlock(fd uintptr, cmd int, lk *Flock_t) (err error) = fcntl
|
||||||
|
|
||||||
|
//sys fcntl(fd int, cmd int, arg int) (val int, err error)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Direct access
|
||||||
|
*/
|
||||||
|
|
||||||
|
//sys Acct(path string) (err error)
|
||||||
|
//sys Chdir(path string) (err error)
|
||||||
|
//sys Chroot(path string) (err error)
|
||||||
|
//sys Close(fd int) (err error)
|
||||||
|
//sys Dup(oldfd int) (fd 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 Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
|
||||||
|
//sys Fdatasync(fd int) (err error)
|
||||||
|
//sys Fsync(fd int) (err error)
|
||||||
|
// readdir_r
|
||||||
|
//sysnb Getpgid(pid int) (pgid int, err error)
|
||||||
|
|
||||||
|
//sys Getpgrp() (pid int)
|
||||||
|
|
||||||
|
//sysnb Getpid() (pid int)
|
||||||
|
//sysnb Getppid() (ppid int)
|
||||||
|
//sys Getpriority(which int, who int) (prio int, err error)
|
||||||
|
//sysnb Getrusage(who int, rusage *Rusage) (err error)
|
||||||
|
//sysnb Getsid(pid int) (sid int, err error)
|
||||||
|
//sysnb Kill(pid int, sig Signal) (err error)
|
||||||
|
//sys Klogctl(typ int, buf []byte) (n int, err error) = syslog
|
||||||
|
//sys Mkdir(dirfd int, path string, mode uint32) (err error)
|
||||||
|
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
||||||
|
//sys Mkfifo(path string, mode uint32) (err error)
|
||||||
|
//sys Mknod(path string, mode uint32, dev int) (err error)
|
||||||
|
//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
|
||||||
|
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
||||||
|
//sys Open(path string, mode int, perm uint32) (fd int, err error) = open64
|
||||||
|
//sys Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error)
|
||||||
|
//sys read(fd int, p []byte) (n int, err error)
|
||||||
|
//sys Readlink(path string, buf []byte) (n int, err error)
|
||||||
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
|
//sys Setdomainname(p []byte) (err error)
|
||||||
|
//sys Sethostname(p []byte) (err error)
|
||||||
|
//sysnb Setpgid(pid int, pgid int) (err error)
|
||||||
|
//sysnb Setsid() (pid int, err error)
|
||||||
|
//sysnb Settimeofday(tv *Timeval) (err error)
|
||||||
|
|
||||||
|
//sys Setuid(uid int) (err error)
|
||||||
|
//sys Setgid(uid int) (err error)
|
||||||
|
|
||||||
|
//sys Setpriority(which int, who int, prio int) (err error)
|
||||||
|
//sys Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error)
|
||||||
|
//sys Sync()
|
||||||
|
//sysnb Times(tms *Tms) (ticks uintptr, err error)
|
||||||
|
//sysnb Umask(mask int) (oldmask int)
|
||||||
|
//sysnb Uname(buf *Utsname) (err error)
|
||||||
|
//sys Unlink(path string) (err error)
|
||||||
|
//sys Unlinkat(dirfd int, path string, flags int) (err error)
|
||||||
|
//sys Ustat(dev int, ubuf *Ustat_t) (err error)
|
||||||
|
//sys write(fd int, p []byte) (n int, err error)
|
||||||
|
//sys readlen(fd int, p *byte, np int) (n int, err error) = read
|
||||||
|
//sys writelen(fd int, p *byte, np int) (n int, err error) = write
|
||||||
|
|
||||||
|
//sys Dup2(oldfd int, newfd int) (err error)
|
||||||
|
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = posix_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) = fstatat
|
||||||
|
//sys Fstatfs(fd int, buf *Statfs_t) (err error)
|
||||||
|
//sys Ftruncate(fd int, length int64) (err error)
|
||||||
|
//sysnb Getegid() (egid int)
|
||||||
|
//sysnb Geteuid() (euid int)
|
||||||
|
//sysnb Getgid() (gid int)
|
||||||
|
//sysnb Getuid() (uid int)
|
||||||
|
//sys Lchown(path string, uid int, gid int) (err error)
|
||||||
|
//sys Listen(s int, n int) (err error)
|
||||||
|
//sys lstat(path string, stat *Stat_t) (err error)
|
||||||
|
//sys Pause() (err error)
|
||||||
|
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = pread64
|
||||||
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = pwrite64
|
||||||
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
|
||||||
|
//sys Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error)
|
||||||
|
//sysnb Setregid(rgid int, egid 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 stat(path string, statptr *Stat_t) (err error)
|
||||||
|
//sys Statfs(path string, buf *Statfs_t) (err error)
|
||||||
|
//sys Truncate(path string, length int64) (err error)
|
||||||
|
|
||||||
|
//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
|
||||||
|
//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
|
||||||
|
//sysnb getgroups(n int, list *_Gid_t) (nn int, err error)
|
||||||
|
//sysnb setgroups(n int, list *_Gid_t) (err error)
|
||||||
|
//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error)
|
||||||
|
//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error)
|
||||||
|
//sysnb socket(domain int, typ int, proto int) (fd int, err error)
|
||||||
|
//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error)
|
||||||
|
//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
|
||||||
|
//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
|
||||||
|
//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error)
|
||||||
|
//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error)
|
||||||
|
|
||||||
|
// In order to use msghdr structure with Control, Controllen, nrecvmsg and nsendmsg must be used.
|
||||||
|
//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) = nrecvmsg
|
||||||
|
//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) = nsendmsg
|
||||||
|
|
||||||
|
//sys munmap(addr uintptr, length uintptr) (err error)
|
||||||
|
|
||||||
|
var mapper = &mmapper{
|
||||||
|
active: make(map[*byte][]byte),
|
||||||
|
mmap: mmap,
|
||||||
|
munmap: munmap,
|
||||||
|
}
|
||||||
|
|
||||||
|
func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
|
||||||
|
return mapper.Mmap(fd, offset, length, prot, flags)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Munmap(b []byte) (err error) {
|
||||||
|
return mapper.Munmap(b)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys Madvise(b []byte, advice int) (err error)
|
||||||
|
//sys Mprotect(b []byte, prot int) (err error)
|
||||||
|
//sys Mlock(b []byte) (err error)
|
||||||
|
//sys Mlockall(flags int) (err error)
|
||||||
|
//sys Msync(b []byte, flags int) (err error)
|
||||||
|
//sys Munlock(b []byte) (err error)
|
||||||
|
//sys Munlockall() (err error)
|
||||||
|
|
||||||
|
//sysnb pipe(p *[2]_C_int) (err error)
|
||||||
|
|
||||||
|
func Pipe(p []int) (err error) {
|
||||||
|
if len(p) != 2 {
|
||||||
|
return EINVAL
|
||||||
|
}
|
||||||
|
var pp [2]_C_int
|
||||||
|
err = pipe(&pp)
|
||||||
|
p[0] = int(pp[0])
|
||||||
|
p[1] = int(pp[1])
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error)
|
||||||
|
|
||||||
|
func Poll(fds []PollFd, timeout int) (n int, err error) {
|
||||||
|
if len(fds) == 0 {
|
||||||
|
return poll(nil, 0, timeout)
|
||||||
|
}
|
||||||
|
return poll(&fds[0], len(fds), timeout)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys gettimeofday(tv *Timeval, tzp *Timezone) (err error)
|
||||||
|
//sysnb Time(t *Time_t) (tt Time_t, err error)
|
||||||
|
//sys Utime(path string, buf *Utimbuf) (err error)
|
||||||
|
|
||||||
|
//sys Getsystemcfg(label int) (n uint64)
|
||||||
|
|
||||||
|
//sys umount(target string) (err error)
|
||||||
|
func Unmount(target string, flags int) (err error) {
|
||||||
|
if flags != 0 {
|
||||||
|
// AIX doesn't have any flags for umount.
|
||||||
|
return ENOSYS
|
||||||
|
}
|
||||||
|
return umount(target)
|
||||||
|
}
|
||||||
50
vendor/golang.org/x/sys/unix/syscall_aix_ppc.go
generated
vendored
Normal file
50
vendor/golang.org/x/sys/unix/syscall_aix_ppc.go
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
// 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 aix
|
||||||
|
// +build ppc
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) = getrlimit64
|
||||||
|
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error) = setrlimit64
|
||||||
|
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = lseek64
|
||||||
|
|
||||||
|
//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
|
||||||
|
|
||||||
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
|
return Timespec{Sec: int32(sec), Nsec: int32(nsec)}
|
||||||
|
}
|
||||||
|
|
||||||
|
func setTimeval(sec, usec int64) Timeval {
|
||||||
|
return Timeval{Sec: int32(sec), Usec: int32(usec)}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (iov *Iovec) SetLen(length int) {
|
||||||
|
iov.Len = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
|
msghdr.Controllen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
|
cmsg.Len = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Fstat(fd int, stat *Stat_t) error {
|
||||||
|
return fstat(fd, stat)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Fstatat(dirfd int, path string, stat *Stat_t, flags int) error {
|
||||||
|
return fstatat(dirfd, path, stat, flags)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Lstat(path string, stat *Stat_t) error {
|
||||||
|
return lstat(path, stat)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Stat(path string, statptr *Stat_t) error {
|
||||||
|
return stat(path, statptr)
|
||||||
|
}
|
||||||
81
vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go
generated
vendored
Normal file
81
vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go
generated
vendored
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
// 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 aix
|
||||||
|
// +build ppc64
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
//sysnb Getrlimit(resource int, rlim *Rlimit) (err error)
|
||||||
|
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
||||||
|
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = lseek
|
||||||
|
|
||||||
|
//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) = mmap64
|
||||||
|
|
||||||
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
|
return Timespec{Sec: sec, Nsec: nsec}
|
||||||
|
}
|
||||||
|
|
||||||
|
func setTimeval(sec, usec int64) Timeval {
|
||||||
|
return Timeval{Sec: int64(sec), Usec: int32(usec)}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (iov *Iovec) SetLen(length int) {
|
||||||
|
iov.Len = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
|
msghdr.Controllen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
|
cmsg.Len = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
// In order to only have Timespec structure, type of Stat_t's fields
|
||||||
|
// Atim, Mtim and Ctim is changed from StTimespec to Timespec during
|
||||||
|
// ztypes generation.
|
||||||
|
// On ppc64, Timespec.Nsec is an int64 while StTimespec.Nsec is an
|
||||||
|
// int32, so the fields' value must be modified.
|
||||||
|
func fixStatTimFields(stat *Stat_t) {
|
||||||
|
stat.Atim.Nsec >>= 32
|
||||||
|
stat.Mtim.Nsec >>= 32
|
||||||
|
stat.Ctim.Nsec >>= 32
|
||||||
|
}
|
||||||
|
|
||||||
|
func Fstat(fd int, stat *Stat_t) error {
|
||||||
|
err := fstat(fd, stat)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
fixStatTimFields(stat)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Fstatat(dirfd int, path string, stat *Stat_t, flags int) error {
|
||||||
|
err := fstatat(dirfd, path, stat, flags)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
fixStatTimFields(stat)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Lstat(path string, stat *Stat_t) error {
|
||||||
|
err := lstat(path, stat)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
fixStatTimFields(stat)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Stat(path string, statptr *Stat_t) error {
|
||||||
|
err := stat(path, statptr)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
fixStatTimFields(statptr)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
12
vendor/golang.org/x/sys/unix/syscall_bsd.go
generated
vendored
12
vendor/golang.org/x/sys/unix/syscall_bsd.go
generated
vendored
@@ -63,15 +63,6 @@ func Setgroups(gids []int) (err error) {
|
|||||||
return setgroups(len(a), &a[0])
|
return setgroups(len(a), &a[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
func ReadDirent(fd int, buf []byte) (n int, err error) {
|
|
||||||
// Final argument is (basep *uintptr) and the syscall doesn't take nil.
|
|
||||||
// 64 bits should be enough. (32 bits isn't even on 386). Since the
|
|
||||||
// actual system call is getdirentries64, 64 is a good guess.
|
|
||||||
// TODO(rsc): Can we use a single global basep for all calls?
|
|
||||||
var base = (*uintptr)(unsafe.Pointer(new(uint64)))
|
|
||||||
return Getdirentries(fd, buf, base)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Wait status is 7 bits at bottom, either 0 (exited),
|
// Wait status is 7 bits at bottom, either 0 (exited),
|
||||||
// 0x7F (stopped), or a signal number that caused an exit.
|
// 0x7F (stopped), or a signal number that caused an exit.
|
||||||
// The 0x80 bit is whether there was a core dump.
|
// The 0x80 bit is whether there was a core dump.
|
||||||
@@ -86,6 +77,7 @@ const (
|
|||||||
shift = 8
|
shift = 8
|
||||||
|
|
||||||
exited = 0
|
exited = 0
|
||||||
|
killed = 9
|
||||||
stopped = 0x7F
|
stopped = 0x7F
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -112,6 +104,8 @@ func (w WaitStatus) CoreDump() bool { return w.Signaled() && w&core != 0 }
|
|||||||
|
|
||||||
func (w WaitStatus) Stopped() bool { return w&mask == stopped && syscall.Signal(w>>shift) != SIGSTOP }
|
func (w WaitStatus) Stopped() bool { return w&mask == stopped && syscall.Signal(w>>shift) != SIGSTOP }
|
||||||
|
|
||||||
|
func (w WaitStatus) Killed() bool { return w&mask == killed && syscall.Signal(w>>shift) != SIGKILL }
|
||||||
|
|
||||||
func (w WaitStatus) Continued() bool { return w&mask == stopped && syscall.Signal(w>>shift) == SIGSTOP }
|
func (w WaitStatus) Continued() bool { return w&mask == stopped && syscall.Signal(w>>shift) == SIGSTOP }
|
||||||
|
|
||||||
func (w WaitStatus) StopSignal() syscall.Signal {
|
func (w WaitStatus) StopSignal() syscall.Signal {
|
||||||
|
|||||||
116
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
116
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
@@ -108,17 +108,8 @@ func getAttrList(path string, attrList attrList, attrBuf []byte, options uint) (
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
_, _, e1 := Syscall6(
|
if err := getattrlist(_p0, unsafe.Pointer(&attrList), unsafe.Pointer(&attrBuf[0]), uintptr(len(attrBuf)), int(options)); err != nil {
|
||||||
SYS_GETATTRLIST,
|
return nil, err
|
||||||
uintptr(unsafe.Pointer(_p0)),
|
|
||||||
uintptr(unsafe.Pointer(&attrList)),
|
|
||||||
uintptr(unsafe.Pointer(&attrBuf[0])),
|
|
||||||
uintptr(len(attrBuf)),
|
|
||||||
uintptr(options),
|
|
||||||
0,
|
|
||||||
)
|
|
||||||
if e1 != 0 {
|
|
||||||
return nil, e1
|
|
||||||
}
|
}
|
||||||
size := *(*uint32)(unsafe.Pointer(&attrBuf[0]))
|
size := *(*uint32)(unsafe.Pointer(&attrBuf[0]))
|
||||||
|
|
||||||
@@ -151,6 +142,25 @@ func getAttrList(path string, attrList attrList, attrBuf []byte, options uint) (
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error)
|
||||||
|
|
||||||
|
func SysctlClockinfo(name string) (*Clockinfo, error) {
|
||||||
|
mib, err := sysctlmib(name)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
n := uintptr(SizeofClockinfo)
|
||||||
|
var ci Clockinfo
|
||||||
|
if err := sysctl(mib, (*byte)(unsafe.Pointer(&ci)), &n, nil, 0); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if n != SizeofClockinfo {
|
||||||
|
return nil, EIO
|
||||||
|
}
|
||||||
|
return &ci, nil
|
||||||
|
}
|
||||||
|
|
||||||
//sysnb pipe() (r int, w int, err error)
|
//sysnb pipe() (r int, w int, err error)
|
||||||
|
|
||||||
func Pipe(p []int) (err error) {
|
func Pipe(p []int) (err error) {
|
||||||
@@ -168,12 +178,7 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
|||||||
_p0 = unsafe.Pointer(&buf[0])
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
|
bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_GETFSSTAT64, uintptr(_p0), bufsize, uintptr(flags))
|
return getfsstat(_p0, bufsize, flags)
|
||||||
n = int(r0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = e1
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func xattrPointer(dest []byte) *byte {
|
func xattrPointer(dest []byte) *byte {
|
||||||
@@ -199,7 +204,13 @@ func Lgetxattr(link string, attr string, dest []byte) (sz int, err error) {
|
|||||||
return getxattr(link, attr, xattrPointer(dest), len(dest), 0, XATTR_NOFOLLOW)
|
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)
|
//sys fgetxattr(fd int, attr string, dest *byte, size int, position uint32, options int) (sz int, err error)
|
||||||
|
|
||||||
|
func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
|
||||||
|
return fgetxattr(fd, attr, xattrPointer(dest), len(dest), 0, 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
//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) {
|
func Setxattr(path string, attr string, data []byte, flags int) (err error) {
|
||||||
// The parameters for the OS X implementation vary slightly compared to the
|
// The parameters for the OS X implementation vary slightly compared to the
|
||||||
@@ -235,7 +246,13 @@ func Lsetxattr(link string, attr string, data []byte, flags int) (err error) {
|
|||||||
return setxattr(link, attr, xattrPointer(data), len(data), 0, flags|XATTR_NOFOLLOW)
|
return setxattr(link, attr, xattrPointer(data), len(data), 0, flags|XATTR_NOFOLLOW)
|
||||||
}
|
}
|
||||||
|
|
||||||
//sys removexattr(path string, attr string, options int) (err error)
|
//sys fsetxattr(fd int, attr string, data *byte, size int, position uint32, options int) (err error)
|
||||||
|
|
||||||
|
func Fsetxattr(fd int, attr string, data []byte, flags int) (err error) {
|
||||||
|
return fsetxattr(fd, attr, xattrPointer(data), len(data), 0, 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys removexattr(path string, attr string, options int) (err error)
|
||||||
|
|
||||||
func Removexattr(path string, attr string) (err error) {
|
func Removexattr(path string, attr string) (err error) {
|
||||||
// We wrap around and explicitly zero out the options provided to the OS X
|
// We wrap around and explicitly zero out the options provided to the OS X
|
||||||
@@ -248,6 +265,12 @@ func Lremovexattr(link string, attr string) (err error) {
|
|||||||
return removexattr(link, attr, XATTR_NOFOLLOW)
|
return removexattr(link, attr, XATTR_NOFOLLOW)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys fremovexattr(fd int, attr string, options int) (err error)
|
||||||
|
|
||||||
|
func Fremovexattr(fd int, attr string) (err error) {
|
||||||
|
return fremovexattr(fd, attr, 0)
|
||||||
|
}
|
||||||
|
|
||||||
//sys listxattr(path string, dest *byte, size int, options int) (sz int, err error)
|
//sys listxattr(path string, dest *byte, size int, options int) (sz int, err error)
|
||||||
|
|
||||||
func Listxattr(path string, dest []byte) (sz int, err error) {
|
func Listxattr(path string, dest []byte) (sz int, err error) {
|
||||||
@@ -258,6 +281,12 @@ func Llistxattr(link string, dest []byte) (sz int, err error) {
|
|||||||
return listxattr(link, xattrPointer(dest), len(dest), XATTR_NOFOLLOW)
|
return listxattr(link, xattrPointer(dest), len(dest), XATTR_NOFOLLOW)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys flistxattr(fd int, dest *byte, size int, options int) (sz int, err error)
|
||||||
|
|
||||||
|
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
||||||
|
return flistxattr(fd, xattrPointer(dest), len(dest), 0)
|
||||||
|
}
|
||||||
|
|
||||||
func setattrlistTimes(path string, times []Timespec, flags int) error {
|
func setattrlistTimes(path string, times []Timespec, flags int) error {
|
||||||
_p0, err := BytePtrFromString(path)
|
_p0, err := BytePtrFromString(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -274,21 +303,16 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
|
|||||||
if flags&AT_SYMLINK_NOFOLLOW != 0 {
|
if flags&AT_SYMLINK_NOFOLLOW != 0 {
|
||||||
options |= FSOPT_NOFOLLOW
|
options |= FSOPT_NOFOLLOW
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall6(
|
return setattrlist(
|
||||||
SYS_SETATTRLIST,
|
_p0,
|
||||||
uintptr(unsafe.Pointer(_p0)),
|
unsafe.Pointer(&attrList),
|
||||||
uintptr(unsafe.Pointer(&attrList)),
|
unsafe.Pointer(&attributes),
|
||||||
uintptr(unsafe.Pointer(&attributes)),
|
unsafe.Sizeof(attributes),
|
||||||
uintptr(unsafe.Sizeof(attributes)),
|
options)
|
||||||
uintptr(options),
|
|
||||||
0,
|
|
||||||
)
|
|
||||||
if e1 != 0 {
|
|
||||||
return e1
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error)
|
||||||
|
|
||||||
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) error {
|
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) error {
|
||||||
// Darwin doesn't support SYS_UTIMENSAT
|
// Darwin doesn't support SYS_UTIMENSAT
|
||||||
return ENOSYS
|
return ENOSYS
|
||||||
@@ -313,11 +337,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
|
|||||||
return ioctl(fd, req, uintptr(value))
|
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)))
|
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)))
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -387,6 +411,18 @@ func Uname(uname *Utsname) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||||
|
if raceenabled {
|
||||||
|
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
||||||
|
}
|
||||||
|
var length = int64(count)
|
||||||
|
err = sendfile(infd, outfd, *offset, &length, nil, 0)
|
||||||
|
written = int(length)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Exposed directly
|
* Exposed directly
|
||||||
*/
|
*/
|
||||||
@@ -397,6 +433,7 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Chmod(path string, mode uint32) (err error)
|
//sys Chmod(path string, mode uint32) (err error)
|
||||||
//sys Chown(path string, uid int, gid int) (err error)
|
//sys Chown(path string, uid int, gid int) (err error)
|
||||||
//sys Chroot(path string) (err error)
|
//sys Chroot(path string) (err error)
|
||||||
|
//sys ClockGettime(clockid int32, time *Timespec) (err error)
|
||||||
//sys Close(fd int) (err error)
|
//sys Close(fd int) (err error)
|
||||||
//sys Dup(fd int) (nfd int, err error)
|
//sys Dup(fd int) (nfd int, err error)
|
||||||
//sys Dup2(from int, to int) (err error)
|
//sys Dup2(from int, to int) (err error)
|
||||||
@@ -411,12 +448,8 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
|
//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
|
||||||
//sys 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 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 Fsync(fd int) (err error)
|
||||||
//sys Ftruncate(fd int, length int64) (err error)
|
//sys Ftruncate(fd int, length int64) (err error)
|
||||||
//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64
|
|
||||||
//sys Getdtablesize() (size int)
|
//sys Getdtablesize() (size int)
|
||||||
//sysnb Getegid() (egid int)
|
//sysnb Getegid() (egid int)
|
||||||
//sysnb Geteuid() (uid int)
|
//sysnb Geteuid() (uid int)
|
||||||
@@ -436,7 +469,6 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Link(path string, link string) (err error)
|
//sys Link(path string, link string) (err error)
|
||||||
//sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error)
|
//sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error)
|
||||||
//sys Listen(s int, backlog int) (err error)
|
//sys Listen(s int, backlog int) (err error)
|
||||||
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
|
||||||
//sys Mkdir(path string, mode uint32) (err error)
|
//sys Mkdir(path string, mode uint32) (err error)
|
||||||
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mkfifo(path string, mode uint32) (err error)
|
//sys Mkfifo(path string, mode uint32) (err error)
|
||||||
@@ -468,8 +500,6 @@ func Uname(uname *Utsname) error {
|
|||||||
//sysnb Setsid() (pid int, err error)
|
//sysnb Setsid() (pid int, err error)
|
||||||
//sysnb Settimeofday(tp *Timeval) (err error)
|
//sysnb Settimeofday(tp *Timeval) (err error)
|
||||||
//sysnb Setuid(uid int) (err error)
|
//sysnb Setuid(uid int) (err error)
|
||||||
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
|
||||||
//sys Statfs(path string, stat *Statfs_t) (err error) = SYS_STATFS64
|
|
||||||
//sys Symlink(path string, link string) (err error)
|
//sys Symlink(path string, link string) (err error)
|
||||||
//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error)
|
//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Sync() (err error)
|
//sys Sync() (err error)
|
||||||
@@ -529,10 +559,6 @@ func Uname(uname *Utsname) error {
|
|||||||
// Watchevent
|
// Watchevent
|
||||||
// Waitevent
|
// Waitevent
|
||||||
// Modwatch
|
// Modwatch
|
||||||
// Fgetxattr
|
|
||||||
// Fsetxattr
|
|
||||||
// Fremovexattr
|
|
||||||
// Flistxattr
|
|
||||||
// Fsctl
|
// Fsctl
|
||||||
// Initgroups
|
// Initgroups
|
||||||
// Posix_spawn
|
// Posix_spawn
|
||||||
|
|||||||
23
vendor/golang.org/x/sys/unix/syscall_darwin_386.go
generated
vendored
23
vendor/golang.org/x/sys/unix/syscall_darwin_386.go
generated
vendored
@@ -8,7 +8,6 @@ package unix
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func setTimespec(sec, nsec int64) Timespec {
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
@@ -48,21 +47,17 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
|||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
|
||||||
var length = uint64(count)
|
|
||||||
|
|
||||||
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(*offset>>32), uintptr(unsafe.Pointer(&length)), 0, 0, 0, 0)
|
|
||||||
|
|
||||||
written = int(length)
|
|
||||||
|
|
||||||
if e1 != 0 {
|
|
||||||
err = e1
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
||||||
|
|
||||||
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
||||||
// of darwin/386 the syscall is called sysctl instead of __sysctl.
|
// of darwin/386 the syscall is called sysctl instead of __sysctl.
|
||||||
const SYS___SYSCTL = SYS_SYSCTL
|
const SYS___SYSCTL = SYS_SYSCTL
|
||||||
|
|
||||||
|
//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 Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64
|
||||||
|
//sys getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT64
|
||||||
|
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
||||||
|
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
||||||
|
//sys Statfs(path string, stat *Statfs_t) (err error) = SYS_STATFS64
|
||||||
|
|||||||
23
vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go
generated
vendored
23
vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go
generated
vendored
@@ -8,7 +8,6 @@ package unix
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func setTimespec(sec, nsec int64) Timespec {
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
@@ -48,21 +47,17 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
|||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
|
||||||
var length = uint64(count)
|
|
||||||
|
|
||||||
_, _, e1 := Syscall6(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(unsafe.Pointer(&length)), 0, 0)
|
|
||||||
|
|
||||||
written = int(length)
|
|
||||||
|
|
||||||
if e1 != 0 {
|
|
||||||
err = e1
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
||||||
|
|
||||||
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
||||||
// of darwin/amd64 the syscall is called sysctl instead of __sysctl.
|
// of darwin/amd64 the syscall is called sysctl instead of __sysctl.
|
||||||
const SYS___SYSCTL = SYS_SYSCTL
|
const SYS___SYSCTL = SYS_SYSCTL
|
||||||
|
|
||||||
|
//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 Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64
|
||||||
|
//sys getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT64
|
||||||
|
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
||||||
|
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
||||||
|
//sys Statfs(path string, stat *Statfs_t) (err error) = SYS_STATFS64
|
||||||
|
|||||||
26
vendor/golang.org/x/sys/unix/syscall_darwin_arm.go
generated
vendored
26
vendor/golang.org/x/sys/unix/syscall_darwin_arm.go
generated
vendored
@@ -6,7 +6,6 @@ package unix
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func setTimespec(sec, nsec int64) Timespec {
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
@@ -46,21 +45,20 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
|||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
|
||||||
var length = uint64(count)
|
|
||||||
|
|
||||||
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(*offset>>32), uintptr(unsafe.Pointer(&length)), 0, 0, 0, 0)
|
|
||||||
|
|
||||||
written = int(length)
|
|
||||||
|
|
||||||
if e1 != 0 {
|
|
||||||
err = e1
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) // sic
|
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) // sic
|
||||||
|
|
||||||
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
||||||
// of darwin/arm the syscall is called sysctl instead of __sysctl.
|
// of darwin/arm the syscall is called sysctl instead of __sysctl.
|
||||||
const SYS___SYSCTL = SYS_SYSCTL
|
const SYS___SYSCTL = SYS_SYSCTL
|
||||||
|
|
||||||
|
//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 getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT
|
||||||
|
//sys Lstat(path string, stat *Stat_t) (err error)
|
||||||
|
//sys Stat(path string, stat *Stat_t) (err error)
|
||||||
|
//sys Statfs(path string, stat *Statfs_t) (err error)
|
||||||
|
|
||||||
|
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
|
return 0, ENOSYS
|
||||||
|
}
|
||||||
|
|||||||
26
vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go
generated
vendored
26
vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go
generated
vendored
@@ -8,7 +8,6 @@ package unix
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func setTimespec(sec, nsec int64) Timespec {
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
@@ -48,21 +47,20 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
|||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
|
||||||
var length = uint64(count)
|
|
||||||
|
|
||||||
_, _, e1 := Syscall6(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(unsafe.Pointer(&length)), 0, 0)
|
|
||||||
|
|
||||||
written = int(length)
|
|
||||||
|
|
||||||
if e1 != 0 {
|
|
||||||
err = e1
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) // sic
|
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) // sic
|
||||||
|
|
||||||
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
||||||
// of darwin/arm64 the syscall is called sysctl instead of __sysctl.
|
// of darwin/arm64 the syscall is called sysctl instead of __sysctl.
|
||||||
const SYS___SYSCTL = SYS_SYSCTL
|
const SYS___SYSCTL = SYS_SYSCTL
|
||||||
|
|
||||||
|
//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 getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT
|
||||||
|
//sys Lstat(path string, stat *Stat_t) (err error)
|
||||||
|
//sys Stat(path string, stat *Stat_t) (err error)
|
||||||
|
//sys Statfs(path string, stat *Statfs_t) (err error)
|
||||||
|
|
||||||
|
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
|
return 0, ENOSYS
|
||||||
|
}
|
||||||
|
|||||||
31
vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go
generated
vendored
Normal file
31
vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
// 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,go1.12
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import "unsafe"
|
||||||
|
|
||||||
|
// Implemented in the runtime package (runtime/sys_darwin.go)
|
||||||
|
func syscall_syscall(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
|
||||||
|
func syscall_syscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
|
||||||
|
func syscall_syscall6X(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
|
||||||
|
func syscall_syscall9(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno) // 32-bit only
|
||||||
|
func syscall_rawSyscall(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
|
||||||
|
func syscall_rawSyscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
|
||||||
|
|
||||||
|
//go:linkname syscall_syscall syscall.syscall
|
||||||
|
//go:linkname syscall_syscall6 syscall.syscall6
|
||||||
|
//go:linkname syscall_syscall6X syscall.syscall6X
|
||||||
|
//go:linkname syscall_syscall9 syscall.syscall9
|
||||||
|
//go:linkname syscall_rawSyscall syscall.rawSyscall
|
||||||
|
//go:linkname syscall_rawSyscall6 syscall.rawSyscall6
|
||||||
|
|
||||||
|
// Find the entry point for f. See comments in runtime/proc.go for the
|
||||||
|
// function of the same name.
|
||||||
|
//go:nosplit
|
||||||
|
func funcPC(f func()) uintptr {
|
||||||
|
return **(**uintptr)(unsafe.Pointer(&f))
|
||||||
|
}
|
||||||
21
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
21
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
@@ -143,11 +143,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
|
|||||||
return ioctl(fd, req, uintptr(value))
|
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)))
|
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)))
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -234,6 +234,13 @@ func Uname(uname *Utsname) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||||
|
if raceenabled {
|
||||||
|
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
||||||
|
}
|
||||||
|
return sendfile(outfd, infd, offset, count)
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Exposed directly
|
* Exposed directly
|
||||||
*/
|
*/
|
||||||
@@ -248,11 +255,13 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Dup(fd int) (nfd int, err error)
|
//sys Dup(fd int) (nfd int, err error)
|
||||||
//sys Dup2(from int, to int) (err error)
|
//sys Dup2(from int, to int) (err error)
|
||||||
//sys Exit(code int)
|
//sys Exit(code int)
|
||||||
|
//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||||
//sys Fchdir(fd int) (err error)
|
//sys Fchdir(fd int) (err error)
|
||||||
//sys Fchflags(fd int, flags int) (err error)
|
//sys Fchflags(fd int, flags int) (err error)
|
||||||
//sys Fchmod(fd int, mode uint32) (err error)
|
//sys Fchmod(fd int, mode uint32) (err error)
|
||||||
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||||
//sys Fchown(fd int, uid int, gid 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 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 Fpathconf(fd int, name int) (val int, err error)
|
||||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||||
@@ -260,6 +269,7 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Fstatfs(fd int, stat *Statfs_t) (err error)
|
//sys Fstatfs(fd int, stat *Statfs_t) (err error)
|
||||||
//sys Fsync(fd int) (err error)
|
//sys Fsync(fd int) (err error)
|
||||||
//sys Ftruncate(fd int, length int64) (err error)
|
//sys Ftruncate(fd int, length int64) (err error)
|
||||||
|
//sys Getdents(fd int, buf []byte) (n int, err error)
|
||||||
//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error)
|
//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error)
|
||||||
//sys Getdtablesize() (size int)
|
//sys Getdtablesize() (size int)
|
||||||
//sysnb Getegid() (egid int)
|
//sysnb Getegid() (egid int)
|
||||||
@@ -280,17 +290,22 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Kqueue() (fd int, err error)
|
//sys Kqueue() (fd int, err error)
|
||||||
//sys Lchown(path string, uid int, gid int) (err error)
|
//sys Lchown(path string, uid int, gid int) (err error)
|
||||||
//sys Link(path string, link string) (err error)
|
//sys Link(path string, link string) (err error)
|
||||||
|
//sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error)
|
||||||
//sys Listen(s int, backlog int) (err error)
|
//sys Listen(s int, backlog int) (err error)
|
||||||
//sys Lstat(path string, stat *Stat_t) (err error)
|
//sys Lstat(path string, stat *Stat_t) (err error)
|
||||||
//sys Mkdir(path string, mode uint32) (err error)
|
//sys Mkdir(path string, mode uint32) (err error)
|
||||||
|
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mkfifo(path string, mode uint32) (err error)
|
//sys Mkfifo(path string, mode uint32) (err error)
|
||||||
//sys Mknod(path string, mode uint32, dev int) (err error)
|
//sys Mknod(path string, mode uint32, dev int) (err error)
|
||||||
|
//sys Mknodat(fd int, path string, mode uint32, dev int) (err error)
|
||||||
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
||||||
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
||||||
|
//sys Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error)
|
||||||
//sys Pathconf(path string, name int) (val int, err error)
|
//sys Pathconf(path string, name int) (val int, err error)
|
||||||
//sys read(fd int, p []byte) (n int, err error)
|
//sys read(fd int, p []byte) (n int, err error)
|
||||||
//sys Readlink(path string, buf []byte) (n int, err error)
|
//sys Readlink(path string, buf []byte) (n int, err error)
|
||||||
//sys Rename(from string, to string) (err error)
|
//sys Rename(from string, to string) (err error)
|
||||||
|
//sys Renameat(fromfd int, from string, tofd int, to string) (err error)
|
||||||
//sys Revoke(path string) (err error)
|
//sys Revoke(path string) (err error)
|
||||||
//sys Rmdir(path string) (err error)
|
//sys Rmdir(path string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
||||||
@@ -312,11 +327,13 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Stat(path string, stat *Stat_t) (err error)
|
//sys Stat(path string, stat *Stat_t) (err error)
|
||||||
//sys Statfs(path string, stat *Statfs_t) (err error)
|
//sys Statfs(path string, stat *Statfs_t) (err error)
|
||||||
//sys Symlink(path string, link string) (err error)
|
//sys Symlink(path string, link string) (err error)
|
||||||
|
//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Sync() (err error)
|
//sys Sync() (err error)
|
||||||
//sys Truncate(path string, length int64) (err error)
|
//sys Truncate(path string, length int64) (err error)
|
||||||
//sys Umask(newmask int) (oldmask int)
|
//sys Umask(newmask int) (oldmask int)
|
||||||
//sys Undelete(path string) (err error)
|
//sys Undelete(path string) (err error)
|
||||||
//sys Unlink(path string) (err error)
|
//sys Unlink(path string) (err error)
|
||||||
|
//sys Unlinkat(dirfd int, path string, flags int) (err error)
|
||||||
//sys Unmount(path string, flags int) (err error)
|
//sys Unmount(path string, flags int) (err error)
|
||||||
//sys write(fd int, p []byte) (n int, err error)
|
//sys write(fd int, p []byte) (n int, err error)
|
||||||
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
|
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
|
||||||
|
|||||||
642
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
642
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
@@ -13,10 +13,34 @@
|
|||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
"sync"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
SYS_FSTAT_FREEBSD12 = 551 // { int fstat(int fd, _Out_ struct stat *sb); }
|
||||||
|
SYS_FSTATAT_FREEBSD12 = 552 // { int fstatat(int fd, _In_z_ char *path, \
|
||||||
|
SYS_GETDIRENTRIES_FREEBSD12 = 554 // { ssize_t getdirentries(int fd, \
|
||||||
|
SYS_STATFS_FREEBSD12 = 555 // { int statfs(_In_z_ char *path, \
|
||||||
|
SYS_FSTATFS_FREEBSD12 = 556 // { int fstatfs(int fd, \
|
||||||
|
SYS_GETFSSTAT_FREEBSD12 = 557 // { int getfsstat( \
|
||||||
|
SYS_MKNODAT_FREEBSD12 = 559 // { int mknodat(int fd, _In_z_ char *path, \
|
||||||
|
)
|
||||||
|
|
||||||
|
// See https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/versions.html.
|
||||||
|
var (
|
||||||
|
osreldateOnce sync.Once
|
||||||
|
osreldate uint32
|
||||||
|
)
|
||||||
|
|
||||||
|
// INO64_FIRST from /usr/src/lib/libc/sys/compat-ino64.h
|
||||||
|
const _ino64First = 1200031
|
||||||
|
|
||||||
|
func supportsABI(ver uint32) bool {
|
||||||
|
osreldateOnce.Do(func() { osreldate, _ = SysctlUint32("kern.osreldate") })
|
||||||
|
return osreldate >= ver
|
||||||
|
}
|
||||||
|
|
||||||
// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
|
// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
|
||||||
type SockaddrDatalink struct {
|
type SockaddrDatalink struct {
|
||||||
Len uint8
|
Len uint8
|
||||||
@@ -58,14 +82,21 @@ func nametomib(name string) (mib []_C_int, err error) {
|
|||||||
return buf[0 : n/siz], nil
|
return buf[0 : n/siz], nil
|
||||||
}
|
}
|
||||||
|
|
||||||
//sysnb pipe() (r int, w int, err error)
|
|
||||||
|
|
||||||
func Pipe(p []int) (err error) {
|
func Pipe(p []int) (err error) {
|
||||||
|
return Pipe2(p, 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sysnb pipe2(p *[2]_C_int, flags int) (err error)
|
||||||
|
|
||||||
|
func Pipe2(p []int, flags int) error {
|
||||||
if len(p) != 2 {
|
if len(p) != 2 {
|
||||||
return EINVAL
|
return EINVAL
|
||||||
}
|
}
|
||||||
p[0], p[1], err = pipe()
|
var pp [2]_C_int
|
||||||
return
|
err := pipe2(&pp, flags)
|
||||||
|
p[0] = int(pp[0])
|
||||||
|
p[1] = int(pp[1])
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error) {
|
func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error) {
|
||||||
@@ -115,17 +146,39 @@ func Getwd() (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var (
|
||||||
var bufsize uintptr
|
_p0 unsafe.Pointer
|
||||||
|
bufsize uintptr
|
||||||
|
oldBuf []statfs_freebsd11_t
|
||||||
|
needsConvert bool
|
||||||
|
)
|
||||||
|
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
_p0 = unsafe.Pointer(&buf[0])
|
if supportsABI(_ino64First) {
|
||||||
bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
|
||||||
|
} else {
|
||||||
|
n := len(buf)
|
||||||
|
oldBuf = make([]statfs_freebsd11_t, n)
|
||||||
|
_p0 = unsafe.Pointer(&oldBuf[0])
|
||||||
|
bufsize = unsafe.Sizeof(statfs_freebsd11_t{}) * uintptr(n)
|
||||||
|
needsConvert = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags))
|
var sysno uintptr = SYS_GETFSSTAT
|
||||||
|
if supportsABI(_ino64First) {
|
||||||
|
sysno = SYS_GETFSSTAT_FREEBSD12
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(sysno, uintptr(_p0), bufsize, uintptr(flags))
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = e1
|
err = e1
|
||||||
}
|
}
|
||||||
|
if e1 == 0 && needsConvert {
|
||||||
|
for i := range oldBuf {
|
||||||
|
buf[i].convertFrom(&oldBuf[i])
|
||||||
|
}
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -134,225 +187,6 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
|
|||||||
return ENOSYS
|
return ENOSYS
|
||||||
}
|
}
|
||||||
|
|
||||||
// Derive extattr namespace and attribute name
|
|
||||||
|
|
||||||
func xattrnamespace(fullattr string) (ns int, attr string, err error) {
|
|
||||||
s := strings.IndexByte(fullattr, '.')
|
|
||||||
if s == -1 {
|
|
||||||
return -1, "", ENOATTR
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace := fullattr[0:s]
|
|
||||||
attr = fullattr[s+1:]
|
|
||||||
|
|
||||||
switch namespace {
|
|
||||||
case "user":
|
|
||||||
return EXTATTR_NAMESPACE_USER, attr, nil
|
|
||||||
case "system":
|
|
||||||
return EXTATTR_NAMESPACE_SYSTEM, attr, nil
|
|
||||||
default:
|
|
||||||
return -1, "", ENOATTR
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func initxattrdest(dest []byte, idx int) (d unsafe.Pointer) {
|
|
||||||
if len(dest) > idx {
|
|
||||||
return unsafe.Pointer(&dest[idx])
|
|
||||||
} else {
|
|
||||||
return unsafe.Pointer(_zero)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// FreeBSD implements its own syscalls to handle extended attributes
|
|
||||||
|
|
||||||
func Getxattr(file string, attr string, dest []byte) (sz int, err error) {
|
|
||||||
d := initxattrdest(dest, 0)
|
|
||||||
destsize := len(dest)
|
|
||||||
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
|
||||||
if err != nil {
|
|
||||||
return -1, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return ExtattrGetFile(file, nsid, a, uintptr(d), destsize)
|
|
||||||
}
|
|
||||||
|
|
||||||
func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
|
|
||||||
d := initxattrdest(dest, 0)
|
|
||||||
destsize := len(dest)
|
|
||||||
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
|
||||||
if err != nil {
|
|
||||||
return -1, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return ExtattrGetFd(fd, nsid, a, uintptr(d), destsize)
|
|
||||||
}
|
|
||||||
|
|
||||||
func Lgetxattr(link string, attr string, dest []byte) (sz int, err error) {
|
|
||||||
d := initxattrdest(dest, 0)
|
|
||||||
destsize := len(dest)
|
|
||||||
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
|
||||||
if err != nil {
|
|
||||||
return -1, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return ExtattrGetLink(link, nsid, a, uintptr(d), destsize)
|
|
||||||
}
|
|
||||||
|
|
||||||
// flags are unused on FreeBSD
|
|
||||||
|
|
||||||
func Fsetxattr(fd int, attr string, data []byte, flags int) (err error) {
|
|
||||||
d := unsafe.Pointer(&data[0])
|
|
||||||
datasiz := len(data)
|
|
||||||
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
_, err = ExtattrSetFd(fd, nsid, a, uintptr(d), datasiz)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func Setxattr(file string, attr string, data []byte, flags int) (err error) {
|
|
||||||
d := unsafe.Pointer(&data[0])
|
|
||||||
datasiz := len(data)
|
|
||||||
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
_, err = ExtattrSetFile(file, nsid, a, uintptr(d), datasiz)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func Lsetxattr(link string, attr string, data []byte, flags int) (err error) {
|
|
||||||
d := unsafe.Pointer(&data[0])
|
|
||||||
datasiz := len(data)
|
|
||||||
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
_, err = ExtattrSetLink(link, nsid, a, uintptr(d), datasiz)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func Removexattr(file string, attr string) (err error) {
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
err = ExtattrDeleteFile(file, nsid, a)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func Fremovexattr(fd int, attr string) (err error) {
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
err = ExtattrDeleteFd(fd, nsid, a)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func Lremovexattr(link string, attr string) (err error) {
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
err = ExtattrDeleteLink(link, nsid, a)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func Listxattr(file string, dest []byte) (sz int, err error) {
|
|
||||||
d := initxattrdest(dest, 0)
|
|
||||||
destsiz := len(dest)
|
|
||||||
|
|
||||||
// FreeBSD won't allow you to list xattrs from multiple namespaces
|
|
||||||
s := 0
|
|
||||||
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
|
||||||
stmp, e := ExtattrListFile(file, nsid, uintptr(d), destsiz)
|
|
||||||
|
|
||||||
/* Errors accessing system attrs are ignored so that
|
|
||||||
* we can implement the Linux-like behavior of omitting errors that
|
|
||||||
* we don't have read permissions on
|
|
||||||
*
|
|
||||||
* Linux will still error if we ask for user attributes on a file that
|
|
||||||
* we don't have read permissions on, so don't ignore those errors
|
|
||||||
*/
|
|
||||||
if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
|
||||||
continue
|
|
||||||
} else if e != nil {
|
|
||||||
return s, e
|
|
||||||
}
|
|
||||||
|
|
||||||
s += stmp
|
|
||||||
destsiz -= s
|
|
||||||
if destsiz < 0 {
|
|
||||||
destsiz = 0
|
|
||||||
}
|
|
||||||
d = initxattrdest(dest, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
return s, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
|
||||||
d := initxattrdest(dest, 0)
|
|
||||||
destsiz := len(dest)
|
|
||||||
|
|
||||||
s := 0
|
|
||||||
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
|
||||||
stmp, e := ExtattrListFd(fd, nsid, uintptr(d), destsiz)
|
|
||||||
if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
|
||||||
continue
|
|
||||||
} else if e != nil {
|
|
||||||
return s, e
|
|
||||||
}
|
|
||||||
|
|
||||||
s += stmp
|
|
||||||
destsiz -= s
|
|
||||||
if destsiz < 0 {
|
|
||||||
destsiz = 0
|
|
||||||
}
|
|
||||||
d = initxattrdest(dest, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
return s, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func Llistxattr(link string, dest []byte) (sz int, err error) {
|
|
||||||
d := initxattrdest(dest, 0)
|
|
||||||
destsiz := len(dest)
|
|
||||||
|
|
||||||
s := 0
|
|
||||||
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
|
||||||
stmp, e := ExtattrListLink(link, nsid, uintptr(d), destsiz)
|
|
||||||
if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
|
||||||
continue
|
|
||||||
} else if e != nil {
|
|
||||||
return s, e
|
|
||||||
}
|
|
||||||
|
|
||||||
s += stmp
|
|
||||||
destsiz -= s
|
|
||||||
if destsiz < 0 {
|
|
||||||
destsiz = 0
|
|
||||||
}
|
|
||||||
d = initxattrdest(dest, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
return s, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||||
|
|
||||||
// ioctl itself should not be exposed directly, but additional get/set
|
// ioctl itself should not be exposed directly, but additional get/set
|
||||||
@@ -364,11 +198,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
|
|||||||
return ioctl(fd, req, uintptr(value))
|
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)))
|
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)))
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -438,6 +272,319 @@ func Uname(uname *Utsname) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Stat(path string, st *Stat_t) (err error) {
|
||||||
|
var oldStat stat_freebsd11_t
|
||||||
|
if supportsABI(_ino64First) {
|
||||||
|
return fstatat_freebsd12(AT_FDCWD, path, st, 0)
|
||||||
|
}
|
||||||
|
err = stat(path, &oldStat)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
st.convertFrom(&oldStat)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Lstat(path string, st *Stat_t) (err error) {
|
||||||
|
var oldStat stat_freebsd11_t
|
||||||
|
if supportsABI(_ino64First) {
|
||||||
|
return fstatat_freebsd12(AT_FDCWD, path, st, AT_SYMLINK_NOFOLLOW)
|
||||||
|
}
|
||||||
|
err = lstat(path, &oldStat)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
st.convertFrom(&oldStat)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Fstat(fd int, st *Stat_t) (err error) {
|
||||||
|
var oldStat stat_freebsd11_t
|
||||||
|
if supportsABI(_ino64First) {
|
||||||
|
return fstat_freebsd12(fd, st)
|
||||||
|
}
|
||||||
|
err = fstat(fd, &oldStat)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
st.convertFrom(&oldStat)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Fstatat(fd int, path string, st *Stat_t, flags int) (err error) {
|
||||||
|
var oldStat stat_freebsd11_t
|
||||||
|
if supportsABI(_ino64First) {
|
||||||
|
return fstatat_freebsd12(fd, path, st, flags)
|
||||||
|
}
|
||||||
|
err = fstatat(fd, path, &oldStat, flags)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
st.convertFrom(&oldStat)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Statfs(path string, st *Statfs_t) (err error) {
|
||||||
|
var oldStatfs statfs_freebsd11_t
|
||||||
|
if supportsABI(_ino64First) {
|
||||||
|
return statfs_freebsd12(path, st)
|
||||||
|
}
|
||||||
|
err = statfs(path, &oldStatfs)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
st.convertFrom(&oldStatfs)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Fstatfs(fd int, st *Statfs_t) (err error) {
|
||||||
|
var oldStatfs statfs_freebsd11_t
|
||||||
|
if supportsABI(_ino64First) {
|
||||||
|
return fstatfs_freebsd12(fd, st)
|
||||||
|
}
|
||||||
|
err = fstatfs(fd, &oldStatfs)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
st.convertFrom(&oldStatfs)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Getdents(fd int, buf []byte) (n int, err error) {
|
||||||
|
return Getdirentries(fd, buf, nil)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
|
if supportsABI(_ino64First) {
|
||||||
|
if basep == nil || unsafe.Sizeof(*basep) == 8 {
|
||||||
|
return getdirentries_freebsd12(fd, buf, (*uint64)(unsafe.Pointer(basep)))
|
||||||
|
}
|
||||||
|
// The freebsd12 syscall needs a 64-bit base. On 32-bit machines
|
||||||
|
// we can't just use the basep passed in. See #32498.
|
||||||
|
var base uint64 = uint64(*basep)
|
||||||
|
n, err = getdirentries_freebsd12(fd, buf, &base)
|
||||||
|
*basep = uintptr(base)
|
||||||
|
if base>>32 != 0 {
|
||||||
|
// We can't stuff the base back into a uintptr, so any
|
||||||
|
// future calls would be suspect. Generate an error.
|
||||||
|
// EIO is allowed by getdirentries.
|
||||||
|
err = EIO
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// The old syscall entries are smaller than the new. Use 1/4 of the original
|
||||||
|
// buffer size rounded up to DIRBLKSIZ (see /usr/src/lib/libc/sys/getdirentries.c).
|
||||||
|
oldBufLen := roundup(len(buf)/4, _dirblksiz)
|
||||||
|
oldBuf := make([]byte, oldBufLen)
|
||||||
|
n, err = getdirentries(fd, oldBuf, basep)
|
||||||
|
if err == nil && n > 0 {
|
||||||
|
n = convertFromDirents11(buf, oldBuf[:n])
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Mknod(path string, mode uint32, dev uint64) (err error) {
|
||||||
|
var oldDev int
|
||||||
|
if supportsABI(_ino64First) {
|
||||||
|
return mknodat_freebsd12(AT_FDCWD, path, mode, dev)
|
||||||
|
}
|
||||||
|
oldDev = int(dev)
|
||||||
|
return mknod(path, mode, oldDev)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Mknodat(fd int, path string, mode uint32, dev uint64) (err error) {
|
||||||
|
var oldDev int
|
||||||
|
if supportsABI(_ino64First) {
|
||||||
|
return mknodat_freebsd12(fd, path, mode, dev)
|
||||||
|
}
|
||||||
|
oldDev = int(dev)
|
||||||
|
return mknodat(fd, path, mode, oldDev)
|
||||||
|
}
|
||||||
|
|
||||||
|
// round x to the nearest multiple of y, larger or equal to x.
|
||||||
|
//
|
||||||
|
// from /usr/include/sys/param.h Macros for counting and rounding.
|
||||||
|
// #define roundup(x, y) ((((x)+((y)-1))/(y))*(y))
|
||||||
|
func roundup(x, y int) int {
|
||||||
|
return ((x + y - 1) / y) * y
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *Stat_t) convertFrom(old *stat_freebsd11_t) {
|
||||||
|
*s = Stat_t{
|
||||||
|
Dev: uint64(old.Dev),
|
||||||
|
Ino: uint64(old.Ino),
|
||||||
|
Nlink: uint64(old.Nlink),
|
||||||
|
Mode: old.Mode,
|
||||||
|
Uid: old.Uid,
|
||||||
|
Gid: old.Gid,
|
||||||
|
Rdev: uint64(old.Rdev),
|
||||||
|
Atim: old.Atim,
|
||||||
|
Mtim: old.Mtim,
|
||||||
|
Ctim: old.Ctim,
|
||||||
|
Btim: old.Btim,
|
||||||
|
Size: old.Size,
|
||||||
|
Blocks: old.Blocks,
|
||||||
|
Blksize: old.Blksize,
|
||||||
|
Flags: old.Flags,
|
||||||
|
Gen: uint64(old.Gen),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *Statfs_t) convertFrom(old *statfs_freebsd11_t) {
|
||||||
|
*s = Statfs_t{
|
||||||
|
Version: _statfsVersion,
|
||||||
|
Type: old.Type,
|
||||||
|
Flags: old.Flags,
|
||||||
|
Bsize: old.Bsize,
|
||||||
|
Iosize: old.Iosize,
|
||||||
|
Blocks: old.Blocks,
|
||||||
|
Bfree: old.Bfree,
|
||||||
|
Bavail: old.Bavail,
|
||||||
|
Files: old.Files,
|
||||||
|
Ffree: old.Ffree,
|
||||||
|
Syncwrites: old.Syncwrites,
|
||||||
|
Asyncwrites: old.Asyncwrites,
|
||||||
|
Syncreads: old.Syncreads,
|
||||||
|
Asyncreads: old.Asyncreads,
|
||||||
|
// Spare
|
||||||
|
Namemax: old.Namemax,
|
||||||
|
Owner: old.Owner,
|
||||||
|
Fsid: old.Fsid,
|
||||||
|
// Charspare
|
||||||
|
// Fstypename
|
||||||
|
// Mntfromname
|
||||||
|
// Mntonname
|
||||||
|
}
|
||||||
|
|
||||||
|
sl := old.Fstypename[:]
|
||||||
|
n := clen(*(*[]byte)(unsafe.Pointer(&sl)))
|
||||||
|
copy(s.Fstypename[:], old.Fstypename[:n])
|
||||||
|
|
||||||
|
sl = old.Mntfromname[:]
|
||||||
|
n = clen(*(*[]byte)(unsafe.Pointer(&sl)))
|
||||||
|
copy(s.Mntfromname[:], old.Mntfromname[:n])
|
||||||
|
|
||||||
|
sl = old.Mntonname[:]
|
||||||
|
n = clen(*(*[]byte)(unsafe.Pointer(&sl)))
|
||||||
|
copy(s.Mntonname[:], old.Mntonname[:n])
|
||||||
|
}
|
||||||
|
|
||||||
|
func convertFromDirents11(buf []byte, old []byte) int {
|
||||||
|
const (
|
||||||
|
fixedSize = int(unsafe.Offsetof(Dirent{}.Name))
|
||||||
|
oldFixedSize = int(unsafe.Offsetof(dirent_freebsd11{}.Name))
|
||||||
|
)
|
||||||
|
|
||||||
|
dstPos := 0
|
||||||
|
srcPos := 0
|
||||||
|
for dstPos+fixedSize < len(buf) && srcPos+oldFixedSize < len(old) {
|
||||||
|
dstDirent := (*Dirent)(unsafe.Pointer(&buf[dstPos]))
|
||||||
|
srcDirent := (*dirent_freebsd11)(unsafe.Pointer(&old[srcPos]))
|
||||||
|
|
||||||
|
reclen := roundup(fixedSize+int(srcDirent.Namlen)+1, 8)
|
||||||
|
if dstPos+reclen > len(buf) {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
dstDirent.Fileno = uint64(srcDirent.Fileno)
|
||||||
|
dstDirent.Off = 0
|
||||||
|
dstDirent.Reclen = uint16(reclen)
|
||||||
|
dstDirent.Type = srcDirent.Type
|
||||||
|
dstDirent.Pad0 = 0
|
||||||
|
dstDirent.Namlen = uint16(srcDirent.Namlen)
|
||||||
|
dstDirent.Pad1 = 0
|
||||||
|
|
||||||
|
copy(dstDirent.Name[:], srcDirent.Name[:srcDirent.Namlen])
|
||||||
|
padding := buf[dstPos+fixedSize+int(dstDirent.Namlen) : dstPos+reclen]
|
||||||
|
for i := range padding {
|
||||||
|
padding[i] = 0
|
||||||
|
}
|
||||||
|
|
||||||
|
dstPos += int(dstDirent.Reclen)
|
||||||
|
srcPos += int(srcDirent.Reclen)
|
||||||
|
}
|
||||||
|
|
||||||
|
return dstPos
|
||||||
|
}
|
||||||
|
|
||||||
|
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||||
|
if raceenabled {
|
||||||
|
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
||||||
|
}
|
||||||
|
return sendfile(outfd, infd, offset, count)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys ptrace(request int, pid int, addr uintptr, data int) (err error)
|
||||||
|
|
||||||
|
func PtraceAttach(pid int) (err error) {
|
||||||
|
return ptrace(PTRACE_ATTACH, pid, 0, 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtraceCont(pid int, signal int) (err error) {
|
||||||
|
return ptrace(PTRACE_CONT, pid, 1, signal)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtraceDetach(pid int) (err error) {
|
||||||
|
return ptrace(PTRACE_DETACH, pid, 1, 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtraceGetFpRegs(pid int, fpregsout *FpReg) (err error) {
|
||||||
|
return ptrace(PTRACE_GETFPREGS, pid, uintptr(unsafe.Pointer(fpregsout)), 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtraceGetFsBase(pid int, fsbase *int64) (err error) {
|
||||||
|
return ptrace(PTRACE_GETFSBASE, pid, uintptr(unsafe.Pointer(fsbase)), 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtraceGetRegs(pid int, regsout *Reg) (err error) {
|
||||||
|
return ptrace(PTRACE_GETREGS, pid, uintptr(unsafe.Pointer(regsout)), 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
||||||
|
ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint(countin)}
|
||||||
|
err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
||||||
|
return int(ioDesc.Len), err
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtraceLwpEvents(pid int, enable int) (err error) {
|
||||||
|
return ptrace(PTRACE_LWPEVENTS, pid, 0, enable)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtraceLwpInfo(pid int, info uintptr) (err error) {
|
||||||
|
return ptrace(PTRACE_LWPINFO, pid, info, int(unsafe.Sizeof(PtraceLwpInfoStruct{})))
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtracePeekData(pid int, addr uintptr, out []byte) (count int, err error) {
|
||||||
|
return PtraceIO(PIOD_READ_D, pid, addr, out, SizeofLong)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtracePeekText(pid int, addr uintptr, out []byte) (count int, err error) {
|
||||||
|
return PtraceIO(PIOD_READ_I, pid, addr, out, SizeofLong)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtracePokeData(pid int, addr uintptr, data []byte) (count int, err error) {
|
||||||
|
return PtraceIO(PIOD_WRITE_D, pid, addr, data, SizeofLong)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtracePokeText(pid int, addr uintptr, data []byte) (count int, err error) {
|
||||||
|
return PtraceIO(PIOD_WRITE_I, pid, addr, data, SizeofLong)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtraceSetRegs(pid int, regs *Reg) (err error) {
|
||||||
|
return ptrace(PTRACE_SETREGS, pid, uintptr(unsafe.Pointer(regs)), 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtraceSingleStep(pid int) (err error) {
|
||||||
|
return ptrace(PTRACE_SINGLESTEP, pid, 1, 0)
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Exposed directly
|
* Exposed directly
|
||||||
*/
|
*/
|
||||||
@@ -477,13 +624,16 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
|
//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
|
||||||
//sys 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 Fpathconf(fd int, name int) (val int, err error)
|
||||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
//sys fstat(fd int, stat *stat_freebsd11_t) (err error)
|
||||||
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
|
//sys fstat_freebsd12(fd int, stat *Stat_t) (err error)
|
||||||
//sys Fstatfs(fd int, stat *Statfs_t) (err error)
|
//sys fstatat(fd int, path string, stat *stat_freebsd11_t, flags int) (err error)
|
||||||
|
//sys fstatat_freebsd12(fd int, path string, stat *Stat_t, flags int) (err error)
|
||||||
|
//sys fstatfs(fd int, stat *statfs_freebsd11_t) (err error)
|
||||||
|
//sys fstatfs_freebsd12(fd int, stat *Statfs_t) (err error)
|
||||||
//sys Fsync(fd int) (err error)
|
//sys Fsync(fd int) (err error)
|
||||||
//sys Ftruncate(fd int, length int64) (err error)
|
//sys Ftruncate(fd int, length int64) (err error)
|
||||||
//sys Getdents(fd int, buf []byte) (n int, err error)
|
//sys getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error)
|
||||||
//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error)
|
//sys getdirentries_freebsd12(fd int, buf []byte, basep *uint64) (n int, err error)
|
||||||
//sys Getdtablesize() (size int)
|
//sys Getdtablesize() (size int)
|
||||||
//sysnb Getegid() (egid int)
|
//sysnb Getegid() (egid int)
|
||||||
//sysnb Geteuid() (uid int)
|
//sysnb Geteuid() (uid int)
|
||||||
@@ -505,11 +655,13 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Link(path string, link string) (err error)
|
//sys Link(path string, link string) (err error)
|
||||||
//sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error)
|
//sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error)
|
||||||
//sys Listen(s int, backlog int) (err error)
|
//sys Listen(s int, backlog int) (err error)
|
||||||
//sys Lstat(path string, stat *Stat_t) (err error)
|
//sys lstat(path string, stat *stat_freebsd11_t) (err error)
|
||||||
//sys Mkdir(path string, mode uint32) (err error)
|
//sys Mkdir(path string, mode uint32) (err error)
|
||||||
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mkfifo(path string, mode uint32) (err error)
|
//sys Mkfifo(path string, mode uint32) (err error)
|
||||||
//sys Mknod(path string, mode uint32, dev int) (err error)
|
//sys mknod(path string, mode uint32, dev int) (err error)
|
||||||
|
//sys mknodat(fd int, path string, mode uint32, dev int) (err error)
|
||||||
|
//sys mknodat_freebsd12(fd int, path string, mode uint32, dev uint64) (err error)
|
||||||
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
||||||
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
||||||
//sys Openat(fdat int, path string, mode int, perm uint32) (fd int, err error)
|
//sys Openat(fdat int, path string, mode int, perm uint32) (fd int, err error)
|
||||||
@@ -539,8 +691,9 @@ func Uname(uname *Utsname) error {
|
|||||||
//sysnb Setsid() (pid int, err error)
|
//sysnb Setsid() (pid int, err error)
|
||||||
//sysnb Settimeofday(tp *Timeval) (err error)
|
//sysnb Settimeofday(tp *Timeval) (err error)
|
||||||
//sysnb Setuid(uid int) (err error)
|
//sysnb Setuid(uid int) (err error)
|
||||||
//sys Stat(path string, stat *Stat_t) (err error)
|
//sys stat(path string, stat *stat_freebsd11_t) (err error)
|
||||||
//sys Statfs(path string, stat *Statfs_t) (err error)
|
//sys statfs(path string, stat *statfs_freebsd11_t) (err error)
|
||||||
|
//sys statfs_freebsd12(path string, stat *Statfs_t) (err error)
|
||||||
//sys Symlink(path string, link string) (err error)
|
//sys Symlink(path string, link string) (err error)
|
||||||
//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error)
|
//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Sync() (err error)
|
//sys Sync() (err error)
|
||||||
@@ -595,6 +748,7 @@ func Uname(uname *Utsname) error {
|
|||||||
// Kqueue_portset
|
// Kqueue_portset
|
||||||
// Getattrlist
|
// Getattrlist
|
||||||
// Setattrlist
|
// Setattrlist
|
||||||
|
// Getdents
|
||||||
// Getdirentriesattr
|
// Getdirentriesattr
|
||||||
// Searchfs
|
// Searchfs
|
||||||
// Delete
|
// Delete
|
||||||
@@ -602,14 +756,6 @@ func Uname(uname *Utsname) error {
|
|||||||
// Watchevent
|
// Watchevent
|
||||||
// Waitevent
|
// Waitevent
|
||||||
// Modwatch
|
// Modwatch
|
||||||
// Getxattr
|
|
||||||
// Fgetxattr
|
|
||||||
// Setxattr
|
|
||||||
// Fsetxattr
|
|
||||||
// Removexattr
|
|
||||||
// Fremovexattr
|
|
||||||
// Listxattr
|
|
||||||
// Flistxattr
|
|
||||||
// Fsctl
|
// Fsctl
|
||||||
// Initgroups
|
// Initgroups
|
||||||
// Posix_spawn
|
// Posix_spawn
|
||||||
|
|||||||
52
vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
generated
vendored
Normal file
52
vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
generated
vendored
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
// 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 arm64,freebsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
"syscall"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
|
return Timespec{Sec: sec, Nsec: nsec}
|
||||||
|
}
|
||||||
|
|
||||||
|
func setTimeval(sec, usec int64) Timeval {
|
||||||
|
return Timeval{Sec: sec, Usec: usec}
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetKevent(k *Kevent_t, fd, mode, flags int) {
|
||||||
|
k.Ident = uint64(fd)
|
||||||
|
k.Filter = int16(mode)
|
||||||
|
k.Flags = uint16(flags)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (iov *Iovec) SetLen(length int) {
|
||||||
|
iov.Len = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
|
msghdr.Controllen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
|
cmsg.Len = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||||
|
var writtenOut uint64 = 0
|
||||||
|
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0, 0)
|
||||||
|
|
||||||
|
written = int(writtenOut)
|
||||||
|
|
||||||
|
if e1 != 0 {
|
||||||
|
err = e1
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
||||||
399
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
399
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
@@ -12,6 +12,8 @@
|
|||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"encoding/binary"
|
||||||
|
"runtime"
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
@@ -36,6 +38,20 @@ func Creat(path string, mode uint32) (fd int, err error) {
|
|||||||
return Open(path, O_CREAT|O_WRONLY|O_TRUNC, mode)
|
return Open(path, O_CREAT|O_WRONLY|O_TRUNC, mode)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys FanotifyInit(flags uint, event_f_flags uint) (fd int, err error)
|
||||||
|
//sys fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error)
|
||||||
|
|
||||||
|
func FanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname string) (err error) {
|
||||||
|
if pathname == "" {
|
||||||
|
return fanotifyMark(fd, flags, mask, dirFd, nil)
|
||||||
|
}
|
||||||
|
p, err := BytePtrFromString(pathname)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return fanotifyMark(fd, flags, mask, dirFd, p)
|
||||||
|
}
|
||||||
|
|
||||||
//sys fchmodat(dirfd int, path string, mode uint32) (err error)
|
//sys fchmodat(dirfd int, path string, mode uint32) (err error)
|
||||||
|
|
||||||
func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
@@ -55,20 +71,35 @@ func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
|||||||
// ioctl itself should not be exposed directly, but additional get/set
|
// ioctl itself should not be exposed directly, but additional get/set
|
||||||
// functions for specific types are permissible.
|
// functions for specific types are permissible.
|
||||||
|
|
||||||
|
// IoctlSetPointerInt performs an ioctl operation which sets an
|
||||||
|
// integer value on fd, using the specified request number. The ioctl
|
||||||
|
// argument is called with a pointer to the integer value, rather than
|
||||||
|
// passing the integer value directly.
|
||||||
|
func IoctlSetPointerInt(fd int, req uint, value int) error {
|
||||||
|
v := int32(value)
|
||||||
|
return ioctl(fd, req, uintptr(unsafe.Pointer(&v)))
|
||||||
|
}
|
||||||
|
|
||||||
// IoctlSetInt performs an ioctl operation which sets an integer value
|
// IoctlSetInt performs an ioctl operation which sets an integer value
|
||||||
// on fd, using the specified request number.
|
// on fd, using the specified request number.
|
||||||
func IoctlSetInt(fd int, req uint, value int) error {
|
func IoctlSetInt(fd int, req uint, value int) error {
|
||||||
return ioctl(fd, req, uintptr(value))
|
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)))
|
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)))
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func IoctlSetRTCTime(fd int, value *RTCTime) error {
|
||||||
|
err := ioctl(fd, RTC_SET_TIME, uintptr(unsafe.Pointer(value)))
|
||||||
|
runtime.KeepAlive(value)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
// IoctlGetInt performs an ioctl operation which gets an integer value
|
// IoctlGetInt performs an ioctl operation which gets an integer value
|
||||||
// from fd, using the specified request number.
|
// from fd, using the specified request number.
|
||||||
func IoctlGetInt(fd int, req uint) (int, error) {
|
func IoctlGetInt(fd int, req uint) (int, error) {
|
||||||
@@ -77,6 +108,12 @@ func IoctlGetInt(fd int, req uint) (int, error) {
|
|||||||
return value, err
|
return value, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func IoctlGetUint32(fd int, req uint) (uint32, error) {
|
||||||
|
var value uint32
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return value, err
|
||||||
|
}
|
||||||
|
|
||||||
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
||||||
var value Winsize
|
var value Winsize
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
@@ -89,6 +126,12 @@ func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
|||||||
return &value, err
|
return &value, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func IoctlGetRTCTime(fd int) (*RTCTime, error) {
|
||||||
|
var value RTCTime
|
||||||
|
err := ioctl(fd, RTC_RD_TIME, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
//sys Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error)
|
//sys Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error)
|
||||||
|
|
||||||
func Link(oldpath string, newpath string) (err error) {
|
func Link(oldpath string, newpath string) (err error) {
|
||||||
@@ -692,6 +735,69 @@ func (sa *SockaddrVM) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
|||||||
return unsafe.Pointer(&sa.raw), SizeofSockaddrVM, nil
|
return unsafe.Pointer(&sa.raw), SizeofSockaddrVM, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type SockaddrXDP struct {
|
||||||
|
Flags uint16
|
||||||
|
Ifindex uint32
|
||||||
|
QueueID uint32
|
||||||
|
SharedUmemFD uint32
|
||||||
|
raw RawSockaddrXDP
|
||||||
|
}
|
||||||
|
|
||||||
|
func (sa *SockaddrXDP) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||||
|
sa.raw.Family = AF_XDP
|
||||||
|
sa.raw.Flags = sa.Flags
|
||||||
|
sa.raw.Ifindex = sa.Ifindex
|
||||||
|
sa.raw.Queue_id = sa.QueueID
|
||||||
|
sa.raw.Shared_umem_fd = sa.SharedUmemFD
|
||||||
|
|
||||||
|
return unsafe.Pointer(&sa.raw), SizeofSockaddrXDP, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// This constant mirrors the #define of PX_PROTO_OE in
|
||||||
|
// linux/if_pppox.h. We're defining this by hand here instead of
|
||||||
|
// autogenerating through mkerrors.sh because including
|
||||||
|
// linux/if_pppox.h causes some declaration conflicts with other
|
||||||
|
// includes (linux/if_pppox.h includes linux/in.h, which conflicts
|
||||||
|
// with netinet/in.h). Given that we only need a single zero constant
|
||||||
|
// out of that file, it's cleaner to just define it by hand here.
|
||||||
|
const px_proto_oe = 0
|
||||||
|
|
||||||
|
type SockaddrPPPoE struct {
|
||||||
|
SID uint16
|
||||||
|
Remote []byte
|
||||||
|
Dev string
|
||||||
|
raw RawSockaddrPPPoX
|
||||||
|
}
|
||||||
|
|
||||||
|
func (sa *SockaddrPPPoE) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||||
|
if len(sa.Remote) != 6 {
|
||||||
|
return nil, 0, EINVAL
|
||||||
|
}
|
||||||
|
if len(sa.Dev) > IFNAMSIZ-1 {
|
||||||
|
return nil, 0, EINVAL
|
||||||
|
}
|
||||||
|
|
||||||
|
*(*uint16)(unsafe.Pointer(&sa.raw[0])) = AF_PPPOX
|
||||||
|
// This next field is in host-endian byte order. We can't use the
|
||||||
|
// same unsafe pointer cast as above, because this value is not
|
||||||
|
// 32-bit aligned and some architectures don't allow unaligned
|
||||||
|
// access.
|
||||||
|
//
|
||||||
|
// However, the value of px_proto_oe is 0, so we can use
|
||||||
|
// encoding/binary helpers to write the bytes without worrying
|
||||||
|
// about the ordering.
|
||||||
|
binary.BigEndian.PutUint32(sa.raw[2:6], px_proto_oe)
|
||||||
|
// This field is deliberately big-endian, unlike the previous
|
||||||
|
// one. The kernel expects SID to be in network byte order.
|
||||||
|
binary.BigEndian.PutUint16(sa.raw[6:8], sa.SID)
|
||||||
|
copy(sa.raw[8:14], sa.Remote)
|
||||||
|
for i := 14; i < 14+IFNAMSIZ; i++ {
|
||||||
|
sa.raw[i] = 0
|
||||||
|
}
|
||||||
|
copy(sa.raw[14:], sa.Dev)
|
||||||
|
return unsafe.Pointer(&sa.raw), SizeofSockaddrPPPoX, nil
|
||||||
|
}
|
||||||
|
|
||||||
func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||||
switch rsa.Addr.Family {
|
switch rsa.Addr.Family {
|
||||||
case AF_NETLINK:
|
case AF_NETLINK:
|
||||||
@@ -793,6 +899,31 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
|||||||
}
|
}
|
||||||
return sa, nil
|
return sa, nil
|
||||||
}
|
}
|
||||||
|
case AF_XDP:
|
||||||
|
pp := (*RawSockaddrXDP)(unsafe.Pointer(rsa))
|
||||||
|
sa := &SockaddrXDP{
|
||||||
|
Flags: pp.Flags,
|
||||||
|
Ifindex: pp.Ifindex,
|
||||||
|
QueueID: pp.Queue_id,
|
||||||
|
SharedUmemFD: pp.Shared_umem_fd,
|
||||||
|
}
|
||||||
|
return sa, nil
|
||||||
|
case AF_PPPOX:
|
||||||
|
pp := (*RawSockaddrPPPoX)(unsafe.Pointer(rsa))
|
||||||
|
if binary.BigEndian.Uint32(pp[2:6]) != px_proto_oe {
|
||||||
|
return nil, EINVAL
|
||||||
|
}
|
||||||
|
sa := &SockaddrPPPoE{
|
||||||
|
SID: binary.BigEndian.Uint16(pp[6:8]),
|
||||||
|
Remote: pp[8:14],
|
||||||
|
}
|
||||||
|
for i := 14; i < 14+IFNAMSIZ; i++ {
|
||||||
|
if pp[i] == 0 {
|
||||||
|
sa.Dev = string(pp[14:i])
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return sa, nil
|
||||||
}
|
}
|
||||||
return nil, EAFNOSUPPORT
|
return nil, EAFNOSUPPORT
|
||||||
}
|
}
|
||||||
@@ -878,10 +1009,50 @@ func GetsockoptString(fd, level, opt int) (string, error) {
|
|||||||
return string(buf[:vallen-1]), nil
|
return string(buf[:vallen-1]), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GetsockoptTpacketStats(fd, level, opt int) (*TpacketStats, error) {
|
||||||
|
var value TpacketStats
|
||||||
|
vallen := _Socklen(SizeofTpacketStats)
|
||||||
|
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func GetsockoptTpacketStatsV3(fd, level, opt int) (*TpacketStatsV3, error) {
|
||||||
|
var value TpacketStatsV3
|
||||||
|
vallen := _Socklen(SizeofTpacketStatsV3)
|
||||||
|
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) {
|
func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) {
|
||||||
return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq))
|
return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func SetsockoptPacketMreq(fd, level, opt int, mreq *PacketMreq) error {
|
||||||
|
return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq))
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetsockoptSockFprog attaches a classic BPF or an extended BPF program to a
|
||||||
|
// socket to filter incoming packets. See 'man 7 socket' for usage information.
|
||||||
|
func SetsockoptSockFprog(fd, level, opt int, fprog *SockFprog) error {
|
||||||
|
return setsockopt(fd, level, opt, unsafe.Pointer(fprog), unsafe.Sizeof(*fprog))
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetsockoptCanRawFilter(fd, level, opt int, filter []CanFilter) error {
|
||||||
|
var p unsafe.Pointer
|
||||||
|
if len(filter) > 0 {
|
||||||
|
p = unsafe.Pointer(&filter[0])
|
||||||
|
}
|
||||||
|
return setsockopt(fd, level, opt, p, uintptr(len(filter)*SizeofCanFilter))
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetsockoptTpacketReq(fd, level, opt int, tp *TpacketReq) error {
|
||||||
|
return setsockopt(fd, level, opt, unsafe.Pointer(tp), unsafe.Sizeof(*tp))
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetsockoptTpacketReq3(fd, level, opt int, tp *TpacketReq3) error {
|
||||||
|
return setsockopt(fd, level, opt, unsafe.Pointer(tp), unsafe.Sizeof(*tp))
|
||||||
|
}
|
||||||
|
|
||||||
// Keyctl Commands (http://man7.org/linux/man-pages/man2/keyctl.2.html)
|
// Keyctl Commands (http://man7.org/linux/man-pages/man2/keyctl.2.html)
|
||||||
|
|
||||||
// KeyctlInt calls keyctl commands in which each argument is an int.
|
// KeyctlInt calls keyctl commands in which each argument is an int.
|
||||||
@@ -1095,7 +1266,7 @@ func ptracePeek(req int, pid int, addr uintptr, out []byte) (count int, err erro
|
|||||||
// The ptrace syscall differs from glibc's ptrace.
|
// The ptrace syscall differs from glibc's ptrace.
|
||||||
// Peeks returns the word in *data, not as the return value.
|
// Peeks returns the word in *data, not as the return value.
|
||||||
|
|
||||||
var buf [sizeofPtr]byte
|
var buf [SizeofPtr]byte
|
||||||
|
|
||||||
// Leading edge. PEEKTEXT/PEEKDATA don't require aligned
|
// Leading edge. PEEKTEXT/PEEKDATA don't require aligned
|
||||||
// access (PEEKUSER warns that it might), but if we don't
|
// access (PEEKUSER warns that it might), but if we don't
|
||||||
@@ -1103,12 +1274,12 @@ func ptracePeek(req int, pid int, addr uintptr, out []byte) (count int, err erro
|
|||||||
// boundary and not get the bytes leading up to the page
|
// boundary and not get the bytes leading up to the page
|
||||||
// boundary.
|
// boundary.
|
||||||
n := 0
|
n := 0
|
||||||
if addr%sizeofPtr != 0 {
|
if addr%SizeofPtr != 0 {
|
||||||
err = ptrace(req, pid, addr-addr%sizeofPtr, uintptr(unsafe.Pointer(&buf[0])))
|
err = ptrace(req, pid, addr-addr%SizeofPtr, uintptr(unsafe.Pointer(&buf[0])))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
n += copy(out, buf[addr%sizeofPtr:])
|
n += copy(out, buf[addr%SizeofPtr:])
|
||||||
out = out[n:]
|
out = out[n:]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1146,15 +1317,15 @@ func ptracePoke(pokeReq int, peekReq int, pid int, addr uintptr, data []byte) (c
|
|||||||
|
|
||||||
// Leading edge.
|
// Leading edge.
|
||||||
n := 0
|
n := 0
|
||||||
if addr%sizeofPtr != 0 {
|
if addr%SizeofPtr != 0 {
|
||||||
var buf [sizeofPtr]byte
|
var buf [SizeofPtr]byte
|
||||||
err = ptrace(peekReq, pid, addr-addr%sizeofPtr, uintptr(unsafe.Pointer(&buf[0])))
|
err = ptrace(peekReq, pid, addr-addr%SizeofPtr, uintptr(unsafe.Pointer(&buf[0])))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
n += copy(buf[addr%sizeofPtr:], data)
|
n += copy(buf[addr%SizeofPtr:], data)
|
||||||
word := *((*uintptr)(unsafe.Pointer(&buf[0])))
|
word := *((*uintptr)(unsafe.Pointer(&buf[0])))
|
||||||
err = ptrace(pokeReq, pid, addr-addr%sizeofPtr, word)
|
err = ptrace(pokeReq, pid, addr-addr%SizeofPtr, word)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
@@ -1162,19 +1333,19 @@ func ptracePoke(pokeReq int, peekReq int, pid int, addr uintptr, data []byte) (c
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Interior.
|
// Interior.
|
||||||
for len(data) > sizeofPtr {
|
for len(data) > SizeofPtr {
|
||||||
word := *((*uintptr)(unsafe.Pointer(&data[0])))
|
word := *((*uintptr)(unsafe.Pointer(&data[0])))
|
||||||
err = ptrace(pokeReq, pid, addr+uintptr(n), word)
|
err = ptrace(pokeReq, pid, addr+uintptr(n), word)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return n, err
|
return n, err
|
||||||
}
|
}
|
||||||
n += sizeofPtr
|
n += SizeofPtr
|
||||||
data = data[sizeofPtr:]
|
data = data[SizeofPtr:]
|
||||||
}
|
}
|
||||||
|
|
||||||
// Trailing edge.
|
// Trailing edge.
|
||||||
if len(data) > 0 {
|
if len(data) > 0 {
|
||||||
var buf [sizeofPtr]byte
|
var buf [SizeofPtr]byte
|
||||||
err = ptrace(peekReq, pid, addr+uintptr(n), uintptr(unsafe.Pointer(&buf[0])))
|
err = ptrace(peekReq, pid, addr+uintptr(n), uintptr(unsafe.Pointer(&buf[0])))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return n, err
|
return n, err
|
||||||
@@ -1242,10 +1413,6 @@ func Reboot(cmd int) (err error) {
|
|||||||
return reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, cmd, "")
|
return reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, cmd, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
func ReadDirent(fd int, buf []byte) (n int, err error) {
|
|
||||||
return Getdents(fd, buf)
|
|
||||||
}
|
|
||||||
|
|
||||||
//sys mount(source string, target string, fstype string, flags uintptr, data *byte) (err error)
|
//sys mount(source string, target string, fstype string, flags uintptr, data *byte) (err error)
|
||||||
|
|
||||||
func Mount(source string, target string, fstype string, flags uintptr, data string) (err error) {
|
func Mount(source string, target string, fstype string, flags uintptr, data string) (err error) {
|
||||||
@@ -1261,6 +1428,13 @@ func Mount(source string, target string, fstype string, flags uintptr, data stri
|
|||||||
return mount(source, target, fstype, flags, datap)
|
return mount(source, target, fstype, flags, datap)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||||
|
if raceenabled {
|
||||||
|
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
||||||
|
}
|
||||||
|
return sendfile(outfd, infd, offset, count)
|
||||||
|
}
|
||||||
|
|
||||||
// Sendto
|
// Sendto
|
||||||
// Recvfrom
|
// Recvfrom
|
||||||
// Socketpair
|
// Socketpair
|
||||||
@@ -1271,11 +1445,16 @@ func Mount(source string, target string, fstype string, flags uintptr, data stri
|
|||||||
//sys Acct(path string) (err error)
|
//sys Acct(path string) (err error)
|
||||||
//sys AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error)
|
//sys AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error)
|
||||||
//sys Adjtimex(buf *Timex) (state int, err error)
|
//sys Adjtimex(buf *Timex) (state int, err error)
|
||||||
|
//sys Capget(hdr *CapUserHeader, data *CapUserData) (err error)
|
||||||
|
//sys Capset(hdr *CapUserHeader, data *CapUserData) (err error)
|
||||||
//sys Chdir(path string) (err error)
|
//sys Chdir(path string) (err error)
|
||||||
//sys Chroot(path string) (err error)
|
//sys Chroot(path string) (err error)
|
||||||
|
//sys ClockGetres(clockid int32, res *Timespec) (err error)
|
||||||
//sys ClockGettime(clockid int32, time *Timespec) (err error)
|
//sys ClockGettime(clockid int32, time *Timespec) (err error)
|
||||||
|
//sys ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error)
|
||||||
//sys Close(fd int) (err error)
|
//sys Close(fd int) (err error)
|
||||||
//sys CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
|
//sys CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
|
||||||
|
//sys DeleteModule(name string, flags int) (err error)
|
||||||
//sys Dup(oldfd int) (fd int, err error)
|
//sys Dup(oldfd int) (fd int, err error)
|
||||||
//sys Dup3(oldfd int, newfd int, flags int) (err error)
|
//sys Dup3(oldfd int, newfd int, flags int) (err error)
|
||||||
//sysnb EpollCreate1(flag int) (fd int, err error)
|
//sysnb EpollCreate1(flag int) (fd int, err error)
|
||||||
@@ -1288,7 +1467,12 @@ func Mount(source string, target string, fstype string, flags uintptr, data stri
|
|||||||
//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
|
//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
|
||||||
//sys fcntl(fd int, cmd int, arg int) (val int, err error)
|
//sys fcntl(fd int, cmd int, arg int) (val int, err error)
|
||||||
//sys Fdatasync(fd int) (err error)
|
//sys Fdatasync(fd int) (err error)
|
||||||
|
//sys Fgetxattr(fd int, attr string, dest []byte) (sz int, err error)
|
||||||
|
//sys FinitModule(fd int, params string, flags int) (err error)
|
||||||
|
//sys Flistxattr(fd int, dest []byte) (sz int, err error)
|
||||||
//sys Flock(fd int, how int) (err error)
|
//sys Flock(fd int, how int) (err error)
|
||||||
|
//sys Fremovexattr(fd int, attr string) (err error)
|
||||||
|
//sys Fsetxattr(fd int, attr string, dest []byte, flags int) (err error)
|
||||||
//sys Fsync(fd int) (err error)
|
//sys Fsync(fd int) (err error)
|
||||||
//sys Getdents(fd int, buf []byte) (n int, err error) = SYS_GETDENTS64
|
//sys Getdents(fd int, buf []byte) (n int, err error) = SYS_GETDENTS64
|
||||||
//sysnb Getpgid(pid int) (pgid int, err error)
|
//sysnb Getpgid(pid int) (pgid int, err error)
|
||||||
@@ -1306,6 +1490,7 @@ func Getpgrp() (pid int) {
|
|||||||
//sysnb Getsid(pid int) (sid int, err error)
|
//sysnb Getsid(pid int) (sid int, err error)
|
||||||
//sysnb Gettid() (tid int)
|
//sysnb Gettid() (tid int)
|
||||||
//sys Getxattr(path string, attr string, dest []byte) (sz int, err error)
|
//sys Getxattr(path string, attr string, dest []byte) (sz int, err error)
|
||||||
|
//sys InitModule(moduleImage []byte, params string) (err error)
|
||||||
//sys InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error)
|
//sys InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error)
|
||||||
//sysnb InotifyInit1(flags int) (fd int, err error)
|
//sysnb InotifyInit1(flags int) (fd int, err error)
|
||||||
//sysnb InotifyRmWatch(fd int, watchdesc uint32) (success int, err error)
|
//sysnb InotifyRmWatch(fd int, watchdesc uint32) (success int, err error)
|
||||||
@@ -1316,6 +1501,7 @@ func Getpgrp() (pid int) {
|
|||||||
//sys Llistxattr(path string, dest []byte) (sz int, err error)
|
//sys Llistxattr(path string, dest []byte) (sz int, err error)
|
||||||
//sys Lremovexattr(path string, attr string) (err error)
|
//sys Lremovexattr(path string, attr string) (err error)
|
||||||
//sys Lsetxattr(path string, attr string, data []byte, flags int) (err error)
|
//sys Lsetxattr(path string, attr string, data []byte, flags int) (err error)
|
||||||
|
//sys MemfdCreate(name string, flags int) (fd int, err error)
|
||||||
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
|
//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
|
||||||
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
||||||
@@ -1326,7 +1512,7 @@ func Getpgrp() (pid int) {
|
|||||||
//sys Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) = SYS_PSELECT6
|
//sys Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) = SYS_PSELECT6
|
||||||
//sys read(fd int, p []byte) (n int, err error)
|
//sys read(fd int, p []byte) (n int, err error)
|
||||||
//sys Removexattr(path string, attr string) (err error)
|
//sys Removexattr(path string, attr string) (err error)
|
||||||
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
//sys Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error)
|
||||||
//sys RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error)
|
//sys RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error)
|
||||||
//sys Setdomainname(p []byte) (err error)
|
//sys Setdomainname(p []byte) (err error)
|
||||||
//sys Sethostname(p []byte) (err error)
|
//sys Sethostname(p []byte) (err error)
|
||||||
@@ -1348,8 +1534,13 @@ func Setgid(uid int) (err error) {
|
|||||||
return EOPNOTSUPP
|
return EOPNOTSUPP
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Signalfd(fd int, sigmask *Sigset_t, flags int) (newfd int, err error) {
|
||||||
|
return signalfd(fd, sigmask, _C__NSIG/8, flags)
|
||||||
|
}
|
||||||
|
|
||||||
//sys Setpriority(which int, who int, prio int) (err error)
|
//sys Setpriority(which int, who int, prio int) (err error)
|
||||||
//sys Setxattr(path string, attr string, data []byte, flags int) (err error)
|
//sys Setxattr(path string, attr string, data []byte, flags int) (err error)
|
||||||
|
//sys signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) = SYS_SIGNALFD4
|
||||||
//sys Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error)
|
//sys Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error)
|
||||||
//sys Sync()
|
//sys Sync()
|
||||||
//sys Syncfs(fd int) (err error)
|
//sys Syncfs(fd int) (err error)
|
||||||
@@ -1394,15 +1585,12 @@ func Munmap(b []byte) (err error) {
|
|||||||
// Vmsplice splices user pages from a slice of Iovecs into a pipe specified by fd,
|
// Vmsplice splices user pages from a slice of Iovecs into a pipe specified by fd,
|
||||||
// using the specified flags.
|
// using the specified flags.
|
||||||
func Vmsplice(fd int, iovs []Iovec, flags int) (int, error) {
|
func Vmsplice(fd int, iovs []Iovec, flags int) (int, error) {
|
||||||
n, _, errno := Syscall6(
|
var p unsafe.Pointer
|
||||||
SYS_VMSPLICE,
|
if len(iovs) > 0 {
|
||||||
uintptr(fd),
|
p = unsafe.Pointer(&iovs[0])
|
||||||
uintptr(unsafe.Pointer(&iovs[0])),
|
}
|
||||||
uintptr(len(iovs)),
|
|
||||||
uintptr(flags),
|
n, _, errno := Syscall6(SYS_VMSPLICE, uintptr(fd), uintptr(p), uintptr(len(iovs)), uintptr(flags), 0, 0)
|
||||||
0,
|
|
||||||
0,
|
|
||||||
)
|
|
||||||
if errno != 0 {
|
if errno != 0 {
|
||||||
return 0, syscall.Errno(errno)
|
return 0, syscall.Errno(errno)
|
||||||
}
|
}
|
||||||
@@ -1415,10 +1603,146 @@ func Vmsplice(fd int, iovs []Iovec, flags int) (int, error) {
|
|||||||
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
if flags & ^(AT_SYMLINK_NOFOLLOW|AT_EACCESS) != 0 {
|
if flags & ^(AT_SYMLINK_NOFOLLOW|AT_EACCESS) != 0 {
|
||||||
return EINVAL
|
return EINVAL
|
||||||
} else if flags&(AT_SYMLINK_NOFOLLOW|AT_EACCESS) != 0 {
|
|
||||||
return EOPNOTSUPP
|
|
||||||
}
|
}
|
||||||
return faccessat(dirfd, path, mode)
|
|
||||||
|
// The Linux kernel faccessat system call does not take any flags.
|
||||||
|
// The glibc faccessat implements the flags itself; see
|
||||||
|
// https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/faccessat.c;hb=HEAD
|
||||||
|
// Because people naturally expect syscall.Faccessat to act
|
||||||
|
// like C faccessat, we do the same.
|
||||||
|
|
||||||
|
if flags == 0 {
|
||||||
|
return faccessat(dirfd, path, mode)
|
||||||
|
}
|
||||||
|
|
||||||
|
var st Stat_t
|
||||||
|
if err := Fstatat(dirfd, path, &st, flags&AT_SYMLINK_NOFOLLOW); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
mode &= 7
|
||||||
|
if mode == 0 {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
var uid int
|
||||||
|
if flags&AT_EACCESS != 0 {
|
||||||
|
uid = Geteuid()
|
||||||
|
} else {
|
||||||
|
uid = Getuid()
|
||||||
|
}
|
||||||
|
|
||||||
|
if uid == 0 {
|
||||||
|
if mode&1 == 0 {
|
||||||
|
// Root can read and write any file.
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
if st.Mode&0111 != 0 {
|
||||||
|
// Root can execute any file that anybody can execute.
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return EACCES
|
||||||
|
}
|
||||||
|
|
||||||
|
var fmode uint32
|
||||||
|
if uint32(uid) == st.Uid {
|
||||||
|
fmode = (st.Mode >> 6) & 7
|
||||||
|
} else {
|
||||||
|
var gid int
|
||||||
|
if flags&AT_EACCESS != 0 {
|
||||||
|
gid = Getegid()
|
||||||
|
} else {
|
||||||
|
gid = Getgid()
|
||||||
|
}
|
||||||
|
|
||||||
|
if uint32(gid) == st.Gid {
|
||||||
|
fmode = (st.Mode >> 3) & 7
|
||||||
|
} else {
|
||||||
|
fmode = st.Mode & 7
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if fmode&mode == mode {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
return EACCES
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) = SYS_NAME_TO_HANDLE_AT
|
||||||
|
//sys openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) = SYS_OPEN_BY_HANDLE_AT
|
||||||
|
|
||||||
|
// fileHandle is the argument to nameToHandleAt and openByHandleAt. We
|
||||||
|
// originally tried to generate it via unix/linux/types.go with "type
|
||||||
|
// fileHandle C.struct_file_handle" but that generated empty structs
|
||||||
|
// for mips64 and mips64le. Instead, hard code it for now (it's the
|
||||||
|
// same everywhere else) until the mips64 generator issue is fixed.
|
||||||
|
type fileHandle struct {
|
||||||
|
Bytes uint32
|
||||||
|
Type int32
|
||||||
|
}
|
||||||
|
|
||||||
|
// FileHandle represents the C struct file_handle used by
|
||||||
|
// name_to_handle_at (see NameToHandleAt) and open_by_handle_at (see
|
||||||
|
// OpenByHandleAt).
|
||||||
|
type FileHandle struct {
|
||||||
|
*fileHandle
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewFileHandle constructs a FileHandle.
|
||||||
|
func NewFileHandle(handleType int32, handle []byte) FileHandle {
|
||||||
|
const hdrSize = unsafe.Sizeof(fileHandle{})
|
||||||
|
buf := make([]byte, hdrSize+uintptr(len(handle)))
|
||||||
|
copy(buf[hdrSize:], handle)
|
||||||
|
fh := (*fileHandle)(unsafe.Pointer(&buf[0]))
|
||||||
|
fh.Type = handleType
|
||||||
|
fh.Bytes = uint32(len(handle))
|
||||||
|
return FileHandle{fh}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (fh *FileHandle) Size() int { return int(fh.fileHandle.Bytes) }
|
||||||
|
func (fh *FileHandle) Type() int32 { return fh.fileHandle.Type }
|
||||||
|
func (fh *FileHandle) Bytes() []byte {
|
||||||
|
n := fh.Size()
|
||||||
|
if n == 0 {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return (*[1 << 30]byte)(unsafe.Pointer(uintptr(unsafe.Pointer(&fh.fileHandle.Type)) + 4))[:n:n]
|
||||||
|
}
|
||||||
|
|
||||||
|
// NameToHandleAt wraps the name_to_handle_at system call; it obtains
|
||||||
|
// a handle for a path name.
|
||||||
|
func NameToHandleAt(dirfd int, path string, flags int) (handle FileHandle, mountID int, err error) {
|
||||||
|
var mid _C_int
|
||||||
|
// Try first with a small buffer, assuming the handle will
|
||||||
|
// only be 32 bytes.
|
||||||
|
size := uint32(32 + unsafe.Sizeof(fileHandle{}))
|
||||||
|
didResize := false
|
||||||
|
for {
|
||||||
|
buf := make([]byte, size)
|
||||||
|
fh := (*fileHandle)(unsafe.Pointer(&buf[0]))
|
||||||
|
fh.Bytes = size - uint32(unsafe.Sizeof(fileHandle{}))
|
||||||
|
err = nameToHandleAt(dirfd, path, fh, &mid, flags)
|
||||||
|
if err == EOVERFLOW {
|
||||||
|
if didResize {
|
||||||
|
// We shouldn't need to resize more than once
|
||||||
|
return
|
||||||
|
}
|
||||||
|
didResize = true
|
||||||
|
size = fh.Bytes + uint32(unsafe.Sizeof(fileHandle{}))
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
return FileHandle{fh}, int(mid), nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// OpenByHandleAt wraps the open_by_handle_at system call; it opens a
|
||||||
|
// file via a handle as previously returned by NameToHandleAt.
|
||||||
|
func OpenByHandleAt(mountFD int, handle FileHandle, flags int) (fd int, err error) {
|
||||||
|
return openByHandleAt(mountFD, handle.fileHandle, flags)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1428,23 +1752,14 @@ func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
|||||||
// Alarm
|
// Alarm
|
||||||
// ArchPrctl
|
// ArchPrctl
|
||||||
// Brk
|
// Brk
|
||||||
// Capget
|
|
||||||
// Capset
|
|
||||||
// ClockGetres
|
|
||||||
// ClockNanosleep
|
// ClockNanosleep
|
||||||
// ClockSettime
|
// ClockSettime
|
||||||
// Clone
|
// Clone
|
||||||
// CreateModule
|
|
||||||
// DeleteModule
|
|
||||||
// EpollCtlOld
|
// EpollCtlOld
|
||||||
// EpollPwait
|
// EpollPwait
|
||||||
// EpollWaitOld
|
// EpollWaitOld
|
||||||
// Execve
|
// Execve
|
||||||
// Fgetxattr
|
|
||||||
// Flistxattr
|
|
||||||
// Fork
|
// Fork
|
||||||
// Fremovexattr
|
|
||||||
// Fsetxattr
|
|
||||||
// Futex
|
// Futex
|
||||||
// GetKernelSyms
|
// GetKernelSyms
|
||||||
// GetMempolicy
|
// GetMempolicy
|
||||||
@@ -1483,7 +1798,6 @@ func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
|||||||
// Pselect6
|
// Pselect6
|
||||||
// Ptrace
|
// Ptrace
|
||||||
// Putpmsg
|
// Putpmsg
|
||||||
// QueryModule
|
|
||||||
// Quotactl
|
// Quotactl
|
||||||
// Readahead
|
// Readahead
|
||||||
// Readv
|
// Readv
|
||||||
@@ -1517,7 +1831,6 @@ func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
|||||||
// Shmdt
|
// Shmdt
|
||||||
// Shmget
|
// Shmget
|
||||||
// Sigaltstack
|
// Sigaltstack
|
||||||
// Signalfd
|
|
||||||
// Swapoff
|
// Swapoff
|
||||||
// Swapon
|
// Swapon
|
||||||
// Sysfs
|
// Sysfs
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/syscall_linux_386.go
generated
vendored
1
vendor/golang.org/x/sys/unix/syscall_linux_386.go
generated
vendored
@@ -68,6 +68,7 @@ func Pipe2(p []int, flags int) (err error) {
|
|||||||
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
//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 Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
||||||
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
||||||
//sys Setfsgid(gid int) (err error) = SYS_SETFSGID32
|
//sys Setfsgid(gid int) (err error) = SYS_SETFSGID32
|
||||||
//sys Setfsuid(uid int) (err error) = SYS_SETFSUID32
|
//sys Setfsuid(uid int) (err error) = SYS_SETFSUID32
|
||||||
|
|||||||
32
vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
generated
vendored
32
vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
generated
vendored
@@ -20,15 +20,30 @@ package unix
|
|||||||
//sysnb Getgid() (gid int)
|
//sysnb Getgid() (gid int)
|
||||||
//sysnb Getrlimit(resource int, rlim *Rlimit) (err error)
|
//sysnb Getrlimit(resource int, rlim *Rlimit) (err error)
|
||||||
//sysnb Getuid() (uid int)
|
//sysnb Getuid() (uid int)
|
||||||
//sysnb InotifyInit() (fd int, err error)
|
//sysnb inotifyInit() (fd int, err error)
|
||||||
|
|
||||||
|
func InotifyInit() (fd int, err error) {
|
||||||
|
// First try inotify_init1, because Android's seccomp policy blocks the latter.
|
||||||
|
fd, err = InotifyInit1(0)
|
||||||
|
if err == ENOSYS {
|
||||||
|
fd, err = inotifyInit()
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
//sys Ioperm(from int, num int, on int) (err error)
|
//sys Ioperm(from int, num int, on int) (err error)
|
||||||
//sys Iopl(level int) (err error)
|
//sys Iopl(level int) (err error)
|
||||||
//sys Lchown(path string, uid int, gid int) (err error)
|
//sys Lchown(path string, uid int, gid int) (err error)
|
||||||
//sys Listen(s int, n int) (err error)
|
//sys Listen(s int, n int) (err error)
|
||||||
//sys Lstat(path string, stat *Stat_t) (err error)
|
|
||||||
|
func Lstat(path string, stat *Stat_t) (err error) {
|
||||||
|
return Fstatat(AT_FDCWD, path, stat, AT_SYMLINK_NOFOLLOW)
|
||||||
|
}
|
||||||
|
|
||||||
//sys Pause() (err error)
|
//sys Pause() (err error)
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
//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 Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
||||||
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
||||||
|
|
||||||
func 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) {
|
||||||
@@ -160,3 +175,16 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
|
|||||||
}
|
}
|
||||||
return poll(&fds[0], len(fds), timeout)
|
return poll(&fds[0], len(fds), timeout)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error)
|
||||||
|
|
||||||
|
func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error {
|
||||||
|
cmdlineLen := len(cmdline)
|
||||||
|
if cmdlineLen > 0 {
|
||||||
|
// Account for the additional NULL byte added by
|
||||||
|
// BytePtrFromString in kexecFileLoad. The kexec_file_load
|
||||||
|
// syscall expects a NULL-terminated string.
|
||||||
|
cmdlineLen++
|
||||||
|
}
|
||||||
|
return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
|
||||||
|
}
|
||||||
|
|||||||
28
vendor/golang.org/x/sys/unix/syscall_linux_arm.go
generated
vendored
28
vendor/golang.org/x/sys/unix/syscall_linux_arm.go
generated
vendored
@@ -19,12 +19,18 @@ func setTimeval(sec, usec int64) Timeval {
|
|||||||
return Timeval{Sec: int32(sec), Usec: int32(usec)}
|
return Timeval{Sec: int32(sec), Usec: int32(usec)}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sysnb pipe(p *[2]_C_int) (err error)
|
||||||
|
|
||||||
func Pipe(p []int) (err error) {
|
func Pipe(p []int) (err error) {
|
||||||
if len(p) != 2 {
|
if len(p) != 2 {
|
||||||
return EINVAL
|
return EINVAL
|
||||||
}
|
}
|
||||||
var pp [2]_C_int
|
var pp [2]_C_int
|
||||||
|
// Try pipe2 first for Android O, then try pipe for kernel 2.6.23.
|
||||||
err = pipe2(&pp, 0)
|
err = pipe2(&pp, 0)
|
||||||
|
if err == ENOSYS {
|
||||||
|
err = pipe(&pp)
|
||||||
|
}
|
||||||
p[0] = int(pp[0])
|
p[0] = int(pp[0])
|
||||||
p[1] = int(pp[1])
|
p[1] = int(pp[1])
|
||||||
return
|
return
|
||||||
@@ -89,6 +95,7 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
|||||||
//sys Listen(s int, n int) (err error)
|
//sys Listen(s int, n int) (err error)
|
||||||
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
||||||
//sys Pause() (err error)
|
//sys Pause() (err error)
|
||||||
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
//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 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
|
//sys Setfsgid(gid int) (err error) = SYS_SETFSGID32
|
||||||
@@ -257,3 +264,24 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
|
|||||||
}
|
}
|
||||||
return poll(&fds[0], len(fds), timeout)
|
return poll(&fds[0], len(fds), timeout)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys armSyncFileRange(fd int, flags int, off int64, n int64) (err error) = SYS_ARM_SYNC_FILE_RANGE
|
||||||
|
|
||||||
|
func SyncFileRange(fd int, off int64, n int64, flags int) error {
|
||||||
|
// The sync_file_range and arm_sync_file_range syscalls differ only in the
|
||||||
|
// order of their arguments.
|
||||||
|
return armSyncFileRange(fd, flags, off, n)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error)
|
||||||
|
|
||||||
|
func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error {
|
||||||
|
cmdlineLen := len(cmdline)
|
||||||
|
if cmdlineLen > 0 {
|
||||||
|
// Account for the additional NULL byte added by
|
||||||
|
// BytePtrFromString in kexecFileLoad. The kexec_file_load
|
||||||
|
// syscall expects a NULL-terminated string.
|
||||||
|
cmdlineLen++
|
||||||
|
}
|
||||||
|
return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
|
||||||
|
}
|
||||||
|
|||||||
23
vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
generated
vendored
23
vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
generated
vendored
@@ -30,6 +30,7 @@ func EpollCreate(size int) (fd int, err error) {
|
|||||||
//sys Listen(s int, n int) (err error)
|
//sys Listen(s int, n int) (err error)
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
//sys 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 Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
||||||
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
||||||
|
|
||||||
func 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) {
|
||||||
@@ -191,12 +192,9 @@ func Dup2(oldfd int, newfd int) (err error) {
|
|||||||
return Dup3(oldfd, newfd, 0)
|
return Dup3(oldfd, newfd, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Pause() (err error) {
|
func Pause() error {
|
||||||
_, _, e1 := Syscall6(SYS_PPOLL, 0, 0, 0, 0, 0, 0)
|
_, err := ppoll(nil, 0, nil, nil)
|
||||||
if e1 != 0 {
|
return err
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func Poll(fds []PollFd, timeout int) (n int, err error) {
|
func Poll(fds []PollFd, timeout int) (n int, err error) {
|
||||||
@@ -210,3 +208,16 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
|
|||||||
}
|
}
|
||||||
return ppoll(&fds[0], len(fds), ts, nil)
|
return ppoll(&fds[0], len(fds), ts, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error)
|
||||||
|
|
||||||
|
func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error {
|
||||||
|
cmdlineLen := len(cmdline)
|
||||||
|
if cmdlineLen > 0 {
|
||||||
|
// Account for the additional NULL byte added by
|
||||||
|
// BytePtrFromString in kexecFileLoad. The kexec_file_load
|
||||||
|
// syscall expects a NULL-terminated string.
|
||||||
|
cmdlineLen++
|
||||||
|
}
|
||||||
|
return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
|
||||||
|
}
|
||||||
|
|||||||
10
vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
generated
vendored
10
vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
generated
vendored
@@ -12,7 +12,6 @@ package unix
|
|||||||
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
|
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
|
||||||
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
|
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
|
||||||
//sys Fchown(fd int, uid int, gid int) (err error)
|
//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)
|
//sys Fstatfs(fd int, buf *Statfs_t) (err error)
|
||||||
//sys Ftruncate(fd int, length int64) (err error)
|
//sys Ftruncate(fd int, length int64) (err error)
|
||||||
//sysnb Getegid() (egid int)
|
//sysnb Getegid() (egid int)
|
||||||
@@ -25,6 +24,7 @@ package unix
|
|||||||
//sys Pause() (err error)
|
//sys Pause() (err error)
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
//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 Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
||||||
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
||||||
|
|
||||||
func 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) {
|
||||||
@@ -148,6 +148,7 @@ type stat_t struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//sys fstat(fd int, st *stat_t) (err error)
|
//sys fstat(fd int, st *stat_t) (err error)
|
||||||
|
//sys fstatat(dirfd int, path string, st *stat_t, flags int) (err error) = SYS_NEWFSTATAT
|
||||||
//sys lstat(path string, st *stat_t) (err error)
|
//sys lstat(path string, st *stat_t) (err error)
|
||||||
//sys stat(path string, st *stat_t) (err error)
|
//sys stat(path string, st *stat_t) (err error)
|
||||||
|
|
||||||
@@ -158,6 +159,13 @@ func Fstat(fd int, s *Stat_t) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Fstatat(dirfd int, path string, s *Stat_t, flags int) (err error) {
|
||||||
|
st := &stat_t{}
|
||||||
|
err = fstatat(dirfd, path, st, flags)
|
||||||
|
fillStat_t(s, st)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
func Lstat(path string, s *Stat_t) (err error) {
|
func Lstat(path string, s *Stat_t) (err error) {
|
||||||
st := &stat_t{}
|
st := &stat_t{}
|
||||||
err = lstat(path, st)
|
err = lstat(path, st)
|
||||||
|
|||||||
8
vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
generated
vendored
8
vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
generated
vendored
@@ -28,6 +28,7 @@ func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr,
|
|||||||
//sys Listen(s int, n int) (err error)
|
//sys Listen(s int, n int) (err error)
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
//sys 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 Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
||||||
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
|
||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
||||||
//sys Setfsgid(gid int) (err error)
|
//sys Setfsgid(gid int) (err error)
|
||||||
@@ -124,14 +125,13 @@ func Pipe2(p []int, flags int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sysnb pipe() (p1 int, p2 int, err error)
|
||||||
|
|
||||||
func Pipe(p []int) (err error) {
|
func Pipe(p []int) (err error) {
|
||||||
if len(p) != 2 {
|
if len(p) != 2 {
|
||||||
return EINVAL
|
return EINVAL
|
||||||
}
|
}
|
||||||
var pp [2]_C_int
|
p[0], p[1], err = pipe()
|
||||||
err = pipe2(&pp, 0)
|
|
||||||
p[0] = int(pp[0])
|
|
||||||
p[1] = int(pp[1])
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
23
vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
generated
vendored
23
vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
generated
vendored
@@ -30,6 +30,7 @@ package unix
|
|||||||
//sys Pause() (err error)
|
//sys Pause() (err error)
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
//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 Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
||||||
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
||||||
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
|
||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
||||||
@@ -44,7 +45,6 @@ package unix
|
|||||||
//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 int64, err error)
|
||||||
//sys Stat(path string, stat *Stat_t) (err error)
|
//sys Stat(path string, stat *Stat_t) (err error)
|
||||||
//sys Statfs(path string, buf *Statfs_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_SYNC_FILE_RANGE2
|
|
||||||
//sys Truncate(path string, length int64) (err error)
|
//sys Truncate(path string, length int64) (err error)
|
||||||
//sys Ustat(dev int, ubuf *Ustat_t) (err error)
|
//sys Ustat(dev int, ubuf *Ustat_t) (err error)
|
||||||
//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error)
|
//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error)
|
||||||
@@ -129,3 +129,24 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
|
|||||||
}
|
}
|
||||||
return poll(&fds[0], len(fds), timeout)
|
return poll(&fds[0], len(fds), timeout)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys syncFileRange2(fd int, flags int, off int64, n int64) (err error) = SYS_SYNC_FILE_RANGE2
|
||||||
|
|
||||||
|
func SyncFileRange(fd int, off int64, n int64, flags int) error {
|
||||||
|
// The sync_file_range and sync_file_range2 syscalls differ only in the
|
||||||
|
// order of their arguments.
|
||||||
|
return syncFileRange2(fd, flags, off, n)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error)
|
||||||
|
|
||||||
|
func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error {
|
||||||
|
cmdlineLen := len(cmdline)
|
||||||
|
if cmdlineLen > 0 {
|
||||||
|
// Account for the additional NULL byte added by
|
||||||
|
// BytePtrFromString in kexecFileLoad. The kexec_file_load
|
||||||
|
// syscall expects a NULL-terminated string.
|
||||||
|
cmdlineLen++
|
||||||
|
}
|
||||||
|
return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
|
||||||
|
}
|
||||||
|
|||||||
226
vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
generated
vendored
Normal file
226
vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
generated
vendored
Normal file
@@ -0,0 +1,226 @@
|
|||||||
|
// 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 riscv64,linux
|
||||||
|
|
||||||
|
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)
|
||||||
|
//sys Fstatfs(fd int, buf *Statfs_t) (err error)
|
||||||
|
//sys Ftruncate(fd int, length int64) (err error)
|
||||||
|
//sysnb Getegid() (egid int)
|
||||||
|
//sysnb Geteuid() (euid int)
|
||||||
|
//sysnb Getgid() (gid int)
|
||||||
|
//sysnb Getrlimit(resource int, rlim *Rlimit) (err error)
|
||||||
|
//sysnb Getuid() (uid int)
|
||||||
|
//sys Listen(s int, n int) (err error)
|
||||||
|
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
||||||
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
||||||
|
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
||||||
|
|
||||||
|
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)
|
||||||
|
//sysnb Setregid(rgid int, egid int) (err error)
|
||||||
|
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
||||||
|
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
||||||
|
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
||||||
|
//sysnb Setreuid(ruid int, euid int) (err error)
|
||||||
|
//sys Shutdown(fd int, how int) (err error)
|
||||||
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
||||||
|
|
||||||
|
func Stat(path string, stat *Stat_t) (err error) {
|
||||||
|
return Fstatat(AT_FDCWD, path, stat, 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Lchown(path string, uid int, gid int) (err error) {
|
||||||
|
return Fchownat(AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Lstat(path string, stat *Stat_t) (err error) {
|
||||||
|
return Fstatat(AT_FDCWD, path, stat, AT_SYMLINK_NOFOLLOW)
|
||||||
|
}
|
||||||
|
|
||||||
|
//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)
|
||||||
|
//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
|
||||||
|
//sysnb getgroups(n int, list *_Gid_t) (nn int, err error)
|
||||||
|
//sysnb setgroups(n int, list *_Gid_t) (err error)
|
||||||
|
//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error)
|
||||||
|
//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error)
|
||||||
|
//sysnb socket(domain int, typ int, proto int) (fd int, err error)
|
||||||
|
//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error)
|
||||||
|
//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
|
||||||
|
//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
|
||||||
|
//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error)
|
||||||
|
//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error)
|
||||||
|
//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error)
|
||||||
|
//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error)
|
||||||
|
//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
|
||||||
|
|
||||||
|
//sysnb Gettimeofday(tv *Timeval) (err error)
|
||||||
|
|
||||||
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
|
return Timespec{Sec: sec, Nsec: nsec}
|
||||||
|
}
|
||||||
|
|
||||||
|
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)
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
if t != nil {
|
||||||
|
*t = Time_t(tv.Sec)
|
||||||
|
}
|
||||||
|
return Time_t(tv.Sec), nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Utime(path string, buf *Utimbuf) error {
|
||||||
|
tv := []Timeval{
|
||||||
|
{Sec: buf.Actime},
|
||||||
|
{Sec: buf.Modtime},
|
||||||
|
}
|
||||||
|
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
|
||||||
|
}
|
||||||
|
var pp [2]_C_int
|
||||||
|
err = pipe2(&pp, 0)
|
||||||
|
p[0] = int(pp[0])
|
||||||
|
p[1] = int(pp[1])
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
//sysnb pipe2(p *[2]_C_int, flags int) (err error)
|
||||||
|
|
||||||
|
func Pipe2(p []int, flags int) (err error) {
|
||||||
|
if len(p) != 2 {
|
||||||
|
return EINVAL
|
||||||
|
}
|
||||||
|
var pp [2]_C_int
|
||||||
|
err = pipe2(&pp, flags)
|
||||||
|
p[0] = int(pp[0])
|
||||||
|
p[1] = int(pp[1])
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r *PtraceRegs) PC() uint64 { return r.Pc }
|
||||||
|
|
||||||
|
func (r *PtraceRegs) SetPC(pc uint64) { r.Pc = pc }
|
||||||
|
|
||||||
|
func (iov *Iovec) SetLen(length int) {
|
||||||
|
iov.Len = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
|
msghdr.Controllen = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
|
cmsg.Len = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func InotifyInit() (fd int, err error) {
|
||||||
|
return InotifyInit1(0)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Dup2(oldfd int, newfd int) (err error) {
|
||||||
|
return Dup3(oldfd, newfd, 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Pause() error {
|
||||||
|
_, err := ppoll(nil, 0, nil, nil)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
func Poll(fds []PollFd, timeout int) (n int, err error) {
|
||||||
|
var ts *Timespec
|
||||||
|
if timeout >= 0 {
|
||||||
|
ts = new(Timespec)
|
||||||
|
*ts = NsecToTimespec(int64(timeout) * 1e6)
|
||||||
|
}
|
||||||
|
if len(fds) == 0 {
|
||||||
|
return ppoll(nil, 0, ts, nil)
|
||||||
|
}
|
||||||
|
return ppoll(&fds[0], len(fds), ts, nil)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
|
||||||
|
return Renameat2(olddirfd, oldpath, newdirfd, newpath, 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error)
|
||||||
|
|
||||||
|
func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error {
|
||||||
|
cmdlineLen := len(cmdline)
|
||||||
|
if cmdlineLen > 0 {
|
||||||
|
// Account for the additional NULL byte added by
|
||||||
|
// BytePtrFromString in kexecFileLoad. The kexec_file_load
|
||||||
|
// syscall expects a NULL-terminated string.
|
||||||
|
cmdlineLen++
|
||||||
|
}
|
||||||
|
return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
|
||||||
|
}
|
||||||
14
vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
generated
vendored
14
vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
generated
vendored
@@ -30,6 +30,7 @@ import (
|
|||||||
//sys Pause() (err error)
|
//sys Pause() (err error)
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
//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 Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
||||||
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
||||||
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
|
||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
||||||
@@ -322,3 +323,16 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
|
|||||||
}
|
}
|
||||||
return poll(&fds[0], len(fds), timeout)
|
return poll(&fds[0], len(fds), timeout)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error)
|
||||||
|
|
||||||
|
func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error {
|
||||||
|
cmdlineLen := len(cmdline)
|
||||||
|
if cmdlineLen > 0 {
|
||||||
|
// Account for the additional NULL byte added by
|
||||||
|
// BytePtrFromString in kexecFileLoad. The kexec_file_load
|
||||||
|
// syscall expects a NULL-terminated string.
|
||||||
|
cmdlineLen++
|
||||||
|
}
|
||||||
|
return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
|
||||||
|
}
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
generated
vendored
1
vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
generated
vendored
@@ -26,6 +26,7 @@ package unix
|
|||||||
//sys Pause() (err error)
|
//sys Pause() (err error)
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
//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 Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
||||||
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
||||||
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
|
||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
||||||
|
|||||||
83
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
83
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
@@ -13,6 +13,7 @@
|
|||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"runtime"
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
@@ -93,6 +94,23 @@ func nametomib(name string) (mib []_C_int, err error) {
|
|||||||
return mib, nil
|
return mib, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func SysctlClockinfo(name string) (*Clockinfo, error) {
|
||||||
|
mib, err := sysctlmib(name)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
n := uintptr(SizeofClockinfo)
|
||||||
|
var ci Clockinfo
|
||||||
|
if err := sysctl(mib, (*byte)(unsafe.Pointer(&ci)), &n, nil, 0); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if n != SizeofClockinfo {
|
||||||
|
return nil, EIO
|
||||||
|
}
|
||||||
|
return &ci, nil
|
||||||
|
}
|
||||||
|
|
||||||
//sysnb pipe() (fd1 int, fd2 int, err error)
|
//sysnb pipe() (fd1 int, fd2 int, err error)
|
||||||
func Pipe(p []int) (err error) {
|
func Pipe(p []int) (err error) {
|
||||||
if len(p) != 2 {
|
if len(p) != 2 {
|
||||||
@@ -102,9 +120,30 @@ func Pipe(p []int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//sys getdents(fd int, buf []byte) (n int, err error)
|
//sys Getdents(fd int, buf []byte) (n int, err error)
|
||||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
return getdents(fd, buf)
|
n, err = Getdents(fd, buf)
|
||||||
|
if err != nil || basep == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var off int64
|
||||||
|
off, err = Seek(fd, 0, 1 /* SEEK_CUR */)
|
||||||
|
if err != nil {
|
||||||
|
*basep = ^uintptr(0)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
*basep = uintptr(off)
|
||||||
|
if unsafe.Sizeof(*basep) == 8 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if off>>32 != 0 {
|
||||||
|
// We can't stuff the offset back into a uintptr, so any
|
||||||
|
// future calls would be suspect. Generate an error.
|
||||||
|
// EIO is allowed by getdirentries.
|
||||||
|
err = EIO
|
||||||
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const ImplementsGetwd = true
|
const ImplementsGetwd = true
|
||||||
@@ -145,11 +184,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
|
|||||||
return ioctl(fd, req, uintptr(value))
|
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)))
|
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)))
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -173,6 +212,13 @@ func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
|||||||
return &value, err
|
return &value, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func IoctlGetPtmget(fd int, req uint) (*Ptmget, error) {
|
||||||
|
var value Ptmget
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
runtime.KeepAlive(value)
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
func Uname(uname *Utsname) error {
|
func Uname(uname *Utsname) error {
|
||||||
mib := []_C_int{CTL_KERN, KERN_OSTYPE}
|
mib := []_C_int{CTL_KERN, KERN_OSTYPE}
|
||||||
n := unsafe.Sizeof(uname.Sysname)
|
n := unsafe.Sizeof(uname.Sysname)
|
||||||
@@ -219,6 +265,13 @@ func Uname(uname *Utsname) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||||
|
if raceenabled {
|
||||||
|
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
||||||
|
}
|
||||||
|
return sendfile(outfd, infd, offset, count)
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Exposed directly
|
* Exposed directly
|
||||||
*/
|
*/
|
||||||
@@ -233,6 +286,18 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Dup(fd int) (nfd int, err error)
|
//sys Dup(fd int) (nfd int, err error)
|
||||||
//sys Dup2(from int, to int) (err error)
|
//sys Dup2(from int, to int) (err error)
|
||||||
//sys Exit(code int)
|
//sys Exit(code int)
|
||||||
|
//sys ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
|
||||||
|
//sys ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
|
||||||
|
//sys ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error)
|
||||||
|
//sys ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error)
|
||||||
|
//sys ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
|
||||||
|
//sys ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
|
||||||
|
//sys ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error)
|
||||||
|
//sys ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error)
|
||||||
|
//sys ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
|
||||||
|
//sys ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
|
||||||
|
//sys ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error)
|
||||||
|
//sys ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error)
|
||||||
//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
|
//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||||
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_POSIX_FADVISE
|
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_POSIX_FADVISE
|
||||||
//sys Fchdir(fd int) (err error)
|
//sys Fchdir(fd int) (err error)
|
||||||
@@ -240,6 +305,7 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Fchmod(fd int, mode uint32) (err error)
|
//sys Fchmod(fd int, mode uint32) (err error)
|
||||||
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||||
//sys Fchown(fd int, uid int, gid 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 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 Fpathconf(fd int, name int) (val int, err error)
|
||||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||||
@@ -264,19 +330,26 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Kqueue() (fd int, err error)
|
//sys Kqueue() (fd int, err error)
|
||||||
//sys Lchown(path string, uid int, gid int) (err error)
|
//sys Lchown(path string, uid int, gid int) (err error)
|
||||||
//sys Link(path string, link string) (err error)
|
//sys Link(path string, link string) (err error)
|
||||||
|
//sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error)
|
||||||
//sys Listen(s int, backlog int) (err error)
|
//sys Listen(s int, backlog int) (err error)
|
||||||
//sys Lstat(path string, stat *Stat_t) (err error)
|
//sys Lstat(path string, stat *Stat_t) (err error)
|
||||||
//sys Mkdir(path string, mode uint32) (err error)
|
//sys Mkdir(path string, mode uint32) (err error)
|
||||||
|
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mkfifo(path string, mode uint32) (err error)
|
//sys Mkfifo(path string, mode uint32) (err error)
|
||||||
|
//sys Mkfifoat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mknod(path string, mode uint32, dev int) (err error)
|
//sys Mknod(path string, mode uint32, dev int) (err error)
|
||||||
|
//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
|
||||||
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
||||||
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
||||||
|
//sys Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error)
|
||||||
//sys Pathconf(path string, name int) (val int, err error)
|
//sys Pathconf(path string, name int) (val int, err error)
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error)
|
//sys Pread(fd int, p []byte, offset int64) (n int, err error)
|
||||||
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error)
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error)
|
||||||
//sys read(fd int, p []byte) (n int, err error)
|
//sys read(fd int, p []byte) (n int, err error)
|
||||||
//sys Readlink(path string, buf []byte) (n int, err error)
|
//sys Readlink(path string, buf []byte) (n int, err error)
|
||||||
|
//sys Readlinkat(dirfd int, path string, buf []byte) (n int, err error)
|
||||||
//sys Rename(from string, to string) (err error)
|
//sys Rename(from string, to string) (err error)
|
||||||
|
//sys Renameat(fromfd int, from string, tofd int, to string) (err error)
|
||||||
//sys Revoke(path string) (err error)
|
//sys Revoke(path string) (err error)
|
||||||
//sys Rmdir(path string) (err error)
|
//sys Rmdir(path string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
||||||
@@ -294,10 +367,12 @@ func Uname(uname *Utsname) error {
|
|||||||
//sysnb Setuid(uid int) (err error)
|
//sysnb Setuid(uid int) (err error)
|
||||||
//sys Stat(path string, stat *Stat_t) (err error)
|
//sys Stat(path string, stat *Stat_t) (err error)
|
||||||
//sys Symlink(path string, link string) (err error)
|
//sys Symlink(path string, link string) (err error)
|
||||||
|
//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Sync() (err error)
|
//sys Sync() (err error)
|
||||||
//sys Truncate(path string, length int64) (err error)
|
//sys Truncate(path string, length int64) (err error)
|
||||||
//sys Umask(newmask int) (oldmask int)
|
//sys Umask(newmask int) (oldmask int)
|
||||||
//sys Unlink(path string) (err error)
|
//sys Unlink(path string) (err error)
|
||||||
|
//sys Unlinkat(dirfd int, path string, flags int) (err error)
|
||||||
//sys Unmount(path string, flags int) (err error)
|
//sys Unmount(path string, flags int) (err error)
|
||||||
//sys write(fd int, p []byte) (n int, err error)
|
//sys write(fd int, p []byte) (n int, err error)
|
||||||
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
|
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
|
||||||
|
|||||||
33
vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go
generated
vendored
Normal file
33
vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
// Copyright 2019 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 arm64,netbsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
|
return Timespec{Sec: sec, Nsec: nsec}
|
||||||
|
}
|
||||||
|
|
||||||
|
func setTimeval(sec, usec int64) Timeval {
|
||||||
|
return Timeval{Sec: sec, Usec: int32(usec)}
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetKevent(k *Kevent_t, fd, mode, flags int) {
|
||||||
|
k.Ident = uint64(fd)
|
||||||
|
k.Filter = uint32(mode)
|
||||||
|
k.Flags = uint32(flags)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (iov *Iovec) SetLen(length int) {
|
||||||
|
iov.Len = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
|
msghdr.Controllen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
|
cmsg.Len = uint32(length)
|
||||||
|
}
|
||||||
101
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
101
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
@@ -43,6 +43,40 @@ func nametomib(name string) (mib []_C_int, err error) {
|
|||||||
return nil, EINVAL
|
return nil, EINVAL
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func SysctlClockinfo(name string) (*Clockinfo, error) {
|
||||||
|
mib, err := sysctlmib(name)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
n := uintptr(SizeofClockinfo)
|
||||||
|
var ci Clockinfo
|
||||||
|
if err := sysctl(mib, (*byte)(unsafe.Pointer(&ci)), &n, nil, 0); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if n != SizeofClockinfo {
|
||||||
|
return nil, EIO
|
||||||
|
}
|
||||||
|
return &ci, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func SysctlUvmexp(name string) (*Uvmexp, error) {
|
||||||
|
mib, err := sysctlmib(name)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
n := uintptr(SizeofUvmexp)
|
||||||
|
var u Uvmexp
|
||||||
|
if err := sysctl(mib, (*byte)(unsafe.Pointer(&u)), &n, nil, 0); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if n != SizeofUvmexp {
|
||||||
|
return nil, EIO
|
||||||
|
}
|
||||||
|
return &u, nil
|
||||||
|
}
|
||||||
|
|
||||||
//sysnb pipe(p *[2]_C_int) (err error)
|
//sysnb pipe(p *[2]_C_int) (err error)
|
||||||
func Pipe(p []int) (err error) {
|
func Pipe(p []int) (err error) {
|
||||||
if len(p) != 2 {
|
if len(p) != 2 {
|
||||||
@@ -55,9 +89,30 @@ func Pipe(p []int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//sys getdents(fd int, buf []byte) (n int, err error)
|
//sys Getdents(fd int, buf []byte) (n int, err error)
|
||||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
return getdents(fd, buf)
|
n, err = Getdents(fd, buf)
|
||||||
|
if err != nil || basep == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var off int64
|
||||||
|
off, err = Seek(fd, 0, 1 /* SEEK_CUR */)
|
||||||
|
if err != nil {
|
||||||
|
*basep = ^uintptr(0)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
*basep = uintptr(off)
|
||||||
|
if unsafe.Sizeof(*basep) == 8 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if off>>32 != 0 {
|
||||||
|
// We can't stuff the offset back into a uintptr, so any
|
||||||
|
// future calls would be suspect. Generate an error.
|
||||||
|
// EIO was allowed by getdirentries.
|
||||||
|
err = EIO
|
||||||
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const ImplementsGetwd = true
|
const ImplementsGetwd = true
|
||||||
@@ -77,6 +132,13 @@ func Getwd() (string, error) {
|
|||||||
return string(buf[:n]), nil
|
return string(buf[:n]), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||||
|
if raceenabled {
|
||||||
|
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
||||||
|
}
|
||||||
|
return sendfile(outfd, infd, offset, count)
|
||||||
|
}
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||||
return -1, ENOSYS
|
return -1, ENOSYS
|
||||||
@@ -113,11 +175,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
|
|||||||
return ioctl(fd, req, uintptr(value))
|
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)))
|
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)))
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -141,6 +203,15 @@ func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
|||||||
return &value, err
|
return &value, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error)
|
||||||
|
|
||||||
|
func Ppoll(fds []PollFd, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
|
||||||
|
if len(fds) == 0 {
|
||||||
|
return ppoll(nil, 0, timeout, sigmask)
|
||||||
|
}
|
||||||
|
return ppoll(&fds[0], len(fds), timeout, sigmask)
|
||||||
|
}
|
||||||
|
|
||||||
func Uname(uname *Utsname) error {
|
func Uname(uname *Utsname) error {
|
||||||
mib := []_C_int{CTL_KERN, KERN_OSTYPE}
|
mib := []_C_int{CTL_KERN, KERN_OSTYPE}
|
||||||
n := unsafe.Sizeof(uname.Sysname)
|
n := unsafe.Sizeof(uname.Sysname)
|
||||||
@@ -207,6 +278,7 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Fchmod(fd int, mode uint32) (err error)
|
//sys Fchmod(fd int, mode uint32) (err error)
|
||||||
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||||
//sys Fchown(fd int, uid int, gid 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 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 Fpathconf(fd int, name int) (val int, err error)
|
||||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||||
@@ -233,19 +305,26 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Kqueue() (fd int, err error)
|
//sys Kqueue() (fd int, err error)
|
||||||
//sys Lchown(path string, uid int, gid int) (err error)
|
//sys Lchown(path string, uid int, gid int) (err error)
|
||||||
//sys Link(path string, link string) (err error)
|
//sys Link(path string, link string) (err error)
|
||||||
|
//sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error)
|
||||||
//sys Listen(s int, backlog int) (err error)
|
//sys Listen(s int, backlog int) (err error)
|
||||||
//sys Lstat(path string, stat *Stat_t) (err error)
|
//sys Lstat(path string, stat *Stat_t) (err error)
|
||||||
//sys Mkdir(path string, mode uint32) (err error)
|
//sys Mkdir(path string, mode uint32) (err error)
|
||||||
|
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mkfifo(path string, mode uint32) (err error)
|
//sys Mkfifo(path string, mode uint32) (err error)
|
||||||
|
//sys Mkfifoat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mknod(path string, mode uint32, dev int) (err error)
|
//sys Mknod(path string, mode uint32, dev int) (err error)
|
||||||
|
//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
|
||||||
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
||||||
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
||||||
|
//sys Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error)
|
||||||
//sys Pathconf(path string, name int) (val int, err error)
|
//sys Pathconf(path string, name int) (val int, err error)
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error)
|
//sys Pread(fd int, p []byte, offset int64) (n int, err error)
|
||||||
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error)
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error)
|
||||||
//sys read(fd int, p []byte) (n int, err error)
|
//sys read(fd int, p []byte) (n int, err error)
|
||||||
//sys Readlink(path string, buf []byte) (n int, err error)
|
//sys Readlink(path string, buf []byte) (n int, err error)
|
||||||
|
//sys Readlinkat(dirfd int, path string, buf []byte) (n int, err error)
|
||||||
//sys Rename(from string, to string) (err error)
|
//sys Rename(from string, to string) (err error)
|
||||||
|
//sys Renameat(fromfd int, from string, tofd int, to string) (err error)
|
||||||
//sys Revoke(path string) (err error)
|
//sys Revoke(path string) (err error)
|
||||||
//sys Rmdir(path string) (err error)
|
//sys Rmdir(path string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
||||||
@@ -268,10 +347,12 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Stat(path string, stat *Stat_t) (err error)
|
//sys Stat(path string, stat *Stat_t) (err error)
|
||||||
//sys Statfs(path string, stat *Statfs_t) (err error)
|
//sys Statfs(path string, stat *Statfs_t) (err error)
|
||||||
//sys Symlink(path string, link string) (err error)
|
//sys Symlink(path string, link string) (err error)
|
||||||
|
//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Sync() (err error)
|
//sys Sync() (err error)
|
||||||
//sys Truncate(path string, length int64) (err error)
|
//sys Truncate(path string, length int64) (err error)
|
||||||
//sys Umask(newmask int) (oldmask int)
|
//sys Umask(newmask int) (oldmask int)
|
||||||
//sys Unlink(path string) (err error)
|
//sys Unlink(path string) (err error)
|
||||||
|
//sys Unlinkat(dirfd int, path string, flags int) (err error)
|
||||||
//sys Unmount(path string, flags int) (err error)
|
//sys Unmount(path string, flags int) (err error)
|
||||||
//sys write(fd int, p []byte) (n int, err error)
|
//sys write(fd int, p []byte) (n int, err error)
|
||||||
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
|
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
|
||||||
@@ -294,15 +375,11 @@ func Uname(uname *Utsname) error {
|
|||||||
// clock_settime
|
// clock_settime
|
||||||
// closefrom
|
// closefrom
|
||||||
// execve
|
// execve
|
||||||
// faccessat
|
|
||||||
// fchmodat
|
|
||||||
// fchownat
|
|
||||||
// fcntl
|
// fcntl
|
||||||
// fhopen
|
// fhopen
|
||||||
// fhstat
|
// fhstat
|
||||||
// fhstatfs
|
// fhstatfs
|
||||||
// fork
|
// fork
|
||||||
// fstatat
|
|
||||||
// futimens
|
// futimens
|
||||||
// getfh
|
// getfh
|
||||||
// getgid
|
// getgid
|
||||||
@@ -316,12 +393,8 @@ func Uname(uname *Utsname) error {
|
|||||||
// lfs_markv
|
// lfs_markv
|
||||||
// lfs_segclean
|
// lfs_segclean
|
||||||
// lfs_segwait
|
// lfs_segwait
|
||||||
// linkat
|
|
||||||
// mincore
|
// mincore
|
||||||
// minherit
|
// minherit
|
||||||
// mkdirat
|
|
||||||
// mkfifoat
|
|
||||||
// mknodat
|
|
||||||
// mount
|
// mount
|
||||||
// mquery
|
// mquery
|
||||||
// msgctl
|
// msgctl
|
||||||
@@ -330,12 +403,10 @@ func Uname(uname *Utsname) error {
|
|||||||
// msgsnd
|
// msgsnd
|
||||||
// nfssvc
|
// nfssvc
|
||||||
// nnpfspioctl
|
// nnpfspioctl
|
||||||
// openat
|
|
||||||
// preadv
|
// preadv
|
||||||
// profil
|
// profil
|
||||||
// pwritev
|
// pwritev
|
||||||
// quotactl
|
// quotactl
|
||||||
// readlinkat
|
|
||||||
// readv
|
// readv
|
||||||
// reboot
|
// reboot
|
||||||
// renameat
|
// renameat
|
||||||
@@ -356,13 +427,11 @@ func Uname(uname *Utsname) error {
|
|||||||
// sigprocmask
|
// sigprocmask
|
||||||
// sigreturn
|
// sigreturn
|
||||||
// sigsuspend
|
// sigsuspend
|
||||||
// symlinkat
|
|
||||||
// sysarch
|
// sysarch
|
||||||
// syscall
|
// syscall
|
||||||
// threxit
|
// threxit
|
||||||
// thrsigdivert
|
// thrsigdivert
|
||||||
// thrsleep
|
// thrsleep
|
||||||
// thrwakeup
|
// thrwakeup
|
||||||
// unlinkat
|
|
||||||
// vfork
|
// vfork
|
||||||
// writev
|
// writev
|
||||||
|
|||||||
4
vendor/golang.org/x/sys/unix/syscall_openbsd_386.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_openbsd_386.go
generated
vendored
@@ -31,3 +31,7 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
|||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
||||||
|
// of openbsd/386 the syscall is called sysctl instead of __sysctl.
|
||||||
|
const SYS___SYSCTL = SYS_SYSCTL
|
||||||
|
|||||||
4
vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go
generated
vendored
@@ -31,3 +31,7 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
|||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
||||||
|
// of openbsd/arm the syscall is called sysctl instead of __sysctl.
|
||||||
|
const SYS___SYSCTL = SYS_SYSCTL
|
||||||
|
|||||||
37
vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go
generated
vendored
Normal file
37
vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
// Copyright 2019 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 arm64,openbsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
|
return Timespec{Sec: sec, Nsec: nsec}
|
||||||
|
}
|
||||||
|
|
||||||
|
func setTimeval(sec, usec int64) Timeval {
|
||||||
|
return Timeval{Sec: sec, Usec: usec}
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetKevent(k *Kevent_t, fd, mode, flags int) {
|
||||||
|
k.Ident = uint64(fd)
|
||||||
|
k.Filter = int16(mode)
|
||||||
|
k.Flags = uint16(flags)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (iov *Iovec) SetLen(length int) {
|
||||||
|
iov.Len = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
|
msghdr.Controllen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
12
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
12
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
@@ -189,6 +189,7 @@ func Setgroups(gids []int) (err error) {
|
|||||||
return setgroups(len(a), &a[0])
|
return setgroups(len(a), &a[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ReadDirent reads directory entries from fd and writes them into buf.
|
||||||
func ReadDirent(fd int, buf []byte) (n int, err error) {
|
func ReadDirent(fd int, buf []byte) (n int, err error) {
|
||||||
// Final argument is (basep *uintptr) and the syscall doesn't take nil.
|
// Final argument is (basep *uintptr) and the syscall doesn't take nil.
|
||||||
// TODO(rsc): Can we use a single global basep for all calls?
|
// TODO(rsc): Can we use a single global basep for all calls?
|
||||||
@@ -540,11 +541,11 @@ func IoctlSetInt(fd int, req uint, value int) (err error) {
|
|||||||
return ioctl(fd, req, uintptr(value))
|
return ioctl(fd, req, uintptr(value))
|
||||||
}
|
}
|
||||||
|
|
||||||
func IoctlSetWinsize(fd int, req uint, value *Winsize) (err error) {
|
func ioctlSetWinsize(fd int, req uint, value *Winsize) (err error) {
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
}
|
}
|
||||||
|
|
||||||
func IoctlSetTermios(fd int, req uint, value *Termios) (err error) {
|
func ioctlSetTermios(fd int, req uint, value *Termios) (err error) {
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -585,6 +586,13 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
|
|||||||
return poll(&fds[0], len(fds), timeout)
|
return poll(&fds[0], len(fds), timeout)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||||
|
if raceenabled {
|
||||||
|
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
||||||
|
}
|
||||||
|
return sendfile(outfd, infd, offset, count)
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Exposed directly
|
* Exposed directly
|
||||||
*/
|
*/
|
||||||
|
|||||||
71
vendor/golang.org/x/sys/unix/syscall_unix.go
generated
vendored
71
vendor/golang.org/x/sys/unix/syscall_unix.go
generated
vendored
@@ -2,13 +2,12 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"runtime"
|
|
||||||
"sort"
|
"sort"
|
||||||
"sync"
|
"sync"
|
||||||
"syscall"
|
"syscall"
|
||||||
@@ -21,13 +20,6 @@ var (
|
|||||||
Stderr = 2
|
Stderr = 2
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
darwin64Bit = runtime.GOOS == "darwin" && sizeofPtr == 8
|
|
||||||
dragonfly64Bit = runtime.GOOS == "dragonfly" && sizeofPtr == 8
|
|
||||||
netbsd32Bit = runtime.GOOS == "netbsd" && sizeofPtr == 4
|
|
||||||
solaris64Bit = runtime.GOOS == "solaris" && sizeofPtr == 8
|
|
||||||
)
|
|
||||||
|
|
||||||
// Do the interface allocations only once for common
|
// Do the interface allocations only once for common
|
||||||
// Errno values.
|
// Errno values.
|
||||||
var (
|
var (
|
||||||
@@ -36,6 +28,11 @@ var (
|
|||||||
errENOENT error = syscall.ENOENT
|
errENOENT error = syscall.ENOENT
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
signalNameMapOnce sync.Once
|
||||||
|
signalNameMap map[string]syscall.Signal
|
||||||
|
)
|
||||||
|
|
||||||
// errnoErr returns common boxed Errno values, to prevent
|
// errnoErr returns common boxed Errno values, to prevent
|
||||||
// allocations at runtime.
|
// allocations at runtime.
|
||||||
func errnoErr(e syscall.Errno) error {
|
func errnoErr(e syscall.Errno) error {
|
||||||
@@ -74,6 +71,19 @@ func SignalName(s syscall.Signal) string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SignalNum returns the syscall.Signal for signal named s,
|
||||||
|
// or 0 if a signal with such name is not found.
|
||||||
|
// The signal name should start with "SIG".
|
||||||
|
func SignalNum(s string) syscall.Signal {
|
||||||
|
signalNameMapOnce.Do(func() {
|
||||||
|
signalNameMap = make(map[string]syscall.Signal)
|
||||||
|
for _, signal := range signalList {
|
||||||
|
signalNameMap[signal.name] = signal.num
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return signalNameMap[s]
|
||||||
|
}
|
||||||
|
|
||||||
// clen returns the index of the first NULL byte in n or len(n) if n contains no NULL byte.
|
// 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 {
|
func clen(n []byte) int {
|
||||||
i := bytes.IndexByte(n, 0)
|
i := bytes.IndexByte(n, 0)
|
||||||
@@ -284,6 +294,13 @@ func GetsockoptTimeval(fd, level, opt int) (*Timeval, error) {
|
|||||||
return &tv, err
|
return &tv, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GetsockoptUint64(fd, level, opt int) (value uint64, err error) {
|
||||||
|
var n uint64
|
||||||
|
vallen := _Socklen(8)
|
||||||
|
err = getsockopt(fd, level, opt, unsafe.Pointer(&n), &vallen)
|
||||||
|
return n, err
|
||||||
|
}
|
||||||
|
|
||||||
func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) {
|
func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) {
|
||||||
var rsa RawSockaddrAny
|
var rsa RawSockaddrAny
|
||||||
var len _Socklen = SizeofSockaddrAny
|
var len _Socklen = SizeofSockaddrAny
|
||||||
@@ -334,13 +351,21 @@ func SetsockoptLinger(fd, level, opt int, l *Linger) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func SetsockoptString(fd, level, opt int, s string) (err error) {
|
func SetsockoptString(fd, level, opt int, s string) (err error) {
|
||||||
return setsockopt(fd, level, opt, unsafe.Pointer(&[]byte(s)[0]), uintptr(len(s)))
|
var p unsafe.Pointer
|
||||||
|
if len(s) > 0 {
|
||||||
|
p = unsafe.Pointer(&[]byte(s)[0])
|
||||||
|
}
|
||||||
|
return setsockopt(fd, level, opt, p, uintptr(len(s)))
|
||||||
}
|
}
|
||||||
|
|
||||||
func SetsockoptTimeval(fd, level, opt int, tv *Timeval) (err error) {
|
func SetsockoptTimeval(fd, level, opt int, tv *Timeval) (err error) {
|
||||||
return setsockopt(fd, level, opt, unsafe.Pointer(tv), unsafe.Sizeof(*tv))
|
return setsockopt(fd, level, opt, unsafe.Pointer(tv), unsafe.Sizeof(*tv))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func SetsockoptUint64(fd, level, opt int, value uint64) (err error) {
|
||||||
|
return setsockopt(fd, level, opt, unsafe.Pointer(&value), 8)
|
||||||
|
}
|
||||||
|
|
||||||
func Socket(domain, typ, proto int) (fd int, err error) {
|
func Socket(domain, typ, proto int) (fd int, err error) {
|
||||||
if domain == AF_INET6 && SocketDisableIPv6 {
|
if domain == AF_INET6 && SocketDisableIPv6 {
|
||||||
return -1, EAFNOSUPPORT
|
return -1, EAFNOSUPPORT
|
||||||
@@ -359,13 +384,6 @@ func Socketpair(domain, typ, proto int) (fd [2]int, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
|
||||||
if raceenabled {
|
|
||||||
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
|
||||||
}
|
|
||||||
return sendfile(outfd, infd, offset, count)
|
|
||||||
}
|
|
||||||
|
|
||||||
var ioSync int64
|
var ioSync int64
|
||||||
|
|
||||||
func CloseOnExec(fd int) { fcntl(fd, F_SETFD, FD_CLOEXEC) }
|
func CloseOnExec(fd int) { fcntl(fd, F_SETFD, FD_CLOEXEC) }
|
||||||
@@ -392,3 +410,22 @@ func SetNonblock(fd int, nonblocking bool) (err error) {
|
|||||||
func Exec(argv0 string, argv []string, envv []string) error {
|
func Exec(argv0 string, argv []string, envv []string) error {
|
||||||
return syscall.Exec(argv0, argv, envv)
|
return syscall.Exec(argv0, argv, envv)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Lutimes sets the access and modification times tv on path. If path refers to
|
||||||
|
// a symlink, it is not dereferenced and the timestamps are set on the symlink.
|
||||||
|
// If tv is nil, the access and modification times are set to the current time.
|
||||||
|
// Otherwise tv must contain exactly 2 elements, with access time as the first
|
||||||
|
// element and modification time as the second element.
|
||||||
|
func Lutimes(path string, tv []Timeval) error {
|
||||||
|
if tv == nil {
|
||||||
|
return UtimesNanoAt(AT_FDCWD, path, nil, AT_SYMLINK_NOFOLLOW)
|
||||||
|
}
|
||||||
|
if len(tv) != 2 {
|
||||||
|
return EINVAL
|
||||||
|
}
|
||||||
|
ts := []Timespec{
|
||||||
|
NsecToTimespec(TimevalToNsec(tv[0])),
|
||||||
|
NsecToTimespec(TimevalToNsec(tv[1])),
|
||||||
|
}
|
||||||
|
return UtimesNanoAt(AT_FDCWD, path, ts, AT_SYMLINK_NOFOLLOW)
|
||||||
|
}
|
||||||
|
|||||||
2
vendor/golang.org/x/sys/unix/syscall_unix_gc.go
generated
vendored
2
vendor/golang.org/x/sys/unix/syscall_unix_gc.go
generated
vendored
@@ -3,7 +3,7 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||||
// +build !gccgo
|
// +build !gccgo,!ppc64le,!ppc64
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
|||||||
24
vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go
generated
vendored
Normal file
24
vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
// 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
|
||||||
|
// +build ppc64le ppc64
|
||||||
|
// +build !gccgo
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import "syscall"
|
||||||
|
|
||||||
|
func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) {
|
||||||
|
return syscall.Syscall(trap, a1, a2, a3)
|
||||||
|
}
|
||||||
|
func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) {
|
||||||
|
return syscall.Syscall6(trap, a1, a2, a3, a4, a5, a6)
|
||||||
|
}
|
||||||
|
func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) {
|
||||||
|
return syscall.RawSyscall(trap, a1, a2, a3)
|
||||||
|
}
|
||||||
|
func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) {
|
||||||
|
return syscall.RawSyscall6(trap, a1, a2, a3, a4, a5, a6)
|
||||||
|
}
|
||||||
2
vendor/golang.org/x/sys/unix/timestruct.go
generated
vendored
2
vendor/golang.org/x/sys/unix/timestruct.go
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
|||||||
237
vendor/golang.org/x/sys/unix/types_aix.go
generated
vendored
Normal file
237
vendor/golang.org/x/sys/unix/types_aix.go
generated
vendored
Normal file
@@ -0,0 +1,237 @@
|
|||||||
|
// 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 ignore
|
||||||
|
// +build aix
|
||||||
|
|
||||||
|
/*
|
||||||
|
Input to cgo -godefs. See also mkerrors.sh and mkall.sh
|
||||||
|
*/
|
||||||
|
|
||||||
|
// +godefs map struct_in_addr [4]byte /* in_addr */
|
||||||
|
// +godefs map struct_in6_addr [16]byte /* in6_addr */
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
/*
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/time.h>
|
||||||
|
#include <sys/limits.h>
|
||||||
|
#include <sys/un.h>
|
||||||
|
#include <utime.h>
|
||||||
|
#include <sys/utsname.h>
|
||||||
|
#include <sys/poll.h>
|
||||||
|
#include <sys/resource.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
#include <sys/termio.h>
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
|
#include <termios.h>
|
||||||
|
|
||||||
|
#include <net/if.h>
|
||||||
|
#include <net/if_dl.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#include <netinet/icmp6.h>
|
||||||
|
|
||||||
|
|
||||||
|
#include <dirent.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
|
||||||
|
enum {
|
||||||
|
sizeofPtr = sizeof(void*),
|
||||||
|
};
|
||||||
|
|
||||||
|
union sockaddr_all {
|
||||||
|
struct sockaddr s1; // this one gets used for fields
|
||||||
|
struct sockaddr_in s2; // these pad it out
|
||||||
|
struct sockaddr_in6 s3;
|
||||||
|
struct sockaddr_un s4;
|
||||||
|
struct sockaddr_dl s5;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct sockaddr_any {
|
||||||
|
struct sockaddr addr;
|
||||||
|
char pad[sizeof(union sockaddr_all) - sizeof(struct sockaddr)];
|
||||||
|
};
|
||||||
|
|
||||||
|
*/
|
||||||
|
import "C"
|
||||||
|
|
||||||
|
// Machine characteristics
|
||||||
|
|
||||||
|
const (
|
||||||
|
SizeofPtr = C.sizeofPtr
|
||||||
|
SizeofShort = C.sizeof_short
|
||||||
|
SizeofInt = C.sizeof_int
|
||||||
|
SizeofLong = C.sizeof_long
|
||||||
|
SizeofLongLong = C.sizeof_longlong
|
||||||
|
PathMax = C.PATH_MAX
|
||||||
|
)
|
||||||
|
|
||||||
|
// Basic types
|
||||||
|
|
||||||
|
type (
|
||||||
|
_C_short C.short
|
||||||
|
_C_int C.int
|
||||||
|
_C_long C.long
|
||||||
|
_C_long_long C.longlong
|
||||||
|
)
|
||||||
|
|
||||||
|
type off64 C.off64_t
|
||||||
|
type off C.off_t
|
||||||
|
type Mode_t C.mode_t
|
||||||
|
|
||||||
|
// Time
|
||||||
|
|
||||||
|
type Timespec C.struct_timespec
|
||||||
|
|
||||||
|
type Timeval C.struct_timeval
|
||||||
|
|
||||||
|
type Timeval32 C.struct_timeval32
|
||||||
|
|
||||||
|
type Timex C.struct_timex
|
||||||
|
|
||||||
|
type Time_t C.time_t
|
||||||
|
|
||||||
|
type Tms C.struct_tms
|
||||||
|
|
||||||
|
type Utimbuf C.struct_utimbuf
|
||||||
|
|
||||||
|
type Timezone C.struct_timezone
|
||||||
|
|
||||||
|
// Processes
|
||||||
|
|
||||||
|
type Rusage C.struct_rusage
|
||||||
|
|
||||||
|
type Rlimit C.struct_rlimit64
|
||||||
|
|
||||||
|
type Pid_t C.pid_t
|
||||||
|
|
||||||
|
type _Gid_t C.gid_t
|
||||||
|
|
||||||
|
type dev_t C.dev_t
|
||||||
|
|
||||||
|
// Files
|
||||||
|
|
||||||
|
type Stat_t C.struct_stat
|
||||||
|
|
||||||
|
type StatxTimestamp C.struct_statx_timestamp
|
||||||
|
|
||||||
|
type Statx_t C.struct_statx
|
||||||
|
|
||||||
|
type Dirent C.struct_dirent
|
||||||
|
|
||||||
|
// Sockets
|
||||||
|
|
||||||
|
type RawSockaddrInet4 C.struct_sockaddr_in
|
||||||
|
|
||||||
|
type RawSockaddrInet6 C.struct_sockaddr_in6
|
||||||
|
|
||||||
|
type RawSockaddrUnix C.struct_sockaddr_un
|
||||||
|
|
||||||
|
type RawSockaddrDatalink C.struct_sockaddr_dl
|
||||||
|
|
||||||
|
type RawSockaddr C.struct_sockaddr
|
||||||
|
|
||||||
|
type RawSockaddrAny C.struct_sockaddr_any
|
||||||
|
|
||||||
|
type _Socklen C.socklen_t
|
||||||
|
|
||||||
|
type Cmsghdr C.struct_cmsghdr
|
||||||
|
|
||||||
|
type ICMPv6Filter C.struct_icmp6_filter
|
||||||
|
|
||||||
|
type Iovec C.struct_iovec
|
||||||
|
|
||||||
|
type IPMreq C.struct_ip_mreq
|
||||||
|
|
||||||
|
type IPv6Mreq C.struct_ipv6_mreq
|
||||||
|
|
||||||
|
type IPv6MTUInfo C.struct_ip6_mtuinfo
|
||||||
|
|
||||||
|
type Linger C.struct_linger
|
||||||
|
|
||||||
|
type Msghdr C.struct_msghdr
|
||||||
|
|
||||||
|
const (
|
||||||
|
SizeofSockaddrInet4 = C.sizeof_struct_sockaddr_in
|
||||||
|
SizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6
|
||||||
|
SizeofSockaddrAny = C.sizeof_struct_sockaddr_any
|
||||||
|
SizeofSockaddrUnix = C.sizeof_struct_sockaddr_un
|
||||||
|
SizeofSockaddrDatalink = C.sizeof_struct_sockaddr_dl
|
||||||
|
SizeofLinger = C.sizeof_struct_linger
|
||||||
|
SizeofIPMreq = C.sizeof_struct_ip_mreq
|
||||||
|
SizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq
|
||||||
|
SizeofIPv6MTUInfo = C.sizeof_struct_ip6_mtuinfo
|
||||||
|
SizeofMsghdr = C.sizeof_struct_msghdr
|
||||||
|
SizeofCmsghdr = C.sizeof_struct_cmsghdr
|
||||||
|
SizeofICMPv6Filter = C.sizeof_struct_icmp6_filter
|
||||||
|
)
|
||||||
|
|
||||||
|
// Routing and interface messages
|
||||||
|
|
||||||
|
const (
|
||||||
|
SizeofIfMsghdr = C.sizeof_struct_if_msghdr
|
||||||
|
)
|
||||||
|
|
||||||
|
type IfMsgHdr C.struct_if_msghdr
|
||||||
|
|
||||||
|
// Misc
|
||||||
|
|
||||||
|
type FdSet C.fd_set
|
||||||
|
|
||||||
|
type Utsname C.struct_utsname
|
||||||
|
|
||||||
|
type Ustat_t C.struct_ustat
|
||||||
|
|
||||||
|
type Sigset_t C.sigset_t
|
||||||
|
|
||||||
|
const (
|
||||||
|
AT_FDCWD = C.AT_FDCWD
|
||||||
|
AT_REMOVEDIR = C.AT_REMOVEDIR
|
||||||
|
AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW
|
||||||
|
)
|
||||||
|
|
||||||
|
// Terminal handling
|
||||||
|
|
||||||
|
type Termios C.struct_termios
|
||||||
|
|
||||||
|
type Termio C.struct_termio
|
||||||
|
|
||||||
|
type Winsize C.struct_winsize
|
||||||
|
|
||||||
|
//poll
|
||||||
|
|
||||||
|
type PollFd struct {
|
||||||
|
Fd int32
|
||||||
|
Events uint16
|
||||||
|
Revents uint16
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
POLLERR = C.POLLERR
|
||||||
|
POLLHUP = C.POLLHUP
|
||||||
|
POLLIN = C.POLLIN
|
||||||
|
POLLNVAL = C.POLLNVAL
|
||||||
|
POLLOUT = C.POLLOUT
|
||||||
|
POLLPRI = C.POLLPRI
|
||||||
|
POLLRDBAND = C.POLLRDBAND
|
||||||
|
POLLRDNORM = C.POLLRDNORM
|
||||||
|
POLLWRBAND = C.POLLWRBAND
|
||||||
|
POLLWRNORM = C.POLLWRNORM
|
||||||
|
)
|
||||||
|
|
||||||
|
//flock_t
|
||||||
|
|
||||||
|
type Flock_t C.struct_flock64
|
||||||
|
|
||||||
|
// Statfs
|
||||||
|
|
||||||
|
type Fsid_t C.struct_fsid_t
|
||||||
|
type Fsid64_t C.struct_fsid64_t
|
||||||
|
|
||||||
|
type Statfs_t C.struct_statfs
|
||||||
|
|
||||||
|
const RNDGETENTCNT = 0x80045200
|
||||||
18
vendor/golang.org/x/sys/unix/types_darwin.go
generated
vendored
18
vendor/golang.org/x/sys/unix/types_darwin.go
generated
vendored
@@ -70,14 +70,14 @@ struct sockaddr_any {
|
|||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
// Machine characteristics; for internal use.
|
// Machine characteristics
|
||||||
|
|
||||||
const (
|
const (
|
||||||
sizeofPtr = C.sizeofPtr
|
SizeofPtr = C.sizeofPtr
|
||||||
sizeofShort = C.sizeof_short
|
SizeofShort = C.sizeof_short
|
||||||
sizeofInt = C.sizeof_int
|
SizeofInt = C.sizeof_int
|
||||||
sizeofLong = C.sizeof_long
|
SizeofLong = C.sizeof_long
|
||||||
sizeofLongLong = C.sizeof_longlong
|
SizeofLongLong = C.sizeof_longlong
|
||||||
)
|
)
|
||||||
|
|
||||||
// Basic types
|
// Basic types
|
||||||
@@ -275,3 +275,9 @@ const (
|
|||||||
// uname
|
// uname
|
||||||
|
|
||||||
type Utsname C.struct_utsname
|
type Utsname C.struct_utsname
|
||||||
|
|
||||||
|
// Clockinfo
|
||||||
|
|
||||||
|
const SizeofClockinfo = C.sizeof_struct_clockinfo
|
||||||
|
|
||||||
|
type Clockinfo C.struct_clockinfo
|
||||||
|
|||||||
29
vendor/golang.org/x/sys/unix/types_dragonfly.go
generated
vendored
29
vendor/golang.org/x/sys/unix/types_dragonfly.go
generated
vendored
@@ -65,14 +65,14 @@ struct sockaddr_any {
|
|||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
// Machine characteristics; for internal use.
|
// Machine characteristics
|
||||||
|
|
||||||
const (
|
const (
|
||||||
sizeofPtr = C.sizeofPtr
|
SizeofPtr = C.sizeofPtr
|
||||||
sizeofShort = C.sizeof_short
|
SizeofShort = C.sizeof_short
|
||||||
sizeofInt = C.sizeof_int
|
SizeofInt = C.sizeof_int
|
||||||
sizeofLong = C.sizeof_long
|
SizeofLong = C.sizeof_long
|
||||||
sizeofLongLong = C.sizeof_longlong
|
SizeofLongLong = C.sizeof_longlong
|
||||||
)
|
)
|
||||||
|
|
||||||
// Basic types
|
// Basic types
|
||||||
@@ -100,23 +100,6 @@ type _Gid_t C.gid_t
|
|||||||
|
|
||||||
// Files
|
// Files
|
||||||
|
|
||||||
const ( // Directory mode bits
|
|
||||||
S_IFMT = C.S_IFMT
|
|
||||||
S_IFIFO = C.S_IFIFO
|
|
||||||
S_IFCHR = C.S_IFCHR
|
|
||||||
S_IFDIR = C.S_IFDIR
|
|
||||||
S_IFBLK = C.S_IFBLK
|
|
||||||
S_IFREG = C.S_IFREG
|
|
||||||
S_IFLNK = C.S_IFLNK
|
|
||||||
S_IFSOCK = C.S_IFSOCK
|
|
||||||
S_ISUID = C.S_ISUID
|
|
||||||
S_ISGID = C.S_ISGID
|
|
||||||
S_ISVTX = C.S_ISVTX
|
|
||||||
S_IRUSR = C.S_IRUSR
|
|
||||||
S_IWUSR = C.S_IWUSR
|
|
||||||
S_IXUSR = C.S_IXUSR
|
|
||||||
)
|
|
||||||
|
|
||||||
type Stat_t C.struct_stat
|
type Stat_t C.struct_stat
|
||||||
|
|
||||||
type Statfs_t C.struct_statfs
|
type Statfs_t C.struct_statfs
|
||||||
|
|||||||
142
vendor/golang.org/x/sys/unix/types_freebsd.go
generated
vendored
142
vendor/golang.org/x/sys/unix/types_freebsd.go
generated
vendored
@@ -14,7 +14,11 @@ Input to cgo -godefs. See README.md
|
|||||||
package unix
|
package unix
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#define KERNEL
|
#define _WANT_FREEBSD11_STAT 1
|
||||||
|
#define _WANT_FREEBSD11_STATFS 1
|
||||||
|
#define _WANT_FREEBSD11_DIRENT 1
|
||||||
|
#define _WANT_FREEBSD11_KEVENT 1
|
||||||
|
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
@@ -22,7 +26,7 @@ package unix
|
|||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/capability.h>
|
#include <sys/capsicum.h>
|
||||||
#include <sys/event.h>
|
#include <sys/event.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
@@ -63,50 +67,6 @@ struct sockaddr_any {
|
|||||||
char pad[sizeof(union sockaddr_all) - sizeof(struct sockaddr)];
|
char pad[sizeof(union sockaddr_all) - sizeof(struct sockaddr)];
|
||||||
};
|
};
|
||||||
|
|
||||||
// This structure is a duplicate of stat on FreeBSD 8-STABLE.
|
|
||||||
// See /usr/include/sys/stat.h.
|
|
||||||
struct stat8 {
|
|
||||||
#undef st_atimespec st_atim
|
|
||||||
#undef st_mtimespec st_mtim
|
|
||||||
#undef st_ctimespec st_ctim
|
|
||||||
#undef st_birthtimespec st_birthtim
|
|
||||||
__dev_t st_dev;
|
|
||||||
ino_t st_ino;
|
|
||||||
mode_t st_mode;
|
|
||||||
nlink_t st_nlink;
|
|
||||||
uid_t st_uid;
|
|
||||||
gid_t st_gid;
|
|
||||||
__dev_t st_rdev;
|
|
||||||
#if __BSD_VISIBLE
|
|
||||||
struct timespec st_atimespec;
|
|
||||||
struct timespec st_mtimespec;
|
|
||||||
struct timespec st_ctimespec;
|
|
||||||
#else
|
|
||||||
time_t st_atime;
|
|
||||||
long __st_atimensec;
|
|
||||||
time_t st_mtime;
|
|
||||||
long __st_mtimensec;
|
|
||||||
time_t st_ctime;
|
|
||||||
long __st_ctimensec;
|
|
||||||
#endif
|
|
||||||
off_t st_size;
|
|
||||||
blkcnt_t st_blocks;
|
|
||||||
blksize_t st_blksize;
|
|
||||||
fflags_t st_flags;
|
|
||||||
__uint32_t st_gen;
|
|
||||||
__int32_t st_lspare;
|
|
||||||
#if __BSD_VISIBLE
|
|
||||||
struct timespec st_birthtimespec;
|
|
||||||
unsigned int :(8 / 2) * (16 - (int)sizeof(struct timespec));
|
|
||||||
unsigned int :(8 / 2) * (16 - (int)sizeof(struct timespec));
|
|
||||||
#else
|
|
||||||
time_t st_birthtime;
|
|
||||||
long st_birthtimensec;
|
|
||||||
unsigned int :(8 / 2) * (16 - (int)sizeof(struct __timespec));
|
|
||||||
unsigned int :(8 / 2) * (16 - (int)sizeof(struct __timespec));
|
|
||||||
#endif
|
|
||||||
};
|
|
||||||
|
|
||||||
// This structure is a duplicate of if_data on FreeBSD 8-STABLE.
|
// This structure is a duplicate of if_data on FreeBSD 8-STABLE.
|
||||||
// See /usr/include/net/if.h.
|
// See /usr/include/net/if.h.
|
||||||
struct if_data8 {
|
struct if_data8 {
|
||||||
@@ -154,14 +114,14 @@ struct if_msghdr8 {
|
|||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
// Machine characteristics; for internal use.
|
// Machine characteristics
|
||||||
|
|
||||||
const (
|
const (
|
||||||
sizeofPtr = C.sizeofPtr
|
SizeofPtr = C.sizeofPtr
|
||||||
sizeofShort = C.sizeof_short
|
SizeofShort = C.sizeof_short
|
||||||
sizeofInt = C.sizeof_int
|
SizeofInt = C.sizeof_int
|
||||||
sizeofLong = C.sizeof_long
|
SizeofLong = C.sizeof_long
|
||||||
sizeofLongLong = C.sizeof_longlong
|
SizeofLongLong = C.sizeof_longlong
|
||||||
)
|
)
|
||||||
|
|
||||||
// Basic types
|
// Basic types
|
||||||
@@ -189,31 +149,25 @@ type _Gid_t C.gid_t
|
|||||||
|
|
||||||
// Files
|
// Files
|
||||||
|
|
||||||
const ( // Directory mode bits
|
const (
|
||||||
S_IFMT = C.S_IFMT
|
_statfsVersion = C.STATFS_VERSION
|
||||||
S_IFIFO = C.S_IFIFO
|
_dirblksiz = C.DIRBLKSIZ
|
||||||
S_IFCHR = C.S_IFCHR
|
|
||||||
S_IFDIR = C.S_IFDIR
|
|
||||||
S_IFBLK = C.S_IFBLK
|
|
||||||
S_IFREG = C.S_IFREG
|
|
||||||
S_IFLNK = C.S_IFLNK
|
|
||||||
S_IFSOCK = C.S_IFSOCK
|
|
||||||
S_ISUID = C.S_ISUID
|
|
||||||
S_ISGID = C.S_ISGID
|
|
||||||
S_ISVTX = C.S_ISVTX
|
|
||||||
S_IRUSR = C.S_IRUSR
|
|
||||||
S_IWUSR = C.S_IWUSR
|
|
||||||
S_IXUSR = C.S_IXUSR
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Stat_t C.struct_stat8
|
type Stat_t C.struct_stat
|
||||||
|
|
||||||
|
type stat_freebsd11_t C.struct_freebsd11_stat
|
||||||
|
|
||||||
type Statfs_t C.struct_statfs
|
type Statfs_t C.struct_statfs
|
||||||
|
|
||||||
|
type statfs_freebsd11_t C.struct_freebsd11_statfs
|
||||||
|
|
||||||
type Flock_t C.struct_flock
|
type Flock_t C.struct_flock
|
||||||
|
|
||||||
type Dirent C.struct_dirent
|
type Dirent C.struct_dirent
|
||||||
|
|
||||||
|
type dirent_freebsd11 C.struct_freebsd11_dirent
|
||||||
|
|
||||||
type Fsid C.struct_fsid
|
type Fsid C.struct_fsid
|
||||||
|
|
||||||
// File system limits
|
// File system limits
|
||||||
@@ -289,14 +243,58 @@ const (
|
|||||||
// Ptrace requests
|
// Ptrace requests
|
||||||
|
|
||||||
const (
|
const (
|
||||||
PTRACE_TRACEME = C.PT_TRACE_ME
|
PTRACE_ATTACH = C.PT_ATTACH
|
||||||
PTRACE_CONT = C.PT_CONTINUE
|
PTRACE_CONT = C.PT_CONTINUE
|
||||||
PTRACE_KILL = C.PT_KILL
|
PTRACE_DETACH = C.PT_DETACH
|
||||||
|
PTRACE_GETFPREGS = C.PT_GETFPREGS
|
||||||
|
PTRACE_GETFSBASE = C.PT_GETFSBASE
|
||||||
|
PTRACE_GETLWPLIST = C.PT_GETLWPLIST
|
||||||
|
PTRACE_GETNUMLWPS = C.PT_GETNUMLWPS
|
||||||
|
PTRACE_GETREGS = C.PT_GETREGS
|
||||||
|
PTRACE_GETXSTATE = C.PT_GETXSTATE
|
||||||
|
PTRACE_IO = C.PT_IO
|
||||||
|
PTRACE_KILL = C.PT_KILL
|
||||||
|
PTRACE_LWPEVENTS = C.PT_LWP_EVENTS
|
||||||
|
PTRACE_LWPINFO = C.PT_LWPINFO
|
||||||
|
PTRACE_SETFPREGS = C.PT_SETFPREGS
|
||||||
|
PTRACE_SETREGS = C.PT_SETREGS
|
||||||
|
PTRACE_SINGLESTEP = C.PT_STEP
|
||||||
|
PTRACE_TRACEME = C.PT_TRACE_ME
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
PIOD_READ_D = C.PIOD_READ_D
|
||||||
|
PIOD_WRITE_D = C.PIOD_WRITE_D
|
||||||
|
PIOD_READ_I = C.PIOD_READ_I
|
||||||
|
PIOD_WRITE_I = C.PIOD_WRITE_I
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
PL_FLAG_BORN = C.PL_FLAG_BORN
|
||||||
|
PL_FLAG_EXITED = C.PL_FLAG_EXITED
|
||||||
|
PL_FLAG_SI = C.PL_FLAG_SI
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
TRAP_BRKPT = C.TRAP_BRKPT
|
||||||
|
TRAP_TRACE = C.TRAP_TRACE
|
||||||
|
)
|
||||||
|
|
||||||
|
type PtraceLwpInfoStruct C.struct_ptrace_lwpinfo
|
||||||
|
|
||||||
|
type __Siginfo C.struct___siginfo
|
||||||
|
|
||||||
|
type Sigset_t C.sigset_t
|
||||||
|
|
||||||
|
type Reg C.struct_reg
|
||||||
|
|
||||||
|
type FpReg C.struct_fpreg
|
||||||
|
|
||||||
|
type PtraceIoDesc C.struct_ptrace_io_desc
|
||||||
|
|
||||||
// Events (kqueue, kevent)
|
// Events (kqueue, kevent)
|
||||||
|
|
||||||
type Kevent_t C.struct_kevent
|
type Kevent_t C.struct_kevent_freebsd11
|
||||||
|
|
||||||
// Select
|
// Select
|
||||||
|
|
||||||
|
|||||||
21
vendor/golang.org/x/sys/unix/types_netbsd.go
generated
vendored
21
vendor/golang.org/x/sys/unix/types_netbsd.go
generated
vendored
@@ -67,14 +67,14 @@ struct sockaddr_any {
|
|||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
// Machine characteristics; for internal use.
|
// Machine characteristics
|
||||||
|
|
||||||
const (
|
const (
|
||||||
sizeofPtr = C.sizeofPtr
|
SizeofPtr = C.sizeofPtr
|
||||||
sizeofShort = C.sizeof_short
|
SizeofShort = C.sizeof_short
|
||||||
sizeofInt = C.sizeof_int
|
SizeofInt = C.sizeof_int
|
||||||
sizeofLong = C.sizeof_long
|
SizeofLong = C.sizeof_long
|
||||||
sizeofLongLong = C.sizeof_longlong
|
SizeofLongLong = C.sizeof_longlong
|
||||||
)
|
)
|
||||||
|
|
||||||
// Basic types
|
// Basic types
|
||||||
@@ -248,10 +248,13 @@ type Termios C.struct_termios
|
|||||||
|
|
||||||
type Winsize C.struct_winsize
|
type Winsize C.struct_winsize
|
||||||
|
|
||||||
|
type Ptmget C.struct_ptmget
|
||||||
|
|
||||||
// fchmodat-like syscalls.
|
// fchmodat-like syscalls.
|
||||||
|
|
||||||
const (
|
const (
|
||||||
AT_FDCWD = C.AT_FDCWD
|
AT_FDCWD = C.AT_FDCWD
|
||||||
|
AT_SYMLINK_FOLLOW = C.AT_SYMLINK_FOLLOW
|
||||||
AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW
|
AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -279,3 +282,9 @@ type Sysctlnode C.struct_sysctlnode
|
|||||||
// Uname
|
// Uname
|
||||||
|
|
||||||
type Utsname C.struct_utsname
|
type Utsname C.struct_utsname
|
||||||
|
|
||||||
|
// Clockinfo
|
||||||
|
|
||||||
|
const SizeofClockinfo = C.sizeof_struct_clockinfo
|
||||||
|
|
||||||
|
type Clockinfo C.struct_clockinfo
|
||||||
|
|||||||
47
vendor/golang.org/x/sys/unix/types_openbsd.go
generated
vendored
47
vendor/golang.org/x/sys/unix/types_openbsd.go
generated
vendored
@@ -38,6 +38,7 @@ package unix
|
|||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
#include <uvm/uvmexp.h>
|
||||||
#include <net/bpf.h>
|
#include <net/bpf.h>
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
#include <net/if_dl.h>
|
#include <net/if_dl.h>
|
||||||
@@ -66,14 +67,14 @@ struct sockaddr_any {
|
|||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
// Machine characteristics; for internal use.
|
// Machine characteristics
|
||||||
|
|
||||||
const (
|
const (
|
||||||
sizeofPtr = C.sizeofPtr
|
SizeofPtr = C.sizeofPtr
|
||||||
sizeofShort = C.sizeof_short
|
SizeofShort = C.sizeof_short
|
||||||
sizeofInt = C.sizeof_int
|
SizeofInt = C.sizeof_int
|
||||||
sizeofLong = C.sizeof_long
|
SizeofLong = C.sizeof_long
|
||||||
sizeofLongLong = C.sizeof_longlong
|
SizeofLongLong = C.sizeof_longlong
|
||||||
)
|
)
|
||||||
|
|
||||||
// Basic types
|
// Basic types
|
||||||
@@ -101,23 +102,6 @@ type _Gid_t C.gid_t
|
|||||||
|
|
||||||
// Files
|
// Files
|
||||||
|
|
||||||
const ( // Directory mode bits
|
|
||||||
S_IFMT = C.S_IFMT
|
|
||||||
S_IFIFO = C.S_IFIFO
|
|
||||||
S_IFCHR = C.S_IFCHR
|
|
||||||
S_IFDIR = C.S_IFDIR
|
|
||||||
S_IFBLK = C.S_IFBLK
|
|
||||||
S_IFREG = C.S_IFREG
|
|
||||||
S_IFLNK = C.S_IFLNK
|
|
||||||
S_IFSOCK = C.S_IFSOCK
|
|
||||||
S_ISUID = C.S_ISUID
|
|
||||||
S_ISGID = C.S_ISGID
|
|
||||||
S_ISVTX = C.S_ISVTX
|
|
||||||
S_IRUSR = C.S_IRUSR
|
|
||||||
S_IWUSR = C.S_IWUSR
|
|
||||||
S_IXUSR = C.S_IXUSR
|
|
||||||
)
|
|
||||||
|
|
||||||
type Stat_t C.struct_stat
|
type Stat_t C.struct_stat
|
||||||
|
|
||||||
type Statfs_t C.struct_statfs
|
type Statfs_t C.struct_statfs
|
||||||
@@ -257,6 +241,7 @@ type Winsize C.struct_winsize
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
AT_FDCWD = C.AT_FDCWD
|
AT_FDCWD = C.AT_FDCWD
|
||||||
|
AT_SYMLINK_FOLLOW = C.AT_SYMLINK_FOLLOW
|
||||||
AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW
|
AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -277,6 +262,22 @@ const (
|
|||||||
POLLWRNORM = C.POLLWRNORM
|
POLLWRNORM = C.POLLWRNORM
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Signal Sets
|
||||||
|
|
||||||
|
type Sigset_t C.sigset_t
|
||||||
|
|
||||||
// Uname
|
// Uname
|
||||||
|
|
||||||
type Utsname C.struct_utsname
|
type Utsname C.struct_utsname
|
||||||
|
|
||||||
|
// Uvmexp
|
||||||
|
|
||||||
|
const SizeofUvmexp = C.sizeof_struct_uvmexp
|
||||||
|
|
||||||
|
type Uvmexp C.struct_uvmexp
|
||||||
|
|
||||||
|
// Clockinfo
|
||||||
|
|
||||||
|
const SizeofClockinfo = C.sizeof_struct_clockinfo
|
||||||
|
|
||||||
|
type Clockinfo C.struct_clockinfo
|
||||||
|
|||||||
29
vendor/golang.org/x/sys/unix/types_solaris.go
generated
vendored
29
vendor/golang.org/x/sys/unix/types_solaris.go
generated
vendored
@@ -75,14 +75,14 @@ struct sockaddr_any {
|
|||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
// Machine characteristics; for internal use.
|
// Machine characteristics
|
||||||
|
|
||||||
const (
|
const (
|
||||||
sizeofPtr = C.sizeofPtr
|
SizeofPtr = C.sizeofPtr
|
||||||
sizeofShort = C.sizeof_short
|
SizeofShort = C.sizeof_short
|
||||||
sizeofInt = C.sizeof_int
|
SizeofInt = C.sizeof_int
|
||||||
sizeofLong = C.sizeof_long
|
SizeofLong = C.sizeof_long
|
||||||
sizeofLongLong = C.sizeof_longlong
|
SizeofLongLong = C.sizeof_longlong
|
||||||
PathMax = C.PATH_MAX
|
PathMax = C.PATH_MAX
|
||||||
MaxHostNameLen = C.MAXHOSTNAMELEN
|
MaxHostNameLen = C.MAXHOSTNAMELEN
|
||||||
)
|
)
|
||||||
@@ -118,23 +118,6 @@ type _Gid_t C.gid_t
|
|||||||
|
|
||||||
// Files
|
// Files
|
||||||
|
|
||||||
const ( // Directory mode bits
|
|
||||||
S_IFMT = C.S_IFMT
|
|
||||||
S_IFIFO = C.S_IFIFO
|
|
||||||
S_IFCHR = C.S_IFCHR
|
|
||||||
S_IFDIR = C.S_IFDIR
|
|
||||||
S_IFBLK = C.S_IFBLK
|
|
||||||
S_IFREG = C.S_IFREG
|
|
||||||
S_IFLNK = C.S_IFLNK
|
|
||||||
S_IFSOCK = C.S_IFSOCK
|
|
||||||
S_ISUID = C.S_ISUID
|
|
||||||
S_ISGID = C.S_ISGID
|
|
||||||
S_ISVTX = C.S_ISVTX
|
|
||||||
S_IRUSR = C.S_IRUSR
|
|
||||||
S_IWUSR = C.S_IWUSR
|
|
||||||
S_IXUSR = C.S_IXUSR
|
|
||||||
)
|
|
||||||
|
|
||||||
type Stat_t C.struct_stat
|
type Stat_t C.struct_stat
|
||||||
|
|
||||||
type Flock_t C.struct_flock
|
type Flock_t C.struct_flock
|
||||||
|
|||||||
42
vendor/golang.org/x/sys/unix/unveil_openbsd.go
generated
vendored
Normal file
42
vendor/golang.org/x/sys/unix/unveil_openbsd.go
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
// 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
|
||||||
|
|
||||||
|
import (
|
||||||
|
"syscall"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Unveil implements the unveil syscall.
|
||||||
|
// For more information see unveil(2).
|
||||||
|
// Note that the special case of blocking further
|
||||||
|
// unveil calls is handled by UnveilBlock.
|
||||||
|
func Unveil(path string, flags string) error {
|
||||||
|
pathPtr, err := syscall.BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
flagsPtr, err := syscall.BytePtrFromString(flags)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
_, _, e := syscall.Syscall(SYS_UNVEIL, uintptr(unsafe.Pointer(pathPtr)), uintptr(unsafe.Pointer(flagsPtr)), 0)
|
||||||
|
if e != 0 {
|
||||||
|
return e
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnveilBlock blocks future unveil calls.
|
||||||
|
// For more information see unveil(2).
|
||||||
|
func UnveilBlock() error {
|
||||||
|
// Both pointers must be nil.
|
||||||
|
var pathUnsafe, flagsUnsafe unsafe.Pointer
|
||||||
|
_, _, e := syscall.Syscall(SYS_UNVEIL, uintptr(pathUnsafe), uintptr(flagsUnsafe), 0)
|
||||||
|
if e != 0 {
|
||||||
|
return e
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
240
vendor/golang.org/x/sys/unix/xattr_bsd.go
generated
vendored
Normal file
240
vendor/golang.org/x/sys/unix/xattr_bsd.go
generated
vendored
Normal file
@@ -0,0 +1,240 @@
|
|||||||
|
// 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 freebsd netbsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
"strings"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Derive extattr namespace and attribute name
|
||||||
|
|
||||||
|
func xattrnamespace(fullattr string) (ns int, attr string, err error) {
|
||||||
|
s := strings.IndexByte(fullattr, '.')
|
||||||
|
if s == -1 {
|
||||||
|
return -1, "", ENOATTR
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace := fullattr[0:s]
|
||||||
|
attr = fullattr[s+1:]
|
||||||
|
|
||||||
|
switch namespace {
|
||||||
|
case "user":
|
||||||
|
return EXTATTR_NAMESPACE_USER, attr, nil
|
||||||
|
case "system":
|
||||||
|
return EXTATTR_NAMESPACE_SYSTEM, attr, nil
|
||||||
|
default:
|
||||||
|
return -1, "", ENOATTR
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func initxattrdest(dest []byte, idx int) (d unsafe.Pointer) {
|
||||||
|
if len(dest) > idx {
|
||||||
|
return unsafe.Pointer(&dest[idx])
|
||||||
|
} else {
|
||||||
|
return unsafe.Pointer(_zero)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// FreeBSD and NetBSD implement their own syscalls to handle extended attributes
|
||||||
|
|
||||||
|
func Getxattr(file string, attr string, dest []byte) (sz int, err error) {
|
||||||
|
d := initxattrdest(dest, 0)
|
||||||
|
destsize := len(dest)
|
||||||
|
|
||||||
|
nsid, a, err := xattrnamespace(attr)
|
||||||
|
if err != nil {
|
||||||
|
return -1, err
|
||||||
|
}
|
||||||
|
|
||||||
|
return ExtattrGetFile(file, nsid, a, uintptr(d), destsize)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
|
||||||
|
d := initxattrdest(dest, 0)
|
||||||
|
destsize := len(dest)
|
||||||
|
|
||||||
|
nsid, a, err := xattrnamespace(attr)
|
||||||
|
if err != nil {
|
||||||
|
return -1, err
|
||||||
|
}
|
||||||
|
|
||||||
|
return ExtattrGetFd(fd, nsid, a, uintptr(d), destsize)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Lgetxattr(link string, attr string, dest []byte) (sz int, err error) {
|
||||||
|
d := initxattrdest(dest, 0)
|
||||||
|
destsize := len(dest)
|
||||||
|
|
||||||
|
nsid, a, err := xattrnamespace(attr)
|
||||||
|
if err != nil {
|
||||||
|
return -1, err
|
||||||
|
}
|
||||||
|
|
||||||
|
return ExtattrGetLink(link, nsid, a, uintptr(d), destsize)
|
||||||
|
}
|
||||||
|
|
||||||
|
// flags are unused on FreeBSD
|
||||||
|
|
||||||
|
func Fsetxattr(fd int, attr string, data []byte, flags int) (err error) {
|
||||||
|
var d unsafe.Pointer
|
||||||
|
if len(data) > 0 {
|
||||||
|
d = unsafe.Pointer(&data[0])
|
||||||
|
}
|
||||||
|
datasiz := len(data)
|
||||||
|
|
||||||
|
nsid, a, err := xattrnamespace(attr)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
_, err = ExtattrSetFd(fd, nsid, a, uintptr(d), datasiz)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Setxattr(file string, attr string, data []byte, flags int) (err error) {
|
||||||
|
var d unsafe.Pointer
|
||||||
|
if len(data) > 0 {
|
||||||
|
d = unsafe.Pointer(&data[0])
|
||||||
|
}
|
||||||
|
datasiz := len(data)
|
||||||
|
|
||||||
|
nsid, a, err := xattrnamespace(attr)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
_, err = ExtattrSetFile(file, nsid, a, uintptr(d), datasiz)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Lsetxattr(link string, attr string, data []byte, flags int) (err error) {
|
||||||
|
var d unsafe.Pointer
|
||||||
|
if len(data) > 0 {
|
||||||
|
d = unsafe.Pointer(&data[0])
|
||||||
|
}
|
||||||
|
datasiz := len(data)
|
||||||
|
|
||||||
|
nsid, a, err := xattrnamespace(attr)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
_, err = ExtattrSetLink(link, nsid, a, uintptr(d), datasiz)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Removexattr(file string, attr string) (err error) {
|
||||||
|
nsid, a, err := xattrnamespace(attr)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
err = ExtattrDeleteFile(file, nsid, a)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Fremovexattr(fd int, attr string) (err error) {
|
||||||
|
nsid, a, err := xattrnamespace(attr)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
err = ExtattrDeleteFd(fd, nsid, a)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Lremovexattr(link string, attr string) (err error) {
|
||||||
|
nsid, a, err := xattrnamespace(attr)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
err = ExtattrDeleteLink(link, nsid, a)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Listxattr(file string, dest []byte) (sz int, err error) {
|
||||||
|
d := initxattrdest(dest, 0)
|
||||||
|
destsiz := len(dest)
|
||||||
|
|
||||||
|
// FreeBSD won't allow you to list xattrs from multiple namespaces
|
||||||
|
s := 0
|
||||||
|
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
||||||
|
stmp, e := ExtattrListFile(file, nsid, uintptr(d), destsiz)
|
||||||
|
|
||||||
|
/* Errors accessing system attrs are ignored so that
|
||||||
|
* we can implement the Linux-like behavior of omitting errors that
|
||||||
|
* we don't have read permissions on
|
||||||
|
*
|
||||||
|
* Linux will still error if we ask for user attributes on a file that
|
||||||
|
* we don't have read permissions on, so don't ignore those errors
|
||||||
|
*/
|
||||||
|
if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
||||||
|
continue
|
||||||
|
} else if e != nil {
|
||||||
|
return s, e
|
||||||
|
}
|
||||||
|
|
||||||
|
s += stmp
|
||||||
|
destsiz -= s
|
||||||
|
if destsiz < 0 {
|
||||||
|
destsiz = 0
|
||||||
|
}
|
||||||
|
d = initxattrdest(dest, s)
|
||||||
|
}
|
||||||
|
|
||||||
|
return s, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
||||||
|
d := initxattrdest(dest, 0)
|
||||||
|
destsiz := len(dest)
|
||||||
|
|
||||||
|
s := 0
|
||||||
|
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
||||||
|
stmp, e := ExtattrListFd(fd, nsid, uintptr(d), destsiz)
|
||||||
|
if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
||||||
|
continue
|
||||||
|
} else if e != nil {
|
||||||
|
return s, e
|
||||||
|
}
|
||||||
|
|
||||||
|
s += stmp
|
||||||
|
destsiz -= s
|
||||||
|
if destsiz < 0 {
|
||||||
|
destsiz = 0
|
||||||
|
}
|
||||||
|
d = initxattrdest(dest, s)
|
||||||
|
}
|
||||||
|
|
||||||
|
return s, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Llistxattr(link string, dest []byte) (sz int, err error) {
|
||||||
|
d := initxattrdest(dest, 0)
|
||||||
|
destsiz := len(dest)
|
||||||
|
|
||||||
|
s := 0
|
||||||
|
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
||||||
|
stmp, e := ExtattrListLink(link, nsid, uintptr(d), destsiz)
|
||||||
|
if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
||||||
|
continue
|
||||||
|
} else if e != nil {
|
||||||
|
return s, e
|
||||||
|
}
|
||||||
|
|
||||||
|
s += stmp
|
||||||
|
destsiz -= s
|
||||||
|
if destsiz < 0 {
|
||||||
|
destsiz = 0
|
||||||
|
}
|
||||||
|
d = initxattrdest(dest, s)
|
||||||
|
}
|
||||||
|
|
||||||
|
return s, nil
|
||||||
|
}
|
||||||
1374
vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go
generated
vendored
Normal file
1374
vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1375
vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go
generated
vendored
Normal file
1375
vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
66
vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
generated
vendored
66
vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
generated
vendored
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
// +build amd64,dragonfly
|
// +build amd64,dragonfly
|
||||||
|
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -m64 _const.go
|
// cgo -godefs -- -m64 _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
@@ -880,6 +880,40 @@ const (
|
|||||||
MAP_VPAGETABLE = 0x2000
|
MAP_VPAGETABLE = 0x2000
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
|
MNT_ASYNC = 0x40
|
||||||
|
MNT_AUTOMOUNTED = 0x20
|
||||||
|
MNT_CMDFLAGS = 0xf0000
|
||||||
|
MNT_DEFEXPORTED = 0x200
|
||||||
|
MNT_DELEXPORT = 0x20000
|
||||||
|
MNT_EXKERB = 0x800
|
||||||
|
MNT_EXPORTANON = 0x400
|
||||||
|
MNT_EXPORTED = 0x100
|
||||||
|
MNT_EXPUBLIC = 0x20000000
|
||||||
|
MNT_EXRDONLY = 0x80
|
||||||
|
MNT_FORCE = 0x80000
|
||||||
|
MNT_IGNORE = 0x800000
|
||||||
|
MNT_LAZY = 0x4
|
||||||
|
MNT_LOCAL = 0x1000
|
||||||
|
MNT_NOATIME = 0x10000000
|
||||||
|
MNT_NOCLUSTERR = 0x40000000
|
||||||
|
MNT_NOCLUSTERW = 0x80000000
|
||||||
|
MNT_NODEV = 0x10
|
||||||
|
MNT_NOEXEC = 0x4
|
||||||
|
MNT_NOSUID = 0x8
|
||||||
|
MNT_NOSYMFOLLOW = 0x400000
|
||||||
|
MNT_NOWAIT = 0x2
|
||||||
|
MNT_QUOTA = 0x2000
|
||||||
|
MNT_RDONLY = 0x1
|
||||||
|
MNT_RELOAD = 0x40000
|
||||||
|
MNT_ROOTFS = 0x4000
|
||||||
|
MNT_SOFTDEP = 0x200000
|
||||||
|
MNT_SUIDDIR = 0x100000
|
||||||
|
MNT_SYNCHRONOUS = 0x2
|
||||||
|
MNT_TRIM = 0x1000000
|
||||||
|
MNT_UPDATE = 0x10000
|
||||||
|
MNT_USER = 0x8000
|
||||||
|
MNT_VISFLAGMASK = 0xf1f0ffff
|
||||||
|
MNT_WAIT = 0x1
|
||||||
MSG_CMSG_CLOEXEC = 0x1000
|
MSG_CMSG_CLOEXEC = 0x1000
|
||||||
MSG_CTRUNC = 0x20
|
MSG_CTRUNC = 0x20
|
||||||
MSG_DONTROUTE = 0x4
|
MSG_DONTROUTE = 0x4
|
||||||
@@ -1168,6 +1202,36 @@ const (
|
|||||||
SO_TIMESTAMP = 0x400
|
SO_TIMESTAMP = 0x400
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
|
S_BLKSIZE = 0x200
|
||||||
|
S_IEXEC = 0x40
|
||||||
|
S_IFBLK = 0x6000
|
||||||
|
S_IFCHR = 0x2000
|
||||||
|
S_IFDB = 0x9000
|
||||||
|
S_IFDIR = 0x4000
|
||||||
|
S_IFIFO = 0x1000
|
||||||
|
S_IFLNK = 0xa000
|
||||||
|
S_IFMT = 0xf000
|
||||||
|
S_IFREG = 0x8000
|
||||||
|
S_IFSOCK = 0xc000
|
||||||
|
S_IFWHT = 0xe000
|
||||||
|
S_IREAD = 0x100
|
||||||
|
S_IRGRP = 0x20
|
||||||
|
S_IROTH = 0x4
|
||||||
|
S_IRUSR = 0x100
|
||||||
|
S_IRWXG = 0x38
|
||||||
|
S_IRWXO = 0x7
|
||||||
|
S_IRWXU = 0x1c0
|
||||||
|
S_ISGID = 0x400
|
||||||
|
S_ISTXT = 0x200
|
||||||
|
S_ISUID = 0x800
|
||||||
|
S_ISVTX = 0x200
|
||||||
|
S_IWGRP = 0x10
|
||||||
|
S_IWOTH = 0x2
|
||||||
|
S_IWRITE = 0x80
|
||||||
|
S_IWUSR = 0x80
|
||||||
|
S_IXGRP = 0x8
|
||||||
|
S_IXOTH = 0x1
|
||||||
|
S_IXUSR = 0x40
|
||||||
TCIFLUSH = 0x1
|
TCIFLUSH = 0x1
|
||||||
TCIOFF = 0x3
|
TCIOFF = 0x3
|
||||||
TCIOFLUSH = 0x3
|
TCIOFLUSH = 0x3
|
||||||
|
|||||||
29
vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go
generated
vendored
29
vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go
generated
vendored
@@ -1345,6 +1345,35 @@ const (
|
|||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
SO_USER_COOKIE = 0x1015
|
SO_USER_COOKIE = 0x1015
|
||||||
SO_VENDOR = 0x80000000
|
SO_VENDOR = 0x80000000
|
||||||
|
S_BLKSIZE = 0x200
|
||||||
|
S_IEXEC = 0x40
|
||||||
|
S_IFBLK = 0x6000
|
||||||
|
S_IFCHR = 0x2000
|
||||||
|
S_IFDIR = 0x4000
|
||||||
|
S_IFIFO = 0x1000
|
||||||
|
S_IFLNK = 0xa000
|
||||||
|
S_IFMT = 0xf000
|
||||||
|
S_IFREG = 0x8000
|
||||||
|
S_IFSOCK = 0xc000
|
||||||
|
S_IFWHT = 0xe000
|
||||||
|
S_IREAD = 0x100
|
||||||
|
S_IRGRP = 0x20
|
||||||
|
S_IROTH = 0x4
|
||||||
|
S_IRUSR = 0x100
|
||||||
|
S_IRWXG = 0x38
|
||||||
|
S_IRWXO = 0x7
|
||||||
|
S_IRWXU = 0x1c0
|
||||||
|
S_ISGID = 0x400
|
||||||
|
S_ISTXT = 0x200
|
||||||
|
S_ISUID = 0x800
|
||||||
|
S_ISVTX = 0x200
|
||||||
|
S_IWGRP = 0x10
|
||||||
|
S_IWOTH = 0x2
|
||||||
|
S_IWRITE = 0x80
|
||||||
|
S_IWUSR = 0x80
|
||||||
|
S_IXGRP = 0x8
|
||||||
|
S_IXOTH = 0x1
|
||||||
|
S_IXUSR = 0x40
|
||||||
TAB0 = 0x0
|
TAB0 = 0x0
|
||||||
TAB3 = 0x4
|
TAB3 = 0x4
|
||||||
TABDLY = 0x4
|
TABDLY = 0x4
|
||||||
|
|||||||
29
vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go
generated
vendored
29
vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go
generated
vendored
@@ -1346,6 +1346,35 @@ const (
|
|||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
SO_USER_COOKIE = 0x1015
|
SO_USER_COOKIE = 0x1015
|
||||||
SO_VENDOR = 0x80000000
|
SO_VENDOR = 0x80000000
|
||||||
|
S_BLKSIZE = 0x200
|
||||||
|
S_IEXEC = 0x40
|
||||||
|
S_IFBLK = 0x6000
|
||||||
|
S_IFCHR = 0x2000
|
||||||
|
S_IFDIR = 0x4000
|
||||||
|
S_IFIFO = 0x1000
|
||||||
|
S_IFLNK = 0xa000
|
||||||
|
S_IFMT = 0xf000
|
||||||
|
S_IFREG = 0x8000
|
||||||
|
S_IFSOCK = 0xc000
|
||||||
|
S_IFWHT = 0xe000
|
||||||
|
S_IREAD = 0x100
|
||||||
|
S_IRGRP = 0x20
|
||||||
|
S_IROTH = 0x4
|
||||||
|
S_IRUSR = 0x100
|
||||||
|
S_IRWXG = 0x38
|
||||||
|
S_IRWXO = 0x7
|
||||||
|
S_IRWXU = 0x1c0
|
||||||
|
S_ISGID = 0x400
|
||||||
|
S_ISTXT = 0x200
|
||||||
|
S_ISUID = 0x800
|
||||||
|
S_ISVTX = 0x200
|
||||||
|
S_IWGRP = 0x10
|
||||||
|
S_IWOTH = 0x2
|
||||||
|
S_IWRITE = 0x80
|
||||||
|
S_IWUSR = 0x80
|
||||||
|
S_IXGRP = 0x8
|
||||||
|
S_IXOTH = 0x1
|
||||||
|
S_IXUSR = 0x40
|
||||||
TAB0 = 0x0
|
TAB0 = 0x0
|
||||||
TAB3 = 0x4
|
TAB3 = 0x4
|
||||||
TABDLY = 0x4
|
TABDLY = 0x4
|
||||||
|
|||||||
29
vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go
generated
vendored
29
vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go
generated
vendored
@@ -1354,6 +1354,35 @@ const (
|
|||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
SO_USER_COOKIE = 0x1015
|
SO_USER_COOKIE = 0x1015
|
||||||
SO_VENDOR = 0x80000000
|
SO_VENDOR = 0x80000000
|
||||||
|
S_BLKSIZE = 0x200
|
||||||
|
S_IEXEC = 0x40
|
||||||
|
S_IFBLK = 0x6000
|
||||||
|
S_IFCHR = 0x2000
|
||||||
|
S_IFDIR = 0x4000
|
||||||
|
S_IFIFO = 0x1000
|
||||||
|
S_IFLNK = 0xa000
|
||||||
|
S_IFMT = 0xf000
|
||||||
|
S_IFREG = 0x8000
|
||||||
|
S_IFSOCK = 0xc000
|
||||||
|
S_IFWHT = 0xe000
|
||||||
|
S_IREAD = 0x100
|
||||||
|
S_IRGRP = 0x20
|
||||||
|
S_IROTH = 0x4
|
||||||
|
S_IRUSR = 0x100
|
||||||
|
S_IRWXG = 0x38
|
||||||
|
S_IRWXO = 0x7
|
||||||
|
S_IRWXU = 0x1c0
|
||||||
|
S_ISGID = 0x400
|
||||||
|
S_ISTXT = 0x200
|
||||||
|
S_ISUID = 0x800
|
||||||
|
S_ISVTX = 0x200
|
||||||
|
S_IWGRP = 0x10
|
||||||
|
S_IWOTH = 0x2
|
||||||
|
S_IWRITE = 0x80
|
||||||
|
S_IWUSR = 0x80
|
||||||
|
S_IXGRP = 0x8
|
||||||
|
S_IXOTH = 0x1
|
||||||
|
S_IXUSR = 0x40
|
||||||
TAB0 = 0x0
|
TAB0 = 0x0
|
||||||
TAB3 = 0x4
|
TAB3 = 0x4
|
||||||
TABDLY = 0x4
|
TABDLY = 0x4
|
||||||
|
|||||||
1794
vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go
generated
vendored
Normal file
1794
vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
398
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
398
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
@@ -41,7 +41,7 @@ const (
|
|||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x2c
|
AF_MAX = 0x2d
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
@@ -64,6 +64,7 @@ const (
|
|||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
AF_XDP = 0x2c
|
||||||
ALG_OP_DECRYPT = 0x0
|
ALG_OP_DECRYPT = 0x0
|
||||||
ALG_OP_ENCRYPT = 0x1
|
ALG_OP_ENCRYPT = 0x1
|
||||||
ALG_SET_AEAD_ASSOCLEN = 0x4
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
@@ -173,6 +174,7 @@ const (
|
|||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
BALLOON_KVM_MAGIC = 0x13661366
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
BDEVFS_MAGIC = 0x62646576
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
||||||
BINFMTFS_MAGIC = 0x42494e4d
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x80041270
|
BLKBSZGET = 0x80041270
|
||||||
BLKBSZSET = 0x40041271
|
BLKBSZSET = 0x40041271
|
||||||
@@ -195,10 +197,59 @@ const (
|
|||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
BPF_ANY = 0x0
|
||||||
|
BPF_ARSH = 0xc0
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
|
BPF_BUILD_ID_SIZE = 0x14
|
||||||
|
BPF_CALL = 0x80
|
||||||
|
BPF_DEVCG_ACC_MKNOD = 0x1
|
||||||
|
BPF_DEVCG_ACC_READ = 0x2
|
||||||
|
BPF_DEVCG_ACC_WRITE = 0x4
|
||||||
|
BPF_DEVCG_DEV_BLOCK = 0x1
|
||||||
|
BPF_DEVCG_DEV_CHAR = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_DW = 0x18
|
||||||
|
BPF_END = 0xd0
|
||||||
|
BPF_EXIST = 0x2
|
||||||
|
BPF_EXIT = 0x90
|
||||||
|
BPF_FROM_BE = 0x8
|
||||||
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_F_DONT_FRAGMENT = 0x4
|
||||||
|
BPF_F_FAST_STACK_CMP = 0x200
|
||||||
|
BPF_F_HDR_FIELD_MASK = 0xf
|
||||||
|
BPF_F_INDEX_MASK = 0xffffffff
|
||||||
|
BPF_F_INGRESS = 0x1
|
||||||
|
BPF_F_INVALIDATE_HASH = 0x2
|
||||||
|
BPF_F_LOCK = 0x4
|
||||||
|
BPF_F_MARK_ENFORCE = 0x40
|
||||||
|
BPF_F_MARK_MANGLED_0 = 0x20
|
||||||
|
BPF_F_NO_COMMON_LRU = 0x2
|
||||||
|
BPF_F_NO_PREALLOC = 0x1
|
||||||
|
BPF_F_NUMA_NODE = 0x4
|
||||||
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
|
BPF_F_USER_STACK = 0x100
|
||||||
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@@ -206,8 +257,16 @@ const (
|
|||||||
BPF_JEQ = 0x10
|
BPF_JEQ = 0x10
|
||||||
BPF_JGE = 0x30
|
BPF_JGE = 0x30
|
||||||
BPF_JGT = 0x20
|
BPF_JGT = 0x20
|
||||||
|
BPF_JLE = 0xb0
|
||||||
|
BPF_JLT = 0xa0
|
||||||
BPF_JMP = 0x5
|
BPF_JMP = 0x5
|
||||||
|
BPF_JMP32 = 0x6
|
||||||
|
BPF_JNE = 0x50
|
||||||
BPF_JSET = 0x40
|
BPF_JSET = 0x40
|
||||||
|
BPF_JSGE = 0x70
|
||||||
|
BPF_JSGT = 0x60
|
||||||
|
BPF_JSLE = 0xd0
|
||||||
|
BPF_JSLT = 0xc0
|
||||||
BPF_K = 0x0
|
BPF_K = 0x0
|
||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
@@ -221,20 +280,33 @@ const (
|
|||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
BPF_MOD = 0x90
|
BPF_MOD = 0x90
|
||||||
|
BPF_MOV = 0xb0
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
BPF_NET_OFF = -0x100000
|
BPF_NET_OFF = -0x100000
|
||||||
|
BPF_NOEXIST = 0x1
|
||||||
|
BPF_OBJ_NAME_LEN = 0x10
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
|
BPF_PSEUDO_CALL = 0x1
|
||||||
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||||
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
BPF_SUB = 0x10
|
BPF_SUB = 0x10
|
||||||
|
BPF_TAG_SIZE = 0x8
|
||||||
BPF_TAX = 0x0
|
BPF_TAX = 0x0
|
||||||
|
BPF_TO_BE = 0x8
|
||||||
|
BPF_TO_LE = 0x0
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XADD = 0xc0
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
@@ -262,6 +334,45 @@ const (
|
|||||||
CAN_SFF_MASK = 0x7ff
|
CAN_SFF_MASK = 0x7ff
|
||||||
CAN_TP16 = 0x3
|
CAN_TP16 = 0x3
|
||||||
CAN_TP20 = 0x4
|
CAN_TP20 = 0x4
|
||||||
|
CAP_AUDIT_CONTROL = 0x1e
|
||||||
|
CAP_AUDIT_READ = 0x25
|
||||||
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_CHOWN = 0x0
|
||||||
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
CAP_FOWNER = 0x3
|
||||||
|
CAP_FSETID = 0x4
|
||||||
|
CAP_IPC_LOCK = 0xe
|
||||||
|
CAP_IPC_OWNER = 0xf
|
||||||
|
CAP_KILL = 0x5
|
||||||
|
CAP_LAST_CAP = 0x25
|
||||||
|
CAP_LEASE = 0x1c
|
||||||
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
CAP_MAC_OVERRIDE = 0x20
|
||||||
|
CAP_MKNOD = 0x1b
|
||||||
|
CAP_NET_ADMIN = 0xc
|
||||||
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
|
CAP_NET_BROADCAST = 0xb
|
||||||
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_SETFCAP = 0x1f
|
||||||
|
CAP_SETGID = 0x6
|
||||||
|
CAP_SETPCAP = 0x8
|
||||||
|
CAP_SETUID = 0x7
|
||||||
|
CAP_SYSLOG = 0x22
|
||||||
|
CAP_SYS_ADMIN = 0x15
|
||||||
|
CAP_SYS_BOOT = 0x16
|
||||||
|
CAP_SYS_CHROOT = 0x12
|
||||||
|
CAP_SYS_MODULE = 0x10
|
||||||
|
CAP_SYS_NICE = 0x17
|
||||||
|
CAP_SYS_PACCT = 0x14
|
||||||
|
CAP_SYS_PTRACE = 0x13
|
||||||
|
CAP_SYS_RAWIO = 0x11
|
||||||
|
CAP_SYS_RESOURCE = 0x18
|
||||||
|
CAP_SYS_TIME = 0x19
|
||||||
|
CAP_SYS_TTY_CONFIG = 0x1a
|
||||||
|
CAP_WAKE_ALARM = 0x23
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@@ -318,6 +429,10 @@ const (
|
|||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
@@ -485,6 +600,60 @@ const (
|
|||||||
FALLOC_FL_PUNCH_HOLE = 0x2
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
FALLOC_FL_UNSHARE_RANGE = 0x40
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
FALLOC_FL_ZERO_RANGE = 0x10
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
|
FANOTIFY_METADATA_VERSION = 0x3
|
||||||
|
FAN_ACCESS = 0x1
|
||||||
|
FAN_ACCESS_PERM = 0x20000
|
||||||
|
FAN_ALLOW = 0x1
|
||||||
|
FAN_ALL_CLASS_BITS = 0xc
|
||||||
|
FAN_ALL_EVENTS = 0x3b
|
||||||
|
FAN_ALL_INIT_FLAGS = 0x3f
|
||||||
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
|
FAN_AUDIT = 0x10
|
||||||
|
FAN_CLASS_CONTENT = 0x4
|
||||||
|
FAN_CLASS_NOTIF = 0x0
|
||||||
|
FAN_CLASS_PRE_CONTENT = 0x8
|
||||||
|
FAN_CLOEXEC = 0x1
|
||||||
|
FAN_CLOSE = 0x18
|
||||||
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
|
FAN_DENY = 0x2
|
||||||
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
|
FAN_MARK_ADD = 0x1
|
||||||
|
FAN_MARK_DONT_FOLLOW = 0x4
|
||||||
|
FAN_MARK_FILESYSTEM = 0x100
|
||||||
|
FAN_MARK_FLUSH = 0x80
|
||||||
|
FAN_MARK_IGNORED_MASK = 0x20
|
||||||
|
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
||||||
|
FAN_MARK_INODE = 0x0
|
||||||
|
FAN_MARK_MOUNT = 0x10
|
||||||
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
|
FAN_MARK_REMOVE = 0x2
|
||||||
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
|
FAN_NOFD = -0x1
|
||||||
|
FAN_NONBLOCK = 0x2
|
||||||
|
FAN_ONDIR = 0x40000000
|
||||||
|
FAN_OPEN = 0x20
|
||||||
|
FAN_OPEN_EXEC = 0x1000
|
||||||
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
|
FAN_OPEN_PERM = 0x10000
|
||||||
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
|
FAN_REPORT_TID = 0x100
|
||||||
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
@@ -492,6 +661,7 @@ const (
|
|||||||
FFDLY = 0x8000
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x1000
|
FLUSHO = 0x1000
|
||||||
FP_XSTATE_MAGIC2 = 0x46505845
|
FP_XSTATE_MAGIC2 = 0x46505845
|
||||||
|
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
@@ -499,6 +669,8 @@ const (
|
|||||||
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
FS_ENCRYPTION_MODE_INVALID = 0x0
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
|
||||||
FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
|
||||||
FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
|
||||||
FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
|
||||||
@@ -511,7 +683,7 @@ const (
|
|||||||
FS_POLICY_FLAGS_PAD_4 = 0x0
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x7
|
||||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
@@ -636,7 +808,7 @@ const (
|
|||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x8
|
IFA_MAX = 0xa
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
@@ -704,6 +876,7 @@ const (
|
|||||||
IN_ISDIR = 0x40000000
|
IN_ISDIR = 0x40000000
|
||||||
IN_LOOPBACKNET = 0x7f
|
IN_LOOPBACKNET = 0x7f
|
||||||
IN_MASK_ADD = 0x20000000
|
IN_MASK_ADD = 0x20000000
|
||||||
|
IN_MASK_CREATE = 0x10000000
|
||||||
IN_MODIFY = 0x2
|
IN_MODIFY = 0x2
|
||||||
IN_MOVE = 0xc0
|
IN_MOVE = 0xc0
|
||||||
IN_MOVED_FROM = 0x40
|
IN_MOVED_FROM = 0x40
|
||||||
@@ -763,6 +936,7 @@ const (
|
|||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_FREEBIND = 0x4e
|
||||||
IPV6_HDRINCL = 0x24
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
@@ -774,6 +948,7 @@ const (
|
|||||||
IPV6_MINHOPCOUNT = 0x49
|
IPV6_MINHOPCOUNT = 0x49
|
||||||
IPV6_MTU = 0x18
|
IPV6_MTU = 0x18
|
||||||
IPV6_MTU_DISCOVER = 0x17
|
IPV6_MTU_DISCOVER = 0x17
|
||||||
|
IPV6_MULTICAST_ALL = 0x1d
|
||||||
IPV6_MULTICAST_HOPS = 0x12
|
IPV6_MULTICAST_HOPS = 0x12
|
||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
@@ -875,6 +1050,26 @@ const (
|
|||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
JFFS2_SUPER_MAGIC = 0x72b6
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
|
KEXEC_ARCH_386 = 0x30000
|
||||||
|
KEXEC_ARCH_68K = 0x40000
|
||||||
|
KEXEC_ARCH_AARCH64 = 0xb70000
|
||||||
|
KEXEC_ARCH_ARM = 0x280000
|
||||||
|
KEXEC_ARCH_DEFAULT = 0x0
|
||||||
|
KEXEC_ARCH_IA_64 = 0x320000
|
||||||
|
KEXEC_ARCH_MASK = 0xffff0000
|
||||||
|
KEXEC_ARCH_MIPS = 0x80000
|
||||||
|
KEXEC_ARCH_MIPS_LE = 0xa0000
|
||||||
|
KEXEC_ARCH_PPC = 0x140000
|
||||||
|
KEXEC_ARCH_PPC64 = 0x150000
|
||||||
|
KEXEC_ARCH_S390 = 0x160000
|
||||||
|
KEXEC_ARCH_SH = 0x2a0000
|
||||||
|
KEXEC_ARCH_X86_64 = 0x3e0000
|
||||||
|
KEXEC_FILE_NO_INITRAMFS = 0x4
|
||||||
|
KEXEC_FILE_ON_CRASH = 0x2
|
||||||
|
KEXEC_FILE_UNLOAD = 0x1
|
||||||
|
KEXEC_ON_CRASH = 0x1
|
||||||
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
@@ -889,6 +1084,11 @@ const (
|
|||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
KEYCTL_PKEY_QUERY = 0x18
|
||||||
|
KEYCTL_PKEY_SIGN = 0x1b
|
||||||
|
KEYCTL_PKEY_VERIFY = 0x1c
|
||||||
KEYCTL_READ = 0xb
|
KEYCTL_READ = 0xb
|
||||||
KEYCTL_REJECT = 0x13
|
KEYCTL_REJECT = 0x13
|
||||||
KEYCTL_RESTRICT_KEYRING = 0x1d
|
KEYCTL_RESTRICT_KEYRING = 0x1d
|
||||||
@@ -898,6 +1098,10 @@ const (
|
|||||||
KEYCTL_SETPERM = 0x5
|
KEYCTL_SETPERM = 0x5
|
||||||
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
KEYCTL_SET_TIMEOUT = 0xf
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_SUPPORTS_DECRYPT = 0x2
|
||||||
|
KEYCTL_SUPPORTS_ENCRYPT = 0x1
|
||||||
|
KEYCTL_SUPPORTS_SIGN = 0x4
|
||||||
|
KEYCTL_SUPPORTS_VERIFY = 0x8
|
||||||
KEYCTL_UNLINK = 0x9
|
KEYCTL_UNLINK = 0x9
|
||||||
KEYCTL_UPDATE = 0x2
|
KEYCTL_UPDATE = 0x2
|
||||||
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
@@ -956,6 +1160,7 @@ const (
|
|||||||
MAP_EXECUTABLE = 0x1000
|
MAP_EXECUTABLE = 0x1000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_FIXED_NOREPLACE = 0x100000
|
||||||
MAP_GROWSDOWN = 0x100
|
MAP_GROWSDOWN = 0x100
|
||||||
MAP_HUGETLB = 0x40000
|
MAP_HUGETLB = 0x40000
|
||||||
MAP_HUGE_MASK = 0x3f
|
MAP_HUGE_MASK = 0x3f
|
||||||
@@ -966,11 +1171,39 @@ const (
|
|||||||
MAP_POPULATE = 0x8000
|
MAP_POPULATE = 0x8000
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x20000
|
MAP_STACK = 0x20000
|
||||||
|
MAP_SYNC = 0x80000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
|
MCAST_BLOCK_SOURCE = 0x2b
|
||||||
|
MCAST_EXCLUDE = 0x0
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x2a
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x2e
|
||||||
|
MCAST_LEAVE_GROUP = 0x2d
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x2f
|
||||||
|
MCAST_MSFILTER = 0x30
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x2c
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
|
MFD_ALLOW_SEALING = 0x2
|
||||||
|
MFD_CLOEXEC = 0x1
|
||||||
|
MFD_HUGETLB = 0x4
|
||||||
|
MFD_HUGE_16GB = -0x78000000
|
||||||
|
MFD_HUGE_16MB = 0x60000000
|
||||||
|
MFD_HUGE_1GB = 0x78000000
|
||||||
|
MFD_HUGE_1MB = 0x50000000
|
||||||
|
MFD_HUGE_256MB = 0x70000000
|
||||||
|
MFD_HUGE_2GB = 0x7c000000
|
||||||
|
MFD_HUGE_2MB = 0x54000000
|
||||||
|
MFD_HUGE_32MB = 0x64000000
|
||||||
|
MFD_HUGE_512KB = 0x4c000000
|
||||||
|
MFD_HUGE_512MB = 0x74000000
|
||||||
|
MFD_HUGE_64KB = 0x40000000
|
||||||
|
MFD_HUGE_8MB = 0x5c000000
|
||||||
|
MFD_HUGE_MASK = 0x3f
|
||||||
|
MFD_HUGE_SHIFT = 0x1a
|
||||||
MINIX2_SUPER_MAGIC = 0x2468
|
MINIX2_SUPER_MAGIC = 0x2468
|
||||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||||
@@ -979,6 +1212,8 @@ const (
|
|||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
|
||||||
|
MODULE_INIT_IGNORE_VERMAGIC = 0x2
|
||||||
MSDOS_SUPER_MAGIC = 0x4d44
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
@@ -1055,6 +1290,7 @@ const (
|
|||||||
NETLINK_FIB_LOOKUP = 0xa
|
NETLINK_FIB_LOOKUP = 0xa
|
||||||
NETLINK_FIREWALL = 0x3
|
NETLINK_FIREWALL = 0x3
|
||||||
NETLINK_GENERIC = 0x10
|
NETLINK_GENERIC = 0x10
|
||||||
|
NETLINK_GET_STRICT_CHK = 0xc
|
||||||
NETLINK_INET_DIAG = 0x4
|
NETLINK_INET_DIAG = 0x4
|
||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
@@ -1076,6 +1312,8 @@ const (
|
|||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
|
NETNSA_MAX = 0x5
|
||||||
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||||
@@ -1196,6 +1434,7 @@ const (
|
|||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_IGNORE_OUTGOING = 0x17
|
||||||
PACKET_KERNEL = 0x7
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
@@ -1245,6 +1484,36 @@ const (
|
|||||||
PERF_EVENT_IOC_SET_FILTER = 0x40042406
|
PERF_EVENT_IOC_SET_FILTER = 0x40042406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
||||||
PIPEFS_MAGIC = 0x50495045
|
PIPEFS_MAGIC = 0x50495045
|
||||||
|
PPPIOCATTACH = 0x4004743d
|
||||||
|
PPPIOCATTCHAN = 0x40047438
|
||||||
|
PPPIOCCONNECT = 0x4004743a
|
||||||
|
PPPIOCDETACH = 0x4004743c
|
||||||
|
PPPIOCDISCONN = 0x7439
|
||||||
|
PPPIOCGASYNCMAP = 0x80047458
|
||||||
|
PPPIOCGCHAN = 0x80047437
|
||||||
|
PPPIOCGDEBUG = 0x80047441
|
||||||
|
PPPIOCGFLAGS = 0x8004745a
|
||||||
|
PPPIOCGIDLE = 0x8008743f
|
||||||
|
PPPIOCGL2TPSTATS = 0x80487436
|
||||||
|
PPPIOCGMRU = 0x80047453
|
||||||
|
PPPIOCGNPMODE = 0xc008744c
|
||||||
|
PPPIOCGRASYNCMAP = 0x80047455
|
||||||
|
PPPIOCGUNIT = 0x80047456
|
||||||
|
PPPIOCGXASYNCMAP = 0x80207450
|
||||||
|
PPPIOCNEWUNIT = 0xc004743e
|
||||||
|
PPPIOCSACTIVE = 0x40087446
|
||||||
|
PPPIOCSASYNCMAP = 0x40047457
|
||||||
|
PPPIOCSCOMPRESS = 0x400c744d
|
||||||
|
PPPIOCSDEBUG = 0x40047440
|
||||||
|
PPPIOCSFLAGS = 0x40047459
|
||||||
|
PPPIOCSMAXCID = 0x40047451
|
||||||
|
PPPIOCSMRRU = 0x4004743b
|
||||||
|
PPPIOCSMRU = 0x40047452
|
||||||
|
PPPIOCSNPMODE = 0x4008744b
|
||||||
|
PPPIOCSPASS = 0x40087447
|
||||||
|
PPPIOCSRASYNCMAP = 0x40047454
|
||||||
|
PPPIOCSXASYNCMAP = 0x4020744f
|
||||||
|
PPPIOCXFERUNIT = 0x744e
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@@ -1307,6 +1576,12 @@ const (
|
|||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
|
PR_PAC_APDAKEY = 0x4
|
||||||
|
PR_PAC_APDBKEY = 0x8
|
||||||
|
PR_PAC_APGAKEY = 0x10
|
||||||
|
PR_PAC_APIAKEY = 0x1
|
||||||
|
PR_PAC_APIBKEY = 0x2
|
||||||
|
PR_PAC_RESET_KEYS = 0x36
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
@@ -1344,8 +1619,10 @@ const (
|
|||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
PR_SPEC_NOT_AFFECTED = 0x0
|
PR_SPEC_NOT_AFFECTED = 0x0
|
||||||
PR_SPEC_PRCTL = 0x1
|
PR_SPEC_PRCTL = 0x1
|
||||||
PR_SPEC_STORE_BYPASS = 0x0
|
PR_SPEC_STORE_BYPASS = 0x0
|
||||||
@@ -1427,6 +1704,9 @@ const (
|
|||||||
RAMFS_MAGIC = 0x858458f6
|
RAMFS_MAGIC = 0x858458f6
|
||||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||||
REISERFS_SUPER_MAGIC = 0x52654973
|
REISERFS_SUPER_MAGIC = 0x52654973
|
||||||
|
RENAME_EXCHANGE = 0x2
|
||||||
|
RENAME_NOREPLACE = 0x1
|
||||||
|
RENAME_WHITEOUT = 0x4
|
||||||
RLIMIT_AS = 0x9
|
RLIMIT_AS = 0x9
|
||||||
RLIMIT_CORE = 0x4
|
RLIMIT_CORE = 0x4
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
@@ -1444,6 +1724,13 @@ const (
|
|||||||
RLIMIT_SIGPENDING = 0xb
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0xffffffffffffffff
|
RLIM_INFINITY = 0xffffffffffffffff
|
||||||
|
RNDADDENTROPY = 0x40085203
|
||||||
|
RNDADDTOENTCNT = 0x40045201
|
||||||
|
RNDCLEARPOOL = 0x5206
|
||||||
|
RNDGETENTCNT = 0x80045200
|
||||||
|
RNDGETPOOL = 0x80085202
|
||||||
|
RNDRESEEDCRNG = 0x5207
|
||||||
|
RNDZAPENTCNT = 0x5204
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
RTAX_CC_ALGO = 0x10
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
@@ -1469,7 +1756,7 @@ const (
|
|||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1a
|
RTA_MAX = 0x1d
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
@@ -1537,6 +1824,7 @@ const (
|
|||||||
RTM_DELACTION = 0x31
|
RTM_DELACTION = 0x31
|
||||||
RTM_DELADDR = 0x15
|
RTM_DELADDR = 0x15
|
||||||
RTM_DELADDRLABEL = 0x49
|
RTM_DELADDRLABEL = 0x49
|
||||||
|
RTM_DELCHAIN = 0x65
|
||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
@@ -1557,6 +1845,7 @@ const (
|
|||||||
RTM_GETADDR = 0x16
|
RTM_GETADDR = 0x16
|
||||||
RTM_GETADDRLABEL = 0x4a
|
RTM_GETADDRLABEL = 0x4a
|
||||||
RTM_GETANYCAST = 0x3e
|
RTM_GETANYCAST = 0x3e
|
||||||
|
RTM_GETCHAIN = 0x66
|
||||||
RTM_GETDCB = 0x4e
|
RTM_GETDCB = 0x4e
|
||||||
RTM_GETLINK = 0x12
|
RTM_GETLINK = 0x12
|
||||||
RTM_GETMDB = 0x56
|
RTM_GETMDB = 0x56
|
||||||
@@ -1571,11 +1860,12 @@ const (
|
|||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x63
|
RTM_MAX = 0x67
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
RTM_NEWCACHEREPORT = 0x60
|
RTM_NEWCACHEREPORT = 0x60
|
||||||
|
RTM_NEWCHAIN = 0x64
|
||||||
RTM_NEWLINK = 0x10
|
RTM_NEWLINK = 0x10
|
||||||
RTM_NEWMDB = 0x54
|
RTM_NEWMDB = 0x54
|
||||||
RTM_NEWNDUSEROPT = 0x44
|
RTM_NEWNDUSEROPT = 0x44
|
||||||
@@ -1590,8 +1880,8 @@ const (
|
|||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x15
|
RTM_NR_FAMILIES = 0x16
|
||||||
RTM_NR_MSGTYPES = 0x54
|
RTM_NR_MSGTYPES = 0x58
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
@@ -1605,17 +1895,22 @@ const (
|
|||||||
RTNH_F_UNRESOLVED = 0x20
|
RTNH_F_UNRESOLVED = 0x20
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
RTPROT_BABEL = 0x2a
|
RTPROT_BABEL = 0x2a
|
||||||
|
RTPROT_BGP = 0xba
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
RTPROT_DNROUTED = 0xd
|
RTPROT_DNROUTED = 0xd
|
||||||
|
RTPROT_EIGRP = 0xc0
|
||||||
RTPROT_GATED = 0x8
|
RTPROT_GATED = 0x8
|
||||||
|
RTPROT_ISIS = 0xbb
|
||||||
RTPROT_KERNEL = 0x2
|
RTPROT_KERNEL = 0x2
|
||||||
RTPROT_MROUTED = 0x11
|
RTPROT_MROUTED = 0x11
|
||||||
RTPROT_MRT = 0xa
|
RTPROT_MRT = 0xa
|
||||||
RTPROT_NTK = 0xf
|
RTPROT_NTK = 0xf
|
||||||
|
RTPROT_OSPF = 0xbc
|
||||||
RTPROT_RA = 0x9
|
RTPROT_RA = 0x9
|
||||||
RTPROT_REDIRECT = 0x1
|
RTPROT_REDIRECT = 0x1
|
||||||
|
RTPROT_RIP = 0xbd
|
||||||
RTPROT_STATIC = 0x4
|
RTPROT_STATIC = 0x4
|
||||||
RTPROT_UNSPEC = 0x0
|
RTPROT_UNSPEC = 0x0
|
||||||
RTPROT_XORP = 0xe
|
RTPROT_XORP = 0xe
|
||||||
@@ -1635,12 +1930,16 @@ const (
|
|||||||
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SC_LOG_FLUSH = 0x100000
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SECURITYFS_MAGIC = 0x73636673
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
SELINUX_MAGIC = 0xf97cff8c
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
|
SFD_CLOEXEC = 0x80000
|
||||||
|
SFD_NONBLOCK = 0x800
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@@ -1691,6 +1990,9 @@ const (
|
|||||||
SIOCGMIIPHY = 0x8947
|
SIOCGMIIPHY = 0x8947
|
||||||
SIOCGMIIREG = 0x8948
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
|
SIOCGPPPCSTATS = 0x89f2
|
||||||
|
SIOCGPPPSTATS = 0x89f0
|
||||||
|
SIOCGPPPVER = 0x89f1
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
@@ -1780,6 +2082,7 @@ const (
|
|||||||
SOL_TIPC = 0x10f
|
SOL_TIPC = 0x10f
|
||||||
SOL_TLS = 0x11a
|
SOL_TLS = 0x11a
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
|
SOL_XDP = 0x11b
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1e
|
SO_ACCEPTCONN = 0x1e
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
@@ -1787,6 +2090,7 @@ const (
|
|||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
@@ -1798,6 +2102,17 @@ const (
|
|||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
SO_EE_CODE_TXTIME_MISSED = 0x2
|
||||||
|
SO_EE_CODE_ZEROCOPY_COPIED = 0x1
|
||||||
|
SO_EE_ORIGIN_ICMP = 0x2
|
||||||
|
SO_EE_ORIGIN_ICMP6 = 0x3
|
||||||
|
SO_EE_ORIGIN_LOCAL = 0x1
|
||||||
|
SO_EE_ORIGIN_NONE = 0x0
|
||||||
|
SO_EE_ORIGIN_TIMESTAMPING = 0x4
|
||||||
|
SO_EE_ORIGIN_TXSTATUS = 0x4
|
||||||
|
SO_EE_ORIGIN_TXTIME = 0x6
|
||||||
|
SO_EE_ORIGIN_ZEROCOPY = 0x5
|
||||||
SO_ERROR = 0x4
|
SO_ERROR = 0x4
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
SO_INCOMING_CPU = 0x31
|
SO_INCOMING_CPU = 0x31
|
||||||
@@ -1824,6 +2139,8 @@ const (
|
|||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x12
|
SO_RCVLOWAT = 0x12
|
||||||
SO_RCVTIMEO = 0x14
|
SO_RCVTIMEO = 0x14
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x14
|
||||||
SO_REUSEADDR = 0x2
|
SO_REUSEADDR = 0x2
|
||||||
SO_REUSEPORT = 0xf
|
SO_REUSEPORT = 0xf
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
@@ -1835,9 +2152,18 @@ const (
|
|||||||
SO_SNDBUFFORCE = 0x20
|
SO_SNDBUFFORCE = 0x20
|
||||||
SO_SNDLOWAT = 0x13
|
SO_SNDLOWAT = 0x13
|
||||||
SO_SNDTIMEO = 0x15
|
SO_SNDTIMEO = 0x15
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x15
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
@@ -1875,6 +2201,9 @@ const (
|
|||||||
STATX_TYPE = 0x1
|
STATX_TYPE = 0x1
|
||||||
STATX_UID = 0x8
|
STATX_UID = 0x8
|
||||||
STATX__RESERVED = 0x80000000
|
STATX__RESERVED = 0x80000000
|
||||||
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
@@ -1913,7 +2242,7 @@ const (
|
|||||||
TASKSTATS_GENL_NAME = "TASKSTATS"
|
TASKSTATS_GENL_NAME = "TASKSTATS"
|
||||||
TASKSTATS_GENL_VERSION = 0x1
|
TASKSTATS_GENL_VERSION = 0x1
|
||||||
TASKSTATS_TYPE_MAX = 0x6
|
TASKSTATS_TYPE_MAX = 0x6
|
||||||
TASKSTATS_VERSION = 0x8
|
TASKSTATS_VERSION = 0x9
|
||||||
TCFLSH = 0x540b
|
TCFLSH = 0x540b
|
||||||
TCGETA = 0x5405
|
TCGETA = 0x5405
|
||||||
TCGETS = 0x5401
|
TCGETS = 0x5401
|
||||||
@@ -1926,7 +2255,10 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_BPF_IW = 0x3e9
|
||||||
|
TCP_BPF_SNDCWND_CLAMP = 0x3ea
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
@@ -1938,7 +2270,10 @@ const (
|
|||||||
TCP_DEFER_ACCEPT = 0x9
|
TCP_DEFER_ACCEPT = 0x9
|
||||||
TCP_FASTOPEN = 0x17
|
TCP_FASTOPEN = 0x17
|
||||||
TCP_FASTOPEN_CONNECT = 0x1e
|
TCP_FASTOPEN_CONNECT = 0x1e
|
||||||
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
|
TCP_INQ = 0x24
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
TCP_KEEPINTVL = 0x5
|
TCP_KEEPINTVL = 0x5
|
||||||
@@ -1958,6 +2293,9 @@ const (
|
|||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
|
TCP_REPAIR_OFF = 0x0
|
||||||
|
TCP_REPAIR_OFF_NO_WP = -0x1
|
||||||
|
TCP_REPAIR_ON = 0x1
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
TCP_REPAIR_WINDOW = 0x1d
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
@@ -1972,6 +2310,7 @@ const (
|
|||||||
TCP_ULP = 0x1f
|
TCP_ULP = 0x1f
|
||||||
TCP_USER_TIMEOUT = 0x12
|
TCP_USER_TIMEOUT = 0x12
|
||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
|
TCP_ZEROCOPY_RECEIVE = 0x23
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
TCSBRK = 0x5409
|
TCSBRK = 0x5409
|
||||||
TCSBRKP = 0x5425
|
TCSBRKP = 0x5425
|
||||||
@@ -1988,6 +2327,7 @@ const (
|
|||||||
TCSETXF = 0x5434
|
TCSETXF = 0x5434
|
||||||
TCSETXW = 0x5435
|
TCSETXW = 0x5435
|
||||||
TCXONC = 0x540a
|
TCXONC = 0x540a
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x541d
|
TIOCCONS = 0x541d
|
||||||
TIOCEXCL = 0x540c
|
TIOCEXCL = 0x540c
|
||||||
@@ -1995,6 +2335,7 @@ const (
|
|||||||
TIOCGETD = 0x5424
|
TIOCGETD = 0x5424
|
||||||
TIOCGEXCL = 0x80045440
|
TIOCGEXCL = 0x80045440
|
||||||
TIOCGICOUNT = 0x545d
|
TIOCGICOUNT = 0x545d
|
||||||
|
TIOCGISO7816 = 0x80285442
|
||||||
TIOCGLCKTRMIOS = 0x5456
|
TIOCGLCKTRMIOS = 0x5456
|
||||||
TIOCGPGRP = 0x540f
|
TIOCGPGRP = 0x540f
|
||||||
TIOCGPKT = 0x80045438
|
TIOCGPKT = 0x80045438
|
||||||
@@ -2048,6 +2389,7 @@ const (
|
|||||||
TIOCSER_TEMT = 0x1
|
TIOCSER_TEMT = 0x1
|
||||||
TIOCSETD = 0x5423
|
TIOCSETD = 0x5423
|
||||||
TIOCSIG = 0x40045436
|
TIOCSIG = 0x40045436
|
||||||
|
TIOCSISO7816 = 0xc0285443
|
||||||
TIOCSLCKTRMIOS = 0x5457
|
TIOCSLCKTRMIOS = 0x5457
|
||||||
TIOCSPGRP = 0x5410
|
TIOCSPGRP = 0x5410
|
||||||
TIOCSPTLCK = 0x40045431
|
TIOCSPTLCK = 0x40045431
|
||||||
@@ -2088,6 +2430,7 @@ const (
|
|||||||
TUNGETVNETBE = 0x800454df
|
TUNGETVNETBE = 0x800454df
|
||||||
TUNGETVNETHDRSZ = 0x800454d7
|
TUNGETVNETHDRSZ = 0x800454d7
|
||||||
TUNGETVNETLE = 0x800454dd
|
TUNGETVNETLE = 0x800454dd
|
||||||
|
TUNSETCARRIER = 0x400454e2
|
||||||
TUNSETDEBUG = 0x400454c9
|
TUNSETDEBUG = 0x400454c9
|
||||||
TUNSETFILTEREBPF = 0x800454e1
|
TUNSETFILTEREBPF = 0x800454e1
|
||||||
TUNSETGROUP = 0x400454ce
|
TUNSETGROUP = 0x400454ce
|
||||||
@@ -2105,6 +2448,23 @@ const (
|
|||||||
TUNSETVNETBE = 0x400454de
|
TUNSETVNETBE = 0x400454de
|
||||||
TUNSETVNETHDRSZ = 0x400454d8
|
TUNSETVNETHDRSZ = 0x400454d8
|
||||||
TUNSETVNETLE = 0x400454dc
|
TUNSETVNETLE = 0x400454dc
|
||||||
|
UBI_IOCATT = 0x40186f40
|
||||||
|
UBI_IOCDET = 0x40046f41
|
||||||
|
UBI_IOCEBCH = 0x40044f02
|
||||||
|
UBI_IOCEBER = 0x40044f01
|
||||||
|
UBI_IOCEBISMAP = 0x80044f05
|
||||||
|
UBI_IOCEBMAP = 0x40084f03
|
||||||
|
UBI_IOCEBUNMAP = 0x40044f04
|
||||||
|
UBI_IOCMKVOL = 0x40986f00
|
||||||
|
UBI_IOCRMVOL = 0x40046f01
|
||||||
|
UBI_IOCRNVOL = 0x51106f03
|
||||||
|
UBI_IOCRPEB = 0x40046f04
|
||||||
|
UBI_IOCRSVOL = 0x400c6f02
|
||||||
|
UBI_IOCSETVOLPROP = 0x40104f06
|
||||||
|
UBI_IOCSPEB = 0x40046f05
|
||||||
|
UBI_IOCVOLCRBLK = 0x40804f07
|
||||||
|
UBI_IOCVOLRMBLK = 0x4f08
|
||||||
|
UBI_IOCVOLUP = 0x40084f00
|
||||||
UDF_SUPER_MAGIC = 0x15013346
|
UDF_SUPER_MAGIC = 0x15013346
|
||||||
UMOUNT_NOFOLLOW = 0x8
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||||
@@ -2242,7 +2602,29 @@ const (
|
|||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XDP_COPY = 0x2
|
||||||
|
XDP_FLAGS_DRV_MODE = 0x4
|
||||||
|
XDP_FLAGS_HW_MODE = 0x8
|
||||||
|
XDP_FLAGS_MASK = 0xf
|
||||||
|
XDP_FLAGS_MODES = 0xe
|
||||||
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
XDP_RX_RING = 0x2
|
||||||
|
XDP_SHARED_UMEM = 0x1
|
||||||
|
XDP_STATISTICS = 0x7
|
||||||
|
XDP_TX_RING = 0x3
|
||||||
|
XDP_UMEM_COMPLETION_RING = 0x6
|
||||||
|
XDP_UMEM_FILL_RING = 0x5
|
||||||
|
XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
|
||||||
|
XDP_UMEM_PGOFF_FILL_RING = 0x100000000
|
||||||
|
XDP_UMEM_REG = 0x4
|
||||||
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|||||||
398
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
398
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
@@ -41,7 +41,7 @@ const (
|
|||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x2c
|
AF_MAX = 0x2d
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
@@ -64,6 +64,7 @@ const (
|
|||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
AF_XDP = 0x2c
|
||||||
ALG_OP_DECRYPT = 0x0
|
ALG_OP_DECRYPT = 0x0
|
||||||
ALG_OP_ENCRYPT = 0x1
|
ALG_OP_ENCRYPT = 0x1
|
||||||
ALG_SET_AEAD_ASSOCLEN = 0x4
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
@@ -173,6 +174,7 @@ const (
|
|||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
BALLOON_KVM_MAGIC = 0x13661366
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
BDEVFS_MAGIC = 0x62646576
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
||||||
BINFMTFS_MAGIC = 0x42494e4d
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x80081270
|
BLKBSZGET = 0x80081270
|
||||||
BLKBSZSET = 0x40081271
|
BLKBSZSET = 0x40081271
|
||||||
@@ -195,10 +197,59 @@ const (
|
|||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
BPF_ANY = 0x0
|
||||||
|
BPF_ARSH = 0xc0
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
|
BPF_BUILD_ID_SIZE = 0x14
|
||||||
|
BPF_CALL = 0x80
|
||||||
|
BPF_DEVCG_ACC_MKNOD = 0x1
|
||||||
|
BPF_DEVCG_ACC_READ = 0x2
|
||||||
|
BPF_DEVCG_ACC_WRITE = 0x4
|
||||||
|
BPF_DEVCG_DEV_BLOCK = 0x1
|
||||||
|
BPF_DEVCG_DEV_CHAR = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_DW = 0x18
|
||||||
|
BPF_END = 0xd0
|
||||||
|
BPF_EXIST = 0x2
|
||||||
|
BPF_EXIT = 0x90
|
||||||
|
BPF_FROM_BE = 0x8
|
||||||
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_F_DONT_FRAGMENT = 0x4
|
||||||
|
BPF_F_FAST_STACK_CMP = 0x200
|
||||||
|
BPF_F_HDR_FIELD_MASK = 0xf
|
||||||
|
BPF_F_INDEX_MASK = 0xffffffff
|
||||||
|
BPF_F_INGRESS = 0x1
|
||||||
|
BPF_F_INVALIDATE_HASH = 0x2
|
||||||
|
BPF_F_LOCK = 0x4
|
||||||
|
BPF_F_MARK_ENFORCE = 0x40
|
||||||
|
BPF_F_MARK_MANGLED_0 = 0x20
|
||||||
|
BPF_F_NO_COMMON_LRU = 0x2
|
||||||
|
BPF_F_NO_PREALLOC = 0x1
|
||||||
|
BPF_F_NUMA_NODE = 0x4
|
||||||
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
|
BPF_F_USER_STACK = 0x100
|
||||||
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@@ -206,8 +257,16 @@ const (
|
|||||||
BPF_JEQ = 0x10
|
BPF_JEQ = 0x10
|
||||||
BPF_JGE = 0x30
|
BPF_JGE = 0x30
|
||||||
BPF_JGT = 0x20
|
BPF_JGT = 0x20
|
||||||
|
BPF_JLE = 0xb0
|
||||||
|
BPF_JLT = 0xa0
|
||||||
BPF_JMP = 0x5
|
BPF_JMP = 0x5
|
||||||
|
BPF_JMP32 = 0x6
|
||||||
|
BPF_JNE = 0x50
|
||||||
BPF_JSET = 0x40
|
BPF_JSET = 0x40
|
||||||
|
BPF_JSGE = 0x70
|
||||||
|
BPF_JSGT = 0x60
|
||||||
|
BPF_JSLE = 0xd0
|
||||||
|
BPF_JSLT = 0xc0
|
||||||
BPF_K = 0x0
|
BPF_K = 0x0
|
||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
@@ -221,20 +280,33 @@ const (
|
|||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
BPF_MOD = 0x90
|
BPF_MOD = 0x90
|
||||||
|
BPF_MOV = 0xb0
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
BPF_NET_OFF = -0x100000
|
BPF_NET_OFF = -0x100000
|
||||||
|
BPF_NOEXIST = 0x1
|
||||||
|
BPF_OBJ_NAME_LEN = 0x10
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
|
BPF_PSEUDO_CALL = 0x1
|
||||||
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||||
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
BPF_SUB = 0x10
|
BPF_SUB = 0x10
|
||||||
|
BPF_TAG_SIZE = 0x8
|
||||||
BPF_TAX = 0x0
|
BPF_TAX = 0x0
|
||||||
|
BPF_TO_BE = 0x8
|
||||||
|
BPF_TO_LE = 0x0
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XADD = 0xc0
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
@@ -262,6 +334,45 @@ const (
|
|||||||
CAN_SFF_MASK = 0x7ff
|
CAN_SFF_MASK = 0x7ff
|
||||||
CAN_TP16 = 0x3
|
CAN_TP16 = 0x3
|
||||||
CAN_TP20 = 0x4
|
CAN_TP20 = 0x4
|
||||||
|
CAP_AUDIT_CONTROL = 0x1e
|
||||||
|
CAP_AUDIT_READ = 0x25
|
||||||
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_CHOWN = 0x0
|
||||||
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
CAP_FOWNER = 0x3
|
||||||
|
CAP_FSETID = 0x4
|
||||||
|
CAP_IPC_LOCK = 0xe
|
||||||
|
CAP_IPC_OWNER = 0xf
|
||||||
|
CAP_KILL = 0x5
|
||||||
|
CAP_LAST_CAP = 0x25
|
||||||
|
CAP_LEASE = 0x1c
|
||||||
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
CAP_MAC_OVERRIDE = 0x20
|
||||||
|
CAP_MKNOD = 0x1b
|
||||||
|
CAP_NET_ADMIN = 0xc
|
||||||
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
|
CAP_NET_BROADCAST = 0xb
|
||||||
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_SETFCAP = 0x1f
|
||||||
|
CAP_SETGID = 0x6
|
||||||
|
CAP_SETPCAP = 0x8
|
||||||
|
CAP_SETUID = 0x7
|
||||||
|
CAP_SYSLOG = 0x22
|
||||||
|
CAP_SYS_ADMIN = 0x15
|
||||||
|
CAP_SYS_BOOT = 0x16
|
||||||
|
CAP_SYS_CHROOT = 0x12
|
||||||
|
CAP_SYS_MODULE = 0x10
|
||||||
|
CAP_SYS_NICE = 0x17
|
||||||
|
CAP_SYS_PACCT = 0x14
|
||||||
|
CAP_SYS_PTRACE = 0x13
|
||||||
|
CAP_SYS_RAWIO = 0x11
|
||||||
|
CAP_SYS_RESOURCE = 0x18
|
||||||
|
CAP_SYS_TIME = 0x19
|
||||||
|
CAP_SYS_TTY_CONFIG = 0x1a
|
||||||
|
CAP_WAKE_ALARM = 0x23
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@@ -318,6 +429,10 @@ const (
|
|||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
@@ -485,6 +600,60 @@ const (
|
|||||||
FALLOC_FL_PUNCH_HOLE = 0x2
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
FALLOC_FL_UNSHARE_RANGE = 0x40
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
FALLOC_FL_ZERO_RANGE = 0x10
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
|
FANOTIFY_METADATA_VERSION = 0x3
|
||||||
|
FAN_ACCESS = 0x1
|
||||||
|
FAN_ACCESS_PERM = 0x20000
|
||||||
|
FAN_ALLOW = 0x1
|
||||||
|
FAN_ALL_CLASS_BITS = 0xc
|
||||||
|
FAN_ALL_EVENTS = 0x3b
|
||||||
|
FAN_ALL_INIT_FLAGS = 0x3f
|
||||||
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
|
FAN_AUDIT = 0x10
|
||||||
|
FAN_CLASS_CONTENT = 0x4
|
||||||
|
FAN_CLASS_NOTIF = 0x0
|
||||||
|
FAN_CLASS_PRE_CONTENT = 0x8
|
||||||
|
FAN_CLOEXEC = 0x1
|
||||||
|
FAN_CLOSE = 0x18
|
||||||
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
|
FAN_DENY = 0x2
|
||||||
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
|
FAN_MARK_ADD = 0x1
|
||||||
|
FAN_MARK_DONT_FOLLOW = 0x4
|
||||||
|
FAN_MARK_FILESYSTEM = 0x100
|
||||||
|
FAN_MARK_FLUSH = 0x80
|
||||||
|
FAN_MARK_IGNORED_MASK = 0x20
|
||||||
|
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
||||||
|
FAN_MARK_INODE = 0x0
|
||||||
|
FAN_MARK_MOUNT = 0x10
|
||||||
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
|
FAN_MARK_REMOVE = 0x2
|
||||||
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
|
FAN_NOFD = -0x1
|
||||||
|
FAN_NONBLOCK = 0x2
|
||||||
|
FAN_ONDIR = 0x40000000
|
||||||
|
FAN_OPEN = 0x20
|
||||||
|
FAN_OPEN_EXEC = 0x1000
|
||||||
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
|
FAN_OPEN_PERM = 0x10000
|
||||||
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
|
FAN_REPORT_TID = 0x100
|
||||||
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
@@ -492,6 +661,7 @@ const (
|
|||||||
FFDLY = 0x8000
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x1000
|
FLUSHO = 0x1000
|
||||||
FP_XSTATE_MAGIC2 = 0x46505845
|
FP_XSTATE_MAGIC2 = 0x46505845
|
||||||
|
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
@@ -499,6 +669,8 @@ const (
|
|||||||
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
FS_ENCRYPTION_MODE_INVALID = 0x0
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
|
||||||
FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
|
||||||
FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
|
||||||
FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
|
||||||
@@ -511,7 +683,7 @@ const (
|
|||||||
FS_POLICY_FLAGS_PAD_4 = 0x0
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x7
|
||||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
@@ -636,7 +808,7 @@ const (
|
|||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x8
|
IFA_MAX = 0xa
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
@@ -704,6 +876,7 @@ const (
|
|||||||
IN_ISDIR = 0x40000000
|
IN_ISDIR = 0x40000000
|
||||||
IN_LOOPBACKNET = 0x7f
|
IN_LOOPBACKNET = 0x7f
|
||||||
IN_MASK_ADD = 0x20000000
|
IN_MASK_ADD = 0x20000000
|
||||||
|
IN_MASK_CREATE = 0x10000000
|
||||||
IN_MODIFY = 0x2
|
IN_MODIFY = 0x2
|
||||||
IN_MOVE = 0xc0
|
IN_MOVE = 0xc0
|
||||||
IN_MOVED_FROM = 0x40
|
IN_MOVED_FROM = 0x40
|
||||||
@@ -763,6 +936,7 @@ const (
|
|||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_FREEBIND = 0x4e
|
||||||
IPV6_HDRINCL = 0x24
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
@@ -774,6 +948,7 @@ const (
|
|||||||
IPV6_MINHOPCOUNT = 0x49
|
IPV6_MINHOPCOUNT = 0x49
|
||||||
IPV6_MTU = 0x18
|
IPV6_MTU = 0x18
|
||||||
IPV6_MTU_DISCOVER = 0x17
|
IPV6_MTU_DISCOVER = 0x17
|
||||||
|
IPV6_MULTICAST_ALL = 0x1d
|
||||||
IPV6_MULTICAST_HOPS = 0x12
|
IPV6_MULTICAST_HOPS = 0x12
|
||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
@@ -875,6 +1050,26 @@ const (
|
|||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
JFFS2_SUPER_MAGIC = 0x72b6
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
|
KEXEC_ARCH_386 = 0x30000
|
||||||
|
KEXEC_ARCH_68K = 0x40000
|
||||||
|
KEXEC_ARCH_AARCH64 = 0xb70000
|
||||||
|
KEXEC_ARCH_ARM = 0x280000
|
||||||
|
KEXEC_ARCH_DEFAULT = 0x0
|
||||||
|
KEXEC_ARCH_IA_64 = 0x320000
|
||||||
|
KEXEC_ARCH_MASK = 0xffff0000
|
||||||
|
KEXEC_ARCH_MIPS = 0x80000
|
||||||
|
KEXEC_ARCH_MIPS_LE = 0xa0000
|
||||||
|
KEXEC_ARCH_PPC = 0x140000
|
||||||
|
KEXEC_ARCH_PPC64 = 0x150000
|
||||||
|
KEXEC_ARCH_S390 = 0x160000
|
||||||
|
KEXEC_ARCH_SH = 0x2a0000
|
||||||
|
KEXEC_ARCH_X86_64 = 0x3e0000
|
||||||
|
KEXEC_FILE_NO_INITRAMFS = 0x4
|
||||||
|
KEXEC_FILE_ON_CRASH = 0x2
|
||||||
|
KEXEC_FILE_UNLOAD = 0x1
|
||||||
|
KEXEC_ON_CRASH = 0x1
|
||||||
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
@@ -889,6 +1084,11 @@ const (
|
|||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
KEYCTL_PKEY_QUERY = 0x18
|
||||||
|
KEYCTL_PKEY_SIGN = 0x1b
|
||||||
|
KEYCTL_PKEY_VERIFY = 0x1c
|
||||||
KEYCTL_READ = 0xb
|
KEYCTL_READ = 0xb
|
||||||
KEYCTL_REJECT = 0x13
|
KEYCTL_REJECT = 0x13
|
||||||
KEYCTL_RESTRICT_KEYRING = 0x1d
|
KEYCTL_RESTRICT_KEYRING = 0x1d
|
||||||
@@ -898,6 +1098,10 @@ const (
|
|||||||
KEYCTL_SETPERM = 0x5
|
KEYCTL_SETPERM = 0x5
|
||||||
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
KEYCTL_SET_TIMEOUT = 0xf
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_SUPPORTS_DECRYPT = 0x2
|
||||||
|
KEYCTL_SUPPORTS_ENCRYPT = 0x1
|
||||||
|
KEYCTL_SUPPORTS_SIGN = 0x4
|
||||||
|
KEYCTL_SUPPORTS_VERIFY = 0x8
|
||||||
KEYCTL_UNLINK = 0x9
|
KEYCTL_UNLINK = 0x9
|
||||||
KEYCTL_UPDATE = 0x2
|
KEYCTL_UPDATE = 0x2
|
||||||
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
@@ -956,6 +1160,7 @@ const (
|
|||||||
MAP_EXECUTABLE = 0x1000
|
MAP_EXECUTABLE = 0x1000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_FIXED_NOREPLACE = 0x100000
|
||||||
MAP_GROWSDOWN = 0x100
|
MAP_GROWSDOWN = 0x100
|
||||||
MAP_HUGETLB = 0x40000
|
MAP_HUGETLB = 0x40000
|
||||||
MAP_HUGE_MASK = 0x3f
|
MAP_HUGE_MASK = 0x3f
|
||||||
@@ -966,11 +1171,39 @@ const (
|
|||||||
MAP_POPULATE = 0x8000
|
MAP_POPULATE = 0x8000
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x20000
|
MAP_STACK = 0x20000
|
||||||
|
MAP_SYNC = 0x80000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
|
MCAST_BLOCK_SOURCE = 0x2b
|
||||||
|
MCAST_EXCLUDE = 0x0
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x2a
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x2e
|
||||||
|
MCAST_LEAVE_GROUP = 0x2d
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x2f
|
||||||
|
MCAST_MSFILTER = 0x30
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x2c
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
|
MFD_ALLOW_SEALING = 0x2
|
||||||
|
MFD_CLOEXEC = 0x1
|
||||||
|
MFD_HUGETLB = 0x4
|
||||||
|
MFD_HUGE_16GB = -0x78000000
|
||||||
|
MFD_HUGE_16MB = 0x60000000
|
||||||
|
MFD_HUGE_1GB = 0x78000000
|
||||||
|
MFD_HUGE_1MB = 0x50000000
|
||||||
|
MFD_HUGE_256MB = 0x70000000
|
||||||
|
MFD_HUGE_2GB = 0x7c000000
|
||||||
|
MFD_HUGE_2MB = 0x54000000
|
||||||
|
MFD_HUGE_32MB = 0x64000000
|
||||||
|
MFD_HUGE_512KB = 0x4c000000
|
||||||
|
MFD_HUGE_512MB = 0x74000000
|
||||||
|
MFD_HUGE_64KB = 0x40000000
|
||||||
|
MFD_HUGE_8MB = 0x5c000000
|
||||||
|
MFD_HUGE_MASK = 0x3f
|
||||||
|
MFD_HUGE_SHIFT = 0x1a
|
||||||
MINIX2_SUPER_MAGIC = 0x2468
|
MINIX2_SUPER_MAGIC = 0x2468
|
||||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||||
@@ -979,6 +1212,8 @@ const (
|
|||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
|
||||||
|
MODULE_INIT_IGNORE_VERMAGIC = 0x2
|
||||||
MSDOS_SUPER_MAGIC = 0x4d44
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
@@ -1055,6 +1290,7 @@ const (
|
|||||||
NETLINK_FIB_LOOKUP = 0xa
|
NETLINK_FIB_LOOKUP = 0xa
|
||||||
NETLINK_FIREWALL = 0x3
|
NETLINK_FIREWALL = 0x3
|
||||||
NETLINK_GENERIC = 0x10
|
NETLINK_GENERIC = 0x10
|
||||||
|
NETLINK_GET_STRICT_CHK = 0xc
|
||||||
NETLINK_INET_DIAG = 0x4
|
NETLINK_INET_DIAG = 0x4
|
||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
@@ -1076,6 +1312,8 @@ const (
|
|||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
|
NETNSA_MAX = 0x5
|
||||||
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||||
@@ -1196,6 +1434,7 @@ const (
|
|||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_IGNORE_OUTGOING = 0x17
|
||||||
PACKET_KERNEL = 0x7
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
@@ -1245,6 +1484,36 @@ const (
|
|||||||
PERF_EVENT_IOC_SET_FILTER = 0x40082406
|
PERF_EVENT_IOC_SET_FILTER = 0x40082406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
||||||
PIPEFS_MAGIC = 0x50495045
|
PIPEFS_MAGIC = 0x50495045
|
||||||
|
PPPIOCATTACH = 0x4004743d
|
||||||
|
PPPIOCATTCHAN = 0x40047438
|
||||||
|
PPPIOCCONNECT = 0x4004743a
|
||||||
|
PPPIOCDETACH = 0x4004743c
|
||||||
|
PPPIOCDISCONN = 0x7439
|
||||||
|
PPPIOCGASYNCMAP = 0x80047458
|
||||||
|
PPPIOCGCHAN = 0x80047437
|
||||||
|
PPPIOCGDEBUG = 0x80047441
|
||||||
|
PPPIOCGFLAGS = 0x8004745a
|
||||||
|
PPPIOCGIDLE = 0x8010743f
|
||||||
|
PPPIOCGL2TPSTATS = 0x80487436
|
||||||
|
PPPIOCGMRU = 0x80047453
|
||||||
|
PPPIOCGNPMODE = 0xc008744c
|
||||||
|
PPPIOCGRASYNCMAP = 0x80047455
|
||||||
|
PPPIOCGUNIT = 0x80047456
|
||||||
|
PPPIOCGXASYNCMAP = 0x80207450
|
||||||
|
PPPIOCNEWUNIT = 0xc004743e
|
||||||
|
PPPIOCSACTIVE = 0x40107446
|
||||||
|
PPPIOCSASYNCMAP = 0x40047457
|
||||||
|
PPPIOCSCOMPRESS = 0x4010744d
|
||||||
|
PPPIOCSDEBUG = 0x40047440
|
||||||
|
PPPIOCSFLAGS = 0x40047459
|
||||||
|
PPPIOCSMAXCID = 0x40047451
|
||||||
|
PPPIOCSMRRU = 0x4004743b
|
||||||
|
PPPIOCSMRU = 0x40047452
|
||||||
|
PPPIOCSNPMODE = 0x4008744b
|
||||||
|
PPPIOCSPASS = 0x40107447
|
||||||
|
PPPIOCSRASYNCMAP = 0x40047454
|
||||||
|
PPPIOCSXASYNCMAP = 0x4020744f
|
||||||
|
PPPIOCXFERUNIT = 0x744e
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@@ -1307,6 +1576,12 @@ const (
|
|||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
|
PR_PAC_APDAKEY = 0x4
|
||||||
|
PR_PAC_APDBKEY = 0x8
|
||||||
|
PR_PAC_APGAKEY = 0x10
|
||||||
|
PR_PAC_APIAKEY = 0x1
|
||||||
|
PR_PAC_APIBKEY = 0x2
|
||||||
|
PR_PAC_RESET_KEYS = 0x36
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
@@ -1344,8 +1619,10 @@ const (
|
|||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
PR_SPEC_NOT_AFFECTED = 0x0
|
PR_SPEC_NOT_AFFECTED = 0x0
|
||||||
PR_SPEC_PRCTL = 0x1
|
PR_SPEC_PRCTL = 0x1
|
||||||
PR_SPEC_STORE_BYPASS = 0x0
|
PR_SPEC_STORE_BYPASS = 0x0
|
||||||
@@ -1428,6 +1705,9 @@ const (
|
|||||||
RAMFS_MAGIC = 0x858458f6
|
RAMFS_MAGIC = 0x858458f6
|
||||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||||
REISERFS_SUPER_MAGIC = 0x52654973
|
REISERFS_SUPER_MAGIC = 0x52654973
|
||||||
|
RENAME_EXCHANGE = 0x2
|
||||||
|
RENAME_NOREPLACE = 0x1
|
||||||
|
RENAME_WHITEOUT = 0x4
|
||||||
RLIMIT_AS = 0x9
|
RLIMIT_AS = 0x9
|
||||||
RLIMIT_CORE = 0x4
|
RLIMIT_CORE = 0x4
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
@@ -1445,6 +1725,13 @@ const (
|
|||||||
RLIMIT_SIGPENDING = 0xb
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0xffffffffffffffff
|
RLIM_INFINITY = 0xffffffffffffffff
|
||||||
|
RNDADDENTROPY = 0x40085203
|
||||||
|
RNDADDTOENTCNT = 0x40045201
|
||||||
|
RNDCLEARPOOL = 0x5206
|
||||||
|
RNDGETENTCNT = 0x80045200
|
||||||
|
RNDGETPOOL = 0x80085202
|
||||||
|
RNDRESEEDCRNG = 0x5207
|
||||||
|
RNDZAPENTCNT = 0x5204
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
RTAX_CC_ALGO = 0x10
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
@@ -1470,7 +1757,7 @@ const (
|
|||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1a
|
RTA_MAX = 0x1d
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
@@ -1538,6 +1825,7 @@ const (
|
|||||||
RTM_DELACTION = 0x31
|
RTM_DELACTION = 0x31
|
||||||
RTM_DELADDR = 0x15
|
RTM_DELADDR = 0x15
|
||||||
RTM_DELADDRLABEL = 0x49
|
RTM_DELADDRLABEL = 0x49
|
||||||
|
RTM_DELCHAIN = 0x65
|
||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
@@ -1558,6 +1846,7 @@ const (
|
|||||||
RTM_GETADDR = 0x16
|
RTM_GETADDR = 0x16
|
||||||
RTM_GETADDRLABEL = 0x4a
|
RTM_GETADDRLABEL = 0x4a
|
||||||
RTM_GETANYCAST = 0x3e
|
RTM_GETANYCAST = 0x3e
|
||||||
|
RTM_GETCHAIN = 0x66
|
||||||
RTM_GETDCB = 0x4e
|
RTM_GETDCB = 0x4e
|
||||||
RTM_GETLINK = 0x12
|
RTM_GETLINK = 0x12
|
||||||
RTM_GETMDB = 0x56
|
RTM_GETMDB = 0x56
|
||||||
@@ -1572,11 +1861,12 @@ const (
|
|||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x63
|
RTM_MAX = 0x67
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
RTM_NEWCACHEREPORT = 0x60
|
RTM_NEWCACHEREPORT = 0x60
|
||||||
|
RTM_NEWCHAIN = 0x64
|
||||||
RTM_NEWLINK = 0x10
|
RTM_NEWLINK = 0x10
|
||||||
RTM_NEWMDB = 0x54
|
RTM_NEWMDB = 0x54
|
||||||
RTM_NEWNDUSEROPT = 0x44
|
RTM_NEWNDUSEROPT = 0x44
|
||||||
@@ -1591,8 +1881,8 @@ const (
|
|||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x15
|
RTM_NR_FAMILIES = 0x16
|
||||||
RTM_NR_MSGTYPES = 0x54
|
RTM_NR_MSGTYPES = 0x58
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
@@ -1606,17 +1896,22 @@ const (
|
|||||||
RTNH_F_UNRESOLVED = 0x20
|
RTNH_F_UNRESOLVED = 0x20
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
RTPROT_BABEL = 0x2a
|
RTPROT_BABEL = 0x2a
|
||||||
|
RTPROT_BGP = 0xba
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
RTPROT_DNROUTED = 0xd
|
RTPROT_DNROUTED = 0xd
|
||||||
|
RTPROT_EIGRP = 0xc0
|
||||||
RTPROT_GATED = 0x8
|
RTPROT_GATED = 0x8
|
||||||
|
RTPROT_ISIS = 0xbb
|
||||||
RTPROT_KERNEL = 0x2
|
RTPROT_KERNEL = 0x2
|
||||||
RTPROT_MROUTED = 0x11
|
RTPROT_MROUTED = 0x11
|
||||||
RTPROT_MRT = 0xa
|
RTPROT_MRT = 0xa
|
||||||
RTPROT_NTK = 0xf
|
RTPROT_NTK = 0xf
|
||||||
|
RTPROT_OSPF = 0xbc
|
||||||
RTPROT_RA = 0x9
|
RTPROT_RA = 0x9
|
||||||
RTPROT_REDIRECT = 0x1
|
RTPROT_REDIRECT = 0x1
|
||||||
|
RTPROT_RIP = 0xbd
|
||||||
RTPROT_STATIC = 0x4
|
RTPROT_STATIC = 0x4
|
||||||
RTPROT_UNSPEC = 0x0
|
RTPROT_UNSPEC = 0x0
|
||||||
RTPROT_XORP = 0xe
|
RTPROT_XORP = 0xe
|
||||||
@@ -1636,12 +1931,16 @@ const (
|
|||||||
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SC_LOG_FLUSH = 0x100000
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SECURITYFS_MAGIC = 0x73636673
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
SELINUX_MAGIC = 0xf97cff8c
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
|
SFD_CLOEXEC = 0x80000
|
||||||
|
SFD_NONBLOCK = 0x800
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@@ -1692,6 +1991,9 @@ const (
|
|||||||
SIOCGMIIPHY = 0x8947
|
SIOCGMIIPHY = 0x8947
|
||||||
SIOCGMIIREG = 0x8948
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
|
SIOCGPPPCSTATS = 0x89f2
|
||||||
|
SIOCGPPPSTATS = 0x89f0
|
||||||
|
SIOCGPPPVER = 0x89f1
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
@@ -1781,6 +2083,7 @@ const (
|
|||||||
SOL_TIPC = 0x10f
|
SOL_TIPC = 0x10f
|
||||||
SOL_TLS = 0x11a
|
SOL_TLS = 0x11a
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
|
SOL_XDP = 0x11b
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1e
|
SO_ACCEPTCONN = 0x1e
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
@@ -1788,6 +2091,7 @@ const (
|
|||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
@@ -1799,6 +2103,17 @@ const (
|
|||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
SO_EE_CODE_TXTIME_MISSED = 0x2
|
||||||
|
SO_EE_CODE_ZEROCOPY_COPIED = 0x1
|
||||||
|
SO_EE_ORIGIN_ICMP = 0x2
|
||||||
|
SO_EE_ORIGIN_ICMP6 = 0x3
|
||||||
|
SO_EE_ORIGIN_LOCAL = 0x1
|
||||||
|
SO_EE_ORIGIN_NONE = 0x0
|
||||||
|
SO_EE_ORIGIN_TIMESTAMPING = 0x4
|
||||||
|
SO_EE_ORIGIN_TXSTATUS = 0x4
|
||||||
|
SO_EE_ORIGIN_TXTIME = 0x6
|
||||||
|
SO_EE_ORIGIN_ZEROCOPY = 0x5
|
||||||
SO_ERROR = 0x4
|
SO_ERROR = 0x4
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
SO_INCOMING_CPU = 0x31
|
SO_INCOMING_CPU = 0x31
|
||||||
@@ -1825,6 +2140,8 @@ const (
|
|||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x12
|
SO_RCVLOWAT = 0x12
|
||||||
SO_RCVTIMEO = 0x14
|
SO_RCVTIMEO = 0x14
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x14
|
||||||
SO_REUSEADDR = 0x2
|
SO_REUSEADDR = 0x2
|
||||||
SO_REUSEPORT = 0xf
|
SO_REUSEPORT = 0xf
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
@@ -1836,9 +2153,18 @@ const (
|
|||||||
SO_SNDBUFFORCE = 0x20
|
SO_SNDBUFFORCE = 0x20
|
||||||
SO_SNDLOWAT = 0x13
|
SO_SNDLOWAT = 0x13
|
||||||
SO_SNDTIMEO = 0x15
|
SO_SNDTIMEO = 0x15
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x15
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
@@ -1876,6 +2202,9 @@ const (
|
|||||||
STATX_TYPE = 0x1
|
STATX_TYPE = 0x1
|
||||||
STATX_UID = 0x8
|
STATX_UID = 0x8
|
||||||
STATX__RESERVED = 0x80000000
|
STATX__RESERVED = 0x80000000
|
||||||
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
@@ -1914,7 +2243,7 @@ const (
|
|||||||
TASKSTATS_GENL_NAME = "TASKSTATS"
|
TASKSTATS_GENL_NAME = "TASKSTATS"
|
||||||
TASKSTATS_GENL_VERSION = 0x1
|
TASKSTATS_GENL_VERSION = 0x1
|
||||||
TASKSTATS_TYPE_MAX = 0x6
|
TASKSTATS_TYPE_MAX = 0x6
|
||||||
TASKSTATS_VERSION = 0x8
|
TASKSTATS_VERSION = 0x9
|
||||||
TCFLSH = 0x540b
|
TCFLSH = 0x540b
|
||||||
TCGETA = 0x5405
|
TCGETA = 0x5405
|
||||||
TCGETS = 0x5401
|
TCGETS = 0x5401
|
||||||
@@ -1927,7 +2256,10 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_BPF_IW = 0x3e9
|
||||||
|
TCP_BPF_SNDCWND_CLAMP = 0x3ea
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
@@ -1939,7 +2271,10 @@ const (
|
|||||||
TCP_DEFER_ACCEPT = 0x9
|
TCP_DEFER_ACCEPT = 0x9
|
||||||
TCP_FASTOPEN = 0x17
|
TCP_FASTOPEN = 0x17
|
||||||
TCP_FASTOPEN_CONNECT = 0x1e
|
TCP_FASTOPEN_CONNECT = 0x1e
|
||||||
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
|
TCP_INQ = 0x24
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
TCP_KEEPINTVL = 0x5
|
TCP_KEEPINTVL = 0x5
|
||||||
@@ -1959,6 +2294,9 @@ const (
|
|||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
|
TCP_REPAIR_OFF = 0x0
|
||||||
|
TCP_REPAIR_OFF_NO_WP = -0x1
|
||||||
|
TCP_REPAIR_ON = 0x1
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
TCP_REPAIR_WINDOW = 0x1d
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
@@ -1973,6 +2311,7 @@ const (
|
|||||||
TCP_ULP = 0x1f
|
TCP_ULP = 0x1f
|
||||||
TCP_USER_TIMEOUT = 0x12
|
TCP_USER_TIMEOUT = 0x12
|
||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
|
TCP_ZEROCOPY_RECEIVE = 0x23
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
TCSBRK = 0x5409
|
TCSBRK = 0x5409
|
||||||
TCSBRKP = 0x5425
|
TCSBRKP = 0x5425
|
||||||
@@ -1989,6 +2328,7 @@ const (
|
|||||||
TCSETXF = 0x5434
|
TCSETXF = 0x5434
|
||||||
TCSETXW = 0x5435
|
TCSETXW = 0x5435
|
||||||
TCXONC = 0x540a
|
TCXONC = 0x540a
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x541d
|
TIOCCONS = 0x541d
|
||||||
TIOCEXCL = 0x540c
|
TIOCEXCL = 0x540c
|
||||||
@@ -1996,6 +2336,7 @@ const (
|
|||||||
TIOCGETD = 0x5424
|
TIOCGETD = 0x5424
|
||||||
TIOCGEXCL = 0x80045440
|
TIOCGEXCL = 0x80045440
|
||||||
TIOCGICOUNT = 0x545d
|
TIOCGICOUNT = 0x545d
|
||||||
|
TIOCGISO7816 = 0x80285442
|
||||||
TIOCGLCKTRMIOS = 0x5456
|
TIOCGLCKTRMIOS = 0x5456
|
||||||
TIOCGPGRP = 0x540f
|
TIOCGPGRP = 0x540f
|
||||||
TIOCGPKT = 0x80045438
|
TIOCGPKT = 0x80045438
|
||||||
@@ -2049,6 +2390,7 @@ const (
|
|||||||
TIOCSER_TEMT = 0x1
|
TIOCSER_TEMT = 0x1
|
||||||
TIOCSETD = 0x5423
|
TIOCSETD = 0x5423
|
||||||
TIOCSIG = 0x40045436
|
TIOCSIG = 0x40045436
|
||||||
|
TIOCSISO7816 = 0xc0285443
|
||||||
TIOCSLCKTRMIOS = 0x5457
|
TIOCSLCKTRMIOS = 0x5457
|
||||||
TIOCSPGRP = 0x5410
|
TIOCSPGRP = 0x5410
|
||||||
TIOCSPTLCK = 0x40045431
|
TIOCSPTLCK = 0x40045431
|
||||||
@@ -2089,6 +2431,7 @@ const (
|
|||||||
TUNGETVNETBE = 0x800454df
|
TUNGETVNETBE = 0x800454df
|
||||||
TUNGETVNETHDRSZ = 0x800454d7
|
TUNGETVNETHDRSZ = 0x800454d7
|
||||||
TUNGETVNETLE = 0x800454dd
|
TUNGETVNETLE = 0x800454dd
|
||||||
|
TUNSETCARRIER = 0x400454e2
|
||||||
TUNSETDEBUG = 0x400454c9
|
TUNSETDEBUG = 0x400454c9
|
||||||
TUNSETFILTEREBPF = 0x800454e1
|
TUNSETFILTEREBPF = 0x800454e1
|
||||||
TUNSETGROUP = 0x400454ce
|
TUNSETGROUP = 0x400454ce
|
||||||
@@ -2106,6 +2449,23 @@ const (
|
|||||||
TUNSETVNETBE = 0x400454de
|
TUNSETVNETBE = 0x400454de
|
||||||
TUNSETVNETHDRSZ = 0x400454d8
|
TUNSETVNETHDRSZ = 0x400454d8
|
||||||
TUNSETVNETLE = 0x400454dc
|
TUNSETVNETLE = 0x400454dc
|
||||||
|
UBI_IOCATT = 0x40186f40
|
||||||
|
UBI_IOCDET = 0x40046f41
|
||||||
|
UBI_IOCEBCH = 0x40044f02
|
||||||
|
UBI_IOCEBER = 0x40044f01
|
||||||
|
UBI_IOCEBISMAP = 0x80044f05
|
||||||
|
UBI_IOCEBMAP = 0x40084f03
|
||||||
|
UBI_IOCEBUNMAP = 0x40044f04
|
||||||
|
UBI_IOCMKVOL = 0x40986f00
|
||||||
|
UBI_IOCRMVOL = 0x40046f01
|
||||||
|
UBI_IOCRNVOL = 0x51106f03
|
||||||
|
UBI_IOCRPEB = 0x40046f04
|
||||||
|
UBI_IOCRSVOL = 0x400c6f02
|
||||||
|
UBI_IOCSETVOLPROP = 0x40104f06
|
||||||
|
UBI_IOCSPEB = 0x40046f05
|
||||||
|
UBI_IOCVOLCRBLK = 0x40804f07
|
||||||
|
UBI_IOCVOLRMBLK = 0x4f08
|
||||||
|
UBI_IOCVOLUP = 0x40084f00
|
||||||
UDF_SUPER_MAGIC = 0x15013346
|
UDF_SUPER_MAGIC = 0x15013346
|
||||||
UMOUNT_NOFOLLOW = 0x8
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||||
@@ -2242,7 +2602,29 @@ const (
|
|||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XDP_COPY = 0x2
|
||||||
|
XDP_FLAGS_DRV_MODE = 0x4
|
||||||
|
XDP_FLAGS_HW_MODE = 0x8
|
||||||
|
XDP_FLAGS_MASK = 0xf
|
||||||
|
XDP_FLAGS_MODES = 0xe
|
||||||
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
XDP_RX_RING = 0x2
|
||||||
|
XDP_SHARED_UMEM = 0x1
|
||||||
|
XDP_STATISTICS = 0x7
|
||||||
|
XDP_TX_RING = 0x3
|
||||||
|
XDP_UMEM_COMPLETION_RING = 0x6
|
||||||
|
XDP_UMEM_FILL_RING = 0x5
|
||||||
|
XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
|
||||||
|
XDP_UMEM_PGOFF_FILL_RING = 0x100000000
|
||||||
|
XDP_UMEM_REG = 0x4
|
||||||
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|||||||
398
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
398
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
@@ -41,7 +41,7 @@ const (
|
|||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x2c
|
AF_MAX = 0x2d
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
@@ -64,6 +64,7 @@ const (
|
|||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
AF_XDP = 0x2c
|
||||||
ALG_OP_DECRYPT = 0x0
|
ALG_OP_DECRYPT = 0x0
|
||||||
ALG_OP_ENCRYPT = 0x1
|
ALG_OP_ENCRYPT = 0x1
|
||||||
ALG_SET_AEAD_ASSOCLEN = 0x4
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
@@ -173,6 +174,7 @@ const (
|
|||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
BALLOON_KVM_MAGIC = 0x13661366
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
BDEVFS_MAGIC = 0x62646576
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
||||||
BINFMTFS_MAGIC = 0x42494e4d
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x80041270
|
BLKBSZGET = 0x80041270
|
||||||
BLKBSZSET = 0x40041271
|
BLKBSZSET = 0x40041271
|
||||||
@@ -195,10 +197,59 @@ const (
|
|||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
BPF_ANY = 0x0
|
||||||
|
BPF_ARSH = 0xc0
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
|
BPF_BUILD_ID_SIZE = 0x14
|
||||||
|
BPF_CALL = 0x80
|
||||||
|
BPF_DEVCG_ACC_MKNOD = 0x1
|
||||||
|
BPF_DEVCG_ACC_READ = 0x2
|
||||||
|
BPF_DEVCG_ACC_WRITE = 0x4
|
||||||
|
BPF_DEVCG_DEV_BLOCK = 0x1
|
||||||
|
BPF_DEVCG_DEV_CHAR = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_DW = 0x18
|
||||||
|
BPF_END = 0xd0
|
||||||
|
BPF_EXIST = 0x2
|
||||||
|
BPF_EXIT = 0x90
|
||||||
|
BPF_FROM_BE = 0x8
|
||||||
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_F_DONT_FRAGMENT = 0x4
|
||||||
|
BPF_F_FAST_STACK_CMP = 0x200
|
||||||
|
BPF_F_HDR_FIELD_MASK = 0xf
|
||||||
|
BPF_F_INDEX_MASK = 0xffffffff
|
||||||
|
BPF_F_INGRESS = 0x1
|
||||||
|
BPF_F_INVALIDATE_HASH = 0x2
|
||||||
|
BPF_F_LOCK = 0x4
|
||||||
|
BPF_F_MARK_ENFORCE = 0x40
|
||||||
|
BPF_F_MARK_MANGLED_0 = 0x20
|
||||||
|
BPF_F_NO_COMMON_LRU = 0x2
|
||||||
|
BPF_F_NO_PREALLOC = 0x1
|
||||||
|
BPF_F_NUMA_NODE = 0x4
|
||||||
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
|
BPF_F_USER_STACK = 0x100
|
||||||
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@@ -206,8 +257,16 @@ const (
|
|||||||
BPF_JEQ = 0x10
|
BPF_JEQ = 0x10
|
||||||
BPF_JGE = 0x30
|
BPF_JGE = 0x30
|
||||||
BPF_JGT = 0x20
|
BPF_JGT = 0x20
|
||||||
|
BPF_JLE = 0xb0
|
||||||
|
BPF_JLT = 0xa0
|
||||||
BPF_JMP = 0x5
|
BPF_JMP = 0x5
|
||||||
|
BPF_JMP32 = 0x6
|
||||||
|
BPF_JNE = 0x50
|
||||||
BPF_JSET = 0x40
|
BPF_JSET = 0x40
|
||||||
|
BPF_JSGE = 0x70
|
||||||
|
BPF_JSGT = 0x60
|
||||||
|
BPF_JSLE = 0xd0
|
||||||
|
BPF_JSLT = 0xc0
|
||||||
BPF_K = 0x0
|
BPF_K = 0x0
|
||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
@@ -221,20 +280,33 @@ const (
|
|||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
BPF_MOD = 0x90
|
BPF_MOD = 0x90
|
||||||
|
BPF_MOV = 0xb0
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
BPF_NET_OFF = -0x100000
|
BPF_NET_OFF = -0x100000
|
||||||
|
BPF_NOEXIST = 0x1
|
||||||
|
BPF_OBJ_NAME_LEN = 0x10
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
|
BPF_PSEUDO_CALL = 0x1
|
||||||
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||||
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
BPF_SUB = 0x10
|
BPF_SUB = 0x10
|
||||||
|
BPF_TAG_SIZE = 0x8
|
||||||
BPF_TAX = 0x0
|
BPF_TAX = 0x0
|
||||||
|
BPF_TO_BE = 0x8
|
||||||
|
BPF_TO_LE = 0x0
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XADD = 0xc0
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
@@ -262,6 +334,45 @@ const (
|
|||||||
CAN_SFF_MASK = 0x7ff
|
CAN_SFF_MASK = 0x7ff
|
||||||
CAN_TP16 = 0x3
|
CAN_TP16 = 0x3
|
||||||
CAN_TP20 = 0x4
|
CAN_TP20 = 0x4
|
||||||
|
CAP_AUDIT_CONTROL = 0x1e
|
||||||
|
CAP_AUDIT_READ = 0x25
|
||||||
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_CHOWN = 0x0
|
||||||
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
CAP_FOWNER = 0x3
|
||||||
|
CAP_FSETID = 0x4
|
||||||
|
CAP_IPC_LOCK = 0xe
|
||||||
|
CAP_IPC_OWNER = 0xf
|
||||||
|
CAP_KILL = 0x5
|
||||||
|
CAP_LAST_CAP = 0x25
|
||||||
|
CAP_LEASE = 0x1c
|
||||||
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
CAP_MAC_OVERRIDE = 0x20
|
||||||
|
CAP_MKNOD = 0x1b
|
||||||
|
CAP_NET_ADMIN = 0xc
|
||||||
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
|
CAP_NET_BROADCAST = 0xb
|
||||||
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_SETFCAP = 0x1f
|
||||||
|
CAP_SETGID = 0x6
|
||||||
|
CAP_SETPCAP = 0x8
|
||||||
|
CAP_SETUID = 0x7
|
||||||
|
CAP_SYSLOG = 0x22
|
||||||
|
CAP_SYS_ADMIN = 0x15
|
||||||
|
CAP_SYS_BOOT = 0x16
|
||||||
|
CAP_SYS_CHROOT = 0x12
|
||||||
|
CAP_SYS_MODULE = 0x10
|
||||||
|
CAP_SYS_NICE = 0x17
|
||||||
|
CAP_SYS_PACCT = 0x14
|
||||||
|
CAP_SYS_PTRACE = 0x13
|
||||||
|
CAP_SYS_RAWIO = 0x11
|
||||||
|
CAP_SYS_RESOURCE = 0x18
|
||||||
|
CAP_SYS_TIME = 0x19
|
||||||
|
CAP_SYS_TTY_CONFIG = 0x1a
|
||||||
|
CAP_WAKE_ALARM = 0x23
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@@ -318,6 +429,10 @@ const (
|
|||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
@@ -485,12 +600,67 @@ const (
|
|||||||
FALLOC_FL_PUNCH_HOLE = 0x2
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
FALLOC_FL_UNSHARE_RANGE = 0x40
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
FALLOC_FL_ZERO_RANGE = 0x10
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
|
FANOTIFY_METADATA_VERSION = 0x3
|
||||||
|
FAN_ACCESS = 0x1
|
||||||
|
FAN_ACCESS_PERM = 0x20000
|
||||||
|
FAN_ALLOW = 0x1
|
||||||
|
FAN_ALL_CLASS_BITS = 0xc
|
||||||
|
FAN_ALL_EVENTS = 0x3b
|
||||||
|
FAN_ALL_INIT_FLAGS = 0x3f
|
||||||
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
|
FAN_AUDIT = 0x10
|
||||||
|
FAN_CLASS_CONTENT = 0x4
|
||||||
|
FAN_CLASS_NOTIF = 0x0
|
||||||
|
FAN_CLASS_PRE_CONTENT = 0x8
|
||||||
|
FAN_CLOEXEC = 0x1
|
||||||
|
FAN_CLOSE = 0x18
|
||||||
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
|
FAN_DENY = 0x2
|
||||||
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
|
FAN_MARK_ADD = 0x1
|
||||||
|
FAN_MARK_DONT_FOLLOW = 0x4
|
||||||
|
FAN_MARK_FILESYSTEM = 0x100
|
||||||
|
FAN_MARK_FLUSH = 0x80
|
||||||
|
FAN_MARK_IGNORED_MASK = 0x20
|
||||||
|
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
||||||
|
FAN_MARK_INODE = 0x0
|
||||||
|
FAN_MARK_MOUNT = 0x10
|
||||||
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
|
FAN_MARK_REMOVE = 0x2
|
||||||
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
|
FAN_NOFD = -0x1
|
||||||
|
FAN_NONBLOCK = 0x2
|
||||||
|
FAN_ONDIR = 0x40000000
|
||||||
|
FAN_OPEN = 0x20
|
||||||
|
FAN_OPEN_EXEC = 0x1000
|
||||||
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
|
FAN_OPEN_PERM = 0x10000
|
||||||
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
|
FAN_REPORT_TID = 0x100
|
||||||
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
FF1 = 0x8000
|
FF1 = 0x8000
|
||||||
FFDLY = 0x8000
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x1000
|
FLUSHO = 0x1000
|
||||||
|
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
@@ -498,6 +668,8 @@ const (
|
|||||||
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
FS_ENCRYPTION_MODE_INVALID = 0x0
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
|
||||||
FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
|
||||||
FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
|
||||||
FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
|
||||||
@@ -510,7 +682,7 @@ const (
|
|||||||
FS_POLICY_FLAGS_PAD_4 = 0x0
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x7
|
||||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
@@ -635,7 +807,7 @@ const (
|
|||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x8
|
IFA_MAX = 0xa
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
@@ -703,6 +875,7 @@ const (
|
|||||||
IN_ISDIR = 0x40000000
|
IN_ISDIR = 0x40000000
|
||||||
IN_LOOPBACKNET = 0x7f
|
IN_LOOPBACKNET = 0x7f
|
||||||
IN_MASK_ADD = 0x20000000
|
IN_MASK_ADD = 0x20000000
|
||||||
|
IN_MASK_CREATE = 0x10000000
|
||||||
IN_MODIFY = 0x2
|
IN_MODIFY = 0x2
|
||||||
IN_MOVE = 0xc0
|
IN_MOVE = 0xc0
|
||||||
IN_MOVED_FROM = 0x40
|
IN_MOVED_FROM = 0x40
|
||||||
@@ -762,6 +935,7 @@ const (
|
|||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_FREEBIND = 0x4e
|
||||||
IPV6_HDRINCL = 0x24
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
@@ -773,6 +947,7 @@ const (
|
|||||||
IPV6_MINHOPCOUNT = 0x49
|
IPV6_MINHOPCOUNT = 0x49
|
||||||
IPV6_MTU = 0x18
|
IPV6_MTU = 0x18
|
||||||
IPV6_MTU_DISCOVER = 0x17
|
IPV6_MTU_DISCOVER = 0x17
|
||||||
|
IPV6_MULTICAST_ALL = 0x1d
|
||||||
IPV6_MULTICAST_HOPS = 0x12
|
IPV6_MULTICAST_HOPS = 0x12
|
||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
@@ -874,6 +1049,26 @@ const (
|
|||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
JFFS2_SUPER_MAGIC = 0x72b6
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
|
KEXEC_ARCH_386 = 0x30000
|
||||||
|
KEXEC_ARCH_68K = 0x40000
|
||||||
|
KEXEC_ARCH_AARCH64 = 0xb70000
|
||||||
|
KEXEC_ARCH_ARM = 0x280000
|
||||||
|
KEXEC_ARCH_DEFAULT = 0x0
|
||||||
|
KEXEC_ARCH_IA_64 = 0x320000
|
||||||
|
KEXEC_ARCH_MASK = 0xffff0000
|
||||||
|
KEXEC_ARCH_MIPS = 0x80000
|
||||||
|
KEXEC_ARCH_MIPS_LE = 0xa0000
|
||||||
|
KEXEC_ARCH_PPC = 0x140000
|
||||||
|
KEXEC_ARCH_PPC64 = 0x150000
|
||||||
|
KEXEC_ARCH_S390 = 0x160000
|
||||||
|
KEXEC_ARCH_SH = 0x2a0000
|
||||||
|
KEXEC_ARCH_X86_64 = 0x3e0000
|
||||||
|
KEXEC_FILE_NO_INITRAMFS = 0x4
|
||||||
|
KEXEC_FILE_ON_CRASH = 0x2
|
||||||
|
KEXEC_FILE_UNLOAD = 0x1
|
||||||
|
KEXEC_ON_CRASH = 0x1
|
||||||
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
@@ -888,6 +1083,11 @@ const (
|
|||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
KEYCTL_PKEY_QUERY = 0x18
|
||||||
|
KEYCTL_PKEY_SIGN = 0x1b
|
||||||
|
KEYCTL_PKEY_VERIFY = 0x1c
|
||||||
KEYCTL_READ = 0xb
|
KEYCTL_READ = 0xb
|
||||||
KEYCTL_REJECT = 0x13
|
KEYCTL_REJECT = 0x13
|
||||||
KEYCTL_RESTRICT_KEYRING = 0x1d
|
KEYCTL_RESTRICT_KEYRING = 0x1d
|
||||||
@@ -897,6 +1097,10 @@ const (
|
|||||||
KEYCTL_SETPERM = 0x5
|
KEYCTL_SETPERM = 0x5
|
||||||
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
KEYCTL_SET_TIMEOUT = 0xf
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_SUPPORTS_DECRYPT = 0x2
|
||||||
|
KEYCTL_SUPPORTS_ENCRYPT = 0x1
|
||||||
|
KEYCTL_SUPPORTS_SIGN = 0x4
|
||||||
|
KEYCTL_SUPPORTS_VERIFY = 0x8
|
||||||
KEYCTL_UNLINK = 0x9
|
KEYCTL_UNLINK = 0x9
|
||||||
KEYCTL_UPDATE = 0x2
|
KEYCTL_UPDATE = 0x2
|
||||||
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
@@ -954,6 +1158,7 @@ const (
|
|||||||
MAP_EXECUTABLE = 0x1000
|
MAP_EXECUTABLE = 0x1000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_FIXED_NOREPLACE = 0x100000
|
||||||
MAP_GROWSDOWN = 0x100
|
MAP_GROWSDOWN = 0x100
|
||||||
MAP_HUGETLB = 0x40000
|
MAP_HUGETLB = 0x40000
|
||||||
MAP_HUGE_MASK = 0x3f
|
MAP_HUGE_MASK = 0x3f
|
||||||
@@ -964,11 +1169,39 @@ const (
|
|||||||
MAP_POPULATE = 0x8000
|
MAP_POPULATE = 0x8000
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x20000
|
MAP_STACK = 0x20000
|
||||||
|
MAP_SYNC = 0x80000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
|
MCAST_BLOCK_SOURCE = 0x2b
|
||||||
|
MCAST_EXCLUDE = 0x0
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x2a
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x2e
|
||||||
|
MCAST_LEAVE_GROUP = 0x2d
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x2f
|
||||||
|
MCAST_MSFILTER = 0x30
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x2c
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
|
MFD_ALLOW_SEALING = 0x2
|
||||||
|
MFD_CLOEXEC = 0x1
|
||||||
|
MFD_HUGETLB = 0x4
|
||||||
|
MFD_HUGE_16GB = -0x78000000
|
||||||
|
MFD_HUGE_16MB = 0x60000000
|
||||||
|
MFD_HUGE_1GB = 0x78000000
|
||||||
|
MFD_HUGE_1MB = 0x50000000
|
||||||
|
MFD_HUGE_256MB = 0x70000000
|
||||||
|
MFD_HUGE_2GB = 0x7c000000
|
||||||
|
MFD_HUGE_2MB = 0x54000000
|
||||||
|
MFD_HUGE_32MB = 0x64000000
|
||||||
|
MFD_HUGE_512KB = 0x4c000000
|
||||||
|
MFD_HUGE_512MB = 0x74000000
|
||||||
|
MFD_HUGE_64KB = 0x40000000
|
||||||
|
MFD_HUGE_8MB = 0x5c000000
|
||||||
|
MFD_HUGE_MASK = 0x3f
|
||||||
|
MFD_HUGE_SHIFT = 0x1a
|
||||||
MINIX2_SUPER_MAGIC = 0x2468
|
MINIX2_SUPER_MAGIC = 0x2468
|
||||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||||
@@ -977,6 +1210,8 @@ const (
|
|||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
|
||||||
|
MODULE_INIT_IGNORE_VERMAGIC = 0x2
|
||||||
MSDOS_SUPER_MAGIC = 0x4d44
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
@@ -1053,6 +1288,7 @@ const (
|
|||||||
NETLINK_FIB_LOOKUP = 0xa
|
NETLINK_FIB_LOOKUP = 0xa
|
||||||
NETLINK_FIREWALL = 0x3
|
NETLINK_FIREWALL = 0x3
|
||||||
NETLINK_GENERIC = 0x10
|
NETLINK_GENERIC = 0x10
|
||||||
|
NETLINK_GET_STRICT_CHK = 0xc
|
||||||
NETLINK_INET_DIAG = 0x4
|
NETLINK_INET_DIAG = 0x4
|
||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
@@ -1074,6 +1310,8 @@ const (
|
|||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
|
NETNSA_MAX = 0x5
|
||||||
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||||
@@ -1194,6 +1432,7 @@ const (
|
|||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_IGNORE_OUTGOING = 0x17
|
||||||
PACKET_KERNEL = 0x7
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
@@ -1243,6 +1482,36 @@ const (
|
|||||||
PERF_EVENT_IOC_SET_FILTER = 0x40042406
|
PERF_EVENT_IOC_SET_FILTER = 0x40042406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
||||||
PIPEFS_MAGIC = 0x50495045
|
PIPEFS_MAGIC = 0x50495045
|
||||||
|
PPPIOCATTACH = 0x4004743d
|
||||||
|
PPPIOCATTCHAN = 0x40047438
|
||||||
|
PPPIOCCONNECT = 0x4004743a
|
||||||
|
PPPIOCDETACH = 0x4004743c
|
||||||
|
PPPIOCDISCONN = 0x7439
|
||||||
|
PPPIOCGASYNCMAP = 0x80047458
|
||||||
|
PPPIOCGCHAN = 0x80047437
|
||||||
|
PPPIOCGDEBUG = 0x80047441
|
||||||
|
PPPIOCGFLAGS = 0x8004745a
|
||||||
|
PPPIOCGIDLE = 0x8008743f
|
||||||
|
PPPIOCGL2TPSTATS = 0x80487436
|
||||||
|
PPPIOCGMRU = 0x80047453
|
||||||
|
PPPIOCGNPMODE = 0xc008744c
|
||||||
|
PPPIOCGRASYNCMAP = 0x80047455
|
||||||
|
PPPIOCGUNIT = 0x80047456
|
||||||
|
PPPIOCGXASYNCMAP = 0x80207450
|
||||||
|
PPPIOCNEWUNIT = 0xc004743e
|
||||||
|
PPPIOCSACTIVE = 0x40087446
|
||||||
|
PPPIOCSASYNCMAP = 0x40047457
|
||||||
|
PPPIOCSCOMPRESS = 0x400c744d
|
||||||
|
PPPIOCSDEBUG = 0x40047440
|
||||||
|
PPPIOCSFLAGS = 0x40047459
|
||||||
|
PPPIOCSMAXCID = 0x40047451
|
||||||
|
PPPIOCSMRRU = 0x4004743b
|
||||||
|
PPPIOCSMRU = 0x40047452
|
||||||
|
PPPIOCSNPMODE = 0x4008744b
|
||||||
|
PPPIOCSPASS = 0x40087447
|
||||||
|
PPPIOCSRASYNCMAP = 0x40047454
|
||||||
|
PPPIOCSXASYNCMAP = 0x4020744f
|
||||||
|
PPPIOCXFERUNIT = 0x744e
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@@ -1305,6 +1574,12 @@ const (
|
|||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
|
PR_PAC_APDAKEY = 0x4
|
||||||
|
PR_PAC_APDBKEY = 0x8
|
||||||
|
PR_PAC_APGAKEY = 0x10
|
||||||
|
PR_PAC_APIAKEY = 0x1
|
||||||
|
PR_PAC_APIBKEY = 0x2
|
||||||
|
PR_PAC_RESET_KEYS = 0x36
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
@@ -1342,8 +1617,10 @@ const (
|
|||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
PR_SPEC_NOT_AFFECTED = 0x0
|
PR_SPEC_NOT_AFFECTED = 0x0
|
||||||
PR_SPEC_PRCTL = 0x1
|
PR_SPEC_PRCTL = 0x1
|
||||||
PR_SPEC_STORE_BYPASS = 0x0
|
PR_SPEC_STORE_BYPASS = 0x0
|
||||||
@@ -1434,6 +1711,9 @@ const (
|
|||||||
RAMFS_MAGIC = 0x858458f6
|
RAMFS_MAGIC = 0x858458f6
|
||||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||||
REISERFS_SUPER_MAGIC = 0x52654973
|
REISERFS_SUPER_MAGIC = 0x52654973
|
||||||
|
RENAME_EXCHANGE = 0x2
|
||||||
|
RENAME_NOREPLACE = 0x1
|
||||||
|
RENAME_WHITEOUT = 0x4
|
||||||
RLIMIT_AS = 0x9
|
RLIMIT_AS = 0x9
|
||||||
RLIMIT_CORE = 0x4
|
RLIMIT_CORE = 0x4
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
@@ -1451,6 +1731,13 @@ const (
|
|||||||
RLIMIT_SIGPENDING = 0xb
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0xffffffffffffffff
|
RLIM_INFINITY = 0xffffffffffffffff
|
||||||
|
RNDADDENTROPY = 0x40085203
|
||||||
|
RNDADDTOENTCNT = 0x40045201
|
||||||
|
RNDCLEARPOOL = 0x5206
|
||||||
|
RNDGETENTCNT = 0x80045200
|
||||||
|
RNDGETPOOL = 0x80085202
|
||||||
|
RNDRESEEDCRNG = 0x5207
|
||||||
|
RNDZAPENTCNT = 0x5204
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
RTAX_CC_ALGO = 0x10
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
@@ -1476,7 +1763,7 @@ const (
|
|||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1a
|
RTA_MAX = 0x1d
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
@@ -1544,6 +1831,7 @@ const (
|
|||||||
RTM_DELACTION = 0x31
|
RTM_DELACTION = 0x31
|
||||||
RTM_DELADDR = 0x15
|
RTM_DELADDR = 0x15
|
||||||
RTM_DELADDRLABEL = 0x49
|
RTM_DELADDRLABEL = 0x49
|
||||||
|
RTM_DELCHAIN = 0x65
|
||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
@@ -1564,6 +1852,7 @@ const (
|
|||||||
RTM_GETADDR = 0x16
|
RTM_GETADDR = 0x16
|
||||||
RTM_GETADDRLABEL = 0x4a
|
RTM_GETADDRLABEL = 0x4a
|
||||||
RTM_GETANYCAST = 0x3e
|
RTM_GETANYCAST = 0x3e
|
||||||
|
RTM_GETCHAIN = 0x66
|
||||||
RTM_GETDCB = 0x4e
|
RTM_GETDCB = 0x4e
|
||||||
RTM_GETLINK = 0x12
|
RTM_GETLINK = 0x12
|
||||||
RTM_GETMDB = 0x56
|
RTM_GETMDB = 0x56
|
||||||
@@ -1578,11 +1867,12 @@ const (
|
|||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x63
|
RTM_MAX = 0x67
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
RTM_NEWCACHEREPORT = 0x60
|
RTM_NEWCACHEREPORT = 0x60
|
||||||
|
RTM_NEWCHAIN = 0x64
|
||||||
RTM_NEWLINK = 0x10
|
RTM_NEWLINK = 0x10
|
||||||
RTM_NEWMDB = 0x54
|
RTM_NEWMDB = 0x54
|
||||||
RTM_NEWNDUSEROPT = 0x44
|
RTM_NEWNDUSEROPT = 0x44
|
||||||
@@ -1597,8 +1887,8 @@ const (
|
|||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x15
|
RTM_NR_FAMILIES = 0x16
|
||||||
RTM_NR_MSGTYPES = 0x54
|
RTM_NR_MSGTYPES = 0x58
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
@@ -1612,17 +1902,22 @@ const (
|
|||||||
RTNH_F_UNRESOLVED = 0x20
|
RTNH_F_UNRESOLVED = 0x20
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
RTPROT_BABEL = 0x2a
|
RTPROT_BABEL = 0x2a
|
||||||
|
RTPROT_BGP = 0xba
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
RTPROT_DNROUTED = 0xd
|
RTPROT_DNROUTED = 0xd
|
||||||
|
RTPROT_EIGRP = 0xc0
|
||||||
RTPROT_GATED = 0x8
|
RTPROT_GATED = 0x8
|
||||||
|
RTPROT_ISIS = 0xbb
|
||||||
RTPROT_KERNEL = 0x2
|
RTPROT_KERNEL = 0x2
|
||||||
RTPROT_MROUTED = 0x11
|
RTPROT_MROUTED = 0x11
|
||||||
RTPROT_MRT = 0xa
|
RTPROT_MRT = 0xa
|
||||||
RTPROT_NTK = 0xf
|
RTPROT_NTK = 0xf
|
||||||
|
RTPROT_OSPF = 0xbc
|
||||||
RTPROT_RA = 0x9
|
RTPROT_RA = 0x9
|
||||||
RTPROT_REDIRECT = 0x1
|
RTPROT_REDIRECT = 0x1
|
||||||
|
RTPROT_RIP = 0xbd
|
||||||
RTPROT_STATIC = 0x4
|
RTPROT_STATIC = 0x4
|
||||||
RTPROT_UNSPEC = 0x0
|
RTPROT_UNSPEC = 0x0
|
||||||
RTPROT_XORP = 0xe
|
RTPROT_XORP = 0xe
|
||||||
@@ -1642,12 +1937,16 @@ const (
|
|||||||
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SC_LOG_FLUSH = 0x100000
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SECURITYFS_MAGIC = 0x73636673
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
SELINUX_MAGIC = 0xf97cff8c
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
|
SFD_CLOEXEC = 0x80000
|
||||||
|
SFD_NONBLOCK = 0x800
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@@ -1698,6 +1997,9 @@ const (
|
|||||||
SIOCGMIIPHY = 0x8947
|
SIOCGMIIPHY = 0x8947
|
||||||
SIOCGMIIREG = 0x8948
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
|
SIOCGPPPCSTATS = 0x89f2
|
||||||
|
SIOCGPPPSTATS = 0x89f0
|
||||||
|
SIOCGPPPVER = 0x89f1
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
@@ -1787,6 +2089,7 @@ const (
|
|||||||
SOL_TIPC = 0x10f
|
SOL_TIPC = 0x10f
|
||||||
SOL_TLS = 0x11a
|
SOL_TLS = 0x11a
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
|
SOL_XDP = 0x11b
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1e
|
SO_ACCEPTCONN = 0x1e
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
@@ -1794,6 +2097,7 @@ const (
|
|||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
@@ -1805,6 +2109,17 @@ const (
|
|||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
SO_EE_CODE_TXTIME_MISSED = 0x2
|
||||||
|
SO_EE_CODE_ZEROCOPY_COPIED = 0x1
|
||||||
|
SO_EE_ORIGIN_ICMP = 0x2
|
||||||
|
SO_EE_ORIGIN_ICMP6 = 0x3
|
||||||
|
SO_EE_ORIGIN_LOCAL = 0x1
|
||||||
|
SO_EE_ORIGIN_NONE = 0x0
|
||||||
|
SO_EE_ORIGIN_TIMESTAMPING = 0x4
|
||||||
|
SO_EE_ORIGIN_TXSTATUS = 0x4
|
||||||
|
SO_EE_ORIGIN_TXTIME = 0x6
|
||||||
|
SO_EE_ORIGIN_ZEROCOPY = 0x5
|
||||||
SO_ERROR = 0x4
|
SO_ERROR = 0x4
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
SO_INCOMING_CPU = 0x31
|
SO_INCOMING_CPU = 0x31
|
||||||
@@ -1831,6 +2146,8 @@ const (
|
|||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x12
|
SO_RCVLOWAT = 0x12
|
||||||
SO_RCVTIMEO = 0x14
|
SO_RCVTIMEO = 0x14
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x14
|
||||||
SO_REUSEADDR = 0x2
|
SO_REUSEADDR = 0x2
|
||||||
SO_REUSEPORT = 0xf
|
SO_REUSEPORT = 0xf
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
@@ -1842,9 +2159,18 @@ const (
|
|||||||
SO_SNDBUFFORCE = 0x20
|
SO_SNDBUFFORCE = 0x20
|
||||||
SO_SNDLOWAT = 0x13
|
SO_SNDLOWAT = 0x13
|
||||||
SO_SNDTIMEO = 0x15
|
SO_SNDTIMEO = 0x15
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x15
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
@@ -1882,6 +2208,9 @@ const (
|
|||||||
STATX_TYPE = 0x1
|
STATX_TYPE = 0x1
|
||||||
STATX_UID = 0x8
|
STATX_UID = 0x8
|
||||||
STATX__RESERVED = 0x80000000
|
STATX__RESERVED = 0x80000000
|
||||||
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
@@ -1920,7 +2249,7 @@ const (
|
|||||||
TASKSTATS_GENL_NAME = "TASKSTATS"
|
TASKSTATS_GENL_NAME = "TASKSTATS"
|
||||||
TASKSTATS_GENL_VERSION = 0x1
|
TASKSTATS_GENL_VERSION = 0x1
|
||||||
TASKSTATS_TYPE_MAX = 0x6
|
TASKSTATS_TYPE_MAX = 0x6
|
||||||
TASKSTATS_VERSION = 0x8
|
TASKSTATS_VERSION = 0x9
|
||||||
TCFLSH = 0x540b
|
TCFLSH = 0x540b
|
||||||
TCGETA = 0x5405
|
TCGETA = 0x5405
|
||||||
TCGETS = 0x5401
|
TCGETS = 0x5401
|
||||||
@@ -1933,7 +2262,10 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_BPF_IW = 0x3e9
|
||||||
|
TCP_BPF_SNDCWND_CLAMP = 0x3ea
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
@@ -1945,7 +2277,10 @@ const (
|
|||||||
TCP_DEFER_ACCEPT = 0x9
|
TCP_DEFER_ACCEPT = 0x9
|
||||||
TCP_FASTOPEN = 0x17
|
TCP_FASTOPEN = 0x17
|
||||||
TCP_FASTOPEN_CONNECT = 0x1e
|
TCP_FASTOPEN_CONNECT = 0x1e
|
||||||
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
|
TCP_INQ = 0x24
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
TCP_KEEPINTVL = 0x5
|
TCP_KEEPINTVL = 0x5
|
||||||
@@ -1965,6 +2300,9 @@ const (
|
|||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
|
TCP_REPAIR_OFF = 0x0
|
||||||
|
TCP_REPAIR_OFF_NO_WP = -0x1
|
||||||
|
TCP_REPAIR_ON = 0x1
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
TCP_REPAIR_WINDOW = 0x1d
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
@@ -1979,6 +2317,7 @@ const (
|
|||||||
TCP_ULP = 0x1f
|
TCP_ULP = 0x1f
|
||||||
TCP_USER_TIMEOUT = 0x12
|
TCP_USER_TIMEOUT = 0x12
|
||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
|
TCP_ZEROCOPY_RECEIVE = 0x23
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
TCSBRK = 0x5409
|
TCSBRK = 0x5409
|
||||||
TCSBRKP = 0x5425
|
TCSBRKP = 0x5425
|
||||||
@@ -1995,6 +2334,7 @@ const (
|
|||||||
TCSETXF = 0x5434
|
TCSETXF = 0x5434
|
||||||
TCSETXW = 0x5435
|
TCSETXW = 0x5435
|
||||||
TCXONC = 0x540a
|
TCXONC = 0x540a
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x541d
|
TIOCCONS = 0x541d
|
||||||
TIOCEXCL = 0x540c
|
TIOCEXCL = 0x540c
|
||||||
@@ -2002,6 +2342,7 @@ const (
|
|||||||
TIOCGETD = 0x5424
|
TIOCGETD = 0x5424
|
||||||
TIOCGEXCL = 0x80045440
|
TIOCGEXCL = 0x80045440
|
||||||
TIOCGICOUNT = 0x545d
|
TIOCGICOUNT = 0x545d
|
||||||
|
TIOCGISO7816 = 0x80285442
|
||||||
TIOCGLCKTRMIOS = 0x5456
|
TIOCGLCKTRMIOS = 0x5456
|
||||||
TIOCGPGRP = 0x540f
|
TIOCGPGRP = 0x540f
|
||||||
TIOCGPKT = 0x80045438
|
TIOCGPKT = 0x80045438
|
||||||
@@ -2055,6 +2396,7 @@ const (
|
|||||||
TIOCSER_TEMT = 0x1
|
TIOCSER_TEMT = 0x1
|
||||||
TIOCSETD = 0x5423
|
TIOCSETD = 0x5423
|
||||||
TIOCSIG = 0x40045436
|
TIOCSIG = 0x40045436
|
||||||
|
TIOCSISO7816 = 0xc0285443
|
||||||
TIOCSLCKTRMIOS = 0x5457
|
TIOCSLCKTRMIOS = 0x5457
|
||||||
TIOCSPGRP = 0x5410
|
TIOCSPGRP = 0x5410
|
||||||
TIOCSPTLCK = 0x40045431
|
TIOCSPTLCK = 0x40045431
|
||||||
@@ -2095,6 +2437,7 @@ const (
|
|||||||
TUNGETVNETBE = 0x800454df
|
TUNGETVNETBE = 0x800454df
|
||||||
TUNGETVNETHDRSZ = 0x800454d7
|
TUNGETVNETHDRSZ = 0x800454d7
|
||||||
TUNGETVNETLE = 0x800454dd
|
TUNGETVNETLE = 0x800454dd
|
||||||
|
TUNSETCARRIER = 0x400454e2
|
||||||
TUNSETDEBUG = 0x400454c9
|
TUNSETDEBUG = 0x400454c9
|
||||||
TUNSETFILTEREBPF = 0x800454e1
|
TUNSETFILTEREBPF = 0x800454e1
|
||||||
TUNSETGROUP = 0x400454ce
|
TUNSETGROUP = 0x400454ce
|
||||||
@@ -2112,6 +2455,23 @@ const (
|
|||||||
TUNSETVNETBE = 0x400454de
|
TUNSETVNETBE = 0x400454de
|
||||||
TUNSETVNETHDRSZ = 0x400454d8
|
TUNSETVNETHDRSZ = 0x400454d8
|
||||||
TUNSETVNETLE = 0x400454dc
|
TUNSETVNETLE = 0x400454dc
|
||||||
|
UBI_IOCATT = 0x40186f40
|
||||||
|
UBI_IOCDET = 0x40046f41
|
||||||
|
UBI_IOCEBCH = 0x40044f02
|
||||||
|
UBI_IOCEBER = 0x40044f01
|
||||||
|
UBI_IOCEBISMAP = 0x80044f05
|
||||||
|
UBI_IOCEBMAP = 0x40084f03
|
||||||
|
UBI_IOCEBUNMAP = 0x40044f04
|
||||||
|
UBI_IOCMKVOL = 0x40986f00
|
||||||
|
UBI_IOCRMVOL = 0x40046f01
|
||||||
|
UBI_IOCRNVOL = 0x51106f03
|
||||||
|
UBI_IOCRPEB = 0x40046f04
|
||||||
|
UBI_IOCRSVOL = 0x400c6f02
|
||||||
|
UBI_IOCSETVOLPROP = 0x40104f06
|
||||||
|
UBI_IOCSPEB = 0x40046f05
|
||||||
|
UBI_IOCVOLCRBLK = 0x40804f07
|
||||||
|
UBI_IOCVOLRMBLK = 0x4f08
|
||||||
|
UBI_IOCVOLUP = 0x40084f00
|
||||||
UDF_SUPER_MAGIC = 0x15013346
|
UDF_SUPER_MAGIC = 0x15013346
|
||||||
UMOUNT_NOFOLLOW = 0x8
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||||
@@ -2248,7 +2608,29 @@ const (
|
|||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XDP_COPY = 0x2
|
||||||
|
XDP_FLAGS_DRV_MODE = 0x4
|
||||||
|
XDP_FLAGS_HW_MODE = 0x8
|
||||||
|
XDP_FLAGS_MASK = 0xf
|
||||||
|
XDP_FLAGS_MODES = 0xe
|
||||||
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
XDP_RX_RING = 0x2
|
||||||
|
XDP_SHARED_UMEM = 0x1
|
||||||
|
XDP_STATISTICS = 0x7
|
||||||
|
XDP_TX_RING = 0x3
|
||||||
|
XDP_UMEM_COMPLETION_RING = 0x6
|
||||||
|
XDP_UMEM_FILL_RING = 0x5
|
||||||
|
XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
|
||||||
|
XDP_UMEM_PGOFF_FILL_RING = 0x100000000
|
||||||
|
XDP_UMEM_REG = 0x4
|
||||||
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|||||||
398
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
398
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
@@ -41,7 +41,7 @@ const (
|
|||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x2c
|
AF_MAX = 0x2d
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
@@ -64,6 +64,7 @@ const (
|
|||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
AF_XDP = 0x2c
|
||||||
ALG_OP_DECRYPT = 0x0
|
ALG_OP_DECRYPT = 0x0
|
||||||
ALG_OP_ENCRYPT = 0x1
|
ALG_OP_ENCRYPT = 0x1
|
||||||
ALG_SET_AEAD_ASSOCLEN = 0x4
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
@@ -173,6 +174,7 @@ const (
|
|||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
BALLOON_KVM_MAGIC = 0x13661366
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
BDEVFS_MAGIC = 0x62646576
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
||||||
BINFMTFS_MAGIC = 0x42494e4d
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x80081270
|
BLKBSZGET = 0x80081270
|
||||||
BLKBSZSET = 0x40081271
|
BLKBSZSET = 0x40081271
|
||||||
@@ -195,10 +197,59 @@ const (
|
|||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
BPF_ANY = 0x0
|
||||||
|
BPF_ARSH = 0xc0
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
|
BPF_BUILD_ID_SIZE = 0x14
|
||||||
|
BPF_CALL = 0x80
|
||||||
|
BPF_DEVCG_ACC_MKNOD = 0x1
|
||||||
|
BPF_DEVCG_ACC_READ = 0x2
|
||||||
|
BPF_DEVCG_ACC_WRITE = 0x4
|
||||||
|
BPF_DEVCG_DEV_BLOCK = 0x1
|
||||||
|
BPF_DEVCG_DEV_CHAR = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_DW = 0x18
|
||||||
|
BPF_END = 0xd0
|
||||||
|
BPF_EXIST = 0x2
|
||||||
|
BPF_EXIT = 0x90
|
||||||
|
BPF_FROM_BE = 0x8
|
||||||
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_F_DONT_FRAGMENT = 0x4
|
||||||
|
BPF_F_FAST_STACK_CMP = 0x200
|
||||||
|
BPF_F_HDR_FIELD_MASK = 0xf
|
||||||
|
BPF_F_INDEX_MASK = 0xffffffff
|
||||||
|
BPF_F_INGRESS = 0x1
|
||||||
|
BPF_F_INVALIDATE_HASH = 0x2
|
||||||
|
BPF_F_LOCK = 0x4
|
||||||
|
BPF_F_MARK_ENFORCE = 0x40
|
||||||
|
BPF_F_MARK_MANGLED_0 = 0x20
|
||||||
|
BPF_F_NO_COMMON_LRU = 0x2
|
||||||
|
BPF_F_NO_PREALLOC = 0x1
|
||||||
|
BPF_F_NUMA_NODE = 0x4
|
||||||
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
|
BPF_F_USER_STACK = 0x100
|
||||||
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@@ -206,8 +257,16 @@ const (
|
|||||||
BPF_JEQ = 0x10
|
BPF_JEQ = 0x10
|
||||||
BPF_JGE = 0x30
|
BPF_JGE = 0x30
|
||||||
BPF_JGT = 0x20
|
BPF_JGT = 0x20
|
||||||
|
BPF_JLE = 0xb0
|
||||||
|
BPF_JLT = 0xa0
|
||||||
BPF_JMP = 0x5
|
BPF_JMP = 0x5
|
||||||
|
BPF_JMP32 = 0x6
|
||||||
|
BPF_JNE = 0x50
|
||||||
BPF_JSET = 0x40
|
BPF_JSET = 0x40
|
||||||
|
BPF_JSGE = 0x70
|
||||||
|
BPF_JSGT = 0x60
|
||||||
|
BPF_JSLE = 0xd0
|
||||||
|
BPF_JSLT = 0xc0
|
||||||
BPF_K = 0x0
|
BPF_K = 0x0
|
||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
@@ -221,20 +280,33 @@ const (
|
|||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
BPF_MOD = 0x90
|
BPF_MOD = 0x90
|
||||||
|
BPF_MOV = 0xb0
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
BPF_NET_OFF = -0x100000
|
BPF_NET_OFF = -0x100000
|
||||||
|
BPF_NOEXIST = 0x1
|
||||||
|
BPF_OBJ_NAME_LEN = 0x10
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
|
BPF_PSEUDO_CALL = 0x1
|
||||||
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||||
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
BPF_SUB = 0x10
|
BPF_SUB = 0x10
|
||||||
|
BPF_TAG_SIZE = 0x8
|
||||||
BPF_TAX = 0x0
|
BPF_TAX = 0x0
|
||||||
|
BPF_TO_BE = 0x8
|
||||||
|
BPF_TO_LE = 0x0
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XADD = 0xc0
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
@@ -262,6 +334,45 @@ const (
|
|||||||
CAN_SFF_MASK = 0x7ff
|
CAN_SFF_MASK = 0x7ff
|
||||||
CAN_TP16 = 0x3
|
CAN_TP16 = 0x3
|
||||||
CAN_TP20 = 0x4
|
CAN_TP20 = 0x4
|
||||||
|
CAP_AUDIT_CONTROL = 0x1e
|
||||||
|
CAP_AUDIT_READ = 0x25
|
||||||
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_CHOWN = 0x0
|
||||||
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
CAP_FOWNER = 0x3
|
||||||
|
CAP_FSETID = 0x4
|
||||||
|
CAP_IPC_LOCK = 0xe
|
||||||
|
CAP_IPC_OWNER = 0xf
|
||||||
|
CAP_KILL = 0x5
|
||||||
|
CAP_LAST_CAP = 0x25
|
||||||
|
CAP_LEASE = 0x1c
|
||||||
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
CAP_MAC_OVERRIDE = 0x20
|
||||||
|
CAP_MKNOD = 0x1b
|
||||||
|
CAP_NET_ADMIN = 0xc
|
||||||
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
|
CAP_NET_BROADCAST = 0xb
|
||||||
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_SETFCAP = 0x1f
|
||||||
|
CAP_SETGID = 0x6
|
||||||
|
CAP_SETPCAP = 0x8
|
||||||
|
CAP_SETUID = 0x7
|
||||||
|
CAP_SYSLOG = 0x22
|
||||||
|
CAP_SYS_ADMIN = 0x15
|
||||||
|
CAP_SYS_BOOT = 0x16
|
||||||
|
CAP_SYS_CHROOT = 0x12
|
||||||
|
CAP_SYS_MODULE = 0x10
|
||||||
|
CAP_SYS_NICE = 0x17
|
||||||
|
CAP_SYS_PACCT = 0x14
|
||||||
|
CAP_SYS_PTRACE = 0x13
|
||||||
|
CAP_SYS_RAWIO = 0x11
|
||||||
|
CAP_SYS_RESOURCE = 0x18
|
||||||
|
CAP_SYS_TIME = 0x19
|
||||||
|
CAP_SYS_TTY_CONFIG = 0x1a
|
||||||
|
CAP_WAKE_ALARM = 0x23
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@@ -318,6 +429,10 @@ const (
|
|||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
@@ -487,6 +602,60 @@ const (
|
|||||||
FALLOC_FL_PUNCH_HOLE = 0x2
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
FALLOC_FL_UNSHARE_RANGE = 0x40
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
FALLOC_FL_ZERO_RANGE = 0x10
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
|
FANOTIFY_METADATA_VERSION = 0x3
|
||||||
|
FAN_ACCESS = 0x1
|
||||||
|
FAN_ACCESS_PERM = 0x20000
|
||||||
|
FAN_ALLOW = 0x1
|
||||||
|
FAN_ALL_CLASS_BITS = 0xc
|
||||||
|
FAN_ALL_EVENTS = 0x3b
|
||||||
|
FAN_ALL_INIT_FLAGS = 0x3f
|
||||||
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
|
FAN_AUDIT = 0x10
|
||||||
|
FAN_CLASS_CONTENT = 0x4
|
||||||
|
FAN_CLASS_NOTIF = 0x0
|
||||||
|
FAN_CLASS_PRE_CONTENT = 0x8
|
||||||
|
FAN_CLOEXEC = 0x1
|
||||||
|
FAN_CLOSE = 0x18
|
||||||
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
|
FAN_DENY = 0x2
|
||||||
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
|
FAN_MARK_ADD = 0x1
|
||||||
|
FAN_MARK_DONT_FOLLOW = 0x4
|
||||||
|
FAN_MARK_FILESYSTEM = 0x100
|
||||||
|
FAN_MARK_FLUSH = 0x80
|
||||||
|
FAN_MARK_IGNORED_MASK = 0x20
|
||||||
|
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
||||||
|
FAN_MARK_INODE = 0x0
|
||||||
|
FAN_MARK_MOUNT = 0x10
|
||||||
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
|
FAN_MARK_REMOVE = 0x2
|
||||||
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
|
FAN_NOFD = -0x1
|
||||||
|
FAN_NONBLOCK = 0x2
|
||||||
|
FAN_ONDIR = 0x40000000
|
||||||
|
FAN_OPEN = 0x20
|
||||||
|
FAN_OPEN_EXEC = 0x1000
|
||||||
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
|
FAN_OPEN_PERM = 0x10000
|
||||||
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
|
FAN_REPORT_TID = 0x100
|
||||||
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
@@ -494,6 +663,7 @@ const (
|
|||||||
FFDLY = 0x8000
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x1000
|
FLUSHO = 0x1000
|
||||||
FPSIMD_MAGIC = 0x46508001
|
FPSIMD_MAGIC = 0x46508001
|
||||||
|
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
@@ -501,6 +671,8 @@ const (
|
|||||||
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
FS_ENCRYPTION_MODE_INVALID = 0x0
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
|
||||||
FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
|
||||||
FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
|
||||||
FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
|
||||||
@@ -513,7 +685,7 @@ const (
|
|||||||
FS_POLICY_FLAGS_PAD_4 = 0x0
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x7
|
||||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
@@ -638,7 +810,7 @@ const (
|
|||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x8
|
IFA_MAX = 0xa
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
@@ -706,6 +878,7 @@ const (
|
|||||||
IN_ISDIR = 0x40000000
|
IN_ISDIR = 0x40000000
|
||||||
IN_LOOPBACKNET = 0x7f
|
IN_LOOPBACKNET = 0x7f
|
||||||
IN_MASK_ADD = 0x20000000
|
IN_MASK_ADD = 0x20000000
|
||||||
|
IN_MASK_CREATE = 0x10000000
|
||||||
IN_MODIFY = 0x2
|
IN_MODIFY = 0x2
|
||||||
IN_MOVE = 0xc0
|
IN_MOVE = 0xc0
|
||||||
IN_MOVED_FROM = 0x40
|
IN_MOVED_FROM = 0x40
|
||||||
@@ -765,6 +938,7 @@ const (
|
|||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_FREEBIND = 0x4e
|
||||||
IPV6_HDRINCL = 0x24
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
@@ -776,6 +950,7 @@ const (
|
|||||||
IPV6_MINHOPCOUNT = 0x49
|
IPV6_MINHOPCOUNT = 0x49
|
||||||
IPV6_MTU = 0x18
|
IPV6_MTU = 0x18
|
||||||
IPV6_MTU_DISCOVER = 0x17
|
IPV6_MTU_DISCOVER = 0x17
|
||||||
|
IPV6_MULTICAST_ALL = 0x1d
|
||||||
IPV6_MULTICAST_HOPS = 0x12
|
IPV6_MULTICAST_HOPS = 0x12
|
||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
@@ -877,6 +1052,26 @@ const (
|
|||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
JFFS2_SUPER_MAGIC = 0x72b6
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
|
KEXEC_ARCH_386 = 0x30000
|
||||||
|
KEXEC_ARCH_68K = 0x40000
|
||||||
|
KEXEC_ARCH_AARCH64 = 0xb70000
|
||||||
|
KEXEC_ARCH_ARM = 0x280000
|
||||||
|
KEXEC_ARCH_DEFAULT = 0x0
|
||||||
|
KEXEC_ARCH_IA_64 = 0x320000
|
||||||
|
KEXEC_ARCH_MASK = 0xffff0000
|
||||||
|
KEXEC_ARCH_MIPS = 0x80000
|
||||||
|
KEXEC_ARCH_MIPS_LE = 0xa0000
|
||||||
|
KEXEC_ARCH_PPC = 0x140000
|
||||||
|
KEXEC_ARCH_PPC64 = 0x150000
|
||||||
|
KEXEC_ARCH_S390 = 0x160000
|
||||||
|
KEXEC_ARCH_SH = 0x2a0000
|
||||||
|
KEXEC_ARCH_X86_64 = 0x3e0000
|
||||||
|
KEXEC_FILE_NO_INITRAMFS = 0x4
|
||||||
|
KEXEC_FILE_ON_CRASH = 0x2
|
||||||
|
KEXEC_FILE_UNLOAD = 0x1
|
||||||
|
KEXEC_ON_CRASH = 0x1
|
||||||
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
@@ -891,6 +1086,11 @@ const (
|
|||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
KEYCTL_PKEY_QUERY = 0x18
|
||||||
|
KEYCTL_PKEY_SIGN = 0x1b
|
||||||
|
KEYCTL_PKEY_VERIFY = 0x1c
|
||||||
KEYCTL_READ = 0xb
|
KEYCTL_READ = 0xb
|
||||||
KEYCTL_REJECT = 0x13
|
KEYCTL_REJECT = 0x13
|
||||||
KEYCTL_RESTRICT_KEYRING = 0x1d
|
KEYCTL_RESTRICT_KEYRING = 0x1d
|
||||||
@@ -900,6 +1100,10 @@ const (
|
|||||||
KEYCTL_SETPERM = 0x5
|
KEYCTL_SETPERM = 0x5
|
||||||
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
KEYCTL_SET_TIMEOUT = 0xf
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_SUPPORTS_DECRYPT = 0x2
|
||||||
|
KEYCTL_SUPPORTS_ENCRYPT = 0x1
|
||||||
|
KEYCTL_SUPPORTS_SIGN = 0x4
|
||||||
|
KEYCTL_SUPPORTS_VERIFY = 0x8
|
||||||
KEYCTL_UNLINK = 0x9
|
KEYCTL_UNLINK = 0x9
|
||||||
KEYCTL_UPDATE = 0x2
|
KEYCTL_UPDATE = 0x2
|
||||||
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
@@ -957,6 +1161,7 @@ const (
|
|||||||
MAP_EXECUTABLE = 0x1000
|
MAP_EXECUTABLE = 0x1000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_FIXED_NOREPLACE = 0x100000
|
||||||
MAP_GROWSDOWN = 0x100
|
MAP_GROWSDOWN = 0x100
|
||||||
MAP_HUGETLB = 0x40000
|
MAP_HUGETLB = 0x40000
|
||||||
MAP_HUGE_MASK = 0x3f
|
MAP_HUGE_MASK = 0x3f
|
||||||
@@ -967,11 +1172,39 @@ const (
|
|||||||
MAP_POPULATE = 0x8000
|
MAP_POPULATE = 0x8000
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x20000
|
MAP_STACK = 0x20000
|
||||||
|
MAP_SYNC = 0x80000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
|
MCAST_BLOCK_SOURCE = 0x2b
|
||||||
|
MCAST_EXCLUDE = 0x0
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x2a
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x2e
|
||||||
|
MCAST_LEAVE_GROUP = 0x2d
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x2f
|
||||||
|
MCAST_MSFILTER = 0x30
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x2c
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
|
MFD_ALLOW_SEALING = 0x2
|
||||||
|
MFD_CLOEXEC = 0x1
|
||||||
|
MFD_HUGETLB = 0x4
|
||||||
|
MFD_HUGE_16GB = -0x78000000
|
||||||
|
MFD_HUGE_16MB = 0x60000000
|
||||||
|
MFD_HUGE_1GB = 0x78000000
|
||||||
|
MFD_HUGE_1MB = 0x50000000
|
||||||
|
MFD_HUGE_256MB = 0x70000000
|
||||||
|
MFD_HUGE_2GB = 0x7c000000
|
||||||
|
MFD_HUGE_2MB = 0x54000000
|
||||||
|
MFD_HUGE_32MB = 0x64000000
|
||||||
|
MFD_HUGE_512KB = 0x4c000000
|
||||||
|
MFD_HUGE_512MB = 0x74000000
|
||||||
|
MFD_HUGE_64KB = 0x40000000
|
||||||
|
MFD_HUGE_8MB = 0x5c000000
|
||||||
|
MFD_HUGE_MASK = 0x3f
|
||||||
|
MFD_HUGE_SHIFT = 0x1a
|
||||||
MINIX2_SUPER_MAGIC = 0x2468
|
MINIX2_SUPER_MAGIC = 0x2468
|
||||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||||
@@ -980,6 +1213,8 @@ const (
|
|||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
|
||||||
|
MODULE_INIT_IGNORE_VERMAGIC = 0x2
|
||||||
MSDOS_SUPER_MAGIC = 0x4d44
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
@@ -1056,6 +1291,7 @@ const (
|
|||||||
NETLINK_FIB_LOOKUP = 0xa
|
NETLINK_FIB_LOOKUP = 0xa
|
||||||
NETLINK_FIREWALL = 0x3
|
NETLINK_FIREWALL = 0x3
|
||||||
NETLINK_GENERIC = 0x10
|
NETLINK_GENERIC = 0x10
|
||||||
|
NETLINK_GET_STRICT_CHK = 0xc
|
||||||
NETLINK_INET_DIAG = 0x4
|
NETLINK_INET_DIAG = 0x4
|
||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
@@ -1077,6 +1313,8 @@ const (
|
|||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
|
NETNSA_MAX = 0x5
|
||||||
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||||
@@ -1197,6 +1435,7 @@ const (
|
|||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_IGNORE_OUTGOING = 0x17
|
||||||
PACKET_KERNEL = 0x7
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
@@ -1246,6 +1485,36 @@ const (
|
|||||||
PERF_EVENT_IOC_SET_FILTER = 0x40082406
|
PERF_EVENT_IOC_SET_FILTER = 0x40082406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
||||||
PIPEFS_MAGIC = 0x50495045
|
PIPEFS_MAGIC = 0x50495045
|
||||||
|
PPPIOCATTACH = 0x4004743d
|
||||||
|
PPPIOCATTCHAN = 0x40047438
|
||||||
|
PPPIOCCONNECT = 0x4004743a
|
||||||
|
PPPIOCDETACH = 0x4004743c
|
||||||
|
PPPIOCDISCONN = 0x7439
|
||||||
|
PPPIOCGASYNCMAP = 0x80047458
|
||||||
|
PPPIOCGCHAN = 0x80047437
|
||||||
|
PPPIOCGDEBUG = 0x80047441
|
||||||
|
PPPIOCGFLAGS = 0x8004745a
|
||||||
|
PPPIOCGIDLE = 0x8010743f
|
||||||
|
PPPIOCGL2TPSTATS = 0x80487436
|
||||||
|
PPPIOCGMRU = 0x80047453
|
||||||
|
PPPIOCGNPMODE = 0xc008744c
|
||||||
|
PPPIOCGRASYNCMAP = 0x80047455
|
||||||
|
PPPIOCGUNIT = 0x80047456
|
||||||
|
PPPIOCGXASYNCMAP = 0x80207450
|
||||||
|
PPPIOCNEWUNIT = 0xc004743e
|
||||||
|
PPPIOCSACTIVE = 0x40107446
|
||||||
|
PPPIOCSASYNCMAP = 0x40047457
|
||||||
|
PPPIOCSCOMPRESS = 0x4010744d
|
||||||
|
PPPIOCSDEBUG = 0x40047440
|
||||||
|
PPPIOCSFLAGS = 0x40047459
|
||||||
|
PPPIOCSMAXCID = 0x40047451
|
||||||
|
PPPIOCSMRRU = 0x4004743b
|
||||||
|
PPPIOCSMRU = 0x40047452
|
||||||
|
PPPIOCSNPMODE = 0x4008744b
|
||||||
|
PPPIOCSPASS = 0x40107447
|
||||||
|
PPPIOCSRASYNCMAP = 0x40047454
|
||||||
|
PPPIOCSXASYNCMAP = 0x4020744f
|
||||||
|
PPPIOCXFERUNIT = 0x744e
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@@ -1308,6 +1577,12 @@ const (
|
|||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
|
PR_PAC_APDAKEY = 0x4
|
||||||
|
PR_PAC_APDBKEY = 0x8
|
||||||
|
PR_PAC_APGAKEY = 0x10
|
||||||
|
PR_PAC_APIAKEY = 0x1
|
||||||
|
PR_PAC_APIBKEY = 0x2
|
||||||
|
PR_PAC_RESET_KEYS = 0x36
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
@@ -1345,8 +1620,10 @@ const (
|
|||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
PR_SPEC_NOT_AFFECTED = 0x0
|
PR_SPEC_NOT_AFFECTED = 0x0
|
||||||
PR_SPEC_PRCTL = 0x1
|
PR_SPEC_PRCTL = 0x1
|
||||||
PR_SPEC_STORE_BYPASS = 0x0
|
PR_SPEC_STORE_BYPASS = 0x0
|
||||||
@@ -1418,6 +1695,9 @@ const (
|
|||||||
RAMFS_MAGIC = 0x858458f6
|
RAMFS_MAGIC = 0x858458f6
|
||||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||||
REISERFS_SUPER_MAGIC = 0x52654973
|
REISERFS_SUPER_MAGIC = 0x52654973
|
||||||
|
RENAME_EXCHANGE = 0x2
|
||||||
|
RENAME_NOREPLACE = 0x1
|
||||||
|
RENAME_WHITEOUT = 0x4
|
||||||
RLIMIT_AS = 0x9
|
RLIMIT_AS = 0x9
|
||||||
RLIMIT_CORE = 0x4
|
RLIMIT_CORE = 0x4
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
@@ -1435,6 +1715,13 @@ const (
|
|||||||
RLIMIT_SIGPENDING = 0xb
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0xffffffffffffffff
|
RLIM_INFINITY = 0xffffffffffffffff
|
||||||
|
RNDADDENTROPY = 0x40085203
|
||||||
|
RNDADDTOENTCNT = 0x40045201
|
||||||
|
RNDCLEARPOOL = 0x5206
|
||||||
|
RNDGETENTCNT = 0x80045200
|
||||||
|
RNDGETPOOL = 0x80085202
|
||||||
|
RNDRESEEDCRNG = 0x5207
|
||||||
|
RNDZAPENTCNT = 0x5204
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
RTAX_CC_ALGO = 0x10
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
@@ -1460,7 +1747,7 @@ const (
|
|||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1a
|
RTA_MAX = 0x1d
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
@@ -1528,6 +1815,7 @@ const (
|
|||||||
RTM_DELACTION = 0x31
|
RTM_DELACTION = 0x31
|
||||||
RTM_DELADDR = 0x15
|
RTM_DELADDR = 0x15
|
||||||
RTM_DELADDRLABEL = 0x49
|
RTM_DELADDRLABEL = 0x49
|
||||||
|
RTM_DELCHAIN = 0x65
|
||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
@@ -1548,6 +1836,7 @@ const (
|
|||||||
RTM_GETADDR = 0x16
|
RTM_GETADDR = 0x16
|
||||||
RTM_GETADDRLABEL = 0x4a
|
RTM_GETADDRLABEL = 0x4a
|
||||||
RTM_GETANYCAST = 0x3e
|
RTM_GETANYCAST = 0x3e
|
||||||
|
RTM_GETCHAIN = 0x66
|
||||||
RTM_GETDCB = 0x4e
|
RTM_GETDCB = 0x4e
|
||||||
RTM_GETLINK = 0x12
|
RTM_GETLINK = 0x12
|
||||||
RTM_GETMDB = 0x56
|
RTM_GETMDB = 0x56
|
||||||
@@ -1562,11 +1851,12 @@ const (
|
|||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x63
|
RTM_MAX = 0x67
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
RTM_NEWCACHEREPORT = 0x60
|
RTM_NEWCACHEREPORT = 0x60
|
||||||
|
RTM_NEWCHAIN = 0x64
|
||||||
RTM_NEWLINK = 0x10
|
RTM_NEWLINK = 0x10
|
||||||
RTM_NEWMDB = 0x54
|
RTM_NEWMDB = 0x54
|
||||||
RTM_NEWNDUSEROPT = 0x44
|
RTM_NEWNDUSEROPT = 0x44
|
||||||
@@ -1581,8 +1871,8 @@ const (
|
|||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x15
|
RTM_NR_FAMILIES = 0x16
|
||||||
RTM_NR_MSGTYPES = 0x54
|
RTM_NR_MSGTYPES = 0x58
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
@@ -1596,17 +1886,22 @@ const (
|
|||||||
RTNH_F_UNRESOLVED = 0x20
|
RTNH_F_UNRESOLVED = 0x20
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
RTPROT_BABEL = 0x2a
|
RTPROT_BABEL = 0x2a
|
||||||
|
RTPROT_BGP = 0xba
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
RTPROT_DNROUTED = 0xd
|
RTPROT_DNROUTED = 0xd
|
||||||
|
RTPROT_EIGRP = 0xc0
|
||||||
RTPROT_GATED = 0x8
|
RTPROT_GATED = 0x8
|
||||||
|
RTPROT_ISIS = 0xbb
|
||||||
RTPROT_KERNEL = 0x2
|
RTPROT_KERNEL = 0x2
|
||||||
RTPROT_MROUTED = 0x11
|
RTPROT_MROUTED = 0x11
|
||||||
RTPROT_MRT = 0xa
|
RTPROT_MRT = 0xa
|
||||||
RTPROT_NTK = 0xf
|
RTPROT_NTK = 0xf
|
||||||
|
RTPROT_OSPF = 0xbc
|
||||||
RTPROT_RA = 0x9
|
RTPROT_RA = 0x9
|
||||||
RTPROT_REDIRECT = 0x1
|
RTPROT_REDIRECT = 0x1
|
||||||
|
RTPROT_RIP = 0xbd
|
||||||
RTPROT_STATIC = 0x4
|
RTPROT_STATIC = 0x4
|
||||||
RTPROT_UNSPEC = 0x0
|
RTPROT_UNSPEC = 0x0
|
||||||
RTPROT_XORP = 0xe
|
RTPROT_XORP = 0xe
|
||||||
@@ -1626,12 +1921,16 @@ const (
|
|||||||
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SC_LOG_FLUSH = 0x100000
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SECURITYFS_MAGIC = 0x73636673
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
SELINUX_MAGIC = 0xf97cff8c
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
|
SFD_CLOEXEC = 0x80000
|
||||||
|
SFD_NONBLOCK = 0x800
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@@ -1682,6 +1981,9 @@ const (
|
|||||||
SIOCGMIIPHY = 0x8947
|
SIOCGMIIPHY = 0x8947
|
||||||
SIOCGMIIREG = 0x8948
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
|
SIOCGPPPCSTATS = 0x89f2
|
||||||
|
SIOCGPPPSTATS = 0x89f0
|
||||||
|
SIOCGPPPVER = 0x89f1
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
@@ -1771,6 +2073,7 @@ const (
|
|||||||
SOL_TIPC = 0x10f
|
SOL_TIPC = 0x10f
|
||||||
SOL_TLS = 0x11a
|
SOL_TLS = 0x11a
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
|
SOL_XDP = 0x11b
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1e
|
SO_ACCEPTCONN = 0x1e
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
@@ -1778,6 +2081,7 @@ const (
|
|||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
@@ -1789,6 +2093,17 @@ const (
|
|||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
SO_EE_CODE_TXTIME_MISSED = 0x2
|
||||||
|
SO_EE_CODE_ZEROCOPY_COPIED = 0x1
|
||||||
|
SO_EE_ORIGIN_ICMP = 0x2
|
||||||
|
SO_EE_ORIGIN_ICMP6 = 0x3
|
||||||
|
SO_EE_ORIGIN_LOCAL = 0x1
|
||||||
|
SO_EE_ORIGIN_NONE = 0x0
|
||||||
|
SO_EE_ORIGIN_TIMESTAMPING = 0x4
|
||||||
|
SO_EE_ORIGIN_TXSTATUS = 0x4
|
||||||
|
SO_EE_ORIGIN_TXTIME = 0x6
|
||||||
|
SO_EE_ORIGIN_ZEROCOPY = 0x5
|
||||||
SO_ERROR = 0x4
|
SO_ERROR = 0x4
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
SO_INCOMING_CPU = 0x31
|
SO_INCOMING_CPU = 0x31
|
||||||
@@ -1815,6 +2130,8 @@ const (
|
|||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x12
|
SO_RCVLOWAT = 0x12
|
||||||
SO_RCVTIMEO = 0x14
|
SO_RCVTIMEO = 0x14
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x14
|
||||||
SO_REUSEADDR = 0x2
|
SO_REUSEADDR = 0x2
|
||||||
SO_REUSEPORT = 0xf
|
SO_REUSEPORT = 0xf
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
@@ -1826,9 +2143,18 @@ const (
|
|||||||
SO_SNDBUFFORCE = 0x20
|
SO_SNDBUFFORCE = 0x20
|
||||||
SO_SNDLOWAT = 0x13
|
SO_SNDLOWAT = 0x13
|
||||||
SO_SNDTIMEO = 0x15
|
SO_SNDTIMEO = 0x15
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x15
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
@@ -1867,6 +2193,9 @@ const (
|
|||||||
STATX_UID = 0x8
|
STATX_UID = 0x8
|
||||||
STATX__RESERVED = 0x80000000
|
STATX__RESERVED = 0x80000000
|
||||||
SVE_MAGIC = 0x53564501
|
SVE_MAGIC = 0x53564501
|
||||||
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
@@ -1905,7 +2234,7 @@ const (
|
|||||||
TASKSTATS_GENL_NAME = "TASKSTATS"
|
TASKSTATS_GENL_NAME = "TASKSTATS"
|
||||||
TASKSTATS_GENL_VERSION = 0x1
|
TASKSTATS_GENL_VERSION = 0x1
|
||||||
TASKSTATS_TYPE_MAX = 0x6
|
TASKSTATS_TYPE_MAX = 0x6
|
||||||
TASKSTATS_VERSION = 0x8
|
TASKSTATS_VERSION = 0x9
|
||||||
TCFLSH = 0x540b
|
TCFLSH = 0x540b
|
||||||
TCGETA = 0x5405
|
TCGETA = 0x5405
|
||||||
TCGETS = 0x5401
|
TCGETS = 0x5401
|
||||||
@@ -1918,7 +2247,10 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_BPF_IW = 0x3e9
|
||||||
|
TCP_BPF_SNDCWND_CLAMP = 0x3ea
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
@@ -1930,7 +2262,10 @@ const (
|
|||||||
TCP_DEFER_ACCEPT = 0x9
|
TCP_DEFER_ACCEPT = 0x9
|
||||||
TCP_FASTOPEN = 0x17
|
TCP_FASTOPEN = 0x17
|
||||||
TCP_FASTOPEN_CONNECT = 0x1e
|
TCP_FASTOPEN_CONNECT = 0x1e
|
||||||
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
|
TCP_INQ = 0x24
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
TCP_KEEPINTVL = 0x5
|
TCP_KEEPINTVL = 0x5
|
||||||
@@ -1950,6 +2285,9 @@ const (
|
|||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
|
TCP_REPAIR_OFF = 0x0
|
||||||
|
TCP_REPAIR_OFF_NO_WP = -0x1
|
||||||
|
TCP_REPAIR_ON = 0x1
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
TCP_REPAIR_WINDOW = 0x1d
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
@@ -1964,6 +2302,7 @@ const (
|
|||||||
TCP_ULP = 0x1f
|
TCP_ULP = 0x1f
|
||||||
TCP_USER_TIMEOUT = 0x12
|
TCP_USER_TIMEOUT = 0x12
|
||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
|
TCP_ZEROCOPY_RECEIVE = 0x23
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
TCSBRK = 0x5409
|
TCSBRK = 0x5409
|
||||||
TCSBRKP = 0x5425
|
TCSBRKP = 0x5425
|
||||||
@@ -1980,6 +2319,7 @@ const (
|
|||||||
TCSETXF = 0x5434
|
TCSETXF = 0x5434
|
||||||
TCSETXW = 0x5435
|
TCSETXW = 0x5435
|
||||||
TCXONC = 0x540a
|
TCXONC = 0x540a
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x541d
|
TIOCCONS = 0x541d
|
||||||
TIOCEXCL = 0x540c
|
TIOCEXCL = 0x540c
|
||||||
@@ -1987,6 +2327,7 @@ const (
|
|||||||
TIOCGETD = 0x5424
|
TIOCGETD = 0x5424
|
||||||
TIOCGEXCL = 0x80045440
|
TIOCGEXCL = 0x80045440
|
||||||
TIOCGICOUNT = 0x545d
|
TIOCGICOUNT = 0x545d
|
||||||
|
TIOCGISO7816 = 0x80285442
|
||||||
TIOCGLCKTRMIOS = 0x5456
|
TIOCGLCKTRMIOS = 0x5456
|
||||||
TIOCGPGRP = 0x540f
|
TIOCGPGRP = 0x540f
|
||||||
TIOCGPKT = 0x80045438
|
TIOCGPKT = 0x80045438
|
||||||
@@ -2040,6 +2381,7 @@ const (
|
|||||||
TIOCSER_TEMT = 0x1
|
TIOCSER_TEMT = 0x1
|
||||||
TIOCSETD = 0x5423
|
TIOCSETD = 0x5423
|
||||||
TIOCSIG = 0x40045436
|
TIOCSIG = 0x40045436
|
||||||
|
TIOCSISO7816 = 0xc0285443
|
||||||
TIOCSLCKTRMIOS = 0x5457
|
TIOCSLCKTRMIOS = 0x5457
|
||||||
TIOCSPGRP = 0x5410
|
TIOCSPGRP = 0x5410
|
||||||
TIOCSPTLCK = 0x40045431
|
TIOCSPTLCK = 0x40045431
|
||||||
@@ -2080,6 +2422,7 @@ const (
|
|||||||
TUNGETVNETBE = 0x800454df
|
TUNGETVNETBE = 0x800454df
|
||||||
TUNGETVNETHDRSZ = 0x800454d7
|
TUNGETVNETHDRSZ = 0x800454d7
|
||||||
TUNGETVNETLE = 0x800454dd
|
TUNGETVNETLE = 0x800454dd
|
||||||
|
TUNSETCARRIER = 0x400454e2
|
||||||
TUNSETDEBUG = 0x400454c9
|
TUNSETDEBUG = 0x400454c9
|
||||||
TUNSETFILTEREBPF = 0x800454e1
|
TUNSETFILTEREBPF = 0x800454e1
|
||||||
TUNSETGROUP = 0x400454ce
|
TUNSETGROUP = 0x400454ce
|
||||||
@@ -2097,6 +2440,23 @@ const (
|
|||||||
TUNSETVNETBE = 0x400454de
|
TUNSETVNETBE = 0x400454de
|
||||||
TUNSETVNETHDRSZ = 0x400454d8
|
TUNSETVNETHDRSZ = 0x400454d8
|
||||||
TUNSETVNETLE = 0x400454dc
|
TUNSETVNETLE = 0x400454dc
|
||||||
|
UBI_IOCATT = 0x40186f40
|
||||||
|
UBI_IOCDET = 0x40046f41
|
||||||
|
UBI_IOCEBCH = 0x40044f02
|
||||||
|
UBI_IOCEBER = 0x40044f01
|
||||||
|
UBI_IOCEBISMAP = 0x80044f05
|
||||||
|
UBI_IOCEBMAP = 0x40084f03
|
||||||
|
UBI_IOCEBUNMAP = 0x40044f04
|
||||||
|
UBI_IOCMKVOL = 0x40986f00
|
||||||
|
UBI_IOCRMVOL = 0x40046f01
|
||||||
|
UBI_IOCRNVOL = 0x51106f03
|
||||||
|
UBI_IOCRPEB = 0x40046f04
|
||||||
|
UBI_IOCRSVOL = 0x400c6f02
|
||||||
|
UBI_IOCSETVOLPROP = 0x40104f06
|
||||||
|
UBI_IOCSPEB = 0x40046f05
|
||||||
|
UBI_IOCVOLCRBLK = 0x40804f07
|
||||||
|
UBI_IOCVOLRMBLK = 0x4f08
|
||||||
|
UBI_IOCVOLUP = 0x40084f00
|
||||||
UDF_SUPER_MAGIC = 0x15013346
|
UDF_SUPER_MAGIC = 0x15013346
|
||||||
UMOUNT_NOFOLLOW = 0x8
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||||
@@ -2233,7 +2593,29 @@ const (
|
|||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XDP_COPY = 0x2
|
||||||
|
XDP_FLAGS_DRV_MODE = 0x4
|
||||||
|
XDP_FLAGS_HW_MODE = 0x8
|
||||||
|
XDP_FLAGS_MASK = 0xf
|
||||||
|
XDP_FLAGS_MODES = 0xe
|
||||||
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
XDP_RX_RING = 0x2
|
||||||
|
XDP_SHARED_UMEM = 0x1
|
||||||
|
XDP_STATISTICS = 0x7
|
||||||
|
XDP_TX_RING = 0x3
|
||||||
|
XDP_UMEM_COMPLETION_RING = 0x6
|
||||||
|
XDP_UMEM_FILL_RING = 0x5
|
||||||
|
XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
|
||||||
|
XDP_UMEM_PGOFF_FILL_RING = 0x100000000
|
||||||
|
XDP_UMEM_REG = 0x4
|
||||||
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|||||||
397
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
397
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
@@ -41,7 +41,7 @@ const (
|
|||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x2c
|
AF_MAX = 0x2d
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
@@ -64,6 +64,7 @@ const (
|
|||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
AF_XDP = 0x2c
|
||||||
ALG_OP_DECRYPT = 0x0
|
ALG_OP_DECRYPT = 0x0
|
||||||
ALG_OP_ENCRYPT = 0x1
|
ALG_OP_ENCRYPT = 0x1
|
||||||
ALG_SET_AEAD_ASSOCLEN = 0x4
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
@@ -173,6 +174,7 @@ const (
|
|||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
BALLOON_KVM_MAGIC = 0x13661366
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
BDEVFS_MAGIC = 0x62646576
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
||||||
BINFMTFS_MAGIC = 0x42494e4d
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x40041270
|
BLKBSZGET = 0x40041270
|
||||||
BLKBSZSET = 0x80041271
|
BLKBSZSET = 0x80041271
|
||||||
@@ -195,10 +197,59 @@ const (
|
|||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
BPF_ANY = 0x0
|
||||||
|
BPF_ARSH = 0xc0
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
|
BPF_BUILD_ID_SIZE = 0x14
|
||||||
|
BPF_CALL = 0x80
|
||||||
|
BPF_DEVCG_ACC_MKNOD = 0x1
|
||||||
|
BPF_DEVCG_ACC_READ = 0x2
|
||||||
|
BPF_DEVCG_ACC_WRITE = 0x4
|
||||||
|
BPF_DEVCG_DEV_BLOCK = 0x1
|
||||||
|
BPF_DEVCG_DEV_CHAR = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_DW = 0x18
|
||||||
|
BPF_END = 0xd0
|
||||||
|
BPF_EXIST = 0x2
|
||||||
|
BPF_EXIT = 0x90
|
||||||
|
BPF_FROM_BE = 0x8
|
||||||
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_F_DONT_FRAGMENT = 0x4
|
||||||
|
BPF_F_FAST_STACK_CMP = 0x200
|
||||||
|
BPF_F_HDR_FIELD_MASK = 0xf
|
||||||
|
BPF_F_INDEX_MASK = 0xffffffff
|
||||||
|
BPF_F_INGRESS = 0x1
|
||||||
|
BPF_F_INVALIDATE_HASH = 0x2
|
||||||
|
BPF_F_LOCK = 0x4
|
||||||
|
BPF_F_MARK_ENFORCE = 0x40
|
||||||
|
BPF_F_MARK_MANGLED_0 = 0x20
|
||||||
|
BPF_F_NO_COMMON_LRU = 0x2
|
||||||
|
BPF_F_NO_PREALLOC = 0x1
|
||||||
|
BPF_F_NUMA_NODE = 0x4
|
||||||
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
|
BPF_F_USER_STACK = 0x100
|
||||||
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@@ -206,8 +257,16 @@ const (
|
|||||||
BPF_JEQ = 0x10
|
BPF_JEQ = 0x10
|
||||||
BPF_JGE = 0x30
|
BPF_JGE = 0x30
|
||||||
BPF_JGT = 0x20
|
BPF_JGT = 0x20
|
||||||
|
BPF_JLE = 0xb0
|
||||||
|
BPF_JLT = 0xa0
|
||||||
BPF_JMP = 0x5
|
BPF_JMP = 0x5
|
||||||
|
BPF_JMP32 = 0x6
|
||||||
|
BPF_JNE = 0x50
|
||||||
BPF_JSET = 0x40
|
BPF_JSET = 0x40
|
||||||
|
BPF_JSGE = 0x70
|
||||||
|
BPF_JSGT = 0x60
|
||||||
|
BPF_JSLE = 0xd0
|
||||||
|
BPF_JSLT = 0xc0
|
||||||
BPF_K = 0x0
|
BPF_K = 0x0
|
||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
@@ -221,20 +280,33 @@ const (
|
|||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
BPF_MOD = 0x90
|
BPF_MOD = 0x90
|
||||||
|
BPF_MOV = 0xb0
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
BPF_NET_OFF = -0x100000
|
BPF_NET_OFF = -0x100000
|
||||||
|
BPF_NOEXIST = 0x1
|
||||||
|
BPF_OBJ_NAME_LEN = 0x10
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
|
BPF_PSEUDO_CALL = 0x1
|
||||||
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||||
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
BPF_SUB = 0x10
|
BPF_SUB = 0x10
|
||||||
|
BPF_TAG_SIZE = 0x8
|
||||||
BPF_TAX = 0x0
|
BPF_TAX = 0x0
|
||||||
|
BPF_TO_BE = 0x8
|
||||||
|
BPF_TO_LE = 0x0
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XADD = 0xc0
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
@@ -262,6 +334,45 @@ const (
|
|||||||
CAN_SFF_MASK = 0x7ff
|
CAN_SFF_MASK = 0x7ff
|
||||||
CAN_TP16 = 0x3
|
CAN_TP16 = 0x3
|
||||||
CAN_TP20 = 0x4
|
CAN_TP20 = 0x4
|
||||||
|
CAP_AUDIT_CONTROL = 0x1e
|
||||||
|
CAP_AUDIT_READ = 0x25
|
||||||
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_CHOWN = 0x0
|
||||||
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
CAP_FOWNER = 0x3
|
||||||
|
CAP_FSETID = 0x4
|
||||||
|
CAP_IPC_LOCK = 0xe
|
||||||
|
CAP_IPC_OWNER = 0xf
|
||||||
|
CAP_KILL = 0x5
|
||||||
|
CAP_LAST_CAP = 0x25
|
||||||
|
CAP_LEASE = 0x1c
|
||||||
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
CAP_MAC_OVERRIDE = 0x20
|
||||||
|
CAP_MKNOD = 0x1b
|
||||||
|
CAP_NET_ADMIN = 0xc
|
||||||
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
|
CAP_NET_BROADCAST = 0xb
|
||||||
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_SETFCAP = 0x1f
|
||||||
|
CAP_SETGID = 0x6
|
||||||
|
CAP_SETPCAP = 0x8
|
||||||
|
CAP_SETUID = 0x7
|
||||||
|
CAP_SYSLOG = 0x22
|
||||||
|
CAP_SYS_ADMIN = 0x15
|
||||||
|
CAP_SYS_BOOT = 0x16
|
||||||
|
CAP_SYS_CHROOT = 0x12
|
||||||
|
CAP_SYS_MODULE = 0x10
|
||||||
|
CAP_SYS_NICE = 0x17
|
||||||
|
CAP_SYS_PACCT = 0x14
|
||||||
|
CAP_SYS_PTRACE = 0x13
|
||||||
|
CAP_SYS_RAWIO = 0x11
|
||||||
|
CAP_SYS_RESOURCE = 0x18
|
||||||
|
CAP_SYS_TIME = 0x19
|
||||||
|
CAP_SYS_TTY_CONFIG = 0x1a
|
||||||
|
CAP_WAKE_ALARM = 0x23
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@@ -318,6 +429,10 @@ const (
|
|||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
@@ -485,12 +600,67 @@ const (
|
|||||||
FALLOC_FL_PUNCH_HOLE = 0x2
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
FALLOC_FL_UNSHARE_RANGE = 0x40
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
FALLOC_FL_ZERO_RANGE = 0x10
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
|
FANOTIFY_METADATA_VERSION = 0x3
|
||||||
|
FAN_ACCESS = 0x1
|
||||||
|
FAN_ACCESS_PERM = 0x20000
|
||||||
|
FAN_ALLOW = 0x1
|
||||||
|
FAN_ALL_CLASS_BITS = 0xc
|
||||||
|
FAN_ALL_EVENTS = 0x3b
|
||||||
|
FAN_ALL_INIT_FLAGS = 0x3f
|
||||||
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
|
FAN_AUDIT = 0x10
|
||||||
|
FAN_CLASS_CONTENT = 0x4
|
||||||
|
FAN_CLASS_NOTIF = 0x0
|
||||||
|
FAN_CLASS_PRE_CONTENT = 0x8
|
||||||
|
FAN_CLOEXEC = 0x1
|
||||||
|
FAN_CLOSE = 0x18
|
||||||
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
|
FAN_DENY = 0x2
|
||||||
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
|
FAN_MARK_ADD = 0x1
|
||||||
|
FAN_MARK_DONT_FOLLOW = 0x4
|
||||||
|
FAN_MARK_FILESYSTEM = 0x100
|
||||||
|
FAN_MARK_FLUSH = 0x80
|
||||||
|
FAN_MARK_IGNORED_MASK = 0x20
|
||||||
|
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
||||||
|
FAN_MARK_INODE = 0x0
|
||||||
|
FAN_MARK_MOUNT = 0x10
|
||||||
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
|
FAN_MARK_REMOVE = 0x2
|
||||||
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
|
FAN_NOFD = -0x1
|
||||||
|
FAN_NONBLOCK = 0x2
|
||||||
|
FAN_ONDIR = 0x40000000
|
||||||
|
FAN_OPEN = 0x20
|
||||||
|
FAN_OPEN_EXEC = 0x1000
|
||||||
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
|
FAN_OPEN_PERM = 0x10000
|
||||||
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
|
FAN_REPORT_TID = 0x100
|
||||||
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
FF1 = 0x8000
|
FF1 = 0x8000
|
||||||
FFDLY = 0x8000
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x2000
|
FLUSHO = 0x2000
|
||||||
|
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
@@ -498,6 +668,8 @@ const (
|
|||||||
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
FS_ENCRYPTION_MODE_INVALID = 0x0
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
|
||||||
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
||||||
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
||||||
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
||||||
@@ -510,7 +682,7 @@ const (
|
|||||||
FS_POLICY_FLAGS_PAD_4 = 0x0
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x7
|
||||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
@@ -635,7 +807,7 @@ const (
|
|||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x8
|
IFA_MAX = 0xa
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
@@ -703,6 +875,7 @@ const (
|
|||||||
IN_ISDIR = 0x40000000
|
IN_ISDIR = 0x40000000
|
||||||
IN_LOOPBACKNET = 0x7f
|
IN_LOOPBACKNET = 0x7f
|
||||||
IN_MASK_ADD = 0x20000000
|
IN_MASK_ADD = 0x20000000
|
||||||
|
IN_MASK_CREATE = 0x10000000
|
||||||
IN_MODIFY = 0x2
|
IN_MODIFY = 0x2
|
||||||
IN_MOVE = 0xc0
|
IN_MOVE = 0xc0
|
||||||
IN_MOVED_FROM = 0x40
|
IN_MOVED_FROM = 0x40
|
||||||
@@ -762,6 +935,7 @@ const (
|
|||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_FREEBIND = 0x4e
|
||||||
IPV6_HDRINCL = 0x24
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
@@ -773,6 +947,7 @@ const (
|
|||||||
IPV6_MINHOPCOUNT = 0x49
|
IPV6_MINHOPCOUNT = 0x49
|
||||||
IPV6_MTU = 0x18
|
IPV6_MTU = 0x18
|
||||||
IPV6_MTU_DISCOVER = 0x17
|
IPV6_MTU_DISCOVER = 0x17
|
||||||
|
IPV6_MULTICAST_ALL = 0x1d
|
||||||
IPV6_MULTICAST_HOPS = 0x12
|
IPV6_MULTICAST_HOPS = 0x12
|
||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
@@ -874,6 +1049,26 @@ const (
|
|||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
JFFS2_SUPER_MAGIC = 0x72b6
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
|
KEXEC_ARCH_386 = 0x30000
|
||||||
|
KEXEC_ARCH_68K = 0x40000
|
||||||
|
KEXEC_ARCH_AARCH64 = 0xb70000
|
||||||
|
KEXEC_ARCH_ARM = 0x280000
|
||||||
|
KEXEC_ARCH_DEFAULT = 0x0
|
||||||
|
KEXEC_ARCH_IA_64 = 0x320000
|
||||||
|
KEXEC_ARCH_MASK = 0xffff0000
|
||||||
|
KEXEC_ARCH_MIPS = 0x80000
|
||||||
|
KEXEC_ARCH_MIPS_LE = 0xa0000
|
||||||
|
KEXEC_ARCH_PPC = 0x140000
|
||||||
|
KEXEC_ARCH_PPC64 = 0x150000
|
||||||
|
KEXEC_ARCH_S390 = 0x160000
|
||||||
|
KEXEC_ARCH_SH = 0x2a0000
|
||||||
|
KEXEC_ARCH_X86_64 = 0x3e0000
|
||||||
|
KEXEC_FILE_NO_INITRAMFS = 0x4
|
||||||
|
KEXEC_FILE_ON_CRASH = 0x2
|
||||||
|
KEXEC_FILE_UNLOAD = 0x1
|
||||||
|
KEXEC_ON_CRASH = 0x1
|
||||||
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
@@ -888,6 +1083,11 @@ const (
|
|||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
KEYCTL_PKEY_QUERY = 0x18
|
||||||
|
KEYCTL_PKEY_SIGN = 0x1b
|
||||||
|
KEYCTL_PKEY_VERIFY = 0x1c
|
||||||
KEYCTL_READ = 0xb
|
KEYCTL_READ = 0xb
|
||||||
KEYCTL_REJECT = 0x13
|
KEYCTL_REJECT = 0x13
|
||||||
KEYCTL_RESTRICT_KEYRING = 0x1d
|
KEYCTL_RESTRICT_KEYRING = 0x1d
|
||||||
@@ -897,6 +1097,10 @@ const (
|
|||||||
KEYCTL_SETPERM = 0x5
|
KEYCTL_SETPERM = 0x5
|
||||||
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
KEYCTL_SET_TIMEOUT = 0xf
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_SUPPORTS_DECRYPT = 0x2
|
||||||
|
KEYCTL_SUPPORTS_ENCRYPT = 0x1
|
||||||
|
KEYCTL_SUPPORTS_SIGN = 0x4
|
||||||
|
KEYCTL_SUPPORTS_VERIFY = 0x8
|
||||||
KEYCTL_UNLINK = 0x9
|
KEYCTL_UNLINK = 0x9
|
||||||
KEYCTL_UPDATE = 0x2
|
KEYCTL_UPDATE = 0x2
|
||||||
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
@@ -954,6 +1158,7 @@ const (
|
|||||||
MAP_EXECUTABLE = 0x4000
|
MAP_EXECUTABLE = 0x4000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_FIXED_NOREPLACE = 0x100000
|
||||||
MAP_GROWSDOWN = 0x1000
|
MAP_GROWSDOWN = 0x1000
|
||||||
MAP_HUGETLB = 0x80000
|
MAP_HUGETLB = 0x80000
|
||||||
MAP_HUGE_MASK = 0x3f
|
MAP_HUGE_MASK = 0x3f
|
||||||
@@ -965,11 +1170,38 @@ const (
|
|||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_RENAME = 0x800
|
MAP_RENAME = 0x800
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x40000
|
MAP_STACK = 0x40000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
|
MCAST_BLOCK_SOURCE = 0x2b
|
||||||
|
MCAST_EXCLUDE = 0x0
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x2a
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x2e
|
||||||
|
MCAST_LEAVE_GROUP = 0x2d
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x2f
|
||||||
|
MCAST_MSFILTER = 0x30
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x2c
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
|
MFD_ALLOW_SEALING = 0x2
|
||||||
|
MFD_CLOEXEC = 0x1
|
||||||
|
MFD_HUGETLB = 0x4
|
||||||
|
MFD_HUGE_16GB = -0x78000000
|
||||||
|
MFD_HUGE_16MB = 0x60000000
|
||||||
|
MFD_HUGE_1GB = 0x78000000
|
||||||
|
MFD_HUGE_1MB = 0x50000000
|
||||||
|
MFD_HUGE_256MB = 0x70000000
|
||||||
|
MFD_HUGE_2GB = 0x7c000000
|
||||||
|
MFD_HUGE_2MB = 0x54000000
|
||||||
|
MFD_HUGE_32MB = 0x64000000
|
||||||
|
MFD_HUGE_512KB = 0x4c000000
|
||||||
|
MFD_HUGE_512MB = 0x74000000
|
||||||
|
MFD_HUGE_64KB = 0x40000000
|
||||||
|
MFD_HUGE_8MB = 0x5c000000
|
||||||
|
MFD_HUGE_MASK = 0x3f
|
||||||
|
MFD_HUGE_SHIFT = 0x1a
|
||||||
MINIX2_SUPER_MAGIC = 0x2468
|
MINIX2_SUPER_MAGIC = 0x2468
|
||||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||||
@@ -978,6 +1210,8 @@ const (
|
|||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
|
||||||
|
MODULE_INIT_IGNORE_VERMAGIC = 0x2
|
||||||
MSDOS_SUPER_MAGIC = 0x4d44
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
@@ -1054,6 +1288,7 @@ const (
|
|||||||
NETLINK_FIB_LOOKUP = 0xa
|
NETLINK_FIB_LOOKUP = 0xa
|
||||||
NETLINK_FIREWALL = 0x3
|
NETLINK_FIREWALL = 0x3
|
||||||
NETLINK_GENERIC = 0x10
|
NETLINK_GENERIC = 0x10
|
||||||
|
NETLINK_GET_STRICT_CHK = 0xc
|
||||||
NETLINK_INET_DIAG = 0x4
|
NETLINK_INET_DIAG = 0x4
|
||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
@@ -1075,6 +1310,8 @@ const (
|
|||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
|
NETNSA_MAX = 0x5
|
||||||
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||||
@@ -1195,6 +1432,7 @@ const (
|
|||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_IGNORE_OUTGOING = 0x17
|
||||||
PACKET_KERNEL = 0x7
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
@@ -1244,6 +1482,36 @@ const (
|
|||||||
PERF_EVENT_IOC_SET_FILTER = 0x80042406
|
PERF_EVENT_IOC_SET_FILTER = 0x80042406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||||
PIPEFS_MAGIC = 0x50495045
|
PIPEFS_MAGIC = 0x50495045
|
||||||
|
PPPIOCATTACH = 0x8004743d
|
||||||
|
PPPIOCATTCHAN = 0x80047438
|
||||||
|
PPPIOCCONNECT = 0x8004743a
|
||||||
|
PPPIOCDETACH = 0x8004743c
|
||||||
|
PPPIOCDISCONN = 0x20007439
|
||||||
|
PPPIOCGASYNCMAP = 0x40047458
|
||||||
|
PPPIOCGCHAN = 0x40047437
|
||||||
|
PPPIOCGDEBUG = 0x40047441
|
||||||
|
PPPIOCGFLAGS = 0x4004745a
|
||||||
|
PPPIOCGIDLE = 0x4008743f
|
||||||
|
PPPIOCGL2TPSTATS = 0x40487436
|
||||||
|
PPPIOCGMRU = 0x40047453
|
||||||
|
PPPIOCGNPMODE = 0xc008744c
|
||||||
|
PPPIOCGRASYNCMAP = 0x40047455
|
||||||
|
PPPIOCGUNIT = 0x40047456
|
||||||
|
PPPIOCGXASYNCMAP = 0x40207450
|
||||||
|
PPPIOCNEWUNIT = 0xc004743e
|
||||||
|
PPPIOCSACTIVE = 0x80087446
|
||||||
|
PPPIOCSASYNCMAP = 0x80047457
|
||||||
|
PPPIOCSCOMPRESS = 0x800c744d
|
||||||
|
PPPIOCSDEBUG = 0x80047440
|
||||||
|
PPPIOCSFLAGS = 0x80047459
|
||||||
|
PPPIOCSMAXCID = 0x80047451
|
||||||
|
PPPIOCSMRRU = 0x8004743b
|
||||||
|
PPPIOCSMRU = 0x80047452
|
||||||
|
PPPIOCSNPMODE = 0x8008744b
|
||||||
|
PPPIOCSPASS = 0x80087447
|
||||||
|
PPPIOCSRASYNCMAP = 0x80047454
|
||||||
|
PPPIOCSXASYNCMAP = 0x8020744f
|
||||||
|
PPPIOCXFERUNIT = 0x2000744e
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@@ -1306,6 +1574,12 @@ const (
|
|||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
|
PR_PAC_APDAKEY = 0x4
|
||||||
|
PR_PAC_APDBKEY = 0x8
|
||||||
|
PR_PAC_APGAKEY = 0x10
|
||||||
|
PR_PAC_APIAKEY = 0x1
|
||||||
|
PR_PAC_APIBKEY = 0x2
|
||||||
|
PR_PAC_RESET_KEYS = 0x36
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
@@ -1343,8 +1617,10 @@ const (
|
|||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
PR_SPEC_NOT_AFFECTED = 0x0
|
PR_SPEC_NOT_AFFECTED = 0x0
|
||||||
PR_SPEC_PRCTL = 0x1
|
PR_SPEC_PRCTL = 0x1
|
||||||
PR_SPEC_STORE_BYPASS = 0x0
|
PR_SPEC_STORE_BYPASS = 0x0
|
||||||
@@ -1428,6 +1704,9 @@ const (
|
|||||||
RAMFS_MAGIC = 0x858458f6
|
RAMFS_MAGIC = 0x858458f6
|
||||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||||
REISERFS_SUPER_MAGIC = 0x52654973
|
REISERFS_SUPER_MAGIC = 0x52654973
|
||||||
|
RENAME_EXCHANGE = 0x2
|
||||||
|
RENAME_NOREPLACE = 0x1
|
||||||
|
RENAME_WHITEOUT = 0x4
|
||||||
RLIMIT_AS = 0x6
|
RLIMIT_AS = 0x6
|
||||||
RLIMIT_CORE = 0x4
|
RLIMIT_CORE = 0x4
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
@@ -1445,6 +1724,13 @@ const (
|
|||||||
RLIMIT_SIGPENDING = 0xb
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0xffffffffffffffff
|
RLIM_INFINITY = 0xffffffffffffffff
|
||||||
|
RNDADDENTROPY = 0x80085203
|
||||||
|
RNDADDTOENTCNT = 0x80045201
|
||||||
|
RNDCLEARPOOL = 0x20005206
|
||||||
|
RNDGETENTCNT = 0x40045200
|
||||||
|
RNDGETPOOL = 0x40085202
|
||||||
|
RNDRESEEDCRNG = 0x20005207
|
||||||
|
RNDZAPENTCNT = 0x20005204
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
RTAX_CC_ALGO = 0x10
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
@@ -1470,7 +1756,7 @@ const (
|
|||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1a
|
RTA_MAX = 0x1d
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
@@ -1538,6 +1824,7 @@ const (
|
|||||||
RTM_DELACTION = 0x31
|
RTM_DELACTION = 0x31
|
||||||
RTM_DELADDR = 0x15
|
RTM_DELADDR = 0x15
|
||||||
RTM_DELADDRLABEL = 0x49
|
RTM_DELADDRLABEL = 0x49
|
||||||
|
RTM_DELCHAIN = 0x65
|
||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
@@ -1558,6 +1845,7 @@ const (
|
|||||||
RTM_GETADDR = 0x16
|
RTM_GETADDR = 0x16
|
||||||
RTM_GETADDRLABEL = 0x4a
|
RTM_GETADDRLABEL = 0x4a
|
||||||
RTM_GETANYCAST = 0x3e
|
RTM_GETANYCAST = 0x3e
|
||||||
|
RTM_GETCHAIN = 0x66
|
||||||
RTM_GETDCB = 0x4e
|
RTM_GETDCB = 0x4e
|
||||||
RTM_GETLINK = 0x12
|
RTM_GETLINK = 0x12
|
||||||
RTM_GETMDB = 0x56
|
RTM_GETMDB = 0x56
|
||||||
@@ -1572,11 +1860,12 @@ const (
|
|||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x63
|
RTM_MAX = 0x67
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
RTM_NEWCACHEREPORT = 0x60
|
RTM_NEWCACHEREPORT = 0x60
|
||||||
|
RTM_NEWCHAIN = 0x64
|
||||||
RTM_NEWLINK = 0x10
|
RTM_NEWLINK = 0x10
|
||||||
RTM_NEWMDB = 0x54
|
RTM_NEWMDB = 0x54
|
||||||
RTM_NEWNDUSEROPT = 0x44
|
RTM_NEWNDUSEROPT = 0x44
|
||||||
@@ -1591,8 +1880,8 @@ const (
|
|||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x15
|
RTM_NR_FAMILIES = 0x16
|
||||||
RTM_NR_MSGTYPES = 0x54
|
RTM_NR_MSGTYPES = 0x58
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
@@ -1606,17 +1895,22 @@ const (
|
|||||||
RTNH_F_UNRESOLVED = 0x20
|
RTNH_F_UNRESOLVED = 0x20
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
RTPROT_BABEL = 0x2a
|
RTPROT_BABEL = 0x2a
|
||||||
|
RTPROT_BGP = 0xba
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
RTPROT_DNROUTED = 0xd
|
RTPROT_DNROUTED = 0xd
|
||||||
|
RTPROT_EIGRP = 0xc0
|
||||||
RTPROT_GATED = 0x8
|
RTPROT_GATED = 0x8
|
||||||
|
RTPROT_ISIS = 0xbb
|
||||||
RTPROT_KERNEL = 0x2
|
RTPROT_KERNEL = 0x2
|
||||||
RTPROT_MROUTED = 0x11
|
RTPROT_MROUTED = 0x11
|
||||||
RTPROT_MRT = 0xa
|
RTPROT_MRT = 0xa
|
||||||
RTPROT_NTK = 0xf
|
RTPROT_NTK = 0xf
|
||||||
|
RTPROT_OSPF = 0xbc
|
||||||
RTPROT_RA = 0x9
|
RTPROT_RA = 0x9
|
||||||
RTPROT_REDIRECT = 0x1
|
RTPROT_REDIRECT = 0x1
|
||||||
|
RTPROT_RIP = 0xbd
|
||||||
RTPROT_STATIC = 0x4
|
RTPROT_STATIC = 0x4
|
||||||
RTPROT_UNSPEC = 0x0
|
RTPROT_UNSPEC = 0x0
|
||||||
RTPROT_XORP = 0xe
|
RTPROT_XORP = 0xe
|
||||||
@@ -1636,12 +1930,16 @@ const (
|
|||||||
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SC_LOG_FLUSH = 0x100000
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SECURITYFS_MAGIC = 0x73636673
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
SELINUX_MAGIC = 0xf97cff8c
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
|
SFD_CLOEXEC = 0x80000
|
||||||
|
SFD_NONBLOCK = 0x80
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@@ -1692,6 +1990,9 @@ const (
|
|||||||
SIOCGMIIPHY = 0x8947
|
SIOCGMIIPHY = 0x8947
|
||||||
SIOCGMIIREG = 0x8948
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
|
SIOCGPPPCSTATS = 0x89f2
|
||||||
|
SIOCGPPPSTATS = 0x89f0
|
||||||
|
SIOCGPPPVER = 0x89f1
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
@@ -1781,6 +2082,7 @@ const (
|
|||||||
SOL_TIPC = 0x10f
|
SOL_TIPC = 0x10f
|
||||||
SOL_TLS = 0x11a
|
SOL_TLS = 0x11a
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
|
SOL_XDP = 0x11b
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1009
|
SO_ACCEPTCONN = 0x1009
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
@@ -1788,6 +2090,7 @@ const (
|
|||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
@@ -1799,6 +2102,17 @@ const (
|
|||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x1029
|
SO_DOMAIN = 0x1029
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
SO_EE_CODE_TXTIME_MISSED = 0x2
|
||||||
|
SO_EE_CODE_ZEROCOPY_COPIED = 0x1
|
||||||
|
SO_EE_ORIGIN_ICMP = 0x2
|
||||||
|
SO_EE_ORIGIN_ICMP6 = 0x3
|
||||||
|
SO_EE_ORIGIN_LOCAL = 0x1
|
||||||
|
SO_EE_ORIGIN_NONE = 0x0
|
||||||
|
SO_EE_ORIGIN_TIMESTAMPING = 0x4
|
||||||
|
SO_EE_ORIGIN_TXSTATUS = 0x4
|
||||||
|
SO_EE_ORIGIN_TXTIME = 0x6
|
||||||
|
SO_EE_ORIGIN_ZEROCOPY = 0x5
|
||||||
SO_ERROR = 0x1007
|
SO_ERROR = 0x1007
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
SO_INCOMING_CPU = 0x31
|
SO_INCOMING_CPU = 0x31
|
||||||
@@ -1825,6 +2139,8 @@ const (
|
|||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x1004
|
SO_RCVLOWAT = 0x1004
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x1006
|
||||||
SO_REUSEADDR = 0x4
|
SO_REUSEADDR = 0x4
|
||||||
SO_REUSEPORT = 0x200
|
SO_REUSEPORT = 0x200
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
@@ -1836,10 +2152,19 @@ const (
|
|||||||
SO_SNDBUFFORCE = 0x1f
|
SO_SNDBUFFORCE = 0x1f
|
||||||
SO_SNDLOWAT = 0x1003
|
SO_SNDLOWAT = 0x1003
|
||||||
SO_SNDTIMEO = 0x1005
|
SO_SNDTIMEO = 0x1005
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x1005
|
||||||
SO_STYLE = 0x1008
|
SO_STYLE = 0x1008
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
@@ -1877,6 +2202,9 @@ const (
|
|||||||
STATX_TYPE = 0x1
|
STATX_TYPE = 0x1
|
||||||
STATX_UID = 0x8
|
STATX_UID = 0x8
|
||||||
STATX__RESERVED = 0x80000000
|
STATX__RESERVED = 0x80000000
|
||||||
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
@@ -1915,7 +2243,7 @@ const (
|
|||||||
TASKSTATS_GENL_NAME = "TASKSTATS"
|
TASKSTATS_GENL_NAME = "TASKSTATS"
|
||||||
TASKSTATS_GENL_VERSION = 0x1
|
TASKSTATS_GENL_VERSION = 0x1
|
||||||
TASKSTATS_TYPE_MAX = 0x6
|
TASKSTATS_TYPE_MAX = 0x6
|
||||||
TASKSTATS_VERSION = 0x8
|
TASKSTATS_VERSION = 0x9
|
||||||
TCFLSH = 0x5407
|
TCFLSH = 0x5407
|
||||||
TCGETA = 0x5401
|
TCGETA = 0x5401
|
||||||
TCGETS = 0x540d
|
TCGETS = 0x540d
|
||||||
@@ -1927,7 +2255,10 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_BPF_IW = 0x3e9
|
||||||
|
TCP_BPF_SNDCWND_CLAMP = 0x3ea
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
@@ -1939,7 +2270,10 @@ const (
|
|||||||
TCP_DEFER_ACCEPT = 0x9
|
TCP_DEFER_ACCEPT = 0x9
|
||||||
TCP_FASTOPEN = 0x17
|
TCP_FASTOPEN = 0x17
|
||||||
TCP_FASTOPEN_CONNECT = 0x1e
|
TCP_FASTOPEN_CONNECT = 0x1e
|
||||||
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
|
TCP_INQ = 0x24
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
TCP_KEEPINTVL = 0x5
|
TCP_KEEPINTVL = 0x5
|
||||||
@@ -1959,6 +2293,9 @@ const (
|
|||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
|
TCP_REPAIR_OFF = 0x0
|
||||||
|
TCP_REPAIR_OFF_NO_WP = -0x1
|
||||||
|
TCP_REPAIR_ON = 0x1
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
TCP_REPAIR_WINDOW = 0x1d
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
@@ -1973,6 +2310,7 @@ const (
|
|||||||
TCP_ULP = 0x1f
|
TCP_ULP = 0x1f
|
||||||
TCP_USER_TIMEOUT = 0x12
|
TCP_USER_TIMEOUT = 0x12
|
||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
|
TCP_ZEROCOPY_RECEIVE = 0x23
|
||||||
TCSAFLUSH = 0x5410
|
TCSAFLUSH = 0x5410
|
||||||
TCSBRK = 0x5405
|
TCSBRK = 0x5405
|
||||||
TCSBRKP = 0x5486
|
TCSBRKP = 0x5486
|
||||||
@@ -1986,6 +2324,7 @@ const (
|
|||||||
TCSETSW = 0x540f
|
TCSETSW = 0x540f
|
||||||
TCSETSW2 = 0x8030542c
|
TCSETSW2 = 0x8030542c
|
||||||
TCXONC = 0x5406
|
TCXONC = 0x5406
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x80047478
|
TIOCCONS = 0x80047478
|
||||||
TIOCEXCL = 0x740d
|
TIOCEXCL = 0x740d
|
||||||
@@ -1994,6 +2333,7 @@ const (
|
|||||||
TIOCGETP = 0x7408
|
TIOCGETP = 0x7408
|
||||||
TIOCGEXCL = 0x40045440
|
TIOCGEXCL = 0x40045440
|
||||||
TIOCGICOUNT = 0x5492
|
TIOCGICOUNT = 0x5492
|
||||||
|
TIOCGISO7816 = 0x40285442
|
||||||
TIOCGLCKTRMIOS = 0x548b
|
TIOCGLCKTRMIOS = 0x548b
|
||||||
TIOCGLTC = 0x7474
|
TIOCGLTC = 0x7474
|
||||||
TIOCGPGRP = 0x40047477
|
TIOCGPGRP = 0x40047477
|
||||||
@@ -2050,6 +2390,7 @@ const (
|
|||||||
TIOCSETN = 0x740a
|
TIOCSETN = 0x740a
|
||||||
TIOCSETP = 0x7409
|
TIOCSETP = 0x7409
|
||||||
TIOCSIG = 0x80045436
|
TIOCSIG = 0x80045436
|
||||||
|
TIOCSISO7816 = 0xc0285443
|
||||||
TIOCSLCKTRMIOS = 0x548c
|
TIOCSLCKTRMIOS = 0x548c
|
||||||
TIOCSLTC = 0x7475
|
TIOCSLTC = 0x7475
|
||||||
TIOCSPGRP = 0x80047476
|
TIOCSPGRP = 0x80047476
|
||||||
@@ -2091,6 +2432,7 @@ const (
|
|||||||
TUNGETVNETBE = 0x400454df
|
TUNGETVNETBE = 0x400454df
|
||||||
TUNGETVNETHDRSZ = 0x400454d7
|
TUNGETVNETHDRSZ = 0x400454d7
|
||||||
TUNGETVNETLE = 0x400454dd
|
TUNGETVNETLE = 0x400454dd
|
||||||
|
TUNSETCARRIER = 0x800454e2
|
||||||
TUNSETDEBUG = 0x800454c9
|
TUNSETDEBUG = 0x800454c9
|
||||||
TUNSETFILTEREBPF = 0x400454e1
|
TUNSETFILTEREBPF = 0x400454e1
|
||||||
TUNSETGROUP = 0x800454ce
|
TUNSETGROUP = 0x800454ce
|
||||||
@@ -2108,6 +2450,23 @@ const (
|
|||||||
TUNSETVNETBE = 0x800454de
|
TUNSETVNETBE = 0x800454de
|
||||||
TUNSETVNETHDRSZ = 0x800454d8
|
TUNSETVNETHDRSZ = 0x800454d8
|
||||||
TUNSETVNETLE = 0x800454dc
|
TUNSETVNETLE = 0x800454dc
|
||||||
|
UBI_IOCATT = 0x80186f40
|
||||||
|
UBI_IOCDET = 0x80046f41
|
||||||
|
UBI_IOCEBCH = 0x80044f02
|
||||||
|
UBI_IOCEBER = 0x80044f01
|
||||||
|
UBI_IOCEBISMAP = 0x40044f05
|
||||||
|
UBI_IOCEBMAP = 0x80084f03
|
||||||
|
UBI_IOCEBUNMAP = 0x80044f04
|
||||||
|
UBI_IOCMKVOL = 0x80986f00
|
||||||
|
UBI_IOCRMVOL = 0x80046f01
|
||||||
|
UBI_IOCRNVOL = 0x91106f03
|
||||||
|
UBI_IOCRPEB = 0x80046f04
|
||||||
|
UBI_IOCRSVOL = 0x800c6f02
|
||||||
|
UBI_IOCSETVOLPROP = 0x80104f06
|
||||||
|
UBI_IOCSPEB = 0x80046f05
|
||||||
|
UBI_IOCVOLCRBLK = 0x80804f07
|
||||||
|
UBI_IOCVOLRMBLK = 0x20004f08
|
||||||
|
UBI_IOCVOLUP = 0x80084f00
|
||||||
UDF_SUPER_MAGIC = 0x15013346
|
UDF_SUPER_MAGIC = 0x15013346
|
||||||
UMOUNT_NOFOLLOW = 0x8
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||||
@@ -2245,7 +2604,29 @@ const (
|
|||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XDP_COPY = 0x2
|
||||||
|
XDP_FLAGS_DRV_MODE = 0x4
|
||||||
|
XDP_FLAGS_HW_MODE = 0x8
|
||||||
|
XDP_FLAGS_MASK = 0xf
|
||||||
|
XDP_FLAGS_MODES = 0xe
|
||||||
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
XDP_RX_RING = 0x2
|
||||||
|
XDP_SHARED_UMEM = 0x1
|
||||||
|
XDP_STATISTICS = 0x7
|
||||||
|
XDP_TX_RING = 0x3
|
||||||
|
XDP_UMEM_COMPLETION_RING = 0x6
|
||||||
|
XDP_UMEM_FILL_RING = 0x5
|
||||||
|
XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
|
||||||
|
XDP_UMEM_PGOFF_FILL_RING = 0x100000000
|
||||||
|
XDP_UMEM_REG = 0x4
|
||||||
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|||||||
397
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
397
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
@@ -41,7 +41,7 @@ const (
|
|||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x2c
|
AF_MAX = 0x2d
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
@@ -64,6 +64,7 @@ const (
|
|||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
AF_XDP = 0x2c
|
||||||
ALG_OP_DECRYPT = 0x0
|
ALG_OP_DECRYPT = 0x0
|
||||||
ALG_OP_ENCRYPT = 0x1
|
ALG_OP_ENCRYPT = 0x1
|
||||||
ALG_SET_AEAD_ASSOCLEN = 0x4
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
@@ -173,6 +174,7 @@ const (
|
|||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
BALLOON_KVM_MAGIC = 0x13661366
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
BDEVFS_MAGIC = 0x62646576
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
||||||
BINFMTFS_MAGIC = 0x42494e4d
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x40081270
|
BLKBSZGET = 0x40081270
|
||||||
BLKBSZSET = 0x80081271
|
BLKBSZSET = 0x80081271
|
||||||
@@ -195,10 +197,59 @@ const (
|
|||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
BPF_ANY = 0x0
|
||||||
|
BPF_ARSH = 0xc0
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
|
BPF_BUILD_ID_SIZE = 0x14
|
||||||
|
BPF_CALL = 0x80
|
||||||
|
BPF_DEVCG_ACC_MKNOD = 0x1
|
||||||
|
BPF_DEVCG_ACC_READ = 0x2
|
||||||
|
BPF_DEVCG_ACC_WRITE = 0x4
|
||||||
|
BPF_DEVCG_DEV_BLOCK = 0x1
|
||||||
|
BPF_DEVCG_DEV_CHAR = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_DW = 0x18
|
||||||
|
BPF_END = 0xd0
|
||||||
|
BPF_EXIST = 0x2
|
||||||
|
BPF_EXIT = 0x90
|
||||||
|
BPF_FROM_BE = 0x8
|
||||||
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_F_DONT_FRAGMENT = 0x4
|
||||||
|
BPF_F_FAST_STACK_CMP = 0x200
|
||||||
|
BPF_F_HDR_FIELD_MASK = 0xf
|
||||||
|
BPF_F_INDEX_MASK = 0xffffffff
|
||||||
|
BPF_F_INGRESS = 0x1
|
||||||
|
BPF_F_INVALIDATE_HASH = 0x2
|
||||||
|
BPF_F_LOCK = 0x4
|
||||||
|
BPF_F_MARK_ENFORCE = 0x40
|
||||||
|
BPF_F_MARK_MANGLED_0 = 0x20
|
||||||
|
BPF_F_NO_COMMON_LRU = 0x2
|
||||||
|
BPF_F_NO_PREALLOC = 0x1
|
||||||
|
BPF_F_NUMA_NODE = 0x4
|
||||||
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
|
BPF_F_USER_STACK = 0x100
|
||||||
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@@ -206,8 +257,16 @@ const (
|
|||||||
BPF_JEQ = 0x10
|
BPF_JEQ = 0x10
|
||||||
BPF_JGE = 0x30
|
BPF_JGE = 0x30
|
||||||
BPF_JGT = 0x20
|
BPF_JGT = 0x20
|
||||||
|
BPF_JLE = 0xb0
|
||||||
|
BPF_JLT = 0xa0
|
||||||
BPF_JMP = 0x5
|
BPF_JMP = 0x5
|
||||||
|
BPF_JMP32 = 0x6
|
||||||
|
BPF_JNE = 0x50
|
||||||
BPF_JSET = 0x40
|
BPF_JSET = 0x40
|
||||||
|
BPF_JSGE = 0x70
|
||||||
|
BPF_JSGT = 0x60
|
||||||
|
BPF_JSLE = 0xd0
|
||||||
|
BPF_JSLT = 0xc0
|
||||||
BPF_K = 0x0
|
BPF_K = 0x0
|
||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
@@ -221,20 +280,33 @@ const (
|
|||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
BPF_MOD = 0x90
|
BPF_MOD = 0x90
|
||||||
|
BPF_MOV = 0xb0
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
BPF_NET_OFF = -0x100000
|
BPF_NET_OFF = -0x100000
|
||||||
|
BPF_NOEXIST = 0x1
|
||||||
|
BPF_OBJ_NAME_LEN = 0x10
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
|
BPF_PSEUDO_CALL = 0x1
|
||||||
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||||
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
BPF_SUB = 0x10
|
BPF_SUB = 0x10
|
||||||
|
BPF_TAG_SIZE = 0x8
|
||||||
BPF_TAX = 0x0
|
BPF_TAX = 0x0
|
||||||
|
BPF_TO_BE = 0x8
|
||||||
|
BPF_TO_LE = 0x0
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XADD = 0xc0
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
@@ -262,6 +334,45 @@ const (
|
|||||||
CAN_SFF_MASK = 0x7ff
|
CAN_SFF_MASK = 0x7ff
|
||||||
CAN_TP16 = 0x3
|
CAN_TP16 = 0x3
|
||||||
CAN_TP20 = 0x4
|
CAN_TP20 = 0x4
|
||||||
|
CAP_AUDIT_CONTROL = 0x1e
|
||||||
|
CAP_AUDIT_READ = 0x25
|
||||||
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_CHOWN = 0x0
|
||||||
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
CAP_FOWNER = 0x3
|
||||||
|
CAP_FSETID = 0x4
|
||||||
|
CAP_IPC_LOCK = 0xe
|
||||||
|
CAP_IPC_OWNER = 0xf
|
||||||
|
CAP_KILL = 0x5
|
||||||
|
CAP_LAST_CAP = 0x25
|
||||||
|
CAP_LEASE = 0x1c
|
||||||
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
CAP_MAC_OVERRIDE = 0x20
|
||||||
|
CAP_MKNOD = 0x1b
|
||||||
|
CAP_NET_ADMIN = 0xc
|
||||||
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
|
CAP_NET_BROADCAST = 0xb
|
||||||
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_SETFCAP = 0x1f
|
||||||
|
CAP_SETGID = 0x6
|
||||||
|
CAP_SETPCAP = 0x8
|
||||||
|
CAP_SETUID = 0x7
|
||||||
|
CAP_SYSLOG = 0x22
|
||||||
|
CAP_SYS_ADMIN = 0x15
|
||||||
|
CAP_SYS_BOOT = 0x16
|
||||||
|
CAP_SYS_CHROOT = 0x12
|
||||||
|
CAP_SYS_MODULE = 0x10
|
||||||
|
CAP_SYS_NICE = 0x17
|
||||||
|
CAP_SYS_PACCT = 0x14
|
||||||
|
CAP_SYS_PTRACE = 0x13
|
||||||
|
CAP_SYS_RAWIO = 0x11
|
||||||
|
CAP_SYS_RESOURCE = 0x18
|
||||||
|
CAP_SYS_TIME = 0x19
|
||||||
|
CAP_SYS_TTY_CONFIG = 0x1a
|
||||||
|
CAP_WAKE_ALARM = 0x23
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@@ -318,6 +429,10 @@ const (
|
|||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
@@ -485,12 +600,67 @@ const (
|
|||||||
FALLOC_FL_PUNCH_HOLE = 0x2
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
FALLOC_FL_UNSHARE_RANGE = 0x40
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
FALLOC_FL_ZERO_RANGE = 0x10
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
|
FANOTIFY_METADATA_VERSION = 0x3
|
||||||
|
FAN_ACCESS = 0x1
|
||||||
|
FAN_ACCESS_PERM = 0x20000
|
||||||
|
FAN_ALLOW = 0x1
|
||||||
|
FAN_ALL_CLASS_BITS = 0xc
|
||||||
|
FAN_ALL_EVENTS = 0x3b
|
||||||
|
FAN_ALL_INIT_FLAGS = 0x3f
|
||||||
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
|
FAN_AUDIT = 0x10
|
||||||
|
FAN_CLASS_CONTENT = 0x4
|
||||||
|
FAN_CLASS_NOTIF = 0x0
|
||||||
|
FAN_CLASS_PRE_CONTENT = 0x8
|
||||||
|
FAN_CLOEXEC = 0x1
|
||||||
|
FAN_CLOSE = 0x18
|
||||||
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
|
FAN_DENY = 0x2
|
||||||
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
|
FAN_MARK_ADD = 0x1
|
||||||
|
FAN_MARK_DONT_FOLLOW = 0x4
|
||||||
|
FAN_MARK_FILESYSTEM = 0x100
|
||||||
|
FAN_MARK_FLUSH = 0x80
|
||||||
|
FAN_MARK_IGNORED_MASK = 0x20
|
||||||
|
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
||||||
|
FAN_MARK_INODE = 0x0
|
||||||
|
FAN_MARK_MOUNT = 0x10
|
||||||
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
|
FAN_MARK_REMOVE = 0x2
|
||||||
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
|
FAN_NOFD = -0x1
|
||||||
|
FAN_NONBLOCK = 0x2
|
||||||
|
FAN_ONDIR = 0x40000000
|
||||||
|
FAN_OPEN = 0x20
|
||||||
|
FAN_OPEN_EXEC = 0x1000
|
||||||
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
|
FAN_OPEN_PERM = 0x10000
|
||||||
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
|
FAN_REPORT_TID = 0x100
|
||||||
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
FF1 = 0x8000
|
FF1 = 0x8000
|
||||||
FFDLY = 0x8000
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x2000
|
FLUSHO = 0x2000
|
||||||
|
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
@@ -498,6 +668,8 @@ const (
|
|||||||
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
FS_ENCRYPTION_MODE_INVALID = 0x0
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
|
||||||
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
||||||
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
||||||
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
||||||
@@ -510,7 +682,7 @@ const (
|
|||||||
FS_POLICY_FLAGS_PAD_4 = 0x0
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x7
|
||||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
@@ -635,7 +807,7 @@ const (
|
|||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x8
|
IFA_MAX = 0xa
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
@@ -703,6 +875,7 @@ const (
|
|||||||
IN_ISDIR = 0x40000000
|
IN_ISDIR = 0x40000000
|
||||||
IN_LOOPBACKNET = 0x7f
|
IN_LOOPBACKNET = 0x7f
|
||||||
IN_MASK_ADD = 0x20000000
|
IN_MASK_ADD = 0x20000000
|
||||||
|
IN_MASK_CREATE = 0x10000000
|
||||||
IN_MODIFY = 0x2
|
IN_MODIFY = 0x2
|
||||||
IN_MOVE = 0xc0
|
IN_MOVE = 0xc0
|
||||||
IN_MOVED_FROM = 0x40
|
IN_MOVED_FROM = 0x40
|
||||||
@@ -762,6 +935,7 @@ const (
|
|||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_FREEBIND = 0x4e
|
||||||
IPV6_HDRINCL = 0x24
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
@@ -773,6 +947,7 @@ const (
|
|||||||
IPV6_MINHOPCOUNT = 0x49
|
IPV6_MINHOPCOUNT = 0x49
|
||||||
IPV6_MTU = 0x18
|
IPV6_MTU = 0x18
|
||||||
IPV6_MTU_DISCOVER = 0x17
|
IPV6_MTU_DISCOVER = 0x17
|
||||||
|
IPV6_MULTICAST_ALL = 0x1d
|
||||||
IPV6_MULTICAST_HOPS = 0x12
|
IPV6_MULTICAST_HOPS = 0x12
|
||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
@@ -874,6 +1049,26 @@ const (
|
|||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
JFFS2_SUPER_MAGIC = 0x72b6
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
|
KEXEC_ARCH_386 = 0x30000
|
||||||
|
KEXEC_ARCH_68K = 0x40000
|
||||||
|
KEXEC_ARCH_AARCH64 = 0xb70000
|
||||||
|
KEXEC_ARCH_ARM = 0x280000
|
||||||
|
KEXEC_ARCH_DEFAULT = 0x0
|
||||||
|
KEXEC_ARCH_IA_64 = 0x320000
|
||||||
|
KEXEC_ARCH_MASK = 0xffff0000
|
||||||
|
KEXEC_ARCH_MIPS = 0x80000
|
||||||
|
KEXEC_ARCH_MIPS_LE = 0xa0000
|
||||||
|
KEXEC_ARCH_PPC = 0x140000
|
||||||
|
KEXEC_ARCH_PPC64 = 0x150000
|
||||||
|
KEXEC_ARCH_S390 = 0x160000
|
||||||
|
KEXEC_ARCH_SH = 0x2a0000
|
||||||
|
KEXEC_ARCH_X86_64 = 0x3e0000
|
||||||
|
KEXEC_FILE_NO_INITRAMFS = 0x4
|
||||||
|
KEXEC_FILE_ON_CRASH = 0x2
|
||||||
|
KEXEC_FILE_UNLOAD = 0x1
|
||||||
|
KEXEC_ON_CRASH = 0x1
|
||||||
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
@@ -888,6 +1083,11 @@ const (
|
|||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
KEYCTL_PKEY_QUERY = 0x18
|
||||||
|
KEYCTL_PKEY_SIGN = 0x1b
|
||||||
|
KEYCTL_PKEY_VERIFY = 0x1c
|
||||||
KEYCTL_READ = 0xb
|
KEYCTL_READ = 0xb
|
||||||
KEYCTL_REJECT = 0x13
|
KEYCTL_REJECT = 0x13
|
||||||
KEYCTL_RESTRICT_KEYRING = 0x1d
|
KEYCTL_RESTRICT_KEYRING = 0x1d
|
||||||
@@ -897,6 +1097,10 @@ const (
|
|||||||
KEYCTL_SETPERM = 0x5
|
KEYCTL_SETPERM = 0x5
|
||||||
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
KEYCTL_SET_TIMEOUT = 0xf
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_SUPPORTS_DECRYPT = 0x2
|
||||||
|
KEYCTL_SUPPORTS_ENCRYPT = 0x1
|
||||||
|
KEYCTL_SUPPORTS_SIGN = 0x4
|
||||||
|
KEYCTL_SUPPORTS_VERIFY = 0x8
|
||||||
KEYCTL_UNLINK = 0x9
|
KEYCTL_UNLINK = 0x9
|
||||||
KEYCTL_UPDATE = 0x2
|
KEYCTL_UPDATE = 0x2
|
||||||
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
@@ -954,6 +1158,7 @@ const (
|
|||||||
MAP_EXECUTABLE = 0x4000
|
MAP_EXECUTABLE = 0x4000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_FIXED_NOREPLACE = 0x100000
|
||||||
MAP_GROWSDOWN = 0x1000
|
MAP_GROWSDOWN = 0x1000
|
||||||
MAP_HUGETLB = 0x80000
|
MAP_HUGETLB = 0x80000
|
||||||
MAP_HUGE_MASK = 0x3f
|
MAP_HUGE_MASK = 0x3f
|
||||||
@@ -965,11 +1170,38 @@ const (
|
|||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_RENAME = 0x800
|
MAP_RENAME = 0x800
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x40000
|
MAP_STACK = 0x40000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
|
MCAST_BLOCK_SOURCE = 0x2b
|
||||||
|
MCAST_EXCLUDE = 0x0
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x2a
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x2e
|
||||||
|
MCAST_LEAVE_GROUP = 0x2d
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x2f
|
||||||
|
MCAST_MSFILTER = 0x30
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x2c
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
|
MFD_ALLOW_SEALING = 0x2
|
||||||
|
MFD_CLOEXEC = 0x1
|
||||||
|
MFD_HUGETLB = 0x4
|
||||||
|
MFD_HUGE_16GB = -0x78000000
|
||||||
|
MFD_HUGE_16MB = 0x60000000
|
||||||
|
MFD_HUGE_1GB = 0x78000000
|
||||||
|
MFD_HUGE_1MB = 0x50000000
|
||||||
|
MFD_HUGE_256MB = 0x70000000
|
||||||
|
MFD_HUGE_2GB = 0x7c000000
|
||||||
|
MFD_HUGE_2MB = 0x54000000
|
||||||
|
MFD_HUGE_32MB = 0x64000000
|
||||||
|
MFD_HUGE_512KB = 0x4c000000
|
||||||
|
MFD_HUGE_512MB = 0x74000000
|
||||||
|
MFD_HUGE_64KB = 0x40000000
|
||||||
|
MFD_HUGE_8MB = 0x5c000000
|
||||||
|
MFD_HUGE_MASK = 0x3f
|
||||||
|
MFD_HUGE_SHIFT = 0x1a
|
||||||
MINIX2_SUPER_MAGIC = 0x2468
|
MINIX2_SUPER_MAGIC = 0x2468
|
||||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||||
@@ -978,6 +1210,8 @@ const (
|
|||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
|
||||||
|
MODULE_INIT_IGNORE_VERMAGIC = 0x2
|
||||||
MSDOS_SUPER_MAGIC = 0x4d44
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
@@ -1054,6 +1288,7 @@ const (
|
|||||||
NETLINK_FIB_LOOKUP = 0xa
|
NETLINK_FIB_LOOKUP = 0xa
|
||||||
NETLINK_FIREWALL = 0x3
|
NETLINK_FIREWALL = 0x3
|
||||||
NETLINK_GENERIC = 0x10
|
NETLINK_GENERIC = 0x10
|
||||||
|
NETLINK_GET_STRICT_CHK = 0xc
|
||||||
NETLINK_INET_DIAG = 0x4
|
NETLINK_INET_DIAG = 0x4
|
||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
@@ -1075,6 +1310,8 @@ const (
|
|||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
|
NETNSA_MAX = 0x5
|
||||||
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||||
@@ -1195,6 +1432,7 @@ const (
|
|||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_IGNORE_OUTGOING = 0x17
|
||||||
PACKET_KERNEL = 0x7
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
@@ -1244,6 +1482,36 @@ const (
|
|||||||
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||||
PIPEFS_MAGIC = 0x50495045
|
PIPEFS_MAGIC = 0x50495045
|
||||||
|
PPPIOCATTACH = 0x8004743d
|
||||||
|
PPPIOCATTCHAN = 0x80047438
|
||||||
|
PPPIOCCONNECT = 0x8004743a
|
||||||
|
PPPIOCDETACH = 0x8004743c
|
||||||
|
PPPIOCDISCONN = 0x20007439
|
||||||
|
PPPIOCGASYNCMAP = 0x40047458
|
||||||
|
PPPIOCGCHAN = 0x40047437
|
||||||
|
PPPIOCGDEBUG = 0x40047441
|
||||||
|
PPPIOCGFLAGS = 0x4004745a
|
||||||
|
PPPIOCGIDLE = 0x4010743f
|
||||||
|
PPPIOCGL2TPSTATS = 0x40487436
|
||||||
|
PPPIOCGMRU = 0x40047453
|
||||||
|
PPPIOCGNPMODE = 0xc008744c
|
||||||
|
PPPIOCGRASYNCMAP = 0x40047455
|
||||||
|
PPPIOCGUNIT = 0x40047456
|
||||||
|
PPPIOCGXASYNCMAP = 0x40207450
|
||||||
|
PPPIOCNEWUNIT = 0xc004743e
|
||||||
|
PPPIOCSACTIVE = 0x80107446
|
||||||
|
PPPIOCSASYNCMAP = 0x80047457
|
||||||
|
PPPIOCSCOMPRESS = 0x8010744d
|
||||||
|
PPPIOCSDEBUG = 0x80047440
|
||||||
|
PPPIOCSFLAGS = 0x80047459
|
||||||
|
PPPIOCSMAXCID = 0x80047451
|
||||||
|
PPPIOCSMRRU = 0x8004743b
|
||||||
|
PPPIOCSMRU = 0x80047452
|
||||||
|
PPPIOCSNPMODE = 0x8008744b
|
||||||
|
PPPIOCSPASS = 0x80107447
|
||||||
|
PPPIOCSRASYNCMAP = 0x80047454
|
||||||
|
PPPIOCSXASYNCMAP = 0x8020744f
|
||||||
|
PPPIOCXFERUNIT = 0x2000744e
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@@ -1306,6 +1574,12 @@ const (
|
|||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
|
PR_PAC_APDAKEY = 0x4
|
||||||
|
PR_PAC_APDBKEY = 0x8
|
||||||
|
PR_PAC_APGAKEY = 0x10
|
||||||
|
PR_PAC_APIAKEY = 0x1
|
||||||
|
PR_PAC_APIBKEY = 0x2
|
||||||
|
PR_PAC_RESET_KEYS = 0x36
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
@@ -1343,8 +1617,10 @@ const (
|
|||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
PR_SPEC_NOT_AFFECTED = 0x0
|
PR_SPEC_NOT_AFFECTED = 0x0
|
||||||
PR_SPEC_PRCTL = 0x1
|
PR_SPEC_PRCTL = 0x1
|
||||||
PR_SPEC_STORE_BYPASS = 0x0
|
PR_SPEC_STORE_BYPASS = 0x0
|
||||||
@@ -1428,6 +1704,9 @@ const (
|
|||||||
RAMFS_MAGIC = 0x858458f6
|
RAMFS_MAGIC = 0x858458f6
|
||||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||||
REISERFS_SUPER_MAGIC = 0x52654973
|
REISERFS_SUPER_MAGIC = 0x52654973
|
||||||
|
RENAME_EXCHANGE = 0x2
|
||||||
|
RENAME_NOREPLACE = 0x1
|
||||||
|
RENAME_WHITEOUT = 0x4
|
||||||
RLIMIT_AS = 0x6
|
RLIMIT_AS = 0x6
|
||||||
RLIMIT_CORE = 0x4
|
RLIMIT_CORE = 0x4
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
@@ -1445,6 +1724,13 @@ const (
|
|||||||
RLIMIT_SIGPENDING = 0xb
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0xffffffffffffffff
|
RLIM_INFINITY = 0xffffffffffffffff
|
||||||
|
RNDADDENTROPY = 0x80085203
|
||||||
|
RNDADDTOENTCNT = 0x80045201
|
||||||
|
RNDCLEARPOOL = 0x20005206
|
||||||
|
RNDGETENTCNT = 0x40045200
|
||||||
|
RNDGETPOOL = 0x40085202
|
||||||
|
RNDRESEEDCRNG = 0x20005207
|
||||||
|
RNDZAPENTCNT = 0x20005204
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
RTAX_CC_ALGO = 0x10
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
@@ -1470,7 +1756,7 @@ const (
|
|||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1a
|
RTA_MAX = 0x1d
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
@@ -1538,6 +1824,7 @@ const (
|
|||||||
RTM_DELACTION = 0x31
|
RTM_DELACTION = 0x31
|
||||||
RTM_DELADDR = 0x15
|
RTM_DELADDR = 0x15
|
||||||
RTM_DELADDRLABEL = 0x49
|
RTM_DELADDRLABEL = 0x49
|
||||||
|
RTM_DELCHAIN = 0x65
|
||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
@@ -1558,6 +1845,7 @@ const (
|
|||||||
RTM_GETADDR = 0x16
|
RTM_GETADDR = 0x16
|
||||||
RTM_GETADDRLABEL = 0x4a
|
RTM_GETADDRLABEL = 0x4a
|
||||||
RTM_GETANYCAST = 0x3e
|
RTM_GETANYCAST = 0x3e
|
||||||
|
RTM_GETCHAIN = 0x66
|
||||||
RTM_GETDCB = 0x4e
|
RTM_GETDCB = 0x4e
|
||||||
RTM_GETLINK = 0x12
|
RTM_GETLINK = 0x12
|
||||||
RTM_GETMDB = 0x56
|
RTM_GETMDB = 0x56
|
||||||
@@ -1572,11 +1860,12 @@ const (
|
|||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x63
|
RTM_MAX = 0x67
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
RTM_NEWCACHEREPORT = 0x60
|
RTM_NEWCACHEREPORT = 0x60
|
||||||
|
RTM_NEWCHAIN = 0x64
|
||||||
RTM_NEWLINK = 0x10
|
RTM_NEWLINK = 0x10
|
||||||
RTM_NEWMDB = 0x54
|
RTM_NEWMDB = 0x54
|
||||||
RTM_NEWNDUSEROPT = 0x44
|
RTM_NEWNDUSEROPT = 0x44
|
||||||
@@ -1591,8 +1880,8 @@ const (
|
|||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x15
|
RTM_NR_FAMILIES = 0x16
|
||||||
RTM_NR_MSGTYPES = 0x54
|
RTM_NR_MSGTYPES = 0x58
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
@@ -1606,17 +1895,22 @@ const (
|
|||||||
RTNH_F_UNRESOLVED = 0x20
|
RTNH_F_UNRESOLVED = 0x20
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
RTPROT_BABEL = 0x2a
|
RTPROT_BABEL = 0x2a
|
||||||
|
RTPROT_BGP = 0xba
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
RTPROT_DNROUTED = 0xd
|
RTPROT_DNROUTED = 0xd
|
||||||
|
RTPROT_EIGRP = 0xc0
|
||||||
RTPROT_GATED = 0x8
|
RTPROT_GATED = 0x8
|
||||||
|
RTPROT_ISIS = 0xbb
|
||||||
RTPROT_KERNEL = 0x2
|
RTPROT_KERNEL = 0x2
|
||||||
RTPROT_MROUTED = 0x11
|
RTPROT_MROUTED = 0x11
|
||||||
RTPROT_MRT = 0xa
|
RTPROT_MRT = 0xa
|
||||||
RTPROT_NTK = 0xf
|
RTPROT_NTK = 0xf
|
||||||
|
RTPROT_OSPF = 0xbc
|
||||||
RTPROT_RA = 0x9
|
RTPROT_RA = 0x9
|
||||||
RTPROT_REDIRECT = 0x1
|
RTPROT_REDIRECT = 0x1
|
||||||
|
RTPROT_RIP = 0xbd
|
||||||
RTPROT_STATIC = 0x4
|
RTPROT_STATIC = 0x4
|
||||||
RTPROT_UNSPEC = 0x0
|
RTPROT_UNSPEC = 0x0
|
||||||
RTPROT_XORP = 0xe
|
RTPROT_XORP = 0xe
|
||||||
@@ -1636,12 +1930,16 @@ const (
|
|||||||
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SC_LOG_FLUSH = 0x100000
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SECURITYFS_MAGIC = 0x73636673
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
SELINUX_MAGIC = 0xf97cff8c
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
|
SFD_CLOEXEC = 0x80000
|
||||||
|
SFD_NONBLOCK = 0x80
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@@ -1692,6 +1990,9 @@ const (
|
|||||||
SIOCGMIIPHY = 0x8947
|
SIOCGMIIPHY = 0x8947
|
||||||
SIOCGMIIREG = 0x8948
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
|
SIOCGPPPCSTATS = 0x89f2
|
||||||
|
SIOCGPPPSTATS = 0x89f0
|
||||||
|
SIOCGPPPVER = 0x89f1
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
@@ -1781,6 +2082,7 @@ const (
|
|||||||
SOL_TIPC = 0x10f
|
SOL_TIPC = 0x10f
|
||||||
SOL_TLS = 0x11a
|
SOL_TLS = 0x11a
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
|
SOL_XDP = 0x11b
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1009
|
SO_ACCEPTCONN = 0x1009
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
@@ -1788,6 +2090,7 @@ const (
|
|||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
@@ -1799,6 +2102,17 @@ const (
|
|||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x1029
|
SO_DOMAIN = 0x1029
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
SO_EE_CODE_TXTIME_MISSED = 0x2
|
||||||
|
SO_EE_CODE_ZEROCOPY_COPIED = 0x1
|
||||||
|
SO_EE_ORIGIN_ICMP = 0x2
|
||||||
|
SO_EE_ORIGIN_ICMP6 = 0x3
|
||||||
|
SO_EE_ORIGIN_LOCAL = 0x1
|
||||||
|
SO_EE_ORIGIN_NONE = 0x0
|
||||||
|
SO_EE_ORIGIN_TIMESTAMPING = 0x4
|
||||||
|
SO_EE_ORIGIN_TXSTATUS = 0x4
|
||||||
|
SO_EE_ORIGIN_TXTIME = 0x6
|
||||||
|
SO_EE_ORIGIN_ZEROCOPY = 0x5
|
||||||
SO_ERROR = 0x1007
|
SO_ERROR = 0x1007
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
SO_INCOMING_CPU = 0x31
|
SO_INCOMING_CPU = 0x31
|
||||||
@@ -1825,6 +2139,8 @@ const (
|
|||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x1004
|
SO_RCVLOWAT = 0x1004
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x1006
|
||||||
SO_REUSEADDR = 0x4
|
SO_REUSEADDR = 0x4
|
||||||
SO_REUSEPORT = 0x200
|
SO_REUSEPORT = 0x200
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
@@ -1836,10 +2152,19 @@ const (
|
|||||||
SO_SNDBUFFORCE = 0x1f
|
SO_SNDBUFFORCE = 0x1f
|
||||||
SO_SNDLOWAT = 0x1003
|
SO_SNDLOWAT = 0x1003
|
||||||
SO_SNDTIMEO = 0x1005
|
SO_SNDTIMEO = 0x1005
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x1005
|
||||||
SO_STYLE = 0x1008
|
SO_STYLE = 0x1008
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
@@ -1877,6 +2202,9 @@ const (
|
|||||||
STATX_TYPE = 0x1
|
STATX_TYPE = 0x1
|
||||||
STATX_UID = 0x8
|
STATX_UID = 0x8
|
||||||
STATX__RESERVED = 0x80000000
|
STATX__RESERVED = 0x80000000
|
||||||
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
@@ -1915,7 +2243,7 @@ const (
|
|||||||
TASKSTATS_GENL_NAME = "TASKSTATS"
|
TASKSTATS_GENL_NAME = "TASKSTATS"
|
||||||
TASKSTATS_GENL_VERSION = 0x1
|
TASKSTATS_GENL_VERSION = 0x1
|
||||||
TASKSTATS_TYPE_MAX = 0x6
|
TASKSTATS_TYPE_MAX = 0x6
|
||||||
TASKSTATS_VERSION = 0x8
|
TASKSTATS_VERSION = 0x9
|
||||||
TCFLSH = 0x5407
|
TCFLSH = 0x5407
|
||||||
TCGETA = 0x5401
|
TCGETA = 0x5401
|
||||||
TCGETS = 0x540d
|
TCGETS = 0x540d
|
||||||
@@ -1927,7 +2255,10 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_BPF_IW = 0x3e9
|
||||||
|
TCP_BPF_SNDCWND_CLAMP = 0x3ea
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
@@ -1939,7 +2270,10 @@ const (
|
|||||||
TCP_DEFER_ACCEPT = 0x9
|
TCP_DEFER_ACCEPT = 0x9
|
||||||
TCP_FASTOPEN = 0x17
|
TCP_FASTOPEN = 0x17
|
||||||
TCP_FASTOPEN_CONNECT = 0x1e
|
TCP_FASTOPEN_CONNECT = 0x1e
|
||||||
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
|
TCP_INQ = 0x24
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
TCP_KEEPINTVL = 0x5
|
TCP_KEEPINTVL = 0x5
|
||||||
@@ -1959,6 +2293,9 @@ const (
|
|||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
|
TCP_REPAIR_OFF = 0x0
|
||||||
|
TCP_REPAIR_OFF_NO_WP = -0x1
|
||||||
|
TCP_REPAIR_ON = 0x1
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
TCP_REPAIR_WINDOW = 0x1d
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
@@ -1973,6 +2310,7 @@ const (
|
|||||||
TCP_ULP = 0x1f
|
TCP_ULP = 0x1f
|
||||||
TCP_USER_TIMEOUT = 0x12
|
TCP_USER_TIMEOUT = 0x12
|
||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
|
TCP_ZEROCOPY_RECEIVE = 0x23
|
||||||
TCSAFLUSH = 0x5410
|
TCSAFLUSH = 0x5410
|
||||||
TCSBRK = 0x5405
|
TCSBRK = 0x5405
|
||||||
TCSBRKP = 0x5486
|
TCSBRKP = 0x5486
|
||||||
@@ -1986,6 +2324,7 @@ const (
|
|||||||
TCSETSW = 0x540f
|
TCSETSW = 0x540f
|
||||||
TCSETSW2 = 0x8030542c
|
TCSETSW2 = 0x8030542c
|
||||||
TCXONC = 0x5406
|
TCXONC = 0x5406
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x80047478
|
TIOCCONS = 0x80047478
|
||||||
TIOCEXCL = 0x740d
|
TIOCEXCL = 0x740d
|
||||||
@@ -1994,6 +2333,7 @@ const (
|
|||||||
TIOCGETP = 0x7408
|
TIOCGETP = 0x7408
|
||||||
TIOCGEXCL = 0x40045440
|
TIOCGEXCL = 0x40045440
|
||||||
TIOCGICOUNT = 0x5492
|
TIOCGICOUNT = 0x5492
|
||||||
|
TIOCGISO7816 = 0x40285442
|
||||||
TIOCGLCKTRMIOS = 0x548b
|
TIOCGLCKTRMIOS = 0x548b
|
||||||
TIOCGLTC = 0x7474
|
TIOCGLTC = 0x7474
|
||||||
TIOCGPGRP = 0x40047477
|
TIOCGPGRP = 0x40047477
|
||||||
@@ -2050,6 +2390,7 @@ const (
|
|||||||
TIOCSETN = 0x740a
|
TIOCSETN = 0x740a
|
||||||
TIOCSETP = 0x7409
|
TIOCSETP = 0x7409
|
||||||
TIOCSIG = 0x80045436
|
TIOCSIG = 0x80045436
|
||||||
|
TIOCSISO7816 = 0xc0285443
|
||||||
TIOCSLCKTRMIOS = 0x548c
|
TIOCSLCKTRMIOS = 0x548c
|
||||||
TIOCSLTC = 0x7475
|
TIOCSLTC = 0x7475
|
||||||
TIOCSPGRP = 0x80047476
|
TIOCSPGRP = 0x80047476
|
||||||
@@ -2091,6 +2432,7 @@ const (
|
|||||||
TUNGETVNETBE = 0x400454df
|
TUNGETVNETBE = 0x400454df
|
||||||
TUNGETVNETHDRSZ = 0x400454d7
|
TUNGETVNETHDRSZ = 0x400454d7
|
||||||
TUNGETVNETLE = 0x400454dd
|
TUNGETVNETLE = 0x400454dd
|
||||||
|
TUNSETCARRIER = 0x800454e2
|
||||||
TUNSETDEBUG = 0x800454c9
|
TUNSETDEBUG = 0x800454c9
|
||||||
TUNSETFILTEREBPF = 0x400454e1
|
TUNSETFILTEREBPF = 0x400454e1
|
||||||
TUNSETGROUP = 0x800454ce
|
TUNSETGROUP = 0x800454ce
|
||||||
@@ -2108,6 +2450,23 @@ const (
|
|||||||
TUNSETVNETBE = 0x800454de
|
TUNSETVNETBE = 0x800454de
|
||||||
TUNSETVNETHDRSZ = 0x800454d8
|
TUNSETVNETHDRSZ = 0x800454d8
|
||||||
TUNSETVNETLE = 0x800454dc
|
TUNSETVNETLE = 0x800454dc
|
||||||
|
UBI_IOCATT = 0x80186f40
|
||||||
|
UBI_IOCDET = 0x80046f41
|
||||||
|
UBI_IOCEBCH = 0x80044f02
|
||||||
|
UBI_IOCEBER = 0x80044f01
|
||||||
|
UBI_IOCEBISMAP = 0x40044f05
|
||||||
|
UBI_IOCEBMAP = 0x80084f03
|
||||||
|
UBI_IOCEBUNMAP = 0x80044f04
|
||||||
|
UBI_IOCMKVOL = 0x80986f00
|
||||||
|
UBI_IOCRMVOL = 0x80046f01
|
||||||
|
UBI_IOCRNVOL = 0x91106f03
|
||||||
|
UBI_IOCRPEB = 0x80046f04
|
||||||
|
UBI_IOCRSVOL = 0x800c6f02
|
||||||
|
UBI_IOCSETVOLPROP = 0x80104f06
|
||||||
|
UBI_IOCSPEB = 0x80046f05
|
||||||
|
UBI_IOCVOLCRBLK = 0x80804f07
|
||||||
|
UBI_IOCVOLRMBLK = 0x20004f08
|
||||||
|
UBI_IOCVOLUP = 0x80084f00
|
||||||
UDF_SUPER_MAGIC = 0x15013346
|
UDF_SUPER_MAGIC = 0x15013346
|
||||||
UMOUNT_NOFOLLOW = 0x8
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||||
@@ -2245,7 +2604,29 @@ const (
|
|||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XDP_COPY = 0x2
|
||||||
|
XDP_FLAGS_DRV_MODE = 0x4
|
||||||
|
XDP_FLAGS_HW_MODE = 0x8
|
||||||
|
XDP_FLAGS_MASK = 0xf
|
||||||
|
XDP_FLAGS_MODES = 0xe
|
||||||
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
XDP_RX_RING = 0x2
|
||||||
|
XDP_SHARED_UMEM = 0x1
|
||||||
|
XDP_STATISTICS = 0x7
|
||||||
|
XDP_TX_RING = 0x3
|
||||||
|
XDP_UMEM_COMPLETION_RING = 0x6
|
||||||
|
XDP_UMEM_FILL_RING = 0x5
|
||||||
|
XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
|
||||||
|
XDP_UMEM_PGOFF_FILL_RING = 0x100000000
|
||||||
|
XDP_UMEM_REG = 0x4
|
||||||
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|||||||
397
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
397
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
@@ -41,7 +41,7 @@ const (
|
|||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x2c
|
AF_MAX = 0x2d
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
@@ -64,6 +64,7 @@ const (
|
|||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
AF_XDP = 0x2c
|
||||||
ALG_OP_DECRYPT = 0x0
|
ALG_OP_DECRYPT = 0x0
|
||||||
ALG_OP_ENCRYPT = 0x1
|
ALG_OP_ENCRYPT = 0x1
|
||||||
ALG_SET_AEAD_ASSOCLEN = 0x4
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
@@ -173,6 +174,7 @@ const (
|
|||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
BALLOON_KVM_MAGIC = 0x13661366
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
BDEVFS_MAGIC = 0x62646576
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
||||||
BINFMTFS_MAGIC = 0x42494e4d
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x40081270
|
BLKBSZGET = 0x40081270
|
||||||
BLKBSZSET = 0x80081271
|
BLKBSZSET = 0x80081271
|
||||||
@@ -195,10 +197,59 @@ const (
|
|||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
BPF_ANY = 0x0
|
||||||
|
BPF_ARSH = 0xc0
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
|
BPF_BUILD_ID_SIZE = 0x14
|
||||||
|
BPF_CALL = 0x80
|
||||||
|
BPF_DEVCG_ACC_MKNOD = 0x1
|
||||||
|
BPF_DEVCG_ACC_READ = 0x2
|
||||||
|
BPF_DEVCG_ACC_WRITE = 0x4
|
||||||
|
BPF_DEVCG_DEV_BLOCK = 0x1
|
||||||
|
BPF_DEVCG_DEV_CHAR = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_DW = 0x18
|
||||||
|
BPF_END = 0xd0
|
||||||
|
BPF_EXIST = 0x2
|
||||||
|
BPF_EXIT = 0x90
|
||||||
|
BPF_FROM_BE = 0x8
|
||||||
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_F_DONT_FRAGMENT = 0x4
|
||||||
|
BPF_F_FAST_STACK_CMP = 0x200
|
||||||
|
BPF_F_HDR_FIELD_MASK = 0xf
|
||||||
|
BPF_F_INDEX_MASK = 0xffffffff
|
||||||
|
BPF_F_INGRESS = 0x1
|
||||||
|
BPF_F_INVALIDATE_HASH = 0x2
|
||||||
|
BPF_F_LOCK = 0x4
|
||||||
|
BPF_F_MARK_ENFORCE = 0x40
|
||||||
|
BPF_F_MARK_MANGLED_0 = 0x20
|
||||||
|
BPF_F_NO_COMMON_LRU = 0x2
|
||||||
|
BPF_F_NO_PREALLOC = 0x1
|
||||||
|
BPF_F_NUMA_NODE = 0x4
|
||||||
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
|
BPF_F_USER_STACK = 0x100
|
||||||
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@@ -206,8 +257,16 @@ const (
|
|||||||
BPF_JEQ = 0x10
|
BPF_JEQ = 0x10
|
||||||
BPF_JGE = 0x30
|
BPF_JGE = 0x30
|
||||||
BPF_JGT = 0x20
|
BPF_JGT = 0x20
|
||||||
|
BPF_JLE = 0xb0
|
||||||
|
BPF_JLT = 0xa0
|
||||||
BPF_JMP = 0x5
|
BPF_JMP = 0x5
|
||||||
|
BPF_JMP32 = 0x6
|
||||||
|
BPF_JNE = 0x50
|
||||||
BPF_JSET = 0x40
|
BPF_JSET = 0x40
|
||||||
|
BPF_JSGE = 0x70
|
||||||
|
BPF_JSGT = 0x60
|
||||||
|
BPF_JSLE = 0xd0
|
||||||
|
BPF_JSLT = 0xc0
|
||||||
BPF_K = 0x0
|
BPF_K = 0x0
|
||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
@@ -221,20 +280,33 @@ const (
|
|||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
BPF_MOD = 0x90
|
BPF_MOD = 0x90
|
||||||
|
BPF_MOV = 0xb0
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
BPF_NET_OFF = -0x100000
|
BPF_NET_OFF = -0x100000
|
||||||
|
BPF_NOEXIST = 0x1
|
||||||
|
BPF_OBJ_NAME_LEN = 0x10
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
|
BPF_PSEUDO_CALL = 0x1
|
||||||
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||||
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
BPF_SUB = 0x10
|
BPF_SUB = 0x10
|
||||||
|
BPF_TAG_SIZE = 0x8
|
||||||
BPF_TAX = 0x0
|
BPF_TAX = 0x0
|
||||||
|
BPF_TO_BE = 0x8
|
||||||
|
BPF_TO_LE = 0x0
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XADD = 0xc0
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
@@ -262,6 +334,45 @@ const (
|
|||||||
CAN_SFF_MASK = 0x7ff
|
CAN_SFF_MASK = 0x7ff
|
||||||
CAN_TP16 = 0x3
|
CAN_TP16 = 0x3
|
||||||
CAN_TP20 = 0x4
|
CAN_TP20 = 0x4
|
||||||
|
CAP_AUDIT_CONTROL = 0x1e
|
||||||
|
CAP_AUDIT_READ = 0x25
|
||||||
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_CHOWN = 0x0
|
||||||
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
CAP_FOWNER = 0x3
|
||||||
|
CAP_FSETID = 0x4
|
||||||
|
CAP_IPC_LOCK = 0xe
|
||||||
|
CAP_IPC_OWNER = 0xf
|
||||||
|
CAP_KILL = 0x5
|
||||||
|
CAP_LAST_CAP = 0x25
|
||||||
|
CAP_LEASE = 0x1c
|
||||||
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
CAP_MAC_OVERRIDE = 0x20
|
||||||
|
CAP_MKNOD = 0x1b
|
||||||
|
CAP_NET_ADMIN = 0xc
|
||||||
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
|
CAP_NET_BROADCAST = 0xb
|
||||||
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_SETFCAP = 0x1f
|
||||||
|
CAP_SETGID = 0x6
|
||||||
|
CAP_SETPCAP = 0x8
|
||||||
|
CAP_SETUID = 0x7
|
||||||
|
CAP_SYSLOG = 0x22
|
||||||
|
CAP_SYS_ADMIN = 0x15
|
||||||
|
CAP_SYS_BOOT = 0x16
|
||||||
|
CAP_SYS_CHROOT = 0x12
|
||||||
|
CAP_SYS_MODULE = 0x10
|
||||||
|
CAP_SYS_NICE = 0x17
|
||||||
|
CAP_SYS_PACCT = 0x14
|
||||||
|
CAP_SYS_PTRACE = 0x13
|
||||||
|
CAP_SYS_RAWIO = 0x11
|
||||||
|
CAP_SYS_RESOURCE = 0x18
|
||||||
|
CAP_SYS_TIME = 0x19
|
||||||
|
CAP_SYS_TTY_CONFIG = 0x1a
|
||||||
|
CAP_WAKE_ALARM = 0x23
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@@ -318,6 +429,10 @@ const (
|
|||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
@@ -485,12 +600,67 @@ const (
|
|||||||
FALLOC_FL_PUNCH_HOLE = 0x2
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
FALLOC_FL_UNSHARE_RANGE = 0x40
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
FALLOC_FL_ZERO_RANGE = 0x10
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
|
FANOTIFY_METADATA_VERSION = 0x3
|
||||||
|
FAN_ACCESS = 0x1
|
||||||
|
FAN_ACCESS_PERM = 0x20000
|
||||||
|
FAN_ALLOW = 0x1
|
||||||
|
FAN_ALL_CLASS_BITS = 0xc
|
||||||
|
FAN_ALL_EVENTS = 0x3b
|
||||||
|
FAN_ALL_INIT_FLAGS = 0x3f
|
||||||
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
|
FAN_AUDIT = 0x10
|
||||||
|
FAN_CLASS_CONTENT = 0x4
|
||||||
|
FAN_CLASS_NOTIF = 0x0
|
||||||
|
FAN_CLASS_PRE_CONTENT = 0x8
|
||||||
|
FAN_CLOEXEC = 0x1
|
||||||
|
FAN_CLOSE = 0x18
|
||||||
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
|
FAN_DENY = 0x2
|
||||||
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
|
FAN_MARK_ADD = 0x1
|
||||||
|
FAN_MARK_DONT_FOLLOW = 0x4
|
||||||
|
FAN_MARK_FILESYSTEM = 0x100
|
||||||
|
FAN_MARK_FLUSH = 0x80
|
||||||
|
FAN_MARK_IGNORED_MASK = 0x20
|
||||||
|
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
||||||
|
FAN_MARK_INODE = 0x0
|
||||||
|
FAN_MARK_MOUNT = 0x10
|
||||||
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
|
FAN_MARK_REMOVE = 0x2
|
||||||
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
|
FAN_NOFD = -0x1
|
||||||
|
FAN_NONBLOCK = 0x2
|
||||||
|
FAN_ONDIR = 0x40000000
|
||||||
|
FAN_OPEN = 0x20
|
||||||
|
FAN_OPEN_EXEC = 0x1000
|
||||||
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
|
FAN_OPEN_PERM = 0x10000
|
||||||
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
|
FAN_REPORT_TID = 0x100
|
||||||
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
FF1 = 0x8000
|
FF1 = 0x8000
|
||||||
FFDLY = 0x8000
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x2000
|
FLUSHO = 0x2000
|
||||||
|
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
@@ -498,6 +668,8 @@ const (
|
|||||||
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
FS_ENCRYPTION_MODE_INVALID = 0x0
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
|
||||||
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
||||||
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
||||||
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
||||||
@@ -510,7 +682,7 @@ const (
|
|||||||
FS_POLICY_FLAGS_PAD_4 = 0x0
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x7
|
||||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
@@ -635,7 +807,7 @@ const (
|
|||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x8
|
IFA_MAX = 0xa
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
@@ -703,6 +875,7 @@ const (
|
|||||||
IN_ISDIR = 0x40000000
|
IN_ISDIR = 0x40000000
|
||||||
IN_LOOPBACKNET = 0x7f
|
IN_LOOPBACKNET = 0x7f
|
||||||
IN_MASK_ADD = 0x20000000
|
IN_MASK_ADD = 0x20000000
|
||||||
|
IN_MASK_CREATE = 0x10000000
|
||||||
IN_MODIFY = 0x2
|
IN_MODIFY = 0x2
|
||||||
IN_MOVE = 0xc0
|
IN_MOVE = 0xc0
|
||||||
IN_MOVED_FROM = 0x40
|
IN_MOVED_FROM = 0x40
|
||||||
@@ -762,6 +935,7 @@ const (
|
|||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_FREEBIND = 0x4e
|
||||||
IPV6_HDRINCL = 0x24
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
@@ -773,6 +947,7 @@ const (
|
|||||||
IPV6_MINHOPCOUNT = 0x49
|
IPV6_MINHOPCOUNT = 0x49
|
||||||
IPV6_MTU = 0x18
|
IPV6_MTU = 0x18
|
||||||
IPV6_MTU_DISCOVER = 0x17
|
IPV6_MTU_DISCOVER = 0x17
|
||||||
|
IPV6_MULTICAST_ALL = 0x1d
|
||||||
IPV6_MULTICAST_HOPS = 0x12
|
IPV6_MULTICAST_HOPS = 0x12
|
||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
@@ -874,6 +1049,26 @@ const (
|
|||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
JFFS2_SUPER_MAGIC = 0x72b6
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
|
KEXEC_ARCH_386 = 0x30000
|
||||||
|
KEXEC_ARCH_68K = 0x40000
|
||||||
|
KEXEC_ARCH_AARCH64 = 0xb70000
|
||||||
|
KEXEC_ARCH_ARM = 0x280000
|
||||||
|
KEXEC_ARCH_DEFAULT = 0x0
|
||||||
|
KEXEC_ARCH_IA_64 = 0x320000
|
||||||
|
KEXEC_ARCH_MASK = 0xffff0000
|
||||||
|
KEXEC_ARCH_MIPS = 0x80000
|
||||||
|
KEXEC_ARCH_MIPS_LE = 0xa0000
|
||||||
|
KEXEC_ARCH_PPC = 0x140000
|
||||||
|
KEXEC_ARCH_PPC64 = 0x150000
|
||||||
|
KEXEC_ARCH_S390 = 0x160000
|
||||||
|
KEXEC_ARCH_SH = 0x2a0000
|
||||||
|
KEXEC_ARCH_X86_64 = 0x3e0000
|
||||||
|
KEXEC_FILE_NO_INITRAMFS = 0x4
|
||||||
|
KEXEC_FILE_ON_CRASH = 0x2
|
||||||
|
KEXEC_FILE_UNLOAD = 0x1
|
||||||
|
KEXEC_ON_CRASH = 0x1
|
||||||
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
@@ -888,6 +1083,11 @@ const (
|
|||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
KEYCTL_PKEY_QUERY = 0x18
|
||||||
|
KEYCTL_PKEY_SIGN = 0x1b
|
||||||
|
KEYCTL_PKEY_VERIFY = 0x1c
|
||||||
KEYCTL_READ = 0xb
|
KEYCTL_READ = 0xb
|
||||||
KEYCTL_REJECT = 0x13
|
KEYCTL_REJECT = 0x13
|
||||||
KEYCTL_RESTRICT_KEYRING = 0x1d
|
KEYCTL_RESTRICT_KEYRING = 0x1d
|
||||||
@@ -897,6 +1097,10 @@ const (
|
|||||||
KEYCTL_SETPERM = 0x5
|
KEYCTL_SETPERM = 0x5
|
||||||
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
KEYCTL_SET_TIMEOUT = 0xf
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_SUPPORTS_DECRYPT = 0x2
|
||||||
|
KEYCTL_SUPPORTS_ENCRYPT = 0x1
|
||||||
|
KEYCTL_SUPPORTS_SIGN = 0x4
|
||||||
|
KEYCTL_SUPPORTS_VERIFY = 0x8
|
||||||
KEYCTL_UNLINK = 0x9
|
KEYCTL_UNLINK = 0x9
|
||||||
KEYCTL_UPDATE = 0x2
|
KEYCTL_UPDATE = 0x2
|
||||||
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
@@ -954,6 +1158,7 @@ const (
|
|||||||
MAP_EXECUTABLE = 0x4000
|
MAP_EXECUTABLE = 0x4000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_FIXED_NOREPLACE = 0x100000
|
||||||
MAP_GROWSDOWN = 0x1000
|
MAP_GROWSDOWN = 0x1000
|
||||||
MAP_HUGETLB = 0x80000
|
MAP_HUGETLB = 0x80000
|
||||||
MAP_HUGE_MASK = 0x3f
|
MAP_HUGE_MASK = 0x3f
|
||||||
@@ -965,11 +1170,38 @@ const (
|
|||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_RENAME = 0x800
|
MAP_RENAME = 0x800
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x40000
|
MAP_STACK = 0x40000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
|
MCAST_BLOCK_SOURCE = 0x2b
|
||||||
|
MCAST_EXCLUDE = 0x0
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x2a
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x2e
|
||||||
|
MCAST_LEAVE_GROUP = 0x2d
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x2f
|
||||||
|
MCAST_MSFILTER = 0x30
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x2c
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
|
MFD_ALLOW_SEALING = 0x2
|
||||||
|
MFD_CLOEXEC = 0x1
|
||||||
|
MFD_HUGETLB = 0x4
|
||||||
|
MFD_HUGE_16GB = -0x78000000
|
||||||
|
MFD_HUGE_16MB = 0x60000000
|
||||||
|
MFD_HUGE_1GB = 0x78000000
|
||||||
|
MFD_HUGE_1MB = 0x50000000
|
||||||
|
MFD_HUGE_256MB = 0x70000000
|
||||||
|
MFD_HUGE_2GB = 0x7c000000
|
||||||
|
MFD_HUGE_2MB = 0x54000000
|
||||||
|
MFD_HUGE_32MB = 0x64000000
|
||||||
|
MFD_HUGE_512KB = 0x4c000000
|
||||||
|
MFD_HUGE_512MB = 0x74000000
|
||||||
|
MFD_HUGE_64KB = 0x40000000
|
||||||
|
MFD_HUGE_8MB = 0x5c000000
|
||||||
|
MFD_HUGE_MASK = 0x3f
|
||||||
|
MFD_HUGE_SHIFT = 0x1a
|
||||||
MINIX2_SUPER_MAGIC = 0x2468
|
MINIX2_SUPER_MAGIC = 0x2468
|
||||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||||
@@ -978,6 +1210,8 @@ const (
|
|||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
|
||||||
|
MODULE_INIT_IGNORE_VERMAGIC = 0x2
|
||||||
MSDOS_SUPER_MAGIC = 0x4d44
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
@@ -1054,6 +1288,7 @@ const (
|
|||||||
NETLINK_FIB_LOOKUP = 0xa
|
NETLINK_FIB_LOOKUP = 0xa
|
||||||
NETLINK_FIREWALL = 0x3
|
NETLINK_FIREWALL = 0x3
|
||||||
NETLINK_GENERIC = 0x10
|
NETLINK_GENERIC = 0x10
|
||||||
|
NETLINK_GET_STRICT_CHK = 0xc
|
||||||
NETLINK_INET_DIAG = 0x4
|
NETLINK_INET_DIAG = 0x4
|
||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
@@ -1075,6 +1310,8 @@ const (
|
|||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
|
NETNSA_MAX = 0x5
|
||||||
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||||
@@ -1195,6 +1432,7 @@ const (
|
|||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_IGNORE_OUTGOING = 0x17
|
||||||
PACKET_KERNEL = 0x7
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
@@ -1244,6 +1482,36 @@ const (
|
|||||||
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||||
PIPEFS_MAGIC = 0x50495045
|
PIPEFS_MAGIC = 0x50495045
|
||||||
|
PPPIOCATTACH = 0x8004743d
|
||||||
|
PPPIOCATTCHAN = 0x80047438
|
||||||
|
PPPIOCCONNECT = 0x8004743a
|
||||||
|
PPPIOCDETACH = 0x8004743c
|
||||||
|
PPPIOCDISCONN = 0x20007439
|
||||||
|
PPPIOCGASYNCMAP = 0x40047458
|
||||||
|
PPPIOCGCHAN = 0x40047437
|
||||||
|
PPPIOCGDEBUG = 0x40047441
|
||||||
|
PPPIOCGFLAGS = 0x4004745a
|
||||||
|
PPPIOCGIDLE = 0x4010743f
|
||||||
|
PPPIOCGL2TPSTATS = 0x40487436
|
||||||
|
PPPIOCGMRU = 0x40047453
|
||||||
|
PPPIOCGNPMODE = 0xc008744c
|
||||||
|
PPPIOCGRASYNCMAP = 0x40047455
|
||||||
|
PPPIOCGUNIT = 0x40047456
|
||||||
|
PPPIOCGXASYNCMAP = 0x40207450
|
||||||
|
PPPIOCNEWUNIT = 0xc004743e
|
||||||
|
PPPIOCSACTIVE = 0x80107446
|
||||||
|
PPPIOCSASYNCMAP = 0x80047457
|
||||||
|
PPPIOCSCOMPRESS = 0x8010744d
|
||||||
|
PPPIOCSDEBUG = 0x80047440
|
||||||
|
PPPIOCSFLAGS = 0x80047459
|
||||||
|
PPPIOCSMAXCID = 0x80047451
|
||||||
|
PPPIOCSMRRU = 0x8004743b
|
||||||
|
PPPIOCSMRU = 0x80047452
|
||||||
|
PPPIOCSNPMODE = 0x8008744b
|
||||||
|
PPPIOCSPASS = 0x80107447
|
||||||
|
PPPIOCSRASYNCMAP = 0x80047454
|
||||||
|
PPPIOCSXASYNCMAP = 0x8020744f
|
||||||
|
PPPIOCXFERUNIT = 0x2000744e
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@@ -1306,6 +1574,12 @@ const (
|
|||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
|
PR_PAC_APDAKEY = 0x4
|
||||||
|
PR_PAC_APDBKEY = 0x8
|
||||||
|
PR_PAC_APGAKEY = 0x10
|
||||||
|
PR_PAC_APIAKEY = 0x1
|
||||||
|
PR_PAC_APIBKEY = 0x2
|
||||||
|
PR_PAC_RESET_KEYS = 0x36
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
@@ -1343,8 +1617,10 @@ const (
|
|||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
PR_SPEC_NOT_AFFECTED = 0x0
|
PR_SPEC_NOT_AFFECTED = 0x0
|
||||||
PR_SPEC_PRCTL = 0x1
|
PR_SPEC_PRCTL = 0x1
|
||||||
PR_SPEC_STORE_BYPASS = 0x0
|
PR_SPEC_STORE_BYPASS = 0x0
|
||||||
@@ -1428,6 +1704,9 @@ const (
|
|||||||
RAMFS_MAGIC = 0x858458f6
|
RAMFS_MAGIC = 0x858458f6
|
||||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||||
REISERFS_SUPER_MAGIC = 0x52654973
|
REISERFS_SUPER_MAGIC = 0x52654973
|
||||||
|
RENAME_EXCHANGE = 0x2
|
||||||
|
RENAME_NOREPLACE = 0x1
|
||||||
|
RENAME_WHITEOUT = 0x4
|
||||||
RLIMIT_AS = 0x6
|
RLIMIT_AS = 0x6
|
||||||
RLIMIT_CORE = 0x4
|
RLIMIT_CORE = 0x4
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
@@ -1445,6 +1724,13 @@ const (
|
|||||||
RLIMIT_SIGPENDING = 0xb
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0xffffffffffffffff
|
RLIM_INFINITY = 0xffffffffffffffff
|
||||||
|
RNDADDENTROPY = 0x80085203
|
||||||
|
RNDADDTOENTCNT = 0x80045201
|
||||||
|
RNDCLEARPOOL = 0x20005206
|
||||||
|
RNDGETENTCNT = 0x40045200
|
||||||
|
RNDGETPOOL = 0x40085202
|
||||||
|
RNDRESEEDCRNG = 0x20005207
|
||||||
|
RNDZAPENTCNT = 0x20005204
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
RTAX_CC_ALGO = 0x10
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
@@ -1470,7 +1756,7 @@ const (
|
|||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1a
|
RTA_MAX = 0x1d
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
@@ -1538,6 +1824,7 @@ const (
|
|||||||
RTM_DELACTION = 0x31
|
RTM_DELACTION = 0x31
|
||||||
RTM_DELADDR = 0x15
|
RTM_DELADDR = 0x15
|
||||||
RTM_DELADDRLABEL = 0x49
|
RTM_DELADDRLABEL = 0x49
|
||||||
|
RTM_DELCHAIN = 0x65
|
||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
@@ -1558,6 +1845,7 @@ const (
|
|||||||
RTM_GETADDR = 0x16
|
RTM_GETADDR = 0x16
|
||||||
RTM_GETADDRLABEL = 0x4a
|
RTM_GETADDRLABEL = 0x4a
|
||||||
RTM_GETANYCAST = 0x3e
|
RTM_GETANYCAST = 0x3e
|
||||||
|
RTM_GETCHAIN = 0x66
|
||||||
RTM_GETDCB = 0x4e
|
RTM_GETDCB = 0x4e
|
||||||
RTM_GETLINK = 0x12
|
RTM_GETLINK = 0x12
|
||||||
RTM_GETMDB = 0x56
|
RTM_GETMDB = 0x56
|
||||||
@@ -1572,11 +1860,12 @@ const (
|
|||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x63
|
RTM_MAX = 0x67
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
RTM_NEWCACHEREPORT = 0x60
|
RTM_NEWCACHEREPORT = 0x60
|
||||||
|
RTM_NEWCHAIN = 0x64
|
||||||
RTM_NEWLINK = 0x10
|
RTM_NEWLINK = 0x10
|
||||||
RTM_NEWMDB = 0x54
|
RTM_NEWMDB = 0x54
|
||||||
RTM_NEWNDUSEROPT = 0x44
|
RTM_NEWNDUSEROPT = 0x44
|
||||||
@@ -1591,8 +1880,8 @@ const (
|
|||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x15
|
RTM_NR_FAMILIES = 0x16
|
||||||
RTM_NR_MSGTYPES = 0x54
|
RTM_NR_MSGTYPES = 0x58
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
@@ -1606,17 +1895,22 @@ const (
|
|||||||
RTNH_F_UNRESOLVED = 0x20
|
RTNH_F_UNRESOLVED = 0x20
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
RTPROT_BABEL = 0x2a
|
RTPROT_BABEL = 0x2a
|
||||||
|
RTPROT_BGP = 0xba
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
RTPROT_DNROUTED = 0xd
|
RTPROT_DNROUTED = 0xd
|
||||||
|
RTPROT_EIGRP = 0xc0
|
||||||
RTPROT_GATED = 0x8
|
RTPROT_GATED = 0x8
|
||||||
|
RTPROT_ISIS = 0xbb
|
||||||
RTPROT_KERNEL = 0x2
|
RTPROT_KERNEL = 0x2
|
||||||
RTPROT_MROUTED = 0x11
|
RTPROT_MROUTED = 0x11
|
||||||
RTPROT_MRT = 0xa
|
RTPROT_MRT = 0xa
|
||||||
RTPROT_NTK = 0xf
|
RTPROT_NTK = 0xf
|
||||||
|
RTPROT_OSPF = 0xbc
|
||||||
RTPROT_RA = 0x9
|
RTPROT_RA = 0x9
|
||||||
RTPROT_REDIRECT = 0x1
|
RTPROT_REDIRECT = 0x1
|
||||||
|
RTPROT_RIP = 0xbd
|
||||||
RTPROT_STATIC = 0x4
|
RTPROT_STATIC = 0x4
|
||||||
RTPROT_UNSPEC = 0x0
|
RTPROT_UNSPEC = 0x0
|
||||||
RTPROT_XORP = 0xe
|
RTPROT_XORP = 0xe
|
||||||
@@ -1636,12 +1930,16 @@ const (
|
|||||||
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SC_LOG_FLUSH = 0x100000
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SECURITYFS_MAGIC = 0x73636673
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
SELINUX_MAGIC = 0xf97cff8c
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
|
SFD_CLOEXEC = 0x80000
|
||||||
|
SFD_NONBLOCK = 0x80
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@@ -1692,6 +1990,9 @@ const (
|
|||||||
SIOCGMIIPHY = 0x8947
|
SIOCGMIIPHY = 0x8947
|
||||||
SIOCGMIIREG = 0x8948
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
|
SIOCGPPPCSTATS = 0x89f2
|
||||||
|
SIOCGPPPSTATS = 0x89f0
|
||||||
|
SIOCGPPPVER = 0x89f1
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
@@ -1781,6 +2082,7 @@ const (
|
|||||||
SOL_TIPC = 0x10f
|
SOL_TIPC = 0x10f
|
||||||
SOL_TLS = 0x11a
|
SOL_TLS = 0x11a
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
|
SOL_XDP = 0x11b
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1009
|
SO_ACCEPTCONN = 0x1009
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
@@ -1788,6 +2090,7 @@ const (
|
|||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
@@ -1799,6 +2102,17 @@ const (
|
|||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x1029
|
SO_DOMAIN = 0x1029
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
SO_EE_CODE_TXTIME_MISSED = 0x2
|
||||||
|
SO_EE_CODE_ZEROCOPY_COPIED = 0x1
|
||||||
|
SO_EE_ORIGIN_ICMP = 0x2
|
||||||
|
SO_EE_ORIGIN_ICMP6 = 0x3
|
||||||
|
SO_EE_ORIGIN_LOCAL = 0x1
|
||||||
|
SO_EE_ORIGIN_NONE = 0x0
|
||||||
|
SO_EE_ORIGIN_TIMESTAMPING = 0x4
|
||||||
|
SO_EE_ORIGIN_TXSTATUS = 0x4
|
||||||
|
SO_EE_ORIGIN_TXTIME = 0x6
|
||||||
|
SO_EE_ORIGIN_ZEROCOPY = 0x5
|
||||||
SO_ERROR = 0x1007
|
SO_ERROR = 0x1007
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
SO_INCOMING_CPU = 0x31
|
SO_INCOMING_CPU = 0x31
|
||||||
@@ -1825,6 +2139,8 @@ const (
|
|||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x1004
|
SO_RCVLOWAT = 0x1004
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x1006
|
||||||
SO_REUSEADDR = 0x4
|
SO_REUSEADDR = 0x4
|
||||||
SO_REUSEPORT = 0x200
|
SO_REUSEPORT = 0x200
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
@@ -1836,10 +2152,19 @@ const (
|
|||||||
SO_SNDBUFFORCE = 0x1f
|
SO_SNDBUFFORCE = 0x1f
|
||||||
SO_SNDLOWAT = 0x1003
|
SO_SNDLOWAT = 0x1003
|
||||||
SO_SNDTIMEO = 0x1005
|
SO_SNDTIMEO = 0x1005
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x1005
|
||||||
SO_STYLE = 0x1008
|
SO_STYLE = 0x1008
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
@@ -1877,6 +2202,9 @@ const (
|
|||||||
STATX_TYPE = 0x1
|
STATX_TYPE = 0x1
|
||||||
STATX_UID = 0x8
|
STATX_UID = 0x8
|
||||||
STATX__RESERVED = 0x80000000
|
STATX__RESERVED = 0x80000000
|
||||||
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
@@ -1915,7 +2243,7 @@ const (
|
|||||||
TASKSTATS_GENL_NAME = "TASKSTATS"
|
TASKSTATS_GENL_NAME = "TASKSTATS"
|
||||||
TASKSTATS_GENL_VERSION = 0x1
|
TASKSTATS_GENL_VERSION = 0x1
|
||||||
TASKSTATS_TYPE_MAX = 0x6
|
TASKSTATS_TYPE_MAX = 0x6
|
||||||
TASKSTATS_VERSION = 0x8
|
TASKSTATS_VERSION = 0x9
|
||||||
TCFLSH = 0x5407
|
TCFLSH = 0x5407
|
||||||
TCGETA = 0x5401
|
TCGETA = 0x5401
|
||||||
TCGETS = 0x540d
|
TCGETS = 0x540d
|
||||||
@@ -1927,7 +2255,10 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_BPF_IW = 0x3e9
|
||||||
|
TCP_BPF_SNDCWND_CLAMP = 0x3ea
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
@@ -1939,7 +2270,10 @@ const (
|
|||||||
TCP_DEFER_ACCEPT = 0x9
|
TCP_DEFER_ACCEPT = 0x9
|
||||||
TCP_FASTOPEN = 0x17
|
TCP_FASTOPEN = 0x17
|
||||||
TCP_FASTOPEN_CONNECT = 0x1e
|
TCP_FASTOPEN_CONNECT = 0x1e
|
||||||
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
|
TCP_INQ = 0x24
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
TCP_KEEPINTVL = 0x5
|
TCP_KEEPINTVL = 0x5
|
||||||
@@ -1959,6 +2293,9 @@ const (
|
|||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
|
TCP_REPAIR_OFF = 0x0
|
||||||
|
TCP_REPAIR_OFF_NO_WP = -0x1
|
||||||
|
TCP_REPAIR_ON = 0x1
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
TCP_REPAIR_WINDOW = 0x1d
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
@@ -1973,6 +2310,7 @@ const (
|
|||||||
TCP_ULP = 0x1f
|
TCP_ULP = 0x1f
|
||||||
TCP_USER_TIMEOUT = 0x12
|
TCP_USER_TIMEOUT = 0x12
|
||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
|
TCP_ZEROCOPY_RECEIVE = 0x23
|
||||||
TCSAFLUSH = 0x5410
|
TCSAFLUSH = 0x5410
|
||||||
TCSBRK = 0x5405
|
TCSBRK = 0x5405
|
||||||
TCSBRKP = 0x5486
|
TCSBRKP = 0x5486
|
||||||
@@ -1986,6 +2324,7 @@ const (
|
|||||||
TCSETSW = 0x540f
|
TCSETSW = 0x540f
|
||||||
TCSETSW2 = 0x8030542c
|
TCSETSW2 = 0x8030542c
|
||||||
TCXONC = 0x5406
|
TCXONC = 0x5406
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x80047478
|
TIOCCONS = 0x80047478
|
||||||
TIOCEXCL = 0x740d
|
TIOCEXCL = 0x740d
|
||||||
@@ -1994,6 +2333,7 @@ const (
|
|||||||
TIOCGETP = 0x7408
|
TIOCGETP = 0x7408
|
||||||
TIOCGEXCL = 0x40045440
|
TIOCGEXCL = 0x40045440
|
||||||
TIOCGICOUNT = 0x5492
|
TIOCGICOUNT = 0x5492
|
||||||
|
TIOCGISO7816 = 0x40285442
|
||||||
TIOCGLCKTRMIOS = 0x548b
|
TIOCGLCKTRMIOS = 0x548b
|
||||||
TIOCGLTC = 0x7474
|
TIOCGLTC = 0x7474
|
||||||
TIOCGPGRP = 0x40047477
|
TIOCGPGRP = 0x40047477
|
||||||
@@ -2050,6 +2390,7 @@ const (
|
|||||||
TIOCSETN = 0x740a
|
TIOCSETN = 0x740a
|
||||||
TIOCSETP = 0x7409
|
TIOCSETP = 0x7409
|
||||||
TIOCSIG = 0x80045436
|
TIOCSIG = 0x80045436
|
||||||
|
TIOCSISO7816 = 0xc0285443
|
||||||
TIOCSLCKTRMIOS = 0x548c
|
TIOCSLCKTRMIOS = 0x548c
|
||||||
TIOCSLTC = 0x7475
|
TIOCSLTC = 0x7475
|
||||||
TIOCSPGRP = 0x80047476
|
TIOCSPGRP = 0x80047476
|
||||||
@@ -2091,6 +2432,7 @@ const (
|
|||||||
TUNGETVNETBE = 0x400454df
|
TUNGETVNETBE = 0x400454df
|
||||||
TUNGETVNETHDRSZ = 0x400454d7
|
TUNGETVNETHDRSZ = 0x400454d7
|
||||||
TUNGETVNETLE = 0x400454dd
|
TUNGETVNETLE = 0x400454dd
|
||||||
|
TUNSETCARRIER = 0x800454e2
|
||||||
TUNSETDEBUG = 0x800454c9
|
TUNSETDEBUG = 0x800454c9
|
||||||
TUNSETFILTEREBPF = 0x400454e1
|
TUNSETFILTEREBPF = 0x400454e1
|
||||||
TUNSETGROUP = 0x800454ce
|
TUNSETGROUP = 0x800454ce
|
||||||
@@ -2108,6 +2450,23 @@ const (
|
|||||||
TUNSETVNETBE = 0x800454de
|
TUNSETVNETBE = 0x800454de
|
||||||
TUNSETVNETHDRSZ = 0x800454d8
|
TUNSETVNETHDRSZ = 0x800454d8
|
||||||
TUNSETVNETLE = 0x800454dc
|
TUNSETVNETLE = 0x800454dc
|
||||||
|
UBI_IOCATT = 0x80186f40
|
||||||
|
UBI_IOCDET = 0x80046f41
|
||||||
|
UBI_IOCEBCH = 0x80044f02
|
||||||
|
UBI_IOCEBER = 0x80044f01
|
||||||
|
UBI_IOCEBISMAP = 0x40044f05
|
||||||
|
UBI_IOCEBMAP = 0x80084f03
|
||||||
|
UBI_IOCEBUNMAP = 0x80044f04
|
||||||
|
UBI_IOCMKVOL = 0x80986f00
|
||||||
|
UBI_IOCRMVOL = 0x80046f01
|
||||||
|
UBI_IOCRNVOL = 0x91106f03
|
||||||
|
UBI_IOCRPEB = 0x80046f04
|
||||||
|
UBI_IOCRSVOL = 0x800c6f02
|
||||||
|
UBI_IOCSETVOLPROP = 0x80104f06
|
||||||
|
UBI_IOCSPEB = 0x80046f05
|
||||||
|
UBI_IOCVOLCRBLK = 0x80804f07
|
||||||
|
UBI_IOCVOLRMBLK = 0x20004f08
|
||||||
|
UBI_IOCVOLUP = 0x80084f00
|
||||||
UDF_SUPER_MAGIC = 0x15013346
|
UDF_SUPER_MAGIC = 0x15013346
|
||||||
UMOUNT_NOFOLLOW = 0x8
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||||
@@ -2245,7 +2604,29 @@ const (
|
|||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XDP_COPY = 0x2
|
||||||
|
XDP_FLAGS_DRV_MODE = 0x4
|
||||||
|
XDP_FLAGS_HW_MODE = 0x8
|
||||||
|
XDP_FLAGS_MASK = 0xf
|
||||||
|
XDP_FLAGS_MODES = 0xe
|
||||||
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
XDP_RX_RING = 0x2
|
||||||
|
XDP_SHARED_UMEM = 0x1
|
||||||
|
XDP_STATISTICS = 0x7
|
||||||
|
XDP_TX_RING = 0x3
|
||||||
|
XDP_UMEM_COMPLETION_RING = 0x6
|
||||||
|
XDP_UMEM_FILL_RING = 0x5
|
||||||
|
XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
|
||||||
|
XDP_UMEM_PGOFF_FILL_RING = 0x100000000
|
||||||
|
XDP_UMEM_REG = 0x4
|
||||||
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|||||||
397
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
397
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
@@ -41,7 +41,7 @@ const (
|
|||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x2c
|
AF_MAX = 0x2d
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
@@ -64,6 +64,7 @@ const (
|
|||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
AF_XDP = 0x2c
|
||||||
ALG_OP_DECRYPT = 0x0
|
ALG_OP_DECRYPT = 0x0
|
||||||
ALG_OP_ENCRYPT = 0x1
|
ALG_OP_ENCRYPT = 0x1
|
||||||
ALG_SET_AEAD_ASSOCLEN = 0x4
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
@@ -173,6 +174,7 @@ const (
|
|||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
BALLOON_KVM_MAGIC = 0x13661366
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
BDEVFS_MAGIC = 0x62646576
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
||||||
BINFMTFS_MAGIC = 0x42494e4d
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x40041270
|
BLKBSZGET = 0x40041270
|
||||||
BLKBSZSET = 0x80041271
|
BLKBSZSET = 0x80041271
|
||||||
@@ -195,10 +197,59 @@ const (
|
|||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
BPF_ANY = 0x0
|
||||||
|
BPF_ARSH = 0xc0
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
|
BPF_BUILD_ID_SIZE = 0x14
|
||||||
|
BPF_CALL = 0x80
|
||||||
|
BPF_DEVCG_ACC_MKNOD = 0x1
|
||||||
|
BPF_DEVCG_ACC_READ = 0x2
|
||||||
|
BPF_DEVCG_ACC_WRITE = 0x4
|
||||||
|
BPF_DEVCG_DEV_BLOCK = 0x1
|
||||||
|
BPF_DEVCG_DEV_CHAR = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_DW = 0x18
|
||||||
|
BPF_END = 0xd0
|
||||||
|
BPF_EXIST = 0x2
|
||||||
|
BPF_EXIT = 0x90
|
||||||
|
BPF_FROM_BE = 0x8
|
||||||
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_F_DONT_FRAGMENT = 0x4
|
||||||
|
BPF_F_FAST_STACK_CMP = 0x200
|
||||||
|
BPF_F_HDR_FIELD_MASK = 0xf
|
||||||
|
BPF_F_INDEX_MASK = 0xffffffff
|
||||||
|
BPF_F_INGRESS = 0x1
|
||||||
|
BPF_F_INVALIDATE_HASH = 0x2
|
||||||
|
BPF_F_LOCK = 0x4
|
||||||
|
BPF_F_MARK_ENFORCE = 0x40
|
||||||
|
BPF_F_MARK_MANGLED_0 = 0x20
|
||||||
|
BPF_F_NO_COMMON_LRU = 0x2
|
||||||
|
BPF_F_NO_PREALLOC = 0x1
|
||||||
|
BPF_F_NUMA_NODE = 0x4
|
||||||
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
|
BPF_F_USER_STACK = 0x100
|
||||||
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@@ -206,8 +257,16 @@ const (
|
|||||||
BPF_JEQ = 0x10
|
BPF_JEQ = 0x10
|
||||||
BPF_JGE = 0x30
|
BPF_JGE = 0x30
|
||||||
BPF_JGT = 0x20
|
BPF_JGT = 0x20
|
||||||
|
BPF_JLE = 0xb0
|
||||||
|
BPF_JLT = 0xa0
|
||||||
BPF_JMP = 0x5
|
BPF_JMP = 0x5
|
||||||
|
BPF_JMP32 = 0x6
|
||||||
|
BPF_JNE = 0x50
|
||||||
BPF_JSET = 0x40
|
BPF_JSET = 0x40
|
||||||
|
BPF_JSGE = 0x70
|
||||||
|
BPF_JSGT = 0x60
|
||||||
|
BPF_JSLE = 0xd0
|
||||||
|
BPF_JSLT = 0xc0
|
||||||
BPF_K = 0x0
|
BPF_K = 0x0
|
||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
@@ -221,20 +280,33 @@ const (
|
|||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
BPF_MOD = 0x90
|
BPF_MOD = 0x90
|
||||||
|
BPF_MOV = 0xb0
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
BPF_NET_OFF = -0x100000
|
BPF_NET_OFF = -0x100000
|
||||||
|
BPF_NOEXIST = 0x1
|
||||||
|
BPF_OBJ_NAME_LEN = 0x10
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
|
BPF_PSEUDO_CALL = 0x1
|
||||||
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||||
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
BPF_SUB = 0x10
|
BPF_SUB = 0x10
|
||||||
|
BPF_TAG_SIZE = 0x8
|
||||||
BPF_TAX = 0x0
|
BPF_TAX = 0x0
|
||||||
|
BPF_TO_BE = 0x8
|
||||||
|
BPF_TO_LE = 0x0
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XADD = 0xc0
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
@@ -262,6 +334,45 @@ const (
|
|||||||
CAN_SFF_MASK = 0x7ff
|
CAN_SFF_MASK = 0x7ff
|
||||||
CAN_TP16 = 0x3
|
CAN_TP16 = 0x3
|
||||||
CAN_TP20 = 0x4
|
CAN_TP20 = 0x4
|
||||||
|
CAP_AUDIT_CONTROL = 0x1e
|
||||||
|
CAP_AUDIT_READ = 0x25
|
||||||
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_CHOWN = 0x0
|
||||||
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
CAP_FOWNER = 0x3
|
||||||
|
CAP_FSETID = 0x4
|
||||||
|
CAP_IPC_LOCK = 0xe
|
||||||
|
CAP_IPC_OWNER = 0xf
|
||||||
|
CAP_KILL = 0x5
|
||||||
|
CAP_LAST_CAP = 0x25
|
||||||
|
CAP_LEASE = 0x1c
|
||||||
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
CAP_MAC_OVERRIDE = 0x20
|
||||||
|
CAP_MKNOD = 0x1b
|
||||||
|
CAP_NET_ADMIN = 0xc
|
||||||
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
|
CAP_NET_BROADCAST = 0xb
|
||||||
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_SETFCAP = 0x1f
|
||||||
|
CAP_SETGID = 0x6
|
||||||
|
CAP_SETPCAP = 0x8
|
||||||
|
CAP_SETUID = 0x7
|
||||||
|
CAP_SYSLOG = 0x22
|
||||||
|
CAP_SYS_ADMIN = 0x15
|
||||||
|
CAP_SYS_BOOT = 0x16
|
||||||
|
CAP_SYS_CHROOT = 0x12
|
||||||
|
CAP_SYS_MODULE = 0x10
|
||||||
|
CAP_SYS_NICE = 0x17
|
||||||
|
CAP_SYS_PACCT = 0x14
|
||||||
|
CAP_SYS_PTRACE = 0x13
|
||||||
|
CAP_SYS_RAWIO = 0x11
|
||||||
|
CAP_SYS_RESOURCE = 0x18
|
||||||
|
CAP_SYS_TIME = 0x19
|
||||||
|
CAP_SYS_TTY_CONFIG = 0x1a
|
||||||
|
CAP_WAKE_ALARM = 0x23
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@@ -318,6 +429,10 @@ const (
|
|||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
@@ -485,12 +600,67 @@ const (
|
|||||||
FALLOC_FL_PUNCH_HOLE = 0x2
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
FALLOC_FL_UNSHARE_RANGE = 0x40
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
FALLOC_FL_ZERO_RANGE = 0x10
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
|
FANOTIFY_METADATA_VERSION = 0x3
|
||||||
|
FAN_ACCESS = 0x1
|
||||||
|
FAN_ACCESS_PERM = 0x20000
|
||||||
|
FAN_ALLOW = 0x1
|
||||||
|
FAN_ALL_CLASS_BITS = 0xc
|
||||||
|
FAN_ALL_EVENTS = 0x3b
|
||||||
|
FAN_ALL_INIT_FLAGS = 0x3f
|
||||||
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
|
FAN_AUDIT = 0x10
|
||||||
|
FAN_CLASS_CONTENT = 0x4
|
||||||
|
FAN_CLASS_NOTIF = 0x0
|
||||||
|
FAN_CLASS_PRE_CONTENT = 0x8
|
||||||
|
FAN_CLOEXEC = 0x1
|
||||||
|
FAN_CLOSE = 0x18
|
||||||
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
|
FAN_DENY = 0x2
|
||||||
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
|
FAN_MARK_ADD = 0x1
|
||||||
|
FAN_MARK_DONT_FOLLOW = 0x4
|
||||||
|
FAN_MARK_FILESYSTEM = 0x100
|
||||||
|
FAN_MARK_FLUSH = 0x80
|
||||||
|
FAN_MARK_IGNORED_MASK = 0x20
|
||||||
|
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
||||||
|
FAN_MARK_INODE = 0x0
|
||||||
|
FAN_MARK_MOUNT = 0x10
|
||||||
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
|
FAN_MARK_REMOVE = 0x2
|
||||||
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
|
FAN_NOFD = -0x1
|
||||||
|
FAN_NONBLOCK = 0x2
|
||||||
|
FAN_ONDIR = 0x40000000
|
||||||
|
FAN_OPEN = 0x20
|
||||||
|
FAN_OPEN_EXEC = 0x1000
|
||||||
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
|
FAN_OPEN_PERM = 0x10000
|
||||||
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
|
FAN_REPORT_TID = 0x100
|
||||||
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
FF1 = 0x8000
|
FF1 = 0x8000
|
||||||
FFDLY = 0x8000
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x2000
|
FLUSHO = 0x2000
|
||||||
|
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
@@ -498,6 +668,8 @@ const (
|
|||||||
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
FS_ENCRYPTION_MODE_INVALID = 0x0
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
|
||||||
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
||||||
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
||||||
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
||||||
@@ -510,7 +682,7 @@ const (
|
|||||||
FS_POLICY_FLAGS_PAD_4 = 0x0
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x7
|
||||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
@@ -635,7 +807,7 @@ const (
|
|||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x8
|
IFA_MAX = 0xa
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
@@ -703,6 +875,7 @@ const (
|
|||||||
IN_ISDIR = 0x40000000
|
IN_ISDIR = 0x40000000
|
||||||
IN_LOOPBACKNET = 0x7f
|
IN_LOOPBACKNET = 0x7f
|
||||||
IN_MASK_ADD = 0x20000000
|
IN_MASK_ADD = 0x20000000
|
||||||
|
IN_MASK_CREATE = 0x10000000
|
||||||
IN_MODIFY = 0x2
|
IN_MODIFY = 0x2
|
||||||
IN_MOVE = 0xc0
|
IN_MOVE = 0xc0
|
||||||
IN_MOVED_FROM = 0x40
|
IN_MOVED_FROM = 0x40
|
||||||
@@ -762,6 +935,7 @@ const (
|
|||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_FREEBIND = 0x4e
|
||||||
IPV6_HDRINCL = 0x24
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
@@ -773,6 +947,7 @@ const (
|
|||||||
IPV6_MINHOPCOUNT = 0x49
|
IPV6_MINHOPCOUNT = 0x49
|
||||||
IPV6_MTU = 0x18
|
IPV6_MTU = 0x18
|
||||||
IPV6_MTU_DISCOVER = 0x17
|
IPV6_MTU_DISCOVER = 0x17
|
||||||
|
IPV6_MULTICAST_ALL = 0x1d
|
||||||
IPV6_MULTICAST_HOPS = 0x12
|
IPV6_MULTICAST_HOPS = 0x12
|
||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
@@ -874,6 +1049,26 @@ const (
|
|||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
JFFS2_SUPER_MAGIC = 0x72b6
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
|
KEXEC_ARCH_386 = 0x30000
|
||||||
|
KEXEC_ARCH_68K = 0x40000
|
||||||
|
KEXEC_ARCH_AARCH64 = 0xb70000
|
||||||
|
KEXEC_ARCH_ARM = 0x280000
|
||||||
|
KEXEC_ARCH_DEFAULT = 0x0
|
||||||
|
KEXEC_ARCH_IA_64 = 0x320000
|
||||||
|
KEXEC_ARCH_MASK = 0xffff0000
|
||||||
|
KEXEC_ARCH_MIPS = 0x80000
|
||||||
|
KEXEC_ARCH_MIPS_LE = 0xa0000
|
||||||
|
KEXEC_ARCH_PPC = 0x140000
|
||||||
|
KEXEC_ARCH_PPC64 = 0x150000
|
||||||
|
KEXEC_ARCH_S390 = 0x160000
|
||||||
|
KEXEC_ARCH_SH = 0x2a0000
|
||||||
|
KEXEC_ARCH_X86_64 = 0x3e0000
|
||||||
|
KEXEC_FILE_NO_INITRAMFS = 0x4
|
||||||
|
KEXEC_FILE_ON_CRASH = 0x2
|
||||||
|
KEXEC_FILE_UNLOAD = 0x1
|
||||||
|
KEXEC_ON_CRASH = 0x1
|
||||||
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
@@ -888,6 +1083,11 @@ const (
|
|||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
KEYCTL_PKEY_QUERY = 0x18
|
||||||
|
KEYCTL_PKEY_SIGN = 0x1b
|
||||||
|
KEYCTL_PKEY_VERIFY = 0x1c
|
||||||
KEYCTL_READ = 0xb
|
KEYCTL_READ = 0xb
|
||||||
KEYCTL_REJECT = 0x13
|
KEYCTL_REJECT = 0x13
|
||||||
KEYCTL_RESTRICT_KEYRING = 0x1d
|
KEYCTL_RESTRICT_KEYRING = 0x1d
|
||||||
@@ -897,6 +1097,10 @@ const (
|
|||||||
KEYCTL_SETPERM = 0x5
|
KEYCTL_SETPERM = 0x5
|
||||||
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
KEYCTL_SET_TIMEOUT = 0xf
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_SUPPORTS_DECRYPT = 0x2
|
||||||
|
KEYCTL_SUPPORTS_ENCRYPT = 0x1
|
||||||
|
KEYCTL_SUPPORTS_SIGN = 0x4
|
||||||
|
KEYCTL_SUPPORTS_VERIFY = 0x8
|
||||||
KEYCTL_UNLINK = 0x9
|
KEYCTL_UNLINK = 0x9
|
||||||
KEYCTL_UPDATE = 0x2
|
KEYCTL_UPDATE = 0x2
|
||||||
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
@@ -954,6 +1158,7 @@ const (
|
|||||||
MAP_EXECUTABLE = 0x4000
|
MAP_EXECUTABLE = 0x4000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_FIXED_NOREPLACE = 0x100000
|
||||||
MAP_GROWSDOWN = 0x1000
|
MAP_GROWSDOWN = 0x1000
|
||||||
MAP_HUGETLB = 0x80000
|
MAP_HUGETLB = 0x80000
|
||||||
MAP_HUGE_MASK = 0x3f
|
MAP_HUGE_MASK = 0x3f
|
||||||
@@ -965,11 +1170,38 @@ const (
|
|||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_RENAME = 0x800
|
MAP_RENAME = 0x800
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x40000
|
MAP_STACK = 0x40000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
|
MCAST_BLOCK_SOURCE = 0x2b
|
||||||
|
MCAST_EXCLUDE = 0x0
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x2a
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x2e
|
||||||
|
MCAST_LEAVE_GROUP = 0x2d
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x2f
|
||||||
|
MCAST_MSFILTER = 0x30
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x2c
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
|
MFD_ALLOW_SEALING = 0x2
|
||||||
|
MFD_CLOEXEC = 0x1
|
||||||
|
MFD_HUGETLB = 0x4
|
||||||
|
MFD_HUGE_16GB = -0x78000000
|
||||||
|
MFD_HUGE_16MB = 0x60000000
|
||||||
|
MFD_HUGE_1GB = 0x78000000
|
||||||
|
MFD_HUGE_1MB = 0x50000000
|
||||||
|
MFD_HUGE_256MB = 0x70000000
|
||||||
|
MFD_HUGE_2GB = 0x7c000000
|
||||||
|
MFD_HUGE_2MB = 0x54000000
|
||||||
|
MFD_HUGE_32MB = 0x64000000
|
||||||
|
MFD_HUGE_512KB = 0x4c000000
|
||||||
|
MFD_HUGE_512MB = 0x74000000
|
||||||
|
MFD_HUGE_64KB = 0x40000000
|
||||||
|
MFD_HUGE_8MB = 0x5c000000
|
||||||
|
MFD_HUGE_MASK = 0x3f
|
||||||
|
MFD_HUGE_SHIFT = 0x1a
|
||||||
MINIX2_SUPER_MAGIC = 0x2468
|
MINIX2_SUPER_MAGIC = 0x2468
|
||||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||||
@@ -978,6 +1210,8 @@ const (
|
|||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
|
||||||
|
MODULE_INIT_IGNORE_VERMAGIC = 0x2
|
||||||
MSDOS_SUPER_MAGIC = 0x4d44
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
@@ -1054,6 +1288,7 @@ const (
|
|||||||
NETLINK_FIB_LOOKUP = 0xa
|
NETLINK_FIB_LOOKUP = 0xa
|
||||||
NETLINK_FIREWALL = 0x3
|
NETLINK_FIREWALL = 0x3
|
||||||
NETLINK_GENERIC = 0x10
|
NETLINK_GENERIC = 0x10
|
||||||
|
NETLINK_GET_STRICT_CHK = 0xc
|
||||||
NETLINK_INET_DIAG = 0x4
|
NETLINK_INET_DIAG = 0x4
|
||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
@@ -1075,6 +1310,8 @@ const (
|
|||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
|
NETNSA_MAX = 0x5
|
||||||
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||||
@@ -1195,6 +1432,7 @@ const (
|
|||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_IGNORE_OUTGOING = 0x17
|
||||||
PACKET_KERNEL = 0x7
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
@@ -1244,6 +1482,36 @@ const (
|
|||||||
PERF_EVENT_IOC_SET_FILTER = 0x80042406
|
PERF_EVENT_IOC_SET_FILTER = 0x80042406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||||
PIPEFS_MAGIC = 0x50495045
|
PIPEFS_MAGIC = 0x50495045
|
||||||
|
PPPIOCATTACH = 0x8004743d
|
||||||
|
PPPIOCATTCHAN = 0x80047438
|
||||||
|
PPPIOCCONNECT = 0x8004743a
|
||||||
|
PPPIOCDETACH = 0x8004743c
|
||||||
|
PPPIOCDISCONN = 0x20007439
|
||||||
|
PPPIOCGASYNCMAP = 0x40047458
|
||||||
|
PPPIOCGCHAN = 0x40047437
|
||||||
|
PPPIOCGDEBUG = 0x40047441
|
||||||
|
PPPIOCGFLAGS = 0x4004745a
|
||||||
|
PPPIOCGIDLE = 0x4008743f
|
||||||
|
PPPIOCGL2TPSTATS = 0x40487436
|
||||||
|
PPPIOCGMRU = 0x40047453
|
||||||
|
PPPIOCGNPMODE = 0xc008744c
|
||||||
|
PPPIOCGRASYNCMAP = 0x40047455
|
||||||
|
PPPIOCGUNIT = 0x40047456
|
||||||
|
PPPIOCGXASYNCMAP = 0x40207450
|
||||||
|
PPPIOCNEWUNIT = 0xc004743e
|
||||||
|
PPPIOCSACTIVE = 0x80087446
|
||||||
|
PPPIOCSASYNCMAP = 0x80047457
|
||||||
|
PPPIOCSCOMPRESS = 0x800c744d
|
||||||
|
PPPIOCSDEBUG = 0x80047440
|
||||||
|
PPPIOCSFLAGS = 0x80047459
|
||||||
|
PPPIOCSMAXCID = 0x80047451
|
||||||
|
PPPIOCSMRRU = 0x8004743b
|
||||||
|
PPPIOCSMRU = 0x80047452
|
||||||
|
PPPIOCSNPMODE = 0x8008744b
|
||||||
|
PPPIOCSPASS = 0x80087447
|
||||||
|
PPPIOCSRASYNCMAP = 0x80047454
|
||||||
|
PPPIOCSXASYNCMAP = 0x8020744f
|
||||||
|
PPPIOCXFERUNIT = 0x2000744e
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@@ -1306,6 +1574,12 @@ const (
|
|||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
|
PR_PAC_APDAKEY = 0x4
|
||||||
|
PR_PAC_APDBKEY = 0x8
|
||||||
|
PR_PAC_APGAKEY = 0x10
|
||||||
|
PR_PAC_APIAKEY = 0x1
|
||||||
|
PR_PAC_APIBKEY = 0x2
|
||||||
|
PR_PAC_RESET_KEYS = 0x36
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
@@ -1343,8 +1617,10 @@ const (
|
|||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
PR_SPEC_NOT_AFFECTED = 0x0
|
PR_SPEC_NOT_AFFECTED = 0x0
|
||||||
PR_SPEC_PRCTL = 0x1
|
PR_SPEC_PRCTL = 0x1
|
||||||
PR_SPEC_STORE_BYPASS = 0x0
|
PR_SPEC_STORE_BYPASS = 0x0
|
||||||
@@ -1428,6 +1704,9 @@ const (
|
|||||||
RAMFS_MAGIC = 0x858458f6
|
RAMFS_MAGIC = 0x858458f6
|
||||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||||
REISERFS_SUPER_MAGIC = 0x52654973
|
REISERFS_SUPER_MAGIC = 0x52654973
|
||||||
|
RENAME_EXCHANGE = 0x2
|
||||||
|
RENAME_NOREPLACE = 0x1
|
||||||
|
RENAME_WHITEOUT = 0x4
|
||||||
RLIMIT_AS = 0x6
|
RLIMIT_AS = 0x6
|
||||||
RLIMIT_CORE = 0x4
|
RLIMIT_CORE = 0x4
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
@@ -1445,6 +1724,13 @@ const (
|
|||||||
RLIMIT_SIGPENDING = 0xb
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0xffffffffffffffff
|
RLIM_INFINITY = 0xffffffffffffffff
|
||||||
|
RNDADDENTROPY = 0x80085203
|
||||||
|
RNDADDTOENTCNT = 0x80045201
|
||||||
|
RNDCLEARPOOL = 0x20005206
|
||||||
|
RNDGETENTCNT = 0x40045200
|
||||||
|
RNDGETPOOL = 0x40085202
|
||||||
|
RNDRESEEDCRNG = 0x20005207
|
||||||
|
RNDZAPENTCNT = 0x20005204
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
RTAX_CC_ALGO = 0x10
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
@@ -1470,7 +1756,7 @@ const (
|
|||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1a
|
RTA_MAX = 0x1d
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
@@ -1538,6 +1824,7 @@ const (
|
|||||||
RTM_DELACTION = 0x31
|
RTM_DELACTION = 0x31
|
||||||
RTM_DELADDR = 0x15
|
RTM_DELADDR = 0x15
|
||||||
RTM_DELADDRLABEL = 0x49
|
RTM_DELADDRLABEL = 0x49
|
||||||
|
RTM_DELCHAIN = 0x65
|
||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
@@ -1558,6 +1845,7 @@ const (
|
|||||||
RTM_GETADDR = 0x16
|
RTM_GETADDR = 0x16
|
||||||
RTM_GETADDRLABEL = 0x4a
|
RTM_GETADDRLABEL = 0x4a
|
||||||
RTM_GETANYCAST = 0x3e
|
RTM_GETANYCAST = 0x3e
|
||||||
|
RTM_GETCHAIN = 0x66
|
||||||
RTM_GETDCB = 0x4e
|
RTM_GETDCB = 0x4e
|
||||||
RTM_GETLINK = 0x12
|
RTM_GETLINK = 0x12
|
||||||
RTM_GETMDB = 0x56
|
RTM_GETMDB = 0x56
|
||||||
@@ -1572,11 +1860,12 @@ const (
|
|||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x63
|
RTM_MAX = 0x67
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
RTM_NEWCACHEREPORT = 0x60
|
RTM_NEWCACHEREPORT = 0x60
|
||||||
|
RTM_NEWCHAIN = 0x64
|
||||||
RTM_NEWLINK = 0x10
|
RTM_NEWLINK = 0x10
|
||||||
RTM_NEWMDB = 0x54
|
RTM_NEWMDB = 0x54
|
||||||
RTM_NEWNDUSEROPT = 0x44
|
RTM_NEWNDUSEROPT = 0x44
|
||||||
@@ -1591,8 +1880,8 @@ const (
|
|||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x15
|
RTM_NR_FAMILIES = 0x16
|
||||||
RTM_NR_MSGTYPES = 0x54
|
RTM_NR_MSGTYPES = 0x58
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
@@ -1606,17 +1895,22 @@ const (
|
|||||||
RTNH_F_UNRESOLVED = 0x20
|
RTNH_F_UNRESOLVED = 0x20
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
RTPROT_BABEL = 0x2a
|
RTPROT_BABEL = 0x2a
|
||||||
|
RTPROT_BGP = 0xba
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
RTPROT_DNROUTED = 0xd
|
RTPROT_DNROUTED = 0xd
|
||||||
|
RTPROT_EIGRP = 0xc0
|
||||||
RTPROT_GATED = 0x8
|
RTPROT_GATED = 0x8
|
||||||
|
RTPROT_ISIS = 0xbb
|
||||||
RTPROT_KERNEL = 0x2
|
RTPROT_KERNEL = 0x2
|
||||||
RTPROT_MROUTED = 0x11
|
RTPROT_MROUTED = 0x11
|
||||||
RTPROT_MRT = 0xa
|
RTPROT_MRT = 0xa
|
||||||
RTPROT_NTK = 0xf
|
RTPROT_NTK = 0xf
|
||||||
|
RTPROT_OSPF = 0xbc
|
||||||
RTPROT_RA = 0x9
|
RTPROT_RA = 0x9
|
||||||
RTPROT_REDIRECT = 0x1
|
RTPROT_REDIRECT = 0x1
|
||||||
|
RTPROT_RIP = 0xbd
|
||||||
RTPROT_STATIC = 0x4
|
RTPROT_STATIC = 0x4
|
||||||
RTPROT_UNSPEC = 0x0
|
RTPROT_UNSPEC = 0x0
|
||||||
RTPROT_XORP = 0xe
|
RTPROT_XORP = 0xe
|
||||||
@@ -1636,12 +1930,16 @@ const (
|
|||||||
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SC_LOG_FLUSH = 0x100000
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SECURITYFS_MAGIC = 0x73636673
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
SELINUX_MAGIC = 0xf97cff8c
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
|
SFD_CLOEXEC = 0x80000
|
||||||
|
SFD_NONBLOCK = 0x80
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@@ -1692,6 +1990,9 @@ const (
|
|||||||
SIOCGMIIPHY = 0x8947
|
SIOCGMIIPHY = 0x8947
|
||||||
SIOCGMIIREG = 0x8948
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
|
SIOCGPPPCSTATS = 0x89f2
|
||||||
|
SIOCGPPPSTATS = 0x89f0
|
||||||
|
SIOCGPPPVER = 0x89f1
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
@@ -1781,6 +2082,7 @@ const (
|
|||||||
SOL_TIPC = 0x10f
|
SOL_TIPC = 0x10f
|
||||||
SOL_TLS = 0x11a
|
SOL_TLS = 0x11a
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
|
SOL_XDP = 0x11b
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1009
|
SO_ACCEPTCONN = 0x1009
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
@@ -1788,6 +2090,7 @@ const (
|
|||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
@@ -1799,6 +2102,17 @@ const (
|
|||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x1029
|
SO_DOMAIN = 0x1029
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
SO_EE_CODE_TXTIME_MISSED = 0x2
|
||||||
|
SO_EE_CODE_ZEROCOPY_COPIED = 0x1
|
||||||
|
SO_EE_ORIGIN_ICMP = 0x2
|
||||||
|
SO_EE_ORIGIN_ICMP6 = 0x3
|
||||||
|
SO_EE_ORIGIN_LOCAL = 0x1
|
||||||
|
SO_EE_ORIGIN_NONE = 0x0
|
||||||
|
SO_EE_ORIGIN_TIMESTAMPING = 0x4
|
||||||
|
SO_EE_ORIGIN_TXSTATUS = 0x4
|
||||||
|
SO_EE_ORIGIN_TXTIME = 0x6
|
||||||
|
SO_EE_ORIGIN_ZEROCOPY = 0x5
|
||||||
SO_ERROR = 0x1007
|
SO_ERROR = 0x1007
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
SO_INCOMING_CPU = 0x31
|
SO_INCOMING_CPU = 0x31
|
||||||
@@ -1825,6 +2139,8 @@ const (
|
|||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x1004
|
SO_RCVLOWAT = 0x1004
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x1006
|
||||||
SO_REUSEADDR = 0x4
|
SO_REUSEADDR = 0x4
|
||||||
SO_REUSEPORT = 0x200
|
SO_REUSEPORT = 0x200
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
@@ -1836,10 +2152,19 @@ const (
|
|||||||
SO_SNDBUFFORCE = 0x1f
|
SO_SNDBUFFORCE = 0x1f
|
||||||
SO_SNDLOWAT = 0x1003
|
SO_SNDLOWAT = 0x1003
|
||||||
SO_SNDTIMEO = 0x1005
|
SO_SNDTIMEO = 0x1005
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x1005
|
||||||
SO_STYLE = 0x1008
|
SO_STYLE = 0x1008
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
@@ -1877,6 +2202,9 @@ const (
|
|||||||
STATX_TYPE = 0x1
|
STATX_TYPE = 0x1
|
||||||
STATX_UID = 0x8
|
STATX_UID = 0x8
|
||||||
STATX__RESERVED = 0x80000000
|
STATX__RESERVED = 0x80000000
|
||||||
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
@@ -1915,7 +2243,7 @@ const (
|
|||||||
TASKSTATS_GENL_NAME = "TASKSTATS"
|
TASKSTATS_GENL_NAME = "TASKSTATS"
|
||||||
TASKSTATS_GENL_VERSION = 0x1
|
TASKSTATS_GENL_VERSION = 0x1
|
||||||
TASKSTATS_TYPE_MAX = 0x6
|
TASKSTATS_TYPE_MAX = 0x6
|
||||||
TASKSTATS_VERSION = 0x8
|
TASKSTATS_VERSION = 0x9
|
||||||
TCFLSH = 0x5407
|
TCFLSH = 0x5407
|
||||||
TCGETA = 0x5401
|
TCGETA = 0x5401
|
||||||
TCGETS = 0x540d
|
TCGETS = 0x540d
|
||||||
@@ -1927,7 +2255,10 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_BPF_IW = 0x3e9
|
||||||
|
TCP_BPF_SNDCWND_CLAMP = 0x3ea
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
@@ -1939,7 +2270,10 @@ const (
|
|||||||
TCP_DEFER_ACCEPT = 0x9
|
TCP_DEFER_ACCEPT = 0x9
|
||||||
TCP_FASTOPEN = 0x17
|
TCP_FASTOPEN = 0x17
|
||||||
TCP_FASTOPEN_CONNECT = 0x1e
|
TCP_FASTOPEN_CONNECT = 0x1e
|
||||||
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
|
TCP_INQ = 0x24
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
TCP_KEEPINTVL = 0x5
|
TCP_KEEPINTVL = 0x5
|
||||||
@@ -1959,6 +2293,9 @@ const (
|
|||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
|
TCP_REPAIR_OFF = 0x0
|
||||||
|
TCP_REPAIR_OFF_NO_WP = -0x1
|
||||||
|
TCP_REPAIR_ON = 0x1
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
TCP_REPAIR_WINDOW = 0x1d
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
@@ -1973,6 +2310,7 @@ const (
|
|||||||
TCP_ULP = 0x1f
|
TCP_ULP = 0x1f
|
||||||
TCP_USER_TIMEOUT = 0x12
|
TCP_USER_TIMEOUT = 0x12
|
||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
|
TCP_ZEROCOPY_RECEIVE = 0x23
|
||||||
TCSAFLUSH = 0x5410
|
TCSAFLUSH = 0x5410
|
||||||
TCSBRK = 0x5405
|
TCSBRK = 0x5405
|
||||||
TCSBRKP = 0x5486
|
TCSBRKP = 0x5486
|
||||||
@@ -1986,6 +2324,7 @@ const (
|
|||||||
TCSETSW = 0x540f
|
TCSETSW = 0x540f
|
||||||
TCSETSW2 = 0x8030542c
|
TCSETSW2 = 0x8030542c
|
||||||
TCXONC = 0x5406
|
TCXONC = 0x5406
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x80047478
|
TIOCCONS = 0x80047478
|
||||||
TIOCEXCL = 0x740d
|
TIOCEXCL = 0x740d
|
||||||
@@ -1994,6 +2333,7 @@ const (
|
|||||||
TIOCGETP = 0x7408
|
TIOCGETP = 0x7408
|
||||||
TIOCGEXCL = 0x40045440
|
TIOCGEXCL = 0x40045440
|
||||||
TIOCGICOUNT = 0x5492
|
TIOCGICOUNT = 0x5492
|
||||||
|
TIOCGISO7816 = 0x40285442
|
||||||
TIOCGLCKTRMIOS = 0x548b
|
TIOCGLCKTRMIOS = 0x548b
|
||||||
TIOCGLTC = 0x7474
|
TIOCGLTC = 0x7474
|
||||||
TIOCGPGRP = 0x40047477
|
TIOCGPGRP = 0x40047477
|
||||||
@@ -2050,6 +2390,7 @@ const (
|
|||||||
TIOCSETN = 0x740a
|
TIOCSETN = 0x740a
|
||||||
TIOCSETP = 0x7409
|
TIOCSETP = 0x7409
|
||||||
TIOCSIG = 0x80045436
|
TIOCSIG = 0x80045436
|
||||||
|
TIOCSISO7816 = 0xc0285443
|
||||||
TIOCSLCKTRMIOS = 0x548c
|
TIOCSLCKTRMIOS = 0x548c
|
||||||
TIOCSLTC = 0x7475
|
TIOCSLTC = 0x7475
|
||||||
TIOCSPGRP = 0x80047476
|
TIOCSPGRP = 0x80047476
|
||||||
@@ -2091,6 +2432,7 @@ const (
|
|||||||
TUNGETVNETBE = 0x400454df
|
TUNGETVNETBE = 0x400454df
|
||||||
TUNGETVNETHDRSZ = 0x400454d7
|
TUNGETVNETHDRSZ = 0x400454d7
|
||||||
TUNGETVNETLE = 0x400454dd
|
TUNGETVNETLE = 0x400454dd
|
||||||
|
TUNSETCARRIER = 0x800454e2
|
||||||
TUNSETDEBUG = 0x800454c9
|
TUNSETDEBUG = 0x800454c9
|
||||||
TUNSETFILTEREBPF = 0x400454e1
|
TUNSETFILTEREBPF = 0x400454e1
|
||||||
TUNSETGROUP = 0x800454ce
|
TUNSETGROUP = 0x800454ce
|
||||||
@@ -2108,6 +2450,23 @@ const (
|
|||||||
TUNSETVNETBE = 0x800454de
|
TUNSETVNETBE = 0x800454de
|
||||||
TUNSETVNETHDRSZ = 0x800454d8
|
TUNSETVNETHDRSZ = 0x800454d8
|
||||||
TUNSETVNETLE = 0x800454dc
|
TUNSETVNETLE = 0x800454dc
|
||||||
|
UBI_IOCATT = 0x80186f40
|
||||||
|
UBI_IOCDET = 0x80046f41
|
||||||
|
UBI_IOCEBCH = 0x80044f02
|
||||||
|
UBI_IOCEBER = 0x80044f01
|
||||||
|
UBI_IOCEBISMAP = 0x40044f05
|
||||||
|
UBI_IOCEBMAP = 0x80084f03
|
||||||
|
UBI_IOCEBUNMAP = 0x80044f04
|
||||||
|
UBI_IOCMKVOL = 0x80986f00
|
||||||
|
UBI_IOCRMVOL = 0x80046f01
|
||||||
|
UBI_IOCRNVOL = 0x91106f03
|
||||||
|
UBI_IOCRPEB = 0x80046f04
|
||||||
|
UBI_IOCRSVOL = 0x800c6f02
|
||||||
|
UBI_IOCSETVOLPROP = 0x80104f06
|
||||||
|
UBI_IOCSPEB = 0x80046f05
|
||||||
|
UBI_IOCVOLCRBLK = 0x80804f07
|
||||||
|
UBI_IOCVOLRMBLK = 0x20004f08
|
||||||
|
UBI_IOCVOLUP = 0x80084f00
|
||||||
UDF_SUPER_MAGIC = 0x15013346
|
UDF_SUPER_MAGIC = 0x15013346
|
||||||
UMOUNT_NOFOLLOW = 0x8
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||||
@@ -2245,7 +2604,29 @@ const (
|
|||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XDP_COPY = 0x2
|
||||||
|
XDP_FLAGS_DRV_MODE = 0x4
|
||||||
|
XDP_FLAGS_HW_MODE = 0x8
|
||||||
|
XDP_FLAGS_MASK = 0xf
|
||||||
|
XDP_FLAGS_MODES = 0xe
|
||||||
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
XDP_RX_RING = 0x2
|
||||||
|
XDP_SHARED_UMEM = 0x1
|
||||||
|
XDP_STATISTICS = 0x7
|
||||||
|
XDP_TX_RING = 0x3
|
||||||
|
XDP_UMEM_COMPLETION_RING = 0x6
|
||||||
|
XDP_UMEM_FILL_RING = 0x5
|
||||||
|
XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
|
||||||
|
XDP_UMEM_PGOFF_FILL_RING = 0x100000000
|
||||||
|
XDP_UMEM_REG = 0x4
|
||||||
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|||||||
399
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
399
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
@@ -41,7 +41,7 @@ const (
|
|||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x2c
|
AF_MAX = 0x2d
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
@@ -64,6 +64,7 @@ const (
|
|||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
AF_XDP = 0x2c
|
||||||
ALG_OP_DECRYPT = 0x0
|
ALG_OP_DECRYPT = 0x0
|
||||||
ALG_OP_ENCRYPT = 0x1
|
ALG_OP_ENCRYPT = 0x1
|
||||||
ALG_SET_AEAD_ASSOCLEN = 0x4
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
@@ -173,6 +174,7 @@ const (
|
|||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
BALLOON_KVM_MAGIC = 0x13661366
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
BDEVFS_MAGIC = 0x62646576
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
||||||
BINFMTFS_MAGIC = 0x42494e4d
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x40081270
|
BLKBSZGET = 0x40081270
|
||||||
BLKBSZSET = 0x80081271
|
BLKBSZSET = 0x80081271
|
||||||
@@ -195,10 +197,59 @@ const (
|
|||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
BPF_ANY = 0x0
|
||||||
|
BPF_ARSH = 0xc0
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
|
BPF_BUILD_ID_SIZE = 0x14
|
||||||
|
BPF_CALL = 0x80
|
||||||
|
BPF_DEVCG_ACC_MKNOD = 0x1
|
||||||
|
BPF_DEVCG_ACC_READ = 0x2
|
||||||
|
BPF_DEVCG_ACC_WRITE = 0x4
|
||||||
|
BPF_DEVCG_DEV_BLOCK = 0x1
|
||||||
|
BPF_DEVCG_DEV_CHAR = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_DW = 0x18
|
||||||
|
BPF_END = 0xd0
|
||||||
|
BPF_EXIST = 0x2
|
||||||
|
BPF_EXIT = 0x90
|
||||||
|
BPF_FROM_BE = 0x8
|
||||||
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_F_DONT_FRAGMENT = 0x4
|
||||||
|
BPF_F_FAST_STACK_CMP = 0x200
|
||||||
|
BPF_F_HDR_FIELD_MASK = 0xf
|
||||||
|
BPF_F_INDEX_MASK = 0xffffffff
|
||||||
|
BPF_F_INGRESS = 0x1
|
||||||
|
BPF_F_INVALIDATE_HASH = 0x2
|
||||||
|
BPF_F_LOCK = 0x4
|
||||||
|
BPF_F_MARK_ENFORCE = 0x40
|
||||||
|
BPF_F_MARK_MANGLED_0 = 0x20
|
||||||
|
BPF_F_NO_COMMON_LRU = 0x2
|
||||||
|
BPF_F_NO_PREALLOC = 0x1
|
||||||
|
BPF_F_NUMA_NODE = 0x4
|
||||||
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
|
BPF_F_USER_STACK = 0x100
|
||||||
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@@ -206,8 +257,16 @@ const (
|
|||||||
BPF_JEQ = 0x10
|
BPF_JEQ = 0x10
|
||||||
BPF_JGE = 0x30
|
BPF_JGE = 0x30
|
||||||
BPF_JGT = 0x20
|
BPF_JGT = 0x20
|
||||||
|
BPF_JLE = 0xb0
|
||||||
|
BPF_JLT = 0xa0
|
||||||
BPF_JMP = 0x5
|
BPF_JMP = 0x5
|
||||||
|
BPF_JMP32 = 0x6
|
||||||
|
BPF_JNE = 0x50
|
||||||
BPF_JSET = 0x40
|
BPF_JSET = 0x40
|
||||||
|
BPF_JSGE = 0x70
|
||||||
|
BPF_JSGT = 0x60
|
||||||
|
BPF_JSLE = 0xd0
|
||||||
|
BPF_JSLT = 0xc0
|
||||||
BPF_K = 0x0
|
BPF_K = 0x0
|
||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
@@ -221,20 +280,33 @@ const (
|
|||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
BPF_MOD = 0x90
|
BPF_MOD = 0x90
|
||||||
|
BPF_MOV = 0xb0
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
BPF_NET_OFF = -0x100000
|
BPF_NET_OFF = -0x100000
|
||||||
|
BPF_NOEXIST = 0x1
|
||||||
|
BPF_OBJ_NAME_LEN = 0x10
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
|
BPF_PSEUDO_CALL = 0x1
|
||||||
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||||
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
BPF_SUB = 0x10
|
BPF_SUB = 0x10
|
||||||
|
BPF_TAG_SIZE = 0x8
|
||||||
BPF_TAX = 0x0
|
BPF_TAX = 0x0
|
||||||
|
BPF_TO_BE = 0x8
|
||||||
|
BPF_TO_LE = 0x0
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XADD = 0xc0
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
@@ -262,6 +334,45 @@ const (
|
|||||||
CAN_SFF_MASK = 0x7ff
|
CAN_SFF_MASK = 0x7ff
|
||||||
CAN_TP16 = 0x3
|
CAN_TP16 = 0x3
|
||||||
CAN_TP20 = 0x4
|
CAN_TP20 = 0x4
|
||||||
|
CAP_AUDIT_CONTROL = 0x1e
|
||||||
|
CAP_AUDIT_READ = 0x25
|
||||||
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_CHOWN = 0x0
|
||||||
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
CAP_FOWNER = 0x3
|
||||||
|
CAP_FSETID = 0x4
|
||||||
|
CAP_IPC_LOCK = 0xe
|
||||||
|
CAP_IPC_OWNER = 0xf
|
||||||
|
CAP_KILL = 0x5
|
||||||
|
CAP_LAST_CAP = 0x25
|
||||||
|
CAP_LEASE = 0x1c
|
||||||
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
CAP_MAC_OVERRIDE = 0x20
|
||||||
|
CAP_MKNOD = 0x1b
|
||||||
|
CAP_NET_ADMIN = 0xc
|
||||||
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
|
CAP_NET_BROADCAST = 0xb
|
||||||
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_SETFCAP = 0x1f
|
||||||
|
CAP_SETGID = 0x6
|
||||||
|
CAP_SETPCAP = 0x8
|
||||||
|
CAP_SETUID = 0x7
|
||||||
|
CAP_SYSLOG = 0x22
|
||||||
|
CAP_SYS_ADMIN = 0x15
|
||||||
|
CAP_SYS_BOOT = 0x16
|
||||||
|
CAP_SYS_CHROOT = 0x12
|
||||||
|
CAP_SYS_MODULE = 0x10
|
||||||
|
CAP_SYS_NICE = 0x17
|
||||||
|
CAP_SYS_PACCT = 0x14
|
||||||
|
CAP_SYS_PTRACE = 0x13
|
||||||
|
CAP_SYS_RAWIO = 0x11
|
||||||
|
CAP_SYS_RESOURCE = 0x18
|
||||||
|
CAP_SYS_TIME = 0x19
|
||||||
|
CAP_SYS_TTY_CONFIG = 0x1a
|
||||||
|
CAP_WAKE_ALARM = 0x23
|
||||||
CBAUD = 0xff
|
CBAUD = 0xff
|
||||||
CBAUDEX = 0x0
|
CBAUDEX = 0x0
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@@ -318,6 +429,10 @@ const (
|
|||||||
CRDLY = 0x3000
|
CRDLY = 0x3000
|
||||||
CREAD = 0x800
|
CREAD = 0x800
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x100
|
CS6 = 0x100
|
||||||
CS7 = 0x200
|
CS7 = 0x200
|
||||||
@@ -485,12 +600,67 @@ const (
|
|||||||
FALLOC_FL_PUNCH_HOLE = 0x2
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
FALLOC_FL_UNSHARE_RANGE = 0x40
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
FALLOC_FL_ZERO_RANGE = 0x10
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
|
FANOTIFY_METADATA_VERSION = 0x3
|
||||||
|
FAN_ACCESS = 0x1
|
||||||
|
FAN_ACCESS_PERM = 0x20000
|
||||||
|
FAN_ALLOW = 0x1
|
||||||
|
FAN_ALL_CLASS_BITS = 0xc
|
||||||
|
FAN_ALL_EVENTS = 0x3b
|
||||||
|
FAN_ALL_INIT_FLAGS = 0x3f
|
||||||
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
|
FAN_AUDIT = 0x10
|
||||||
|
FAN_CLASS_CONTENT = 0x4
|
||||||
|
FAN_CLASS_NOTIF = 0x0
|
||||||
|
FAN_CLASS_PRE_CONTENT = 0x8
|
||||||
|
FAN_CLOEXEC = 0x1
|
||||||
|
FAN_CLOSE = 0x18
|
||||||
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
|
FAN_DENY = 0x2
|
||||||
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
|
FAN_MARK_ADD = 0x1
|
||||||
|
FAN_MARK_DONT_FOLLOW = 0x4
|
||||||
|
FAN_MARK_FILESYSTEM = 0x100
|
||||||
|
FAN_MARK_FLUSH = 0x80
|
||||||
|
FAN_MARK_IGNORED_MASK = 0x20
|
||||||
|
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
||||||
|
FAN_MARK_INODE = 0x0
|
||||||
|
FAN_MARK_MOUNT = 0x10
|
||||||
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
|
FAN_MARK_REMOVE = 0x2
|
||||||
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
|
FAN_NOFD = -0x1
|
||||||
|
FAN_NONBLOCK = 0x2
|
||||||
|
FAN_ONDIR = 0x40000000
|
||||||
|
FAN_OPEN = 0x20
|
||||||
|
FAN_OPEN_EXEC = 0x1000
|
||||||
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
|
FAN_OPEN_PERM = 0x10000
|
||||||
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
|
FAN_REPORT_TID = 0x100
|
||||||
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
FF1 = 0x4000
|
FF1 = 0x4000
|
||||||
FFDLY = 0x4000
|
FFDLY = 0x4000
|
||||||
FLUSHO = 0x800000
|
FLUSHO = 0x800000
|
||||||
|
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
@@ -498,6 +668,8 @@ const (
|
|||||||
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
FS_ENCRYPTION_MODE_INVALID = 0x0
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
|
||||||
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
||||||
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
||||||
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
||||||
@@ -510,7 +682,7 @@ const (
|
|||||||
FS_POLICY_FLAGS_PAD_4 = 0x0
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x7
|
||||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
@@ -635,7 +807,7 @@ const (
|
|||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x8
|
IFA_MAX = 0xa
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
@@ -703,6 +875,7 @@ const (
|
|||||||
IN_ISDIR = 0x40000000
|
IN_ISDIR = 0x40000000
|
||||||
IN_LOOPBACKNET = 0x7f
|
IN_LOOPBACKNET = 0x7f
|
||||||
IN_MASK_ADD = 0x20000000
|
IN_MASK_ADD = 0x20000000
|
||||||
|
IN_MASK_CREATE = 0x10000000
|
||||||
IN_MODIFY = 0x2
|
IN_MODIFY = 0x2
|
||||||
IN_MOVE = 0xc0
|
IN_MOVE = 0xc0
|
||||||
IN_MOVED_FROM = 0x40
|
IN_MOVED_FROM = 0x40
|
||||||
@@ -762,6 +935,7 @@ const (
|
|||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_FREEBIND = 0x4e
|
||||||
IPV6_HDRINCL = 0x24
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
@@ -773,6 +947,7 @@ const (
|
|||||||
IPV6_MINHOPCOUNT = 0x49
|
IPV6_MINHOPCOUNT = 0x49
|
||||||
IPV6_MTU = 0x18
|
IPV6_MTU = 0x18
|
||||||
IPV6_MTU_DISCOVER = 0x17
|
IPV6_MTU_DISCOVER = 0x17
|
||||||
|
IPV6_MULTICAST_ALL = 0x1d
|
||||||
IPV6_MULTICAST_HOPS = 0x12
|
IPV6_MULTICAST_HOPS = 0x12
|
||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
@@ -874,6 +1049,26 @@ const (
|
|||||||
IXOFF = 0x400
|
IXOFF = 0x400
|
||||||
IXON = 0x200
|
IXON = 0x200
|
||||||
JFFS2_SUPER_MAGIC = 0x72b6
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
|
KEXEC_ARCH_386 = 0x30000
|
||||||
|
KEXEC_ARCH_68K = 0x40000
|
||||||
|
KEXEC_ARCH_AARCH64 = 0xb70000
|
||||||
|
KEXEC_ARCH_ARM = 0x280000
|
||||||
|
KEXEC_ARCH_DEFAULT = 0x0
|
||||||
|
KEXEC_ARCH_IA_64 = 0x320000
|
||||||
|
KEXEC_ARCH_MASK = 0xffff0000
|
||||||
|
KEXEC_ARCH_MIPS = 0x80000
|
||||||
|
KEXEC_ARCH_MIPS_LE = 0xa0000
|
||||||
|
KEXEC_ARCH_PPC = 0x140000
|
||||||
|
KEXEC_ARCH_PPC64 = 0x150000
|
||||||
|
KEXEC_ARCH_S390 = 0x160000
|
||||||
|
KEXEC_ARCH_SH = 0x2a0000
|
||||||
|
KEXEC_ARCH_X86_64 = 0x3e0000
|
||||||
|
KEXEC_FILE_NO_INITRAMFS = 0x4
|
||||||
|
KEXEC_FILE_ON_CRASH = 0x2
|
||||||
|
KEXEC_FILE_UNLOAD = 0x1
|
||||||
|
KEXEC_ON_CRASH = 0x1
|
||||||
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
@@ -888,6 +1083,11 @@ const (
|
|||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
KEYCTL_PKEY_QUERY = 0x18
|
||||||
|
KEYCTL_PKEY_SIGN = 0x1b
|
||||||
|
KEYCTL_PKEY_VERIFY = 0x1c
|
||||||
KEYCTL_READ = 0xb
|
KEYCTL_READ = 0xb
|
||||||
KEYCTL_REJECT = 0x13
|
KEYCTL_REJECT = 0x13
|
||||||
KEYCTL_RESTRICT_KEYRING = 0x1d
|
KEYCTL_RESTRICT_KEYRING = 0x1d
|
||||||
@@ -897,6 +1097,10 @@ const (
|
|||||||
KEYCTL_SETPERM = 0x5
|
KEYCTL_SETPERM = 0x5
|
||||||
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
KEYCTL_SET_TIMEOUT = 0xf
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_SUPPORTS_DECRYPT = 0x2
|
||||||
|
KEYCTL_SUPPORTS_ENCRYPT = 0x1
|
||||||
|
KEYCTL_SUPPORTS_SIGN = 0x4
|
||||||
|
KEYCTL_SUPPORTS_VERIFY = 0x8
|
||||||
KEYCTL_UNLINK = 0x9
|
KEYCTL_UNLINK = 0x9
|
||||||
KEYCTL_UPDATE = 0x2
|
KEYCTL_UPDATE = 0x2
|
||||||
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
@@ -954,6 +1158,7 @@ const (
|
|||||||
MAP_EXECUTABLE = 0x1000
|
MAP_EXECUTABLE = 0x1000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_FIXED_NOREPLACE = 0x100000
|
||||||
MAP_GROWSDOWN = 0x100
|
MAP_GROWSDOWN = 0x100
|
||||||
MAP_HUGETLB = 0x40000
|
MAP_HUGETLB = 0x40000
|
||||||
MAP_HUGE_MASK = 0x3f
|
MAP_HUGE_MASK = 0x3f
|
||||||
@@ -964,11 +1169,38 @@ const (
|
|||||||
MAP_POPULATE = 0x8000
|
MAP_POPULATE = 0x8000
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x20000
|
MAP_STACK = 0x20000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
|
MCAST_BLOCK_SOURCE = 0x2b
|
||||||
|
MCAST_EXCLUDE = 0x0
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x2a
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x2e
|
||||||
|
MCAST_LEAVE_GROUP = 0x2d
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x2f
|
||||||
|
MCAST_MSFILTER = 0x30
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x2c
|
||||||
MCL_CURRENT = 0x2000
|
MCL_CURRENT = 0x2000
|
||||||
MCL_FUTURE = 0x4000
|
MCL_FUTURE = 0x4000
|
||||||
MCL_ONFAULT = 0x8000
|
MCL_ONFAULT = 0x8000
|
||||||
|
MFD_ALLOW_SEALING = 0x2
|
||||||
|
MFD_CLOEXEC = 0x1
|
||||||
|
MFD_HUGETLB = 0x4
|
||||||
|
MFD_HUGE_16GB = -0x78000000
|
||||||
|
MFD_HUGE_16MB = 0x60000000
|
||||||
|
MFD_HUGE_1GB = 0x78000000
|
||||||
|
MFD_HUGE_1MB = 0x50000000
|
||||||
|
MFD_HUGE_256MB = 0x70000000
|
||||||
|
MFD_HUGE_2GB = 0x7c000000
|
||||||
|
MFD_HUGE_2MB = 0x54000000
|
||||||
|
MFD_HUGE_32MB = 0x64000000
|
||||||
|
MFD_HUGE_512KB = 0x4c000000
|
||||||
|
MFD_HUGE_512MB = 0x74000000
|
||||||
|
MFD_HUGE_64KB = 0x40000000
|
||||||
|
MFD_HUGE_8MB = 0x5c000000
|
||||||
|
MFD_HUGE_MASK = 0x3f
|
||||||
|
MFD_HUGE_SHIFT = 0x1a
|
||||||
MINIX2_SUPER_MAGIC = 0x2468
|
MINIX2_SUPER_MAGIC = 0x2468
|
||||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||||
@@ -977,6 +1209,8 @@ const (
|
|||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
|
||||||
|
MODULE_INIT_IGNORE_VERMAGIC = 0x2
|
||||||
MSDOS_SUPER_MAGIC = 0x4d44
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
@@ -1053,6 +1287,7 @@ const (
|
|||||||
NETLINK_FIB_LOOKUP = 0xa
|
NETLINK_FIB_LOOKUP = 0xa
|
||||||
NETLINK_FIREWALL = 0x3
|
NETLINK_FIREWALL = 0x3
|
||||||
NETLINK_GENERIC = 0x10
|
NETLINK_GENERIC = 0x10
|
||||||
|
NETLINK_GET_STRICT_CHK = 0xc
|
||||||
NETLINK_INET_DIAG = 0x4
|
NETLINK_INET_DIAG = 0x4
|
||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
@@ -1074,6 +1309,8 @@ const (
|
|||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
|
NETNSA_MAX = 0x5
|
||||||
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||||
@@ -1196,6 +1433,7 @@ const (
|
|||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_IGNORE_OUTGOING = 0x17
|
||||||
PACKET_KERNEL = 0x7
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
@@ -1245,6 +1483,36 @@ const (
|
|||||||
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||||
PIPEFS_MAGIC = 0x50495045
|
PIPEFS_MAGIC = 0x50495045
|
||||||
|
PPPIOCATTACH = 0x8004743d
|
||||||
|
PPPIOCATTCHAN = 0x80047438
|
||||||
|
PPPIOCCONNECT = 0x8004743a
|
||||||
|
PPPIOCDETACH = 0x8004743c
|
||||||
|
PPPIOCDISCONN = 0x20007439
|
||||||
|
PPPIOCGASYNCMAP = 0x40047458
|
||||||
|
PPPIOCGCHAN = 0x40047437
|
||||||
|
PPPIOCGDEBUG = 0x40047441
|
||||||
|
PPPIOCGFLAGS = 0x4004745a
|
||||||
|
PPPIOCGIDLE = 0x4010743f
|
||||||
|
PPPIOCGL2TPSTATS = 0x40487436
|
||||||
|
PPPIOCGMRU = 0x40047453
|
||||||
|
PPPIOCGNPMODE = 0xc008744c
|
||||||
|
PPPIOCGRASYNCMAP = 0x40047455
|
||||||
|
PPPIOCGUNIT = 0x40047456
|
||||||
|
PPPIOCGXASYNCMAP = 0x40207450
|
||||||
|
PPPIOCNEWUNIT = 0xc004743e
|
||||||
|
PPPIOCSACTIVE = 0x80107446
|
||||||
|
PPPIOCSASYNCMAP = 0x80047457
|
||||||
|
PPPIOCSCOMPRESS = 0x8010744d
|
||||||
|
PPPIOCSDEBUG = 0x80047440
|
||||||
|
PPPIOCSFLAGS = 0x80047459
|
||||||
|
PPPIOCSMAXCID = 0x80047451
|
||||||
|
PPPIOCSMRRU = 0x8004743b
|
||||||
|
PPPIOCSMRU = 0x80047452
|
||||||
|
PPPIOCSNPMODE = 0x8008744b
|
||||||
|
PPPIOCSPASS = 0x80107447
|
||||||
|
PPPIOCSRASYNCMAP = 0x80047454
|
||||||
|
PPPIOCSXASYNCMAP = 0x8020744f
|
||||||
|
PPPIOCXFERUNIT = 0x2000744e
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@@ -1308,6 +1576,12 @@ const (
|
|||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
|
PR_PAC_APDAKEY = 0x4
|
||||||
|
PR_PAC_APDBKEY = 0x8
|
||||||
|
PR_PAC_APGAKEY = 0x10
|
||||||
|
PR_PAC_APIAKEY = 0x1
|
||||||
|
PR_PAC_APIBKEY = 0x2
|
||||||
|
PR_PAC_RESET_KEYS = 0x36
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
@@ -1345,8 +1619,10 @@ const (
|
|||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
PR_SPEC_NOT_AFFECTED = 0x0
|
PR_SPEC_NOT_AFFECTED = 0x0
|
||||||
PR_SPEC_PRCTL = 0x1
|
PR_SPEC_PRCTL = 0x1
|
||||||
PR_SPEC_STORE_BYPASS = 0x0
|
PR_SPEC_STORE_BYPASS = 0x0
|
||||||
@@ -1425,6 +1701,8 @@ const (
|
|||||||
PTRACE_SINGLEBLOCK = 0x100
|
PTRACE_SINGLEBLOCK = 0x100
|
||||||
PTRACE_SINGLESTEP = 0x9
|
PTRACE_SINGLESTEP = 0x9
|
||||||
PTRACE_SYSCALL = 0x18
|
PTRACE_SYSCALL = 0x18
|
||||||
|
PTRACE_SYSEMU = 0x1d
|
||||||
|
PTRACE_SYSEMU_SINGLESTEP = 0x1e
|
||||||
PTRACE_TRACEME = 0x0
|
PTRACE_TRACEME = 0x0
|
||||||
PT_CCR = 0x26
|
PT_CCR = 0x26
|
||||||
PT_CTR = 0x23
|
PT_CTR = 0x23
|
||||||
@@ -1484,6 +1762,9 @@ const (
|
|||||||
RAMFS_MAGIC = 0x858458f6
|
RAMFS_MAGIC = 0x858458f6
|
||||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||||
REISERFS_SUPER_MAGIC = 0x52654973
|
REISERFS_SUPER_MAGIC = 0x52654973
|
||||||
|
RENAME_EXCHANGE = 0x2
|
||||||
|
RENAME_NOREPLACE = 0x1
|
||||||
|
RENAME_WHITEOUT = 0x4
|
||||||
RLIMIT_AS = 0x9
|
RLIMIT_AS = 0x9
|
||||||
RLIMIT_CORE = 0x4
|
RLIMIT_CORE = 0x4
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
@@ -1501,6 +1782,13 @@ const (
|
|||||||
RLIMIT_SIGPENDING = 0xb
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0xffffffffffffffff
|
RLIM_INFINITY = 0xffffffffffffffff
|
||||||
|
RNDADDENTROPY = 0x80085203
|
||||||
|
RNDADDTOENTCNT = 0x80045201
|
||||||
|
RNDCLEARPOOL = 0x20005206
|
||||||
|
RNDGETENTCNT = 0x40045200
|
||||||
|
RNDGETPOOL = 0x40085202
|
||||||
|
RNDRESEEDCRNG = 0x20005207
|
||||||
|
RNDZAPENTCNT = 0x20005204
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
RTAX_CC_ALGO = 0x10
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
@@ -1526,7 +1814,7 @@ const (
|
|||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1a
|
RTA_MAX = 0x1d
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
@@ -1594,6 +1882,7 @@ const (
|
|||||||
RTM_DELACTION = 0x31
|
RTM_DELACTION = 0x31
|
||||||
RTM_DELADDR = 0x15
|
RTM_DELADDR = 0x15
|
||||||
RTM_DELADDRLABEL = 0x49
|
RTM_DELADDRLABEL = 0x49
|
||||||
|
RTM_DELCHAIN = 0x65
|
||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
@@ -1614,6 +1903,7 @@ const (
|
|||||||
RTM_GETADDR = 0x16
|
RTM_GETADDR = 0x16
|
||||||
RTM_GETADDRLABEL = 0x4a
|
RTM_GETADDRLABEL = 0x4a
|
||||||
RTM_GETANYCAST = 0x3e
|
RTM_GETANYCAST = 0x3e
|
||||||
|
RTM_GETCHAIN = 0x66
|
||||||
RTM_GETDCB = 0x4e
|
RTM_GETDCB = 0x4e
|
||||||
RTM_GETLINK = 0x12
|
RTM_GETLINK = 0x12
|
||||||
RTM_GETMDB = 0x56
|
RTM_GETMDB = 0x56
|
||||||
@@ -1628,11 +1918,12 @@ const (
|
|||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x63
|
RTM_MAX = 0x67
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
RTM_NEWCACHEREPORT = 0x60
|
RTM_NEWCACHEREPORT = 0x60
|
||||||
|
RTM_NEWCHAIN = 0x64
|
||||||
RTM_NEWLINK = 0x10
|
RTM_NEWLINK = 0x10
|
||||||
RTM_NEWMDB = 0x54
|
RTM_NEWMDB = 0x54
|
||||||
RTM_NEWNDUSEROPT = 0x44
|
RTM_NEWNDUSEROPT = 0x44
|
||||||
@@ -1647,8 +1938,8 @@ const (
|
|||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x15
|
RTM_NR_FAMILIES = 0x16
|
||||||
RTM_NR_MSGTYPES = 0x54
|
RTM_NR_MSGTYPES = 0x58
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
@@ -1662,17 +1953,22 @@ const (
|
|||||||
RTNH_F_UNRESOLVED = 0x20
|
RTNH_F_UNRESOLVED = 0x20
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
RTPROT_BABEL = 0x2a
|
RTPROT_BABEL = 0x2a
|
||||||
|
RTPROT_BGP = 0xba
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
RTPROT_DNROUTED = 0xd
|
RTPROT_DNROUTED = 0xd
|
||||||
|
RTPROT_EIGRP = 0xc0
|
||||||
RTPROT_GATED = 0x8
|
RTPROT_GATED = 0x8
|
||||||
|
RTPROT_ISIS = 0xbb
|
||||||
RTPROT_KERNEL = 0x2
|
RTPROT_KERNEL = 0x2
|
||||||
RTPROT_MROUTED = 0x11
|
RTPROT_MROUTED = 0x11
|
||||||
RTPROT_MRT = 0xa
|
RTPROT_MRT = 0xa
|
||||||
RTPROT_NTK = 0xf
|
RTPROT_NTK = 0xf
|
||||||
|
RTPROT_OSPF = 0xbc
|
||||||
RTPROT_RA = 0x9
|
RTPROT_RA = 0x9
|
||||||
RTPROT_REDIRECT = 0x1
|
RTPROT_REDIRECT = 0x1
|
||||||
|
RTPROT_RIP = 0xbd
|
||||||
RTPROT_STATIC = 0x4
|
RTPROT_STATIC = 0x4
|
||||||
RTPROT_UNSPEC = 0x0
|
RTPROT_UNSPEC = 0x0
|
||||||
RTPROT_XORP = 0xe
|
RTPROT_XORP = 0xe
|
||||||
@@ -1692,12 +1988,16 @@ const (
|
|||||||
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SC_LOG_FLUSH = 0x100000
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SECURITYFS_MAGIC = 0x73636673
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
SELINUX_MAGIC = 0xf97cff8c
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
|
SFD_CLOEXEC = 0x80000
|
||||||
|
SFD_NONBLOCK = 0x800
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@@ -1748,6 +2048,9 @@ const (
|
|||||||
SIOCGMIIPHY = 0x8947
|
SIOCGMIIPHY = 0x8947
|
||||||
SIOCGMIIREG = 0x8948
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
|
SIOCGPPPCSTATS = 0x89f2
|
||||||
|
SIOCGPPPSTATS = 0x89f0
|
||||||
|
SIOCGPPPVER = 0x89f1
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
@@ -1837,6 +2140,7 @@ const (
|
|||||||
SOL_TIPC = 0x10f
|
SOL_TIPC = 0x10f
|
||||||
SOL_TLS = 0x11a
|
SOL_TLS = 0x11a
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
|
SOL_XDP = 0x11b
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1e
|
SO_ACCEPTCONN = 0x1e
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
@@ -1844,6 +2148,7 @@ const (
|
|||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
@@ -1855,6 +2160,17 @@ const (
|
|||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
SO_EE_CODE_TXTIME_MISSED = 0x2
|
||||||
|
SO_EE_CODE_ZEROCOPY_COPIED = 0x1
|
||||||
|
SO_EE_ORIGIN_ICMP = 0x2
|
||||||
|
SO_EE_ORIGIN_ICMP6 = 0x3
|
||||||
|
SO_EE_ORIGIN_LOCAL = 0x1
|
||||||
|
SO_EE_ORIGIN_NONE = 0x0
|
||||||
|
SO_EE_ORIGIN_TIMESTAMPING = 0x4
|
||||||
|
SO_EE_ORIGIN_TXSTATUS = 0x4
|
||||||
|
SO_EE_ORIGIN_TXTIME = 0x6
|
||||||
|
SO_EE_ORIGIN_ZEROCOPY = 0x5
|
||||||
SO_ERROR = 0x4
|
SO_ERROR = 0x4
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
SO_INCOMING_CPU = 0x31
|
SO_INCOMING_CPU = 0x31
|
||||||
@@ -1881,6 +2197,8 @@ const (
|
|||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x10
|
SO_RCVLOWAT = 0x10
|
||||||
SO_RCVTIMEO = 0x12
|
SO_RCVTIMEO = 0x12
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x12
|
||||||
SO_REUSEADDR = 0x2
|
SO_REUSEADDR = 0x2
|
||||||
SO_REUSEPORT = 0xf
|
SO_REUSEPORT = 0xf
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
@@ -1892,9 +2210,18 @@ const (
|
|||||||
SO_SNDBUFFORCE = 0x20
|
SO_SNDBUFFORCE = 0x20
|
||||||
SO_SNDLOWAT = 0x11
|
SO_SNDLOWAT = 0x11
|
||||||
SO_SNDTIMEO = 0x13
|
SO_SNDTIMEO = 0x13
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x13
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
@@ -1932,6 +2259,9 @@ const (
|
|||||||
STATX_TYPE = 0x1
|
STATX_TYPE = 0x1
|
||||||
STATX_UID = 0x8
|
STATX_UID = 0x8
|
||||||
STATX__RESERVED = 0x80000000
|
STATX__RESERVED = 0x80000000
|
||||||
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
@@ -1970,7 +2300,7 @@ const (
|
|||||||
TASKSTATS_GENL_NAME = "TASKSTATS"
|
TASKSTATS_GENL_NAME = "TASKSTATS"
|
||||||
TASKSTATS_GENL_VERSION = 0x1
|
TASKSTATS_GENL_VERSION = 0x1
|
||||||
TASKSTATS_TYPE_MAX = 0x6
|
TASKSTATS_TYPE_MAX = 0x6
|
||||||
TASKSTATS_VERSION = 0x8
|
TASKSTATS_VERSION = 0x9
|
||||||
TCFLSH = 0x2000741f
|
TCFLSH = 0x2000741f
|
||||||
TCGETA = 0x40147417
|
TCGETA = 0x40147417
|
||||||
TCGETS = 0x402c7413
|
TCGETS = 0x402c7413
|
||||||
@@ -1981,7 +2311,10 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_BPF_IW = 0x3e9
|
||||||
|
TCP_BPF_SNDCWND_CLAMP = 0x3ea
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
@@ -1993,7 +2326,10 @@ const (
|
|||||||
TCP_DEFER_ACCEPT = 0x9
|
TCP_DEFER_ACCEPT = 0x9
|
||||||
TCP_FASTOPEN = 0x17
|
TCP_FASTOPEN = 0x17
|
||||||
TCP_FASTOPEN_CONNECT = 0x1e
|
TCP_FASTOPEN_CONNECT = 0x1e
|
||||||
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
|
TCP_INQ = 0x24
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
TCP_KEEPINTVL = 0x5
|
TCP_KEEPINTVL = 0x5
|
||||||
@@ -2013,6 +2349,9 @@ const (
|
|||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
|
TCP_REPAIR_OFF = 0x0
|
||||||
|
TCP_REPAIR_OFF_NO_WP = -0x1
|
||||||
|
TCP_REPAIR_ON = 0x1
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
TCP_REPAIR_WINDOW = 0x1d
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
@@ -2027,6 +2366,7 @@ const (
|
|||||||
TCP_ULP = 0x1f
|
TCP_ULP = 0x1f
|
||||||
TCP_USER_TIMEOUT = 0x12
|
TCP_USER_TIMEOUT = 0x12
|
||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
|
TCP_ZEROCOPY_RECEIVE = 0x23
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
TCSBRK = 0x2000741d
|
TCSBRK = 0x2000741d
|
||||||
TCSBRKP = 0x5425
|
TCSBRKP = 0x5425
|
||||||
@@ -2037,6 +2377,7 @@ const (
|
|||||||
TCSETSF = 0x802c7416
|
TCSETSF = 0x802c7416
|
||||||
TCSETSW = 0x802c7415
|
TCSETSW = 0x802c7415
|
||||||
TCXONC = 0x2000741e
|
TCXONC = 0x2000741e
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x541d
|
TIOCCONS = 0x541d
|
||||||
TIOCEXCL = 0x540c
|
TIOCEXCL = 0x540c
|
||||||
@@ -2046,6 +2387,7 @@ const (
|
|||||||
TIOCGETP = 0x40067408
|
TIOCGETP = 0x40067408
|
||||||
TIOCGEXCL = 0x40045440
|
TIOCGEXCL = 0x40045440
|
||||||
TIOCGICOUNT = 0x545d
|
TIOCGICOUNT = 0x545d
|
||||||
|
TIOCGISO7816 = 0x40285442
|
||||||
TIOCGLCKTRMIOS = 0x5456
|
TIOCGLCKTRMIOS = 0x5456
|
||||||
TIOCGLTC = 0x40067474
|
TIOCGLTC = 0x40067474
|
||||||
TIOCGPGRP = 0x40047477
|
TIOCGPGRP = 0x40047477
|
||||||
@@ -2106,6 +2448,7 @@ const (
|
|||||||
TIOCSETN = 0x8006740a
|
TIOCSETN = 0x8006740a
|
||||||
TIOCSETP = 0x80067409
|
TIOCSETP = 0x80067409
|
||||||
TIOCSIG = 0x80045436
|
TIOCSIG = 0x80045436
|
||||||
|
TIOCSISO7816 = 0xc0285443
|
||||||
TIOCSLCKTRMIOS = 0x5457
|
TIOCSLCKTRMIOS = 0x5457
|
||||||
TIOCSLTC = 0x80067475
|
TIOCSLTC = 0x80067475
|
||||||
TIOCSPGRP = 0x80047476
|
TIOCSPGRP = 0x80047476
|
||||||
@@ -2149,6 +2492,7 @@ const (
|
|||||||
TUNGETVNETBE = 0x400454df
|
TUNGETVNETBE = 0x400454df
|
||||||
TUNGETVNETHDRSZ = 0x400454d7
|
TUNGETVNETHDRSZ = 0x400454d7
|
||||||
TUNGETVNETLE = 0x400454dd
|
TUNGETVNETLE = 0x400454dd
|
||||||
|
TUNSETCARRIER = 0x800454e2
|
||||||
TUNSETDEBUG = 0x800454c9
|
TUNSETDEBUG = 0x800454c9
|
||||||
TUNSETFILTEREBPF = 0x400454e1
|
TUNSETFILTEREBPF = 0x400454e1
|
||||||
TUNSETGROUP = 0x800454ce
|
TUNSETGROUP = 0x800454ce
|
||||||
@@ -2166,6 +2510,23 @@ const (
|
|||||||
TUNSETVNETBE = 0x800454de
|
TUNSETVNETBE = 0x800454de
|
||||||
TUNSETVNETHDRSZ = 0x800454d8
|
TUNSETVNETHDRSZ = 0x800454d8
|
||||||
TUNSETVNETLE = 0x800454dc
|
TUNSETVNETLE = 0x800454dc
|
||||||
|
UBI_IOCATT = 0x80186f40
|
||||||
|
UBI_IOCDET = 0x80046f41
|
||||||
|
UBI_IOCEBCH = 0x80044f02
|
||||||
|
UBI_IOCEBER = 0x80044f01
|
||||||
|
UBI_IOCEBISMAP = 0x40044f05
|
||||||
|
UBI_IOCEBMAP = 0x80084f03
|
||||||
|
UBI_IOCEBUNMAP = 0x80044f04
|
||||||
|
UBI_IOCMKVOL = 0x80986f00
|
||||||
|
UBI_IOCRMVOL = 0x80046f01
|
||||||
|
UBI_IOCRNVOL = 0x91106f03
|
||||||
|
UBI_IOCRPEB = 0x80046f04
|
||||||
|
UBI_IOCRSVOL = 0x800c6f02
|
||||||
|
UBI_IOCSETVOLPROP = 0x80104f06
|
||||||
|
UBI_IOCSPEB = 0x80046f05
|
||||||
|
UBI_IOCVOLCRBLK = 0x80804f07
|
||||||
|
UBI_IOCVOLRMBLK = 0x20004f08
|
||||||
|
UBI_IOCVOLUP = 0x80084f00
|
||||||
UDF_SUPER_MAGIC = 0x15013346
|
UDF_SUPER_MAGIC = 0x15013346
|
||||||
UMOUNT_NOFOLLOW = 0x8
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||||
@@ -2302,7 +2663,29 @@ const (
|
|||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4000
|
XCASE = 0x4000
|
||||||
|
XDP_COPY = 0x2
|
||||||
|
XDP_FLAGS_DRV_MODE = 0x4
|
||||||
|
XDP_FLAGS_HW_MODE = 0x8
|
||||||
|
XDP_FLAGS_MASK = 0xf
|
||||||
|
XDP_FLAGS_MODES = 0xe
|
||||||
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
XDP_RX_RING = 0x2
|
||||||
|
XDP_SHARED_UMEM = 0x1
|
||||||
|
XDP_STATISTICS = 0x7
|
||||||
|
XDP_TX_RING = 0x3
|
||||||
|
XDP_UMEM_COMPLETION_RING = 0x6
|
||||||
|
XDP_UMEM_FILL_RING = 0x5
|
||||||
|
XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
|
||||||
|
XDP_UMEM_PGOFF_FILL_RING = 0x100000000
|
||||||
|
XDP_UMEM_REG = 0x4
|
||||||
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0xc00
|
XTABS = 0xc00
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|||||||
399
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
399
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
@@ -41,7 +41,7 @@ const (
|
|||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x2c
|
AF_MAX = 0x2d
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
@@ -64,6 +64,7 @@ const (
|
|||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
AF_XDP = 0x2c
|
||||||
ALG_OP_DECRYPT = 0x0
|
ALG_OP_DECRYPT = 0x0
|
||||||
ALG_OP_ENCRYPT = 0x1
|
ALG_OP_ENCRYPT = 0x1
|
||||||
ALG_SET_AEAD_ASSOCLEN = 0x4
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
@@ -173,6 +174,7 @@ const (
|
|||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
BALLOON_KVM_MAGIC = 0x13661366
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
BDEVFS_MAGIC = 0x62646576
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
||||||
BINFMTFS_MAGIC = 0x42494e4d
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x40081270
|
BLKBSZGET = 0x40081270
|
||||||
BLKBSZSET = 0x80081271
|
BLKBSZSET = 0x80081271
|
||||||
@@ -195,10 +197,59 @@ const (
|
|||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
BPF_ANY = 0x0
|
||||||
|
BPF_ARSH = 0xc0
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
|
BPF_BUILD_ID_SIZE = 0x14
|
||||||
|
BPF_CALL = 0x80
|
||||||
|
BPF_DEVCG_ACC_MKNOD = 0x1
|
||||||
|
BPF_DEVCG_ACC_READ = 0x2
|
||||||
|
BPF_DEVCG_ACC_WRITE = 0x4
|
||||||
|
BPF_DEVCG_DEV_BLOCK = 0x1
|
||||||
|
BPF_DEVCG_DEV_CHAR = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_DW = 0x18
|
||||||
|
BPF_END = 0xd0
|
||||||
|
BPF_EXIST = 0x2
|
||||||
|
BPF_EXIT = 0x90
|
||||||
|
BPF_FROM_BE = 0x8
|
||||||
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_F_DONT_FRAGMENT = 0x4
|
||||||
|
BPF_F_FAST_STACK_CMP = 0x200
|
||||||
|
BPF_F_HDR_FIELD_MASK = 0xf
|
||||||
|
BPF_F_INDEX_MASK = 0xffffffff
|
||||||
|
BPF_F_INGRESS = 0x1
|
||||||
|
BPF_F_INVALIDATE_HASH = 0x2
|
||||||
|
BPF_F_LOCK = 0x4
|
||||||
|
BPF_F_MARK_ENFORCE = 0x40
|
||||||
|
BPF_F_MARK_MANGLED_0 = 0x20
|
||||||
|
BPF_F_NO_COMMON_LRU = 0x2
|
||||||
|
BPF_F_NO_PREALLOC = 0x1
|
||||||
|
BPF_F_NUMA_NODE = 0x4
|
||||||
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
|
BPF_F_USER_STACK = 0x100
|
||||||
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@@ -206,8 +257,16 @@ const (
|
|||||||
BPF_JEQ = 0x10
|
BPF_JEQ = 0x10
|
||||||
BPF_JGE = 0x30
|
BPF_JGE = 0x30
|
||||||
BPF_JGT = 0x20
|
BPF_JGT = 0x20
|
||||||
|
BPF_JLE = 0xb0
|
||||||
|
BPF_JLT = 0xa0
|
||||||
BPF_JMP = 0x5
|
BPF_JMP = 0x5
|
||||||
|
BPF_JMP32 = 0x6
|
||||||
|
BPF_JNE = 0x50
|
||||||
BPF_JSET = 0x40
|
BPF_JSET = 0x40
|
||||||
|
BPF_JSGE = 0x70
|
||||||
|
BPF_JSGT = 0x60
|
||||||
|
BPF_JSLE = 0xd0
|
||||||
|
BPF_JSLT = 0xc0
|
||||||
BPF_K = 0x0
|
BPF_K = 0x0
|
||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
@@ -221,20 +280,33 @@ const (
|
|||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
BPF_MOD = 0x90
|
BPF_MOD = 0x90
|
||||||
|
BPF_MOV = 0xb0
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
BPF_NET_OFF = -0x100000
|
BPF_NET_OFF = -0x100000
|
||||||
|
BPF_NOEXIST = 0x1
|
||||||
|
BPF_OBJ_NAME_LEN = 0x10
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
|
BPF_PSEUDO_CALL = 0x1
|
||||||
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||||
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
BPF_SUB = 0x10
|
BPF_SUB = 0x10
|
||||||
|
BPF_TAG_SIZE = 0x8
|
||||||
BPF_TAX = 0x0
|
BPF_TAX = 0x0
|
||||||
|
BPF_TO_BE = 0x8
|
||||||
|
BPF_TO_LE = 0x0
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XADD = 0xc0
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
@@ -262,6 +334,45 @@ const (
|
|||||||
CAN_SFF_MASK = 0x7ff
|
CAN_SFF_MASK = 0x7ff
|
||||||
CAN_TP16 = 0x3
|
CAN_TP16 = 0x3
|
||||||
CAN_TP20 = 0x4
|
CAN_TP20 = 0x4
|
||||||
|
CAP_AUDIT_CONTROL = 0x1e
|
||||||
|
CAP_AUDIT_READ = 0x25
|
||||||
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_CHOWN = 0x0
|
||||||
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
CAP_FOWNER = 0x3
|
||||||
|
CAP_FSETID = 0x4
|
||||||
|
CAP_IPC_LOCK = 0xe
|
||||||
|
CAP_IPC_OWNER = 0xf
|
||||||
|
CAP_KILL = 0x5
|
||||||
|
CAP_LAST_CAP = 0x25
|
||||||
|
CAP_LEASE = 0x1c
|
||||||
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
CAP_MAC_OVERRIDE = 0x20
|
||||||
|
CAP_MKNOD = 0x1b
|
||||||
|
CAP_NET_ADMIN = 0xc
|
||||||
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
|
CAP_NET_BROADCAST = 0xb
|
||||||
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_SETFCAP = 0x1f
|
||||||
|
CAP_SETGID = 0x6
|
||||||
|
CAP_SETPCAP = 0x8
|
||||||
|
CAP_SETUID = 0x7
|
||||||
|
CAP_SYSLOG = 0x22
|
||||||
|
CAP_SYS_ADMIN = 0x15
|
||||||
|
CAP_SYS_BOOT = 0x16
|
||||||
|
CAP_SYS_CHROOT = 0x12
|
||||||
|
CAP_SYS_MODULE = 0x10
|
||||||
|
CAP_SYS_NICE = 0x17
|
||||||
|
CAP_SYS_PACCT = 0x14
|
||||||
|
CAP_SYS_PTRACE = 0x13
|
||||||
|
CAP_SYS_RAWIO = 0x11
|
||||||
|
CAP_SYS_RESOURCE = 0x18
|
||||||
|
CAP_SYS_TIME = 0x19
|
||||||
|
CAP_SYS_TTY_CONFIG = 0x1a
|
||||||
|
CAP_WAKE_ALARM = 0x23
|
||||||
CBAUD = 0xff
|
CBAUD = 0xff
|
||||||
CBAUDEX = 0x0
|
CBAUDEX = 0x0
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@@ -318,6 +429,10 @@ const (
|
|||||||
CRDLY = 0x3000
|
CRDLY = 0x3000
|
||||||
CREAD = 0x800
|
CREAD = 0x800
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x100
|
CS6 = 0x100
|
||||||
CS7 = 0x200
|
CS7 = 0x200
|
||||||
@@ -485,12 +600,67 @@ const (
|
|||||||
FALLOC_FL_PUNCH_HOLE = 0x2
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
FALLOC_FL_UNSHARE_RANGE = 0x40
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
FALLOC_FL_ZERO_RANGE = 0x10
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
|
FANOTIFY_METADATA_VERSION = 0x3
|
||||||
|
FAN_ACCESS = 0x1
|
||||||
|
FAN_ACCESS_PERM = 0x20000
|
||||||
|
FAN_ALLOW = 0x1
|
||||||
|
FAN_ALL_CLASS_BITS = 0xc
|
||||||
|
FAN_ALL_EVENTS = 0x3b
|
||||||
|
FAN_ALL_INIT_FLAGS = 0x3f
|
||||||
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
|
FAN_AUDIT = 0x10
|
||||||
|
FAN_CLASS_CONTENT = 0x4
|
||||||
|
FAN_CLASS_NOTIF = 0x0
|
||||||
|
FAN_CLASS_PRE_CONTENT = 0x8
|
||||||
|
FAN_CLOEXEC = 0x1
|
||||||
|
FAN_CLOSE = 0x18
|
||||||
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
|
FAN_DENY = 0x2
|
||||||
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
|
FAN_MARK_ADD = 0x1
|
||||||
|
FAN_MARK_DONT_FOLLOW = 0x4
|
||||||
|
FAN_MARK_FILESYSTEM = 0x100
|
||||||
|
FAN_MARK_FLUSH = 0x80
|
||||||
|
FAN_MARK_IGNORED_MASK = 0x20
|
||||||
|
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
||||||
|
FAN_MARK_INODE = 0x0
|
||||||
|
FAN_MARK_MOUNT = 0x10
|
||||||
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
|
FAN_MARK_REMOVE = 0x2
|
||||||
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
|
FAN_NOFD = -0x1
|
||||||
|
FAN_NONBLOCK = 0x2
|
||||||
|
FAN_ONDIR = 0x40000000
|
||||||
|
FAN_OPEN = 0x20
|
||||||
|
FAN_OPEN_EXEC = 0x1000
|
||||||
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
|
FAN_OPEN_PERM = 0x10000
|
||||||
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
|
FAN_REPORT_TID = 0x100
|
||||||
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
FF1 = 0x4000
|
FF1 = 0x4000
|
||||||
FFDLY = 0x4000
|
FFDLY = 0x4000
|
||||||
FLUSHO = 0x800000
|
FLUSHO = 0x800000
|
||||||
|
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
@@ -498,6 +668,8 @@ const (
|
|||||||
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
FS_ENCRYPTION_MODE_INVALID = 0x0
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
|
||||||
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
||||||
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
||||||
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
||||||
@@ -510,7 +682,7 @@ const (
|
|||||||
FS_POLICY_FLAGS_PAD_4 = 0x0
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x7
|
||||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
@@ -635,7 +807,7 @@ const (
|
|||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x8
|
IFA_MAX = 0xa
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
@@ -703,6 +875,7 @@ const (
|
|||||||
IN_ISDIR = 0x40000000
|
IN_ISDIR = 0x40000000
|
||||||
IN_LOOPBACKNET = 0x7f
|
IN_LOOPBACKNET = 0x7f
|
||||||
IN_MASK_ADD = 0x20000000
|
IN_MASK_ADD = 0x20000000
|
||||||
|
IN_MASK_CREATE = 0x10000000
|
||||||
IN_MODIFY = 0x2
|
IN_MODIFY = 0x2
|
||||||
IN_MOVE = 0xc0
|
IN_MOVE = 0xc0
|
||||||
IN_MOVED_FROM = 0x40
|
IN_MOVED_FROM = 0x40
|
||||||
@@ -762,6 +935,7 @@ const (
|
|||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_FREEBIND = 0x4e
|
||||||
IPV6_HDRINCL = 0x24
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
@@ -773,6 +947,7 @@ const (
|
|||||||
IPV6_MINHOPCOUNT = 0x49
|
IPV6_MINHOPCOUNT = 0x49
|
||||||
IPV6_MTU = 0x18
|
IPV6_MTU = 0x18
|
||||||
IPV6_MTU_DISCOVER = 0x17
|
IPV6_MTU_DISCOVER = 0x17
|
||||||
|
IPV6_MULTICAST_ALL = 0x1d
|
||||||
IPV6_MULTICAST_HOPS = 0x12
|
IPV6_MULTICAST_HOPS = 0x12
|
||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
@@ -874,6 +1049,26 @@ const (
|
|||||||
IXOFF = 0x400
|
IXOFF = 0x400
|
||||||
IXON = 0x200
|
IXON = 0x200
|
||||||
JFFS2_SUPER_MAGIC = 0x72b6
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
|
KEXEC_ARCH_386 = 0x30000
|
||||||
|
KEXEC_ARCH_68K = 0x40000
|
||||||
|
KEXEC_ARCH_AARCH64 = 0xb70000
|
||||||
|
KEXEC_ARCH_ARM = 0x280000
|
||||||
|
KEXEC_ARCH_DEFAULT = 0x0
|
||||||
|
KEXEC_ARCH_IA_64 = 0x320000
|
||||||
|
KEXEC_ARCH_MASK = 0xffff0000
|
||||||
|
KEXEC_ARCH_MIPS = 0x80000
|
||||||
|
KEXEC_ARCH_MIPS_LE = 0xa0000
|
||||||
|
KEXEC_ARCH_PPC = 0x140000
|
||||||
|
KEXEC_ARCH_PPC64 = 0x150000
|
||||||
|
KEXEC_ARCH_S390 = 0x160000
|
||||||
|
KEXEC_ARCH_SH = 0x2a0000
|
||||||
|
KEXEC_ARCH_X86_64 = 0x3e0000
|
||||||
|
KEXEC_FILE_NO_INITRAMFS = 0x4
|
||||||
|
KEXEC_FILE_ON_CRASH = 0x2
|
||||||
|
KEXEC_FILE_UNLOAD = 0x1
|
||||||
|
KEXEC_ON_CRASH = 0x1
|
||||||
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
@@ -888,6 +1083,11 @@ const (
|
|||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
KEYCTL_PKEY_QUERY = 0x18
|
||||||
|
KEYCTL_PKEY_SIGN = 0x1b
|
||||||
|
KEYCTL_PKEY_VERIFY = 0x1c
|
||||||
KEYCTL_READ = 0xb
|
KEYCTL_READ = 0xb
|
||||||
KEYCTL_REJECT = 0x13
|
KEYCTL_REJECT = 0x13
|
||||||
KEYCTL_RESTRICT_KEYRING = 0x1d
|
KEYCTL_RESTRICT_KEYRING = 0x1d
|
||||||
@@ -897,6 +1097,10 @@ const (
|
|||||||
KEYCTL_SETPERM = 0x5
|
KEYCTL_SETPERM = 0x5
|
||||||
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
KEYCTL_SET_TIMEOUT = 0xf
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_SUPPORTS_DECRYPT = 0x2
|
||||||
|
KEYCTL_SUPPORTS_ENCRYPT = 0x1
|
||||||
|
KEYCTL_SUPPORTS_SIGN = 0x4
|
||||||
|
KEYCTL_SUPPORTS_VERIFY = 0x8
|
||||||
KEYCTL_UNLINK = 0x9
|
KEYCTL_UNLINK = 0x9
|
||||||
KEYCTL_UPDATE = 0x2
|
KEYCTL_UPDATE = 0x2
|
||||||
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
@@ -954,6 +1158,7 @@ const (
|
|||||||
MAP_EXECUTABLE = 0x1000
|
MAP_EXECUTABLE = 0x1000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_FIXED_NOREPLACE = 0x100000
|
||||||
MAP_GROWSDOWN = 0x100
|
MAP_GROWSDOWN = 0x100
|
||||||
MAP_HUGETLB = 0x40000
|
MAP_HUGETLB = 0x40000
|
||||||
MAP_HUGE_MASK = 0x3f
|
MAP_HUGE_MASK = 0x3f
|
||||||
@@ -964,11 +1169,38 @@ const (
|
|||||||
MAP_POPULATE = 0x8000
|
MAP_POPULATE = 0x8000
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x20000
|
MAP_STACK = 0x20000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
|
MCAST_BLOCK_SOURCE = 0x2b
|
||||||
|
MCAST_EXCLUDE = 0x0
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x2a
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x2e
|
||||||
|
MCAST_LEAVE_GROUP = 0x2d
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x2f
|
||||||
|
MCAST_MSFILTER = 0x30
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x2c
|
||||||
MCL_CURRENT = 0x2000
|
MCL_CURRENT = 0x2000
|
||||||
MCL_FUTURE = 0x4000
|
MCL_FUTURE = 0x4000
|
||||||
MCL_ONFAULT = 0x8000
|
MCL_ONFAULT = 0x8000
|
||||||
|
MFD_ALLOW_SEALING = 0x2
|
||||||
|
MFD_CLOEXEC = 0x1
|
||||||
|
MFD_HUGETLB = 0x4
|
||||||
|
MFD_HUGE_16GB = -0x78000000
|
||||||
|
MFD_HUGE_16MB = 0x60000000
|
||||||
|
MFD_HUGE_1GB = 0x78000000
|
||||||
|
MFD_HUGE_1MB = 0x50000000
|
||||||
|
MFD_HUGE_256MB = 0x70000000
|
||||||
|
MFD_HUGE_2GB = 0x7c000000
|
||||||
|
MFD_HUGE_2MB = 0x54000000
|
||||||
|
MFD_HUGE_32MB = 0x64000000
|
||||||
|
MFD_HUGE_512KB = 0x4c000000
|
||||||
|
MFD_HUGE_512MB = 0x74000000
|
||||||
|
MFD_HUGE_64KB = 0x40000000
|
||||||
|
MFD_HUGE_8MB = 0x5c000000
|
||||||
|
MFD_HUGE_MASK = 0x3f
|
||||||
|
MFD_HUGE_SHIFT = 0x1a
|
||||||
MINIX2_SUPER_MAGIC = 0x2468
|
MINIX2_SUPER_MAGIC = 0x2468
|
||||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||||
@@ -977,6 +1209,8 @@ const (
|
|||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
|
||||||
|
MODULE_INIT_IGNORE_VERMAGIC = 0x2
|
||||||
MSDOS_SUPER_MAGIC = 0x4d44
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
@@ -1053,6 +1287,7 @@ const (
|
|||||||
NETLINK_FIB_LOOKUP = 0xa
|
NETLINK_FIB_LOOKUP = 0xa
|
||||||
NETLINK_FIREWALL = 0x3
|
NETLINK_FIREWALL = 0x3
|
||||||
NETLINK_GENERIC = 0x10
|
NETLINK_GENERIC = 0x10
|
||||||
|
NETLINK_GET_STRICT_CHK = 0xc
|
||||||
NETLINK_INET_DIAG = 0x4
|
NETLINK_INET_DIAG = 0x4
|
||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
@@ -1074,6 +1309,8 @@ const (
|
|||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
|
NETNSA_MAX = 0x5
|
||||||
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||||
@@ -1196,6 +1433,7 @@ const (
|
|||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_IGNORE_OUTGOING = 0x17
|
||||||
PACKET_KERNEL = 0x7
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
@@ -1245,6 +1483,36 @@ const (
|
|||||||
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||||
PIPEFS_MAGIC = 0x50495045
|
PIPEFS_MAGIC = 0x50495045
|
||||||
|
PPPIOCATTACH = 0x8004743d
|
||||||
|
PPPIOCATTCHAN = 0x80047438
|
||||||
|
PPPIOCCONNECT = 0x8004743a
|
||||||
|
PPPIOCDETACH = 0x8004743c
|
||||||
|
PPPIOCDISCONN = 0x20007439
|
||||||
|
PPPIOCGASYNCMAP = 0x40047458
|
||||||
|
PPPIOCGCHAN = 0x40047437
|
||||||
|
PPPIOCGDEBUG = 0x40047441
|
||||||
|
PPPIOCGFLAGS = 0x4004745a
|
||||||
|
PPPIOCGIDLE = 0x4010743f
|
||||||
|
PPPIOCGL2TPSTATS = 0x40487436
|
||||||
|
PPPIOCGMRU = 0x40047453
|
||||||
|
PPPIOCGNPMODE = 0xc008744c
|
||||||
|
PPPIOCGRASYNCMAP = 0x40047455
|
||||||
|
PPPIOCGUNIT = 0x40047456
|
||||||
|
PPPIOCGXASYNCMAP = 0x40207450
|
||||||
|
PPPIOCNEWUNIT = 0xc004743e
|
||||||
|
PPPIOCSACTIVE = 0x80107446
|
||||||
|
PPPIOCSASYNCMAP = 0x80047457
|
||||||
|
PPPIOCSCOMPRESS = 0x8010744d
|
||||||
|
PPPIOCSDEBUG = 0x80047440
|
||||||
|
PPPIOCSFLAGS = 0x80047459
|
||||||
|
PPPIOCSMAXCID = 0x80047451
|
||||||
|
PPPIOCSMRRU = 0x8004743b
|
||||||
|
PPPIOCSMRU = 0x80047452
|
||||||
|
PPPIOCSNPMODE = 0x8008744b
|
||||||
|
PPPIOCSPASS = 0x80107447
|
||||||
|
PPPIOCSRASYNCMAP = 0x80047454
|
||||||
|
PPPIOCSXASYNCMAP = 0x8020744f
|
||||||
|
PPPIOCXFERUNIT = 0x2000744e
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@@ -1308,6 +1576,12 @@ const (
|
|||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
|
PR_PAC_APDAKEY = 0x4
|
||||||
|
PR_PAC_APDBKEY = 0x8
|
||||||
|
PR_PAC_APGAKEY = 0x10
|
||||||
|
PR_PAC_APIAKEY = 0x1
|
||||||
|
PR_PAC_APIBKEY = 0x2
|
||||||
|
PR_PAC_RESET_KEYS = 0x36
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
@@ -1345,8 +1619,10 @@ const (
|
|||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
PR_SPEC_NOT_AFFECTED = 0x0
|
PR_SPEC_NOT_AFFECTED = 0x0
|
||||||
PR_SPEC_PRCTL = 0x1
|
PR_SPEC_PRCTL = 0x1
|
||||||
PR_SPEC_STORE_BYPASS = 0x0
|
PR_SPEC_STORE_BYPASS = 0x0
|
||||||
@@ -1425,6 +1701,8 @@ const (
|
|||||||
PTRACE_SINGLEBLOCK = 0x100
|
PTRACE_SINGLEBLOCK = 0x100
|
||||||
PTRACE_SINGLESTEP = 0x9
|
PTRACE_SINGLESTEP = 0x9
|
||||||
PTRACE_SYSCALL = 0x18
|
PTRACE_SYSCALL = 0x18
|
||||||
|
PTRACE_SYSEMU = 0x1d
|
||||||
|
PTRACE_SYSEMU_SINGLESTEP = 0x1e
|
||||||
PTRACE_TRACEME = 0x0
|
PTRACE_TRACEME = 0x0
|
||||||
PT_CCR = 0x26
|
PT_CCR = 0x26
|
||||||
PT_CTR = 0x23
|
PT_CTR = 0x23
|
||||||
@@ -1484,6 +1762,9 @@ const (
|
|||||||
RAMFS_MAGIC = 0x858458f6
|
RAMFS_MAGIC = 0x858458f6
|
||||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||||
REISERFS_SUPER_MAGIC = 0x52654973
|
REISERFS_SUPER_MAGIC = 0x52654973
|
||||||
|
RENAME_EXCHANGE = 0x2
|
||||||
|
RENAME_NOREPLACE = 0x1
|
||||||
|
RENAME_WHITEOUT = 0x4
|
||||||
RLIMIT_AS = 0x9
|
RLIMIT_AS = 0x9
|
||||||
RLIMIT_CORE = 0x4
|
RLIMIT_CORE = 0x4
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
@@ -1501,6 +1782,13 @@ const (
|
|||||||
RLIMIT_SIGPENDING = 0xb
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0xffffffffffffffff
|
RLIM_INFINITY = 0xffffffffffffffff
|
||||||
|
RNDADDENTROPY = 0x80085203
|
||||||
|
RNDADDTOENTCNT = 0x80045201
|
||||||
|
RNDCLEARPOOL = 0x20005206
|
||||||
|
RNDGETENTCNT = 0x40045200
|
||||||
|
RNDGETPOOL = 0x40085202
|
||||||
|
RNDRESEEDCRNG = 0x20005207
|
||||||
|
RNDZAPENTCNT = 0x20005204
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
RTAX_CC_ALGO = 0x10
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
@@ -1526,7 +1814,7 @@ const (
|
|||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1a
|
RTA_MAX = 0x1d
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
@@ -1594,6 +1882,7 @@ const (
|
|||||||
RTM_DELACTION = 0x31
|
RTM_DELACTION = 0x31
|
||||||
RTM_DELADDR = 0x15
|
RTM_DELADDR = 0x15
|
||||||
RTM_DELADDRLABEL = 0x49
|
RTM_DELADDRLABEL = 0x49
|
||||||
|
RTM_DELCHAIN = 0x65
|
||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
@@ -1614,6 +1903,7 @@ const (
|
|||||||
RTM_GETADDR = 0x16
|
RTM_GETADDR = 0x16
|
||||||
RTM_GETADDRLABEL = 0x4a
|
RTM_GETADDRLABEL = 0x4a
|
||||||
RTM_GETANYCAST = 0x3e
|
RTM_GETANYCAST = 0x3e
|
||||||
|
RTM_GETCHAIN = 0x66
|
||||||
RTM_GETDCB = 0x4e
|
RTM_GETDCB = 0x4e
|
||||||
RTM_GETLINK = 0x12
|
RTM_GETLINK = 0x12
|
||||||
RTM_GETMDB = 0x56
|
RTM_GETMDB = 0x56
|
||||||
@@ -1628,11 +1918,12 @@ const (
|
|||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x63
|
RTM_MAX = 0x67
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
RTM_NEWCACHEREPORT = 0x60
|
RTM_NEWCACHEREPORT = 0x60
|
||||||
|
RTM_NEWCHAIN = 0x64
|
||||||
RTM_NEWLINK = 0x10
|
RTM_NEWLINK = 0x10
|
||||||
RTM_NEWMDB = 0x54
|
RTM_NEWMDB = 0x54
|
||||||
RTM_NEWNDUSEROPT = 0x44
|
RTM_NEWNDUSEROPT = 0x44
|
||||||
@@ -1647,8 +1938,8 @@ const (
|
|||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x15
|
RTM_NR_FAMILIES = 0x16
|
||||||
RTM_NR_MSGTYPES = 0x54
|
RTM_NR_MSGTYPES = 0x58
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
@@ -1662,17 +1953,22 @@ const (
|
|||||||
RTNH_F_UNRESOLVED = 0x20
|
RTNH_F_UNRESOLVED = 0x20
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
RTPROT_BABEL = 0x2a
|
RTPROT_BABEL = 0x2a
|
||||||
|
RTPROT_BGP = 0xba
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
RTPROT_DNROUTED = 0xd
|
RTPROT_DNROUTED = 0xd
|
||||||
|
RTPROT_EIGRP = 0xc0
|
||||||
RTPROT_GATED = 0x8
|
RTPROT_GATED = 0x8
|
||||||
|
RTPROT_ISIS = 0xbb
|
||||||
RTPROT_KERNEL = 0x2
|
RTPROT_KERNEL = 0x2
|
||||||
RTPROT_MROUTED = 0x11
|
RTPROT_MROUTED = 0x11
|
||||||
RTPROT_MRT = 0xa
|
RTPROT_MRT = 0xa
|
||||||
RTPROT_NTK = 0xf
|
RTPROT_NTK = 0xf
|
||||||
|
RTPROT_OSPF = 0xbc
|
||||||
RTPROT_RA = 0x9
|
RTPROT_RA = 0x9
|
||||||
RTPROT_REDIRECT = 0x1
|
RTPROT_REDIRECT = 0x1
|
||||||
|
RTPROT_RIP = 0xbd
|
||||||
RTPROT_STATIC = 0x4
|
RTPROT_STATIC = 0x4
|
||||||
RTPROT_UNSPEC = 0x0
|
RTPROT_UNSPEC = 0x0
|
||||||
RTPROT_XORP = 0xe
|
RTPROT_XORP = 0xe
|
||||||
@@ -1692,12 +1988,16 @@ const (
|
|||||||
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SC_LOG_FLUSH = 0x100000
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SECURITYFS_MAGIC = 0x73636673
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
SELINUX_MAGIC = 0xf97cff8c
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
|
SFD_CLOEXEC = 0x80000
|
||||||
|
SFD_NONBLOCK = 0x800
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@@ -1748,6 +2048,9 @@ const (
|
|||||||
SIOCGMIIPHY = 0x8947
|
SIOCGMIIPHY = 0x8947
|
||||||
SIOCGMIIREG = 0x8948
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
|
SIOCGPPPCSTATS = 0x89f2
|
||||||
|
SIOCGPPPSTATS = 0x89f0
|
||||||
|
SIOCGPPPVER = 0x89f1
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
@@ -1837,6 +2140,7 @@ const (
|
|||||||
SOL_TIPC = 0x10f
|
SOL_TIPC = 0x10f
|
||||||
SOL_TLS = 0x11a
|
SOL_TLS = 0x11a
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
|
SOL_XDP = 0x11b
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1e
|
SO_ACCEPTCONN = 0x1e
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
@@ -1844,6 +2148,7 @@ const (
|
|||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
@@ -1855,6 +2160,17 @@ const (
|
|||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
SO_EE_CODE_TXTIME_MISSED = 0x2
|
||||||
|
SO_EE_CODE_ZEROCOPY_COPIED = 0x1
|
||||||
|
SO_EE_ORIGIN_ICMP = 0x2
|
||||||
|
SO_EE_ORIGIN_ICMP6 = 0x3
|
||||||
|
SO_EE_ORIGIN_LOCAL = 0x1
|
||||||
|
SO_EE_ORIGIN_NONE = 0x0
|
||||||
|
SO_EE_ORIGIN_TIMESTAMPING = 0x4
|
||||||
|
SO_EE_ORIGIN_TXSTATUS = 0x4
|
||||||
|
SO_EE_ORIGIN_TXTIME = 0x6
|
||||||
|
SO_EE_ORIGIN_ZEROCOPY = 0x5
|
||||||
SO_ERROR = 0x4
|
SO_ERROR = 0x4
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
SO_INCOMING_CPU = 0x31
|
SO_INCOMING_CPU = 0x31
|
||||||
@@ -1881,6 +2197,8 @@ const (
|
|||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x10
|
SO_RCVLOWAT = 0x10
|
||||||
SO_RCVTIMEO = 0x12
|
SO_RCVTIMEO = 0x12
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x12
|
||||||
SO_REUSEADDR = 0x2
|
SO_REUSEADDR = 0x2
|
||||||
SO_REUSEPORT = 0xf
|
SO_REUSEPORT = 0xf
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
@@ -1892,9 +2210,18 @@ const (
|
|||||||
SO_SNDBUFFORCE = 0x20
|
SO_SNDBUFFORCE = 0x20
|
||||||
SO_SNDLOWAT = 0x11
|
SO_SNDLOWAT = 0x11
|
||||||
SO_SNDTIMEO = 0x13
|
SO_SNDTIMEO = 0x13
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x13
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
@@ -1932,6 +2259,9 @@ const (
|
|||||||
STATX_TYPE = 0x1
|
STATX_TYPE = 0x1
|
||||||
STATX_UID = 0x8
|
STATX_UID = 0x8
|
||||||
STATX__RESERVED = 0x80000000
|
STATX__RESERVED = 0x80000000
|
||||||
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
@@ -1970,7 +2300,7 @@ const (
|
|||||||
TASKSTATS_GENL_NAME = "TASKSTATS"
|
TASKSTATS_GENL_NAME = "TASKSTATS"
|
||||||
TASKSTATS_GENL_VERSION = 0x1
|
TASKSTATS_GENL_VERSION = 0x1
|
||||||
TASKSTATS_TYPE_MAX = 0x6
|
TASKSTATS_TYPE_MAX = 0x6
|
||||||
TASKSTATS_VERSION = 0x8
|
TASKSTATS_VERSION = 0x9
|
||||||
TCFLSH = 0x2000741f
|
TCFLSH = 0x2000741f
|
||||||
TCGETA = 0x40147417
|
TCGETA = 0x40147417
|
||||||
TCGETS = 0x402c7413
|
TCGETS = 0x402c7413
|
||||||
@@ -1981,7 +2311,10 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_BPF_IW = 0x3e9
|
||||||
|
TCP_BPF_SNDCWND_CLAMP = 0x3ea
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
@@ -1993,7 +2326,10 @@ const (
|
|||||||
TCP_DEFER_ACCEPT = 0x9
|
TCP_DEFER_ACCEPT = 0x9
|
||||||
TCP_FASTOPEN = 0x17
|
TCP_FASTOPEN = 0x17
|
||||||
TCP_FASTOPEN_CONNECT = 0x1e
|
TCP_FASTOPEN_CONNECT = 0x1e
|
||||||
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
|
TCP_INQ = 0x24
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
TCP_KEEPINTVL = 0x5
|
TCP_KEEPINTVL = 0x5
|
||||||
@@ -2013,6 +2349,9 @@ const (
|
|||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
|
TCP_REPAIR_OFF = 0x0
|
||||||
|
TCP_REPAIR_OFF_NO_WP = -0x1
|
||||||
|
TCP_REPAIR_ON = 0x1
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
TCP_REPAIR_WINDOW = 0x1d
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
@@ -2027,6 +2366,7 @@ const (
|
|||||||
TCP_ULP = 0x1f
|
TCP_ULP = 0x1f
|
||||||
TCP_USER_TIMEOUT = 0x12
|
TCP_USER_TIMEOUT = 0x12
|
||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
|
TCP_ZEROCOPY_RECEIVE = 0x23
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
TCSBRK = 0x2000741d
|
TCSBRK = 0x2000741d
|
||||||
TCSBRKP = 0x5425
|
TCSBRKP = 0x5425
|
||||||
@@ -2037,6 +2377,7 @@ const (
|
|||||||
TCSETSF = 0x802c7416
|
TCSETSF = 0x802c7416
|
||||||
TCSETSW = 0x802c7415
|
TCSETSW = 0x802c7415
|
||||||
TCXONC = 0x2000741e
|
TCXONC = 0x2000741e
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x541d
|
TIOCCONS = 0x541d
|
||||||
TIOCEXCL = 0x540c
|
TIOCEXCL = 0x540c
|
||||||
@@ -2046,6 +2387,7 @@ const (
|
|||||||
TIOCGETP = 0x40067408
|
TIOCGETP = 0x40067408
|
||||||
TIOCGEXCL = 0x40045440
|
TIOCGEXCL = 0x40045440
|
||||||
TIOCGICOUNT = 0x545d
|
TIOCGICOUNT = 0x545d
|
||||||
|
TIOCGISO7816 = 0x40285442
|
||||||
TIOCGLCKTRMIOS = 0x5456
|
TIOCGLCKTRMIOS = 0x5456
|
||||||
TIOCGLTC = 0x40067474
|
TIOCGLTC = 0x40067474
|
||||||
TIOCGPGRP = 0x40047477
|
TIOCGPGRP = 0x40047477
|
||||||
@@ -2106,6 +2448,7 @@ const (
|
|||||||
TIOCSETN = 0x8006740a
|
TIOCSETN = 0x8006740a
|
||||||
TIOCSETP = 0x80067409
|
TIOCSETP = 0x80067409
|
||||||
TIOCSIG = 0x80045436
|
TIOCSIG = 0x80045436
|
||||||
|
TIOCSISO7816 = 0xc0285443
|
||||||
TIOCSLCKTRMIOS = 0x5457
|
TIOCSLCKTRMIOS = 0x5457
|
||||||
TIOCSLTC = 0x80067475
|
TIOCSLTC = 0x80067475
|
||||||
TIOCSPGRP = 0x80047476
|
TIOCSPGRP = 0x80047476
|
||||||
@@ -2149,6 +2492,7 @@ const (
|
|||||||
TUNGETVNETBE = 0x400454df
|
TUNGETVNETBE = 0x400454df
|
||||||
TUNGETVNETHDRSZ = 0x400454d7
|
TUNGETVNETHDRSZ = 0x400454d7
|
||||||
TUNGETVNETLE = 0x400454dd
|
TUNGETVNETLE = 0x400454dd
|
||||||
|
TUNSETCARRIER = 0x800454e2
|
||||||
TUNSETDEBUG = 0x800454c9
|
TUNSETDEBUG = 0x800454c9
|
||||||
TUNSETFILTEREBPF = 0x400454e1
|
TUNSETFILTEREBPF = 0x400454e1
|
||||||
TUNSETGROUP = 0x800454ce
|
TUNSETGROUP = 0x800454ce
|
||||||
@@ -2166,6 +2510,23 @@ const (
|
|||||||
TUNSETVNETBE = 0x800454de
|
TUNSETVNETBE = 0x800454de
|
||||||
TUNSETVNETHDRSZ = 0x800454d8
|
TUNSETVNETHDRSZ = 0x800454d8
|
||||||
TUNSETVNETLE = 0x800454dc
|
TUNSETVNETLE = 0x800454dc
|
||||||
|
UBI_IOCATT = 0x80186f40
|
||||||
|
UBI_IOCDET = 0x80046f41
|
||||||
|
UBI_IOCEBCH = 0x80044f02
|
||||||
|
UBI_IOCEBER = 0x80044f01
|
||||||
|
UBI_IOCEBISMAP = 0x40044f05
|
||||||
|
UBI_IOCEBMAP = 0x80084f03
|
||||||
|
UBI_IOCEBUNMAP = 0x80044f04
|
||||||
|
UBI_IOCMKVOL = 0x80986f00
|
||||||
|
UBI_IOCRMVOL = 0x80046f01
|
||||||
|
UBI_IOCRNVOL = 0x91106f03
|
||||||
|
UBI_IOCRPEB = 0x80046f04
|
||||||
|
UBI_IOCRSVOL = 0x800c6f02
|
||||||
|
UBI_IOCSETVOLPROP = 0x80104f06
|
||||||
|
UBI_IOCSPEB = 0x80046f05
|
||||||
|
UBI_IOCVOLCRBLK = 0x80804f07
|
||||||
|
UBI_IOCVOLRMBLK = 0x20004f08
|
||||||
|
UBI_IOCVOLUP = 0x80084f00
|
||||||
UDF_SUPER_MAGIC = 0x15013346
|
UDF_SUPER_MAGIC = 0x15013346
|
||||||
UMOUNT_NOFOLLOW = 0x8
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||||
@@ -2302,7 +2663,29 @@ const (
|
|||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4000
|
XCASE = 0x4000
|
||||||
|
XDP_COPY = 0x2
|
||||||
|
XDP_FLAGS_DRV_MODE = 0x4
|
||||||
|
XDP_FLAGS_HW_MODE = 0x8
|
||||||
|
XDP_FLAGS_MASK = 0xf
|
||||||
|
XDP_FLAGS_MODES = 0xe
|
||||||
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
XDP_RX_RING = 0x2
|
||||||
|
XDP_SHARED_UMEM = 0x1
|
||||||
|
XDP_STATISTICS = 0x7
|
||||||
|
XDP_TX_RING = 0x3
|
||||||
|
XDP_UMEM_COMPLETION_RING = 0x6
|
||||||
|
XDP_UMEM_FILL_RING = 0x5
|
||||||
|
XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
|
||||||
|
XDP_UMEM_PGOFF_FILL_RING = 0x100000000
|
||||||
|
XDP_UMEM_REG = 0x4
|
||||||
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0xc00
|
XTABS = 0xc00
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user