Обновлены завендоренные зависимости
This commit is contained in:
6
go.mod
6
go.mod
@@ -4,13 +4,13 @@ go 1.19
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/go-redis/redis/v8 v8.11.5
|
github.com/go-redis/redis/v8 v8.11.5
|
||||||
github.com/sirupsen/logrus v1.9.0
|
github.com/sirupsen/logrus v1.9.2
|
||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/cespare/xxhash/v2 v2.1.2 // indirect
|
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
||||||
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
|
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
|
||||||
golang.org/x/sys v0.2.0 // indirect
|
golang.org/x/sys v0.8.0 // indirect
|
||||||
)
|
)
|
||||||
|
|
||||||
require github.com/hjson/hjson-go v3.3.0+incompatible
|
require github.com/hjson/hjson-go v3.3.0+incompatible
|
||||||
|
|||||||
12
go.sum
12
go.sum
@@ -1,5 +1,5 @@
|
|||||||
github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE=
|
github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
|
||||||
github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
|
github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
|
||||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
@@ -15,15 +15,15 @@ github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE=
|
|||||||
github.com/onsi/gomega v1.18.1 h1:M1GfJqGRrBrrGGsbxzV5dqM2U2ApXefZCQpkukxYRLE=
|
github.com/onsi/gomega v1.18.1 h1:M1GfJqGRrBrrGGsbxzV5dqM2U2ApXefZCQpkukxYRLE=
|
||||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||||
github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0=
|
github.com/sirupsen/logrus v1.9.2 h1:oxx1eChJGI6Uks2ZC4W1zpLlVgqB8ner4EuQwV4Ik1Y=
|
||||||
github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
|
github.com/sirupsen/logrus v1.9.2/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
|
||||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||||
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
|
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
|
||||||
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||||
golang.org/x/net v0.0.0-20210428140749-89ef3d95e781 h1:DzZ89McO9/gWPsQXS/FVKAlG02ZjaQ6AlZRBimEYOd0=
|
golang.org/x/net v0.0.0-20210428140749-89ef3d95e781 h1:DzZ89McO9/gWPsQXS/FVKAlG02ZjaQ6AlZRBimEYOd0=
|
||||||
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.2.0 h1:ljd4t30dBnAvMZaQCevtY0xLLD0A+bRZXbgLMLU1F/A=
|
golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU=
|
||||||
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
|
golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
|
||||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
|
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
|
||||||
|
|||||||
31
vendor/github.com/cespare/xxhash/v2/README.md
generated
vendored
31
vendor/github.com/cespare/xxhash/v2/README.md
generated
vendored
@@ -3,8 +3,7 @@
|
|||||||
[](https://pkg.go.dev/github.com/cespare/xxhash/v2)
|
[](https://pkg.go.dev/github.com/cespare/xxhash/v2)
|
||||||
[](https://github.com/cespare/xxhash/actions/workflows/test.yml)
|
[](https://github.com/cespare/xxhash/actions/workflows/test.yml)
|
||||||
|
|
||||||
xxhash is a Go implementation of the 64-bit
|
xxhash is a Go implementation of the 64-bit [xxHash] algorithm, XXH64. This is a
|
||||||
[xxHash](http://cyan4973.github.io/xxHash/) algorithm, XXH64. This is a
|
|
||||||
high-quality hashing algorithm that is much faster than anything in the Go
|
high-quality hashing algorithm that is much faster than anything in the Go
|
||||||
standard library.
|
standard library.
|
||||||
|
|
||||||
@@ -25,8 +24,11 @@ func (*Digest) WriteString(string) (int, error)
|
|||||||
func (*Digest) Sum64() uint64
|
func (*Digest) Sum64() uint64
|
||||||
```
|
```
|
||||||
|
|
||||||
This implementation provides a fast pure-Go implementation and an even faster
|
The package is written with optimized pure Go and also contains even faster
|
||||||
assembly implementation for amd64.
|
assembly implementations for amd64 and arm64. If desired, the `purego` build tag
|
||||||
|
opts into using the Go code even on those architectures.
|
||||||
|
|
||||||
|
[xxHash]: http://cyan4973.github.io/xxHash/
|
||||||
|
|
||||||
## Compatibility
|
## Compatibility
|
||||||
|
|
||||||
@@ -45,19 +47,20 @@ I recommend using the latest release of Go.
|
|||||||
Here are some quick benchmarks comparing the pure-Go and assembly
|
Here are some quick benchmarks comparing the pure-Go and assembly
|
||||||
implementations of Sum64.
|
implementations of Sum64.
|
||||||
|
|
||||||
| input size | purego | asm |
|
| input size | purego | asm |
|
||||||
| --- | --- | --- |
|
| ---------- | --------- | --------- |
|
||||||
| 5 B | 979.66 MB/s | 1291.17 MB/s |
|
| 4 B | 1.3 GB/s | 1.2 GB/s |
|
||||||
| 100 B | 7475.26 MB/s | 7973.40 MB/s |
|
| 16 B | 2.9 GB/s | 3.5 GB/s |
|
||||||
| 4 KB | 17573.46 MB/s | 17602.65 MB/s |
|
| 100 B | 6.9 GB/s | 8.1 GB/s |
|
||||||
| 10 MB | 17131.46 MB/s | 17142.16 MB/s |
|
| 4 KB | 11.7 GB/s | 16.7 GB/s |
|
||||||
|
| 10 MB | 12.0 GB/s | 17.3 GB/s |
|
||||||
|
|
||||||
These numbers were generated on Ubuntu 18.04 with an Intel i7-8700K CPU using
|
These numbers were generated on Ubuntu 20.04 with an Intel Xeon Platinum 8252C
|
||||||
the following commands under Go 1.11.2:
|
CPU using the following commands under Go 1.19.2:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ go test -tags purego -benchtime 10s -bench '/xxhash,direct,bytes'
|
benchstat <(go test -tags purego -benchtime 500ms -count 15 -bench 'Sum64$')
|
||||||
$ go test -benchtime 10s -bench '/xxhash,direct,bytes'
|
benchstat <(go test -benchtime 500ms -count 15 -bench 'Sum64$')
|
||||||
```
|
```
|
||||||
|
|
||||||
## Projects using this package
|
## Projects using this package
|
||||||
|
|||||||
10
vendor/github.com/cespare/xxhash/v2/testall.sh
generated
vendored
Normal file
10
vendor/github.com/cespare/xxhash/v2/testall.sh
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -eu -o pipefail
|
||||||
|
|
||||||
|
# Small convenience script for running the tests with various combinations of
|
||||||
|
# arch/tags. This assumes we're running on amd64 and have qemu available.
|
||||||
|
|
||||||
|
go test ./...
|
||||||
|
go test -tags purego ./...
|
||||||
|
GOARCH=arm64 go test
|
||||||
|
GOARCH=arm64 go test -tags purego
|
||||||
47
vendor/github.com/cespare/xxhash/v2/xxhash.go
generated
vendored
47
vendor/github.com/cespare/xxhash/v2/xxhash.go
generated
vendored
@@ -16,19 +16,11 @@ const (
|
|||||||
prime5 uint64 = 2870177450012600261
|
prime5 uint64 = 2870177450012600261
|
||||||
)
|
)
|
||||||
|
|
||||||
// NOTE(caleb): I'm using both consts and vars of the primes. Using consts where
|
// Store the primes in an array as well.
|
||||||
// possible in the Go code is worth a small (but measurable) performance boost
|
//
|
||||||
// by avoiding some MOVQs. Vars are needed for the asm and also are useful for
|
// The consts are used when possible in Go code to avoid MOVs but we need a
|
||||||
// convenience in the Go code in a few places where we need to intentionally
|
// contiguous array of the assembly code.
|
||||||
// avoid constant arithmetic (e.g., v1 := prime1 + prime2 fails because the
|
var primes = [...]uint64{prime1, prime2, prime3, prime4, prime5}
|
||||||
// result overflows a uint64).
|
|
||||||
var (
|
|
||||||
prime1v = prime1
|
|
||||||
prime2v = prime2
|
|
||||||
prime3v = prime3
|
|
||||||
prime4v = prime4
|
|
||||||
prime5v = prime5
|
|
||||||
)
|
|
||||||
|
|
||||||
// Digest implements hash.Hash64.
|
// Digest implements hash.Hash64.
|
||||||
type Digest struct {
|
type Digest struct {
|
||||||
@@ -50,10 +42,10 @@ func New() *Digest {
|
|||||||
|
|
||||||
// Reset clears the Digest's state so that it can be reused.
|
// Reset clears the Digest's state so that it can be reused.
|
||||||
func (d *Digest) Reset() {
|
func (d *Digest) Reset() {
|
||||||
d.v1 = prime1v + prime2
|
d.v1 = primes[0] + prime2
|
||||||
d.v2 = prime2
|
d.v2 = prime2
|
||||||
d.v3 = 0
|
d.v3 = 0
|
||||||
d.v4 = -prime1v
|
d.v4 = -primes[0]
|
||||||
d.total = 0
|
d.total = 0
|
||||||
d.n = 0
|
d.n = 0
|
||||||
}
|
}
|
||||||
@@ -69,21 +61,23 @@ func (d *Digest) Write(b []byte) (n int, err error) {
|
|||||||
n = len(b)
|
n = len(b)
|
||||||
d.total += uint64(n)
|
d.total += uint64(n)
|
||||||
|
|
||||||
|
memleft := d.mem[d.n&(len(d.mem)-1):]
|
||||||
|
|
||||||
if d.n+n < 32 {
|
if d.n+n < 32 {
|
||||||
// This new data doesn't even fill the current block.
|
// This new data doesn't even fill the current block.
|
||||||
copy(d.mem[d.n:], b)
|
copy(memleft, b)
|
||||||
d.n += n
|
d.n += n
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if d.n > 0 {
|
if d.n > 0 {
|
||||||
// Finish off the partial block.
|
// Finish off the partial block.
|
||||||
copy(d.mem[d.n:], b)
|
c := copy(memleft, b)
|
||||||
d.v1 = round(d.v1, u64(d.mem[0:8]))
|
d.v1 = round(d.v1, u64(d.mem[0:8]))
|
||||||
d.v2 = round(d.v2, u64(d.mem[8:16]))
|
d.v2 = round(d.v2, u64(d.mem[8:16]))
|
||||||
d.v3 = round(d.v3, u64(d.mem[16:24]))
|
d.v3 = round(d.v3, u64(d.mem[16:24]))
|
||||||
d.v4 = round(d.v4, u64(d.mem[24:32]))
|
d.v4 = round(d.v4, u64(d.mem[24:32]))
|
||||||
b = b[32-d.n:]
|
b = b[c:]
|
||||||
d.n = 0
|
d.n = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -133,21 +127,20 @@ func (d *Digest) Sum64() uint64 {
|
|||||||
|
|
||||||
h += d.total
|
h += d.total
|
||||||
|
|
||||||
i, end := 0, d.n
|
b := d.mem[:d.n&(len(d.mem)-1)]
|
||||||
for ; i+8 <= end; i += 8 {
|
for ; len(b) >= 8; b = b[8:] {
|
||||||
k1 := round(0, u64(d.mem[i:i+8]))
|
k1 := round(0, u64(b[:8]))
|
||||||
h ^= k1
|
h ^= k1
|
||||||
h = rol27(h)*prime1 + prime4
|
h = rol27(h)*prime1 + prime4
|
||||||
}
|
}
|
||||||
if i+4 <= end {
|
if len(b) >= 4 {
|
||||||
h ^= uint64(u32(d.mem[i:i+4])) * prime1
|
h ^= uint64(u32(b[:4])) * prime1
|
||||||
h = rol23(h)*prime2 + prime3
|
h = rol23(h)*prime2 + prime3
|
||||||
i += 4
|
b = b[4:]
|
||||||
}
|
}
|
||||||
for i < end {
|
for ; len(b) > 0; b = b[1:] {
|
||||||
h ^= uint64(d.mem[i]) * prime5
|
h ^= uint64(b[0]) * prime5
|
||||||
h = rol11(h) * prime1
|
h = rol11(h) * prime1
|
||||||
i++
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h ^= h >> 33
|
h ^= h >> 33
|
||||||
|
|||||||
308
vendor/github.com/cespare/xxhash/v2/xxhash_amd64.s
generated
vendored
308
vendor/github.com/cespare/xxhash/v2/xxhash_amd64.s
generated
vendored
@@ -1,215 +1,209 @@
|
|||||||
|
//go:build !appengine && gc && !purego
|
||||||
// +build !appengine
|
// +build !appengine
|
||||||
// +build gc
|
// +build gc
|
||||||
// +build !purego
|
// +build !purego
|
||||||
|
|
||||||
#include "textflag.h"
|
#include "textflag.h"
|
||||||
|
|
||||||
// Register allocation:
|
// Registers:
|
||||||
// AX h
|
#define h AX
|
||||||
// SI pointer to advance through b
|
#define d AX
|
||||||
// DX n
|
#define p SI // pointer to advance through b
|
||||||
// BX loop end
|
#define n DX
|
||||||
// R8 v1, k1
|
#define end BX // loop end
|
||||||
// R9 v2
|
#define v1 R8
|
||||||
// R10 v3
|
#define v2 R9
|
||||||
// R11 v4
|
#define v3 R10
|
||||||
// R12 tmp
|
#define v4 R11
|
||||||
// R13 prime1v
|
#define x R12
|
||||||
// R14 prime2v
|
#define prime1 R13
|
||||||
// DI prime4v
|
#define prime2 R14
|
||||||
|
#define prime4 DI
|
||||||
|
|
||||||
// round reads from and advances the buffer pointer in SI.
|
#define round(acc, x) \
|
||||||
// It assumes that R13 has prime1v and R14 has prime2v.
|
IMULQ prime2, x \
|
||||||
#define round(r) \
|
ADDQ x, acc \
|
||||||
MOVQ (SI), R12 \
|
ROLQ $31, acc \
|
||||||
ADDQ $8, SI \
|
IMULQ prime1, acc
|
||||||
IMULQ R14, R12 \
|
|
||||||
ADDQ R12, r \
|
|
||||||
ROLQ $31, r \
|
|
||||||
IMULQ R13, r
|
|
||||||
|
|
||||||
// mergeRound applies a merge round on the two registers acc and val.
|
// round0 performs the operation x = round(0, x).
|
||||||
// It assumes that R13 has prime1v, R14 has prime2v, and DI has prime4v.
|
#define round0(x) \
|
||||||
#define mergeRound(acc, val) \
|
IMULQ prime2, x \
|
||||||
IMULQ R14, val \
|
ROLQ $31, x \
|
||||||
ROLQ $31, val \
|
IMULQ prime1, x
|
||||||
IMULQ R13, val \
|
|
||||||
XORQ val, acc \
|
// mergeRound applies a merge round on the two registers acc and x.
|
||||||
IMULQ R13, acc \
|
// It assumes that prime1, prime2, and prime4 have been loaded.
|
||||||
ADDQ DI, acc
|
#define mergeRound(acc, x) \
|
||||||
|
round0(x) \
|
||||||
|
XORQ x, acc \
|
||||||
|
IMULQ prime1, acc \
|
||||||
|
ADDQ prime4, acc
|
||||||
|
|
||||||
|
// blockLoop processes as many 32-byte blocks as possible,
|
||||||
|
// updating v1, v2, v3, and v4. It assumes that there is at least one block
|
||||||
|
// to process.
|
||||||
|
#define blockLoop() \
|
||||||
|
loop: \
|
||||||
|
MOVQ +0(p), x \
|
||||||
|
round(v1, x) \
|
||||||
|
MOVQ +8(p), x \
|
||||||
|
round(v2, x) \
|
||||||
|
MOVQ +16(p), x \
|
||||||
|
round(v3, x) \
|
||||||
|
MOVQ +24(p), x \
|
||||||
|
round(v4, x) \
|
||||||
|
ADDQ $32, p \
|
||||||
|
CMPQ p, end \
|
||||||
|
JLE loop
|
||||||
|
|
||||||
// func Sum64(b []byte) uint64
|
// func Sum64(b []byte) uint64
|
||||||
TEXT ·Sum64(SB), NOSPLIT, $0-32
|
TEXT ·Sum64(SB), NOSPLIT|NOFRAME, $0-32
|
||||||
// Load fixed primes.
|
// Load fixed primes.
|
||||||
MOVQ ·prime1v(SB), R13
|
MOVQ ·primes+0(SB), prime1
|
||||||
MOVQ ·prime2v(SB), R14
|
MOVQ ·primes+8(SB), prime2
|
||||||
MOVQ ·prime4v(SB), DI
|
MOVQ ·primes+24(SB), prime4
|
||||||
|
|
||||||
// Load slice.
|
// Load slice.
|
||||||
MOVQ b_base+0(FP), SI
|
MOVQ b_base+0(FP), p
|
||||||
MOVQ b_len+8(FP), DX
|
MOVQ b_len+8(FP), n
|
||||||
LEAQ (SI)(DX*1), BX
|
LEAQ (p)(n*1), end
|
||||||
|
|
||||||
// The first loop limit will be len(b)-32.
|
// The first loop limit will be len(b)-32.
|
||||||
SUBQ $32, BX
|
SUBQ $32, end
|
||||||
|
|
||||||
// Check whether we have at least one block.
|
// Check whether we have at least one block.
|
||||||
CMPQ DX, $32
|
CMPQ n, $32
|
||||||
JLT noBlocks
|
JLT noBlocks
|
||||||
|
|
||||||
// Set up initial state (v1, v2, v3, v4).
|
// Set up initial state (v1, v2, v3, v4).
|
||||||
MOVQ R13, R8
|
MOVQ prime1, v1
|
||||||
ADDQ R14, R8
|
ADDQ prime2, v1
|
||||||
MOVQ R14, R9
|
MOVQ prime2, v2
|
||||||
XORQ R10, R10
|
XORQ v3, v3
|
||||||
XORQ R11, R11
|
XORQ v4, v4
|
||||||
SUBQ R13, R11
|
SUBQ prime1, v4
|
||||||
|
|
||||||
// Loop until SI > BX.
|
blockLoop()
|
||||||
blockLoop:
|
|
||||||
round(R8)
|
|
||||||
round(R9)
|
|
||||||
round(R10)
|
|
||||||
round(R11)
|
|
||||||
|
|
||||||
CMPQ SI, BX
|
MOVQ v1, h
|
||||||
JLE blockLoop
|
ROLQ $1, h
|
||||||
|
MOVQ v2, x
|
||||||
|
ROLQ $7, x
|
||||||
|
ADDQ x, h
|
||||||
|
MOVQ v3, x
|
||||||
|
ROLQ $12, x
|
||||||
|
ADDQ x, h
|
||||||
|
MOVQ v4, x
|
||||||
|
ROLQ $18, x
|
||||||
|
ADDQ x, h
|
||||||
|
|
||||||
MOVQ R8, AX
|
mergeRound(h, v1)
|
||||||
ROLQ $1, AX
|
mergeRound(h, v2)
|
||||||
MOVQ R9, R12
|
mergeRound(h, v3)
|
||||||
ROLQ $7, R12
|
mergeRound(h, v4)
|
||||||
ADDQ R12, AX
|
|
||||||
MOVQ R10, R12
|
|
||||||
ROLQ $12, R12
|
|
||||||
ADDQ R12, AX
|
|
||||||
MOVQ R11, R12
|
|
||||||
ROLQ $18, R12
|
|
||||||
ADDQ R12, AX
|
|
||||||
|
|
||||||
mergeRound(AX, R8)
|
|
||||||
mergeRound(AX, R9)
|
|
||||||
mergeRound(AX, R10)
|
|
||||||
mergeRound(AX, R11)
|
|
||||||
|
|
||||||
JMP afterBlocks
|
JMP afterBlocks
|
||||||
|
|
||||||
noBlocks:
|
noBlocks:
|
||||||
MOVQ ·prime5v(SB), AX
|
MOVQ ·primes+32(SB), h
|
||||||
|
|
||||||
afterBlocks:
|
afterBlocks:
|
||||||
ADDQ DX, AX
|
ADDQ n, h
|
||||||
|
|
||||||
// Right now BX has len(b)-32, and we want to loop until SI > len(b)-8.
|
ADDQ $24, end
|
||||||
ADDQ $24, BX
|
CMPQ p, end
|
||||||
|
JG try4
|
||||||
|
|
||||||
CMPQ SI, BX
|
loop8:
|
||||||
JG fourByte
|
MOVQ (p), x
|
||||||
|
ADDQ $8, p
|
||||||
|
round0(x)
|
||||||
|
XORQ x, h
|
||||||
|
ROLQ $27, h
|
||||||
|
IMULQ prime1, h
|
||||||
|
ADDQ prime4, h
|
||||||
|
|
||||||
wordLoop:
|
CMPQ p, end
|
||||||
// Calculate k1.
|
JLE loop8
|
||||||
MOVQ (SI), R8
|
|
||||||
ADDQ $8, SI
|
|
||||||
IMULQ R14, R8
|
|
||||||
ROLQ $31, R8
|
|
||||||
IMULQ R13, R8
|
|
||||||
|
|
||||||
XORQ R8, AX
|
try4:
|
||||||
ROLQ $27, AX
|
ADDQ $4, end
|
||||||
IMULQ R13, AX
|
CMPQ p, end
|
||||||
ADDQ DI, AX
|
JG try1
|
||||||
|
|
||||||
CMPQ SI, BX
|
MOVL (p), x
|
||||||
JLE wordLoop
|
ADDQ $4, p
|
||||||
|
IMULQ prime1, x
|
||||||
|
XORQ x, h
|
||||||
|
|
||||||
fourByte:
|
ROLQ $23, h
|
||||||
ADDQ $4, BX
|
IMULQ prime2, h
|
||||||
CMPQ SI, BX
|
ADDQ ·primes+16(SB), h
|
||||||
JG singles
|
|
||||||
|
|
||||||
MOVL (SI), R8
|
try1:
|
||||||
ADDQ $4, SI
|
ADDQ $4, end
|
||||||
IMULQ R13, R8
|
CMPQ p, end
|
||||||
XORQ R8, AX
|
|
||||||
|
|
||||||
ROLQ $23, AX
|
|
||||||
IMULQ R14, AX
|
|
||||||
ADDQ ·prime3v(SB), AX
|
|
||||||
|
|
||||||
singles:
|
|
||||||
ADDQ $4, BX
|
|
||||||
CMPQ SI, BX
|
|
||||||
JGE finalize
|
JGE finalize
|
||||||
|
|
||||||
singlesLoop:
|
loop1:
|
||||||
MOVBQZX (SI), R12
|
MOVBQZX (p), x
|
||||||
ADDQ $1, SI
|
ADDQ $1, p
|
||||||
IMULQ ·prime5v(SB), R12
|
IMULQ ·primes+32(SB), x
|
||||||
XORQ R12, AX
|
XORQ x, h
|
||||||
|
ROLQ $11, h
|
||||||
|
IMULQ prime1, h
|
||||||
|
|
||||||
ROLQ $11, AX
|
CMPQ p, end
|
||||||
IMULQ R13, AX
|
JL loop1
|
||||||
|
|
||||||
CMPQ SI, BX
|
|
||||||
JL singlesLoop
|
|
||||||
|
|
||||||
finalize:
|
finalize:
|
||||||
MOVQ AX, R12
|
MOVQ h, x
|
||||||
SHRQ $33, R12
|
SHRQ $33, x
|
||||||
XORQ R12, AX
|
XORQ x, h
|
||||||
IMULQ R14, AX
|
IMULQ prime2, h
|
||||||
MOVQ AX, R12
|
MOVQ h, x
|
||||||
SHRQ $29, R12
|
SHRQ $29, x
|
||||||
XORQ R12, AX
|
XORQ x, h
|
||||||
IMULQ ·prime3v(SB), AX
|
IMULQ ·primes+16(SB), h
|
||||||
MOVQ AX, R12
|
MOVQ h, x
|
||||||
SHRQ $32, R12
|
SHRQ $32, x
|
||||||
XORQ R12, AX
|
XORQ x, h
|
||||||
|
|
||||||
MOVQ AX, ret+24(FP)
|
MOVQ h, ret+24(FP)
|
||||||
RET
|
RET
|
||||||
|
|
||||||
// writeBlocks uses the same registers as above except that it uses AX to store
|
|
||||||
// the d pointer.
|
|
||||||
|
|
||||||
// func writeBlocks(d *Digest, b []byte) int
|
// func writeBlocks(d *Digest, b []byte) int
|
||||||
TEXT ·writeBlocks(SB), NOSPLIT, $0-40
|
TEXT ·writeBlocks(SB), NOSPLIT|NOFRAME, $0-40
|
||||||
// Load fixed primes needed for round.
|
// Load fixed primes needed for round.
|
||||||
MOVQ ·prime1v(SB), R13
|
MOVQ ·primes+0(SB), prime1
|
||||||
MOVQ ·prime2v(SB), R14
|
MOVQ ·primes+8(SB), prime2
|
||||||
|
|
||||||
// Load slice.
|
// Load slice.
|
||||||
MOVQ b_base+8(FP), SI
|
MOVQ b_base+8(FP), p
|
||||||
MOVQ b_len+16(FP), DX
|
MOVQ b_len+16(FP), n
|
||||||
LEAQ (SI)(DX*1), BX
|
LEAQ (p)(n*1), end
|
||||||
SUBQ $32, BX
|
SUBQ $32, end
|
||||||
|
|
||||||
// Load vN from d.
|
// Load vN from d.
|
||||||
MOVQ d+0(FP), AX
|
MOVQ s+0(FP), d
|
||||||
MOVQ 0(AX), R8 // v1
|
MOVQ 0(d), v1
|
||||||
MOVQ 8(AX), R9 // v2
|
MOVQ 8(d), v2
|
||||||
MOVQ 16(AX), R10 // v3
|
MOVQ 16(d), v3
|
||||||
MOVQ 24(AX), R11 // v4
|
MOVQ 24(d), v4
|
||||||
|
|
||||||
// We don't need to check the loop condition here; this function is
|
// We don't need to check the loop condition here; this function is
|
||||||
// always called with at least one block of data to process.
|
// always called with at least one block of data to process.
|
||||||
blockLoop:
|
blockLoop()
|
||||||
round(R8)
|
|
||||||
round(R9)
|
|
||||||
round(R10)
|
|
||||||
round(R11)
|
|
||||||
|
|
||||||
CMPQ SI, BX
|
|
||||||
JLE blockLoop
|
|
||||||
|
|
||||||
// Copy vN back to d.
|
// Copy vN back to d.
|
||||||
MOVQ R8, 0(AX)
|
MOVQ v1, 0(d)
|
||||||
MOVQ R9, 8(AX)
|
MOVQ v2, 8(d)
|
||||||
MOVQ R10, 16(AX)
|
MOVQ v3, 16(d)
|
||||||
MOVQ R11, 24(AX)
|
MOVQ v4, 24(d)
|
||||||
|
|
||||||
// The number of bytes written is SI minus the old base pointer.
|
// The number of bytes written is p minus the old base pointer.
|
||||||
SUBQ b_base+8(FP), SI
|
SUBQ b_base+8(FP), p
|
||||||
MOVQ SI, ret+32(FP)
|
MOVQ p, ret+32(FP)
|
||||||
|
|
||||||
RET
|
RET
|
||||||
|
|||||||
183
vendor/github.com/cespare/xxhash/v2/xxhash_arm64.s
generated
vendored
Normal file
183
vendor/github.com/cespare/xxhash/v2/xxhash_arm64.s
generated
vendored
Normal file
@@ -0,0 +1,183 @@
|
|||||||
|
//go:build !appengine && gc && !purego
|
||||||
|
// +build !appengine
|
||||||
|
// +build gc
|
||||||
|
// +build !purego
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
// Registers:
|
||||||
|
#define digest R1
|
||||||
|
#define h R2 // return value
|
||||||
|
#define p R3 // input pointer
|
||||||
|
#define n R4 // input length
|
||||||
|
#define nblocks R5 // n / 32
|
||||||
|
#define prime1 R7
|
||||||
|
#define prime2 R8
|
||||||
|
#define prime3 R9
|
||||||
|
#define prime4 R10
|
||||||
|
#define prime5 R11
|
||||||
|
#define v1 R12
|
||||||
|
#define v2 R13
|
||||||
|
#define v3 R14
|
||||||
|
#define v4 R15
|
||||||
|
#define x1 R20
|
||||||
|
#define x2 R21
|
||||||
|
#define x3 R22
|
||||||
|
#define x4 R23
|
||||||
|
|
||||||
|
#define round(acc, x) \
|
||||||
|
MADD prime2, acc, x, acc \
|
||||||
|
ROR $64-31, acc \
|
||||||
|
MUL prime1, acc
|
||||||
|
|
||||||
|
// round0 performs the operation x = round(0, x).
|
||||||
|
#define round0(x) \
|
||||||
|
MUL prime2, x \
|
||||||
|
ROR $64-31, x \
|
||||||
|
MUL prime1, x
|
||||||
|
|
||||||
|
#define mergeRound(acc, x) \
|
||||||
|
round0(x) \
|
||||||
|
EOR x, acc \
|
||||||
|
MADD acc, prime4, prime1, acc
|
||||||
|
|
||||||
|
// blockLoop processes as many 32-byte blocks as possible,
|
||||||
|
// updating v1, v2, v3, and v4. It assumes that n >= 32.
|
||||||
|
#define blockLoop() \
|
||||||
|
LSR $5, n, nblocks \
|
||||||
|
PCALIGN $16 \
|
||||||
|
loop: \
|
||||||
|
LDP.P 16(p), (x1, x2) \
|
||||||
|
LDP.P 16(p), (x3, x4) \
|
||||||
|
round(v1, x1) \
|
||||||
|
round(v2, x2) \
|
||||||
|
round(v3, x3) \
|
||||||
|
round(v4, x4) \
|
||||||
|
SUB $1, nblocks \
|
||||||
|
CBNZ nblocks, loop
|
||||||
|
|
||||||
|
// func Sum64(b []byte) uint64
|
||||||
|
TEXT ·Sum64(SB), NOSPLIT|NOFRAME, $0-32
|
||||||
|
LDP b_base+0(FP), (p, n)
|
||||||
|
|
||||||
|
LDP ·primes+0(SB), (prime1, prime2)
|
||||||
|
LDP ·primes+16(SB), (prime3, prime4)
|
||||||
|
MOVD ·primes+32(SB), prime5
|
||||||
|
|
||||||
|
CMP $32, n
|
||||||
|
CSEL LT, prime5, ZR, h // if n < 32 { h = prime5 } else { h = 0 }
|
||||||
|
BLT afterLoop
|
||||||
|
|
||||||
|
ADD prime1, prime2, v1
|
||||||
|
MOVD prime2, v2
|
||||||
|
MOVD $0, v3
|
||||||
|
NEG prime1, v4
|
||||||
|
|
||||||
|
blockLoop()
|
||||||
|
|
||||||
|
ROR $64-1, v1, x1
|
||||||
|
ROR $64-7, v2, x2
|
||||||
|
ADD x1, x2
|
||||||
|
ROR $64-12, v3, x3
|
||||||
|
ROR $64-18, v4, x4
|
||||||
|
ADD x3, x4
|
||||||
|
ADD x2, x4, h
|
||||||
|
|
||||||
|
mergeRound(h, v1)
|
||||||
|
mergeRound(h, v2)
|
||||||
|
mergeRound(h, v3)
|
||||||
|
mergeRound(h, v4)
|
||||||
|
|
||||||
|
afterLoop:
|
||||||
|
ADD n, h
|
||||||
|
|
||||||
|
TBZ $4, n, try8
|
||||||
|
LDP.P 16(p), (x1, x2)
|
||||||
|
|
||||||
|
round0(x1)
|
||||||
|
|
||||||
|
// NOTE: here and below, sequencing the EOR after the ROR (using a
|
||||||
|
// rotated register) is worth a small but measurable speedup for small
|
||||||
|
// inputs.
|
||||||
|
ROR $64-27, h
|
||||||
|
EOR x1 @> 64-27, h, h
|
||||||
|
MADD h, prime4, prime1, h
|
||||||
|
|
||||||
|
round0(x2)
|
||||||
|
ROR $64-27, h
|
||||||
|
EOR x2 @> 64-27, h, h
|
||||||
|
MADD h, prime4, prime1, h
|
||||||
|
|
||||||
|
try8:
|
||||||
|
TBZ $3, n, try4
|
||||||
|
MOVD.P 8(p), x1
|
||||||
|
|
||||||
|
round0(x1)
|
||||||
|
ROR $64-27, h
|
||||||
|
EOR x1 @> 64-27, h, h
|
||||||
|
MADD h, prime4, prime1, h
|
||||||
|
|
||||||
|
try4:
|
||||||
|
TBZ $2, n, try2
|
||||||
|
MOVWU.P 4(p), x2
|
||||||
|
|
||||||
|
MUL prime1, x2
|
||||||
|
ROR $64-23, h
|
||||||
|
EOR x2 @> 64-23, h, h
|
||||||
|
MADD h, prime3, prime2, h
|
||||||
|
|
||||||
|
try2:
|
||||||
|
TBZ $1, n, try1
|
||||||
|
MOVHU.P 2(p), x3
|
||||||
|
AND $255, x3, x1
|
||||||
|
LSR $8, x3, x2
|
||||||
|
|
||||||
|
MUL prime5, x1
|
||||||
|
ROR $64-11, h
|
||||||
|
EOR x1 @> 64-11, h, h
|
||||||
|
MUL prime1, h
|
||||||
|
|
||||||
|
MUL prime5, x2
|
||||||
|
ROR $64-11, h
|
||||||
|
EOR x2 @> 64-11, h, h
|
||||||
|
MUL prime1, h
|
||||||
|
|
||||||
|
try1:
|
||||||
|
TBZ $0, n, finalize
|
||||||
|
MOVBU (p), x4
|
||||||
|
|
||||||
|
MUL prime5, x4
|
||||||
|
ROR $64-11, h
|
||||||
|
EOR x4 @> 64-11, h, h
|
||||||
|
MUL prime1, h
|
||||||
|
|
||||||
|
finalize:
|
||||||
|
EOR h >> 33, h
|
||||||
|
MUL prime2, h
|
||||||
|
EOR h >> 29, h
|
||||||
|
MUL prime3, h
|
||||||
|
EOR h >> 32, h
|
||||||
|
|
||||||
|
MOVD h, ret+24(FP)
|
||||||
|
RET
|
||||||
|
|
||||||
|
// func writeBlocks(d *Digest, b []byte) int
|
||||||
|
TEXT ·writeBlocks(SB), NOSPLIT|NOFRAME, $0-40
|
||||||
|
LDP ·primes+0(SB), (prime1, prime2)
|
||||||
|
|
||||||
|
// Load state. Assume v[1-4] are stored contiguously.
|
||||||
|
MOVD d+0(FP), digest
|
||||||
|
LDP 0(digest), (v1, v2)
|
||||||
|
LDP 16(digest), (v3, v4)
|
||||||
|
|
||||||
|
LDP b_base+8(FP), (p, n)
|
||||||
|
|
||||||
|
blockLoop()
|
||||||
|
|
||||||
|
// Store updated state.
|
||||||
|
STP (v1, v2), 0(digest)
|
||||||
|
STP (v3, v4), 16(digest)
|
||||||
|
|
||||||
|
BIC $31, n
|
||||||
|
MOVD n, ret+32(FP)
|
||||||
|
RET
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//go:build (amd64 || arm64) && !appengine && gc && !purego
|
||||||
|
// +build amd64 arm64
|
||||||
// +build !appengine
|
// +build !appengine
|
||||||
// +build gc
|
// +build gc
|
||||||
// +build !purego
|
// +build !purego
|
||||||
22
vendor/github.com/cespare/xxhash/v2/xxhash_other.go
generated
vendored
22
vendor/github.com/cespare/xxhash/v2/xxhash_other.go
generated
vendored
@@ -1,4 +1,5 @@
|
|||||||
// +build !amd64 appengine !gc purego
|
//go:build (!amd64 && !arm64) || appengine || !gc || purego
|
||||||
|
// +build !amd64,!arm64 appengine !gc purego
|
||||||
|
|
||||||
package xxhash
|
package xxhash
|
||||||
|
|
||||||
@@ -14,10 +15,10 @@ func Sum64(b []byte) uint64 {
|
|||||||
var h uint64
|
var h uint64
|
||||||
|
|
||||||
if n >= 32 {
|
if n >= 32 {
|
||||||
v1 := prime1v + prime2
|
v1 := primes[0] + prime2
|
||||||
v2 := prime2
|
v2 := prime2
|
||||||
v3 := uint64(0)
|
v3 := uint64(0)
|
||||||
v4 := -prime1v
|
v4 := -primes[0]
|
||||||
for len(b) >= 32 {
|
for len(b) >= 32 {
|
||||||
v1 = round(v1, u64(b[0:8:len(b)]))
|
v1 = round(v1, u64(b[0:8:len(b)]))
|
||||||
v2 = round(v2, u64(b[8:16:len(b)]))
|
v2 = round(v2, u64(b[8:16:len(b)]))
|
||||||
@@ -36,19 +37,18 @@ func Sum64(b []byte) uint64 {
|
|||||||
|
|
||||||
h += uint64(n)
|
h += uint64(n)
|
||||||
|
|
||||||
i, end := 0, len(b)
|
for ; len(b) >= 8; b = b[8:] {
|
||||||
for ; i+8 <= end; i += 8 {
|
k1 := round(0, u64(b[:8]))
|
||||||
k1 := round(0, u64(b[i:i+8:len(b)]))
|
|
||||||
h ^= k1
|
h ^= k1
|
||||||
h = rol27(h)*prime1 + prime4
|
h = rol27(h)*prime1 + prime4
|
||||||
}
|
}
|
||||||
if i+4 <= end {
|
if len(b) >= 4 {
|
||||||
h ^= uint64(u32(b[i:i+4:len(b)])) * prime1
|
h ^= uint64(u32(b[:4])) * prime1
|
||||||
h = rol23(h)*prime2 + prime3
|
h = rol23(h)*prime2 + prime3
|
||||||
i += 4
|
b = b[4:]
|
||||||
}
|
}
|
||||||
for ; i < end; i++ {
|
for ; len(b) > 0; b = b[1:] {
|
||||||
h ^= uint64(b[i]) * prime5
|
h ^= uint64(b[0]) * prime5
|
||||||
h = rol11(h) * prime1
|
h = rol11(h) * prime1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
1
vendor/github.com/cespare/xxhash/v2/xxhash_safe.go
generated
vendored
1
vendor/github.com/cespare/xxhash/v2/xxhash_safe.go
generated
vendored
@@ -1,3 +1,4 @@
|
|||||||
|
//go:build appengine
|
||||||
// +build appengine
|
// +build appengine
|
||||||
|
|
||||||
// This file contains the safe implementations of otherwise unsafe-using code.
|
// This file contains the safe implementations of otherwise unsafe-using code.
|
||||||
|
|||||||
3
vendor/github.com/cespare/xxhash/v2/xxhash_unsafe.go
generated
vendored
3
vendor/github.com/cespare/xxhash/v2/xxhash_unsafe.go
generated
vendored
@@ -1,3 +1,4 @@
|
|||||||
|
//go:build !appengine
|
||||||
// +build !appengine
|
// +build !appengine
|
||||||
|
|
||||||
// This file encapsulates usage of unsafe.
|
// This file encapsulates usage of unsafe.
|
||||||
@@ -11,7 +12,7 @@ import (
|
|||||||
|
|
||||||
// In the future it's possible that compiler optimizations will make these
|
// In the future it's possible that compiler optimizations will make these
|
||||||
// XxxString functions unnecessary by realizing that calls such as
|
// XxxString functions unnecessary by realizing that calls such as
|
||||||
// Sum64([]byte(s)) don't need to copy s. See https://golang.org/issue/2205.
|
// Sum64([]byte(s)) don't need to copy s. See https://go.dev/issue/2205.
|
||||||
// If that happens, even if we keep these functions they can be replaced with
|
// If that happens, even if we keep these functions they can be replaced with
|
||||||
// the trivial safe code.
|
// the trivial safe code.
|
||||||
|
|
||||||
|
|||||||
8
vendor/github.com/sirupsen/logrus/README.md
generated
vendored
8
vendor/github.com/sirupsen/logrus/README.md
generated
vendored
@@ -9,7 +9,7 @@ the last thing you want from your Logging library (again...).
|
|||||||
|
|
||||||
This does not mean Logrus is dead. Logrus will continue to be maintained for
|
This does not mean Logrus is dead. Logrus will continue to be maintained for
|
||||||
security, (backwards compatible) bug fixes, and performance (where we are
|
security, (backwards compatible) bug fixes, and performance (where we are
|
||||||
limited by the interface).
|
limited by the interface).
|
||||||
|
|
||||||
I believe Logrus' biggest contribution is to have played a part in today's
|
I believe Logrus' biggest contribution is to have played a part in today's
|
||||||
widespread use of structured logging in Golang. There doesn't seem to be a
|
widespread use of structured logging in Golang. There doesn't seem to be a
|
||||||
@@ -43,7 +43,7 @@ plain text):
|
|||||||
With `log.SetFormatter(&log.JSONFormatter{})`, for easy parsing by logstash
|
With `log.SetFormatter(&log.JSONFormatter{})`, for easy parsing by logstash
|
||||||
or Splunk:
|
or Splunk:
|
||||||
|
|
||||||
```json
|
```text
|
||||||
{"animal":"walrus","level":"info","msg":"A group of walrus emerges from the
|
{"animal":"walrus","level":"info","msg":"A group of walrus emerges from the
|
||||||
ocean","size":10,"time":"2014-03-10 19:57:38.562264131 -0400 EDT"}
|
ocean","size":10,"time":"2014-03-10 19:57:38.562264131 -0400 EDT"}
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@ time="2015-03-26T01:27:38-04:00" level=fatal method=github.com/sirupsen/arcticcr
|
|||||||
```
|
```
|
||||||
Note that this does add measurable overhead - the cost will depend on the version of Go, but is
|
Note that this does add measurable overhead - the cost will depend on the version of Go, but is
|
||||||
between 20 and 40% in recent tests with 1.6 and 1.7. You can validate this in your
|
between 20 and 40% in recent tests with 1.6 and 1.7. You can validate this in your
|
||||||
environment via benchmarks:
|
environment via benchmarks:
|
||||||
```
|
```
|
||||||
go test -bench=.*CallerTracing
|
go test -bench=.*CallerTracing
|
||||||
```
|
```
|
||||||
@@ -317,6 +317,8 @@ log.SetLevel(log.InfoLevel)
|
|||||||
It may be useful to set `log.Level = logrus.DebugLevel` in a debug or verbose
|
It may be useful to set `log.Level = logrus.DebugLevel` in a debug or verbose
|
||||||
environment if your application has that.
|
environment if your application has that.
|
||||||
|
|
||||||
|
Note: If you want different log levels for global (`log.SetLevel(...)`) and syslog logging, please check the [syslog hook README](hooks/syslog/README.md#different-log-levels-for-local-and-remote-logging).
|
||||||
|
|
||||||
#### Entries
|
#### Entries
|
||||||
|
|
||||||
Besides the fields added with `WithField` or `WithFields` some fields are
|
Besides the fields added with `WithField` or `WithFields` some fields are
|
||||||
|
|||||||
4
vendor/golang.org/x/sys/unix/gccgo.go
generated
vendored
4
vendor/golang.org/x/sys/unix/gccgo.go
generated
vendored
@@ -2,8 +2,8 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
//go:build gccgo && !aix
|
//go:build gccgo && !aix && !hurd
|
||||||
// +build gccgo,!aix
|
// +build gccgo,!aix,!hurd
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
|||||||
4
vendor/golang.org/x/sys/unix/gccgo_c.c
generated
vendored
4
vendor/golang.org/x/sys/unix/gccgo_c.c
generated
vendored
@@ -2,8 +2,8 @@
|
|||||||
// 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 gccgo
|
//go:build gccgo && !aix && !hurd
|
||||||
// +build !aix
|
// +build gccgo,!aix,!hurd
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|||||||
70
vendor/golang.org/x/sys/unix/ioctl_signed.go
generated
vendored
Normal file
70
vendor/golang.org/x/sys/unix/ioctl_signed.go
generated
vendored
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
// 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.
|
||||||
|
|
||||||
|
//go:build aix || solaris
|
||||||
|
// +build aix solaris
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
// 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 int, value int) error {
|
||||||
|
return ioctl(fd, req, uintptr(value))
|
||||||
|
}
|
||||||
|
|
||||||
|
// 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 int, value int) error {
|
||||||
|
v := int32(value)
|
||||||
|
return ioctlPtr(fd, req, unsafe.Pointer(&v))
|
||||||
|
}
|
||||||
|
|
||||||
|
// 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 int, value *Winsize) error {
|
||||||
|
// TODO: if we get the chance, remove the req parameter and
|
||||||
|
// hardcode TIOCSWINSZ.
|
||||||
|
return ioctlPtr(fd, req, unsafe.Pointer(value))
|
||||||
|
}
|
||||||
|
|
||||||
|
// IoctlSetTermios performs an ioctl on fd with a *Termios.
|
||||||
|
//
|
||||||
|
// The req value will usually be TCSETA or TIOCSETA.
|
||||||
|
func IoctlSetTermios(fd int, req int, value *Termios) error {
|
||||||
|
// TODO: if we get the chance, remove the req parameter.
|
||||||
|
return ioctlPtr(fd, req, unsafe.Pointer(value))
|
||||||
|
}
|
||||||
|
|
||||||
|
// IoctlGetInt performs an ioctl operation which gets an integer value
|
||||||
|
// from fd, using the specified request number.
|
||||||
|
//
|
||||||
|
// A few ioctl requests use the return value as an output parameter;
|
||||||
|
// for those, IoctlRetInt should be used instead of this function.
|
||||||
|
func IoctlGetInt(fd int, req int) (int, error) {
|
||||||
|
var value int
|
||||||
|
err := ioctlPtr(fd, req, unsafe.Pointer(&value))
|
||||||
|
return value, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlGetWinsize(fd int, req int) (*Winsize, error) {
|
||||||
|
var value Winsize
|
||||||
|
err := ioctlPtr(fd, req, unsafe.Pointer(&value))
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlGetTermios(fd int, req int) (*Termios, error) {
|
||||||
|
var value Termios
|
||||||
|
err := ioctlPtr(fd, req, unsafe.Pointer(&value))
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
21
vendor/golang.org/x/sys/unix/ioctl.go → vendor/golang.org/x/sys/unix/ioctl_unsigned.go
generated
vendored
21
vendor/golang.org/x/sys/unix/ioctl.go → vendor/golang.org/x/sys/unix/ioctl_unsigned.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.
|
||||||
|
|
||||||
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
//go:build darwin || dragonfly || freebsd || hurd || linux || netbsd || openbsd
|
||||||
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
// +build darwin dragonfly freebsd hurd linux netbsd openbsd
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"runtime"
|
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -27,7 +26,7 @@ func IoctlSetInt(fd int, req uint, value int) error {
|
|||||||
// passing the integer value directly.
|
// passing the integer value directly.
|
||||||
func IoctlSetPointerInt(fd int, req uint, value int) error {
|
func IoctlSetPointerInt(fd int, req uint, value int) error {
|
||||||
v := int32(value)
|
v := int32(value)
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(&v)))
|
return ioctlPtr(fd, req, unsafe.Pointer(&v))
|
||||||
}
|
}
|
||||||
|
|
||||||
// IoctlSetWinsize performs an ioctl on fd with a *Winsize argument.
|
// IoctlSetWinsize performs an ioctl on fd with a *Winsize argument.
|
||||||
@@ -36,9 +35,7 @@ func IoctlSetPointerInt(fd int, req uint, value int) error {
|
|||||||
func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||||
// TODO: if we get the chance, remove the req parameter and
|
// TODO: if we get the chance, remove the req parameter and
|
||||||
// hardcode TIOCSWINSZ.
|
// hardcode TIOCSWINSZ.
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
return ioctlPtr(fd, req, unsafe.Pointer(value))
|
||||||
runtime.KeepAlive(value)
|
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// IoctlSetTermios performs an ioctl on fd with a *Termios.
|
// IoctlSetTermios performs an ioctl on fd with a *Termios.
|
||||||
@@ -46,9 +43,7 @@ func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
|||||||
// The req value will usually be TCSETA or TIOCSETA.
|
// The req value will usually be TCSETA or TIOCSETA.
|
||||||
func IoctlSetTermios(fd int, req uint, value *Termios) error {
|
func IoctlSetTermios(fd int, req uint, value *Termios) error {
|
||||||
// TODO: if we get the chance, remove the req parameter.
|
// TODO: if we get the chance, remove the req parameter.
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
return ioctlPtr(fd, req, 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
|
||||||
@@ -58,18 +53,18 @@ func IoctlSetTermios(fd int, req uint, value *Termios) error {
|
|||||||
// for those, IoctlRetInt should be used instead of this function.
|
// for those, IoctlRetInt should be used instead of this function.
|
||||||
func IoctlGetInt(fd int, req uint) (int, error) {
|
func IoctlGetInt(fd int, req uint) (int, error) {
|
||||||
var value int
|
var value int
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
err := ioctlPtr(fd, req, unsafe.Pointer(&value))
|
||||||
return value, err
|
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 := ioctlPtr(fd, req, unsafe.Pointer(&value))
|
||||||
return &value, err
|
return &value, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
||||||
var value Termios
|
var value Termios
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
err := ioctlPtr(fd, req, unsafe.Pointer(&value))
|
||||||
return &value, err
|
return &value, err
|
||||||
}
|
}
|
||||||
20
vendor/golang.org/x/sys/unix/ioctl_zos.go
generated
vendored
20
vendor/golang.org/x/sys/unix/ioctl_zos.go
generated
vendored
@@ -17,25 +17,23 @@ import (
|
|||||||
|
|
||||||
// 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 int, value int) error {
|
||||||
return ioctl(fd, req, uintptr(value))
|
return ioctl(fd, req, uintptr(value))
|
||||||
}
|
}
|
||||||
|
|
||||||
// IoctlSetWinsize performs an ioctl on fd with a *Winsize argument.
|
// IoctlSetWinsize performs an ioctl on fd with a *Winsize argument.
|
||||||
//
|
//
|
||||||
// To change fd's window size, the req argument should be TIOCSWINSZ.
|
// To change fd's window size, the req argument should be TIOCSWINSZ.
|
||||||
func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
func IoctlSetWinsize(fd int, req int, value *Winsize) error {
|
||||||
// TODO: if we get the chance, remove the req parameter and
|
// TODO: if we get the chance, remove the req parameter and
|
||||||
// hardcode TIOCSWINSZ.
|
// hardcode TIOCSWINSZ.
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
return ioctlPtr(fd, req, unsafe.Pointer(value))
|
||||||
runtime.KeepAlive(value)
|
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// IoctlSetTermios performs an ioctl on fd with a *Termios.
|
// IoctlSetTermios performs an ioctl on fd with a *Termios.
|
||||||
//
|
//
|
||||||
// The req value is expected to be TCSETS, TCSETSW, or TCSETSF
|
// The req value is expected to be TCSETS, TCSETSW, or TCSETSF
|
||||||
func IoctlSetTermios(fd int, req uint, value *Termios) error {
|
func IoctlSetTermios(fd int, req int, value *Termios) error {
|
||||||
if (req != TCSETS) && (req != TCSETSW) && (req != TCSETSF) {
|
if (req != TCSETS) && (req != TCSETSW) && (req != TCSETSF) {
|
||||||
return ENOSYS
|
return ENOSYS
|
||||||
}
|
}
|
||||||
@@ -49,22 +47,22 @@ func IoctlSetTermios(fd int, req uint, value *Termios) error {
|
|||||||
//
|
//
|
||||||
// A few ioctl requests use the return value as an output parameter;
|
// A few ioctl requests use the return value as an output parameter;
|
||||||
// for those, IoctlRetInt should be used instead of this function.
|
// for those, IoctlRetInt should be used instead of this function.
|
||||||
func IoctlGetInt(fd int, req uint) (int, error) {
|
func IoctlGetInt(fd int, req int) (int, error) {
|
||||||
var value int
|
var value int
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
err := ioctlPtr(fd, req, unsafe.Pointer(&value))
|
||||||
return value, err
|
return value, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
func IoctlGetWinsize(fd int, req int) (*Winsize, error) {
|
||||||
var value Winsize
|
var value Winsize
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
err := ioctlPtr(fd, req, unsafe.Pointer(&value))
|
||||||
return &value, err
|
return &value, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// IoctlGetTermios performs an ioctl on fd with a *Termios.
|
// IoctlGetTermios performs an ioctl on fd with a *Termios.
|
||||||
//
|
//
|
||||||
// The req value is expected to be TCGETS
|
// The req value is expected to be TCGETS
|
||||||
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
func IoctlGetTermios(fd int, req int) (*Termios, error) {
|
||||||
var value Termios
|
var value Termios
|
||||||
if req != TCGETS {
|
if req != TCGETS {
|
||||||
return &value, ENOSYS
|
return &value, ENOSYS
|
||||||
|
|||||||
4
vendor/golang.org/x/sys/unix/mkall.sh
generated
vendored
4
vendor/golang.org/x/sys/unix/mkall.sh
generated
vendored
@@ -174,10 +174,10 @@ openbsd_arm64)
|
|||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
||||||
;;
|
;;
|
||||||
openbsd_mips64)
|
openbsd_mips64)
|
||||||
|
mkasm="go run mkasm.go"
|
||||||
mkerrors="$mkerrors -m64"
|
mkerrors="$mkerrors -m64"
|
||||||
mksyscall="go run mksyscall.go -openbsd"
|
mksyscall="go run mksyscall.go -openbsd -libc"
|
||||||
mksysctl="go run mksysctl_openbsd.go"
|
mksysctl="go run mksysctl_openbsd.go"
|
||||||
mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'"
|
|
||||||
# Let the type of C char be signed for making the bare syscall
|
# Let the type of C char be signed for making the bare syscall
|
||||||
# API consistent across platforms.
|
# API consistent across platforms.
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
||||||
|
|||||||
5
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
5
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
@@ -66,6 +66,7 @@ includes_Darwin='
|
|||||||
#include <sys/ptrace.h>
|
#include <sys/ptrace.h>
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
#include <sys/sockio.h>
|
#include <sys/sockio.h>
|
||||||
#include <sys/sys_domain.h>
|
#include <sys/sys_domain.h>
|
||||||
@@ -203,6 +204,7 @@ struct ltchars {
|
|||||||
#include <sys/timerfd.h>
|
#include <sys/timerfd.h>
|
||||||
#include <sys/uio.h>
|
#include <sys/uio.h>
|
||||||
#include <sys/xattr.h>
|
#include <sys/xattr.h>
|
||||||
|
#include <netinet/udp.h>
|
||||||
#include <linux/audit.h>
|
#include <linux/audit.h>
|
||||||
#include <linux/bpf.h>
|
#include <linux/bpf.h>
|
||||||
#include <linux/can.h>
|
#include <linux/can.h>
|
||||||
@@ -517,10 +519,11 @@ ccflags="$@"
|
|||||||
$2 ~ /^LOCK_(SH|EX|NB|UN)$/ ||
|
$2 ~ /^LOCK_(SH|EX|NB|UN)$/ ||
|
||||||
$2 ~ /^LO_(KEY|NAME)_SIZE$/ ||
|
$2 ~ /^LO_(KEY|NAME)_SIZE$/ ||
|
||||||
$2 ~ /^LOOP_(CLR|CTL|GET|SET)_/ ||
|
$2 ~ /^LOOP_(CLR|CTL|GET|SET)_/ ||
|
||||||
$2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|TCP|MCAST|EVFILT|NOTE|SHUT|PROT|MAP|MFD|T?PACKET|MSG|SCM|MCL|DT|MADV|PR|LOCAL|TCPOPT)_/ ||
|
$2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|TCP|MCAST|EVFILT|NOTE|SHUT|PROT|MAP|MFD|T?PACKET|MSG|SCM|MCL|DT|MADV|PR|LOCAL|TCPOPT|UDP)_/ ||
|
||||||
$2 ~ /^NFC_(GENL|PROTO|COMM|RF|SE|DIRECTION|LLCP|SOCKPROTO)_/ ||
|
$2 ~ /^NFC_(GENL|PROTO|COMM|RF|SE|DIRECTION|LLCP|SOCKPROTO)_/ ||
|
||||||
$2 ~ /^NFC_.*_(MAX)?SIZE$/ ||
|
$2 ~ /^NFC_.*_(MAX)?SIZE$/ ||
|
||||||
$2 ~ /^RAW_PAYLOAD_/ ||
|
$2 ~ /^RAW_PAYLOAD_/ ||
|
||||||
|
$2 ~ /^[US]F_/ ||
|
||||||
$2 ~ /^TP_STATUS_/ ||
|
$2 ~ /^TP_STATUS_/ ||
|
||||||
$2 ~ /^FALLOC_/ ||
|
$2 ~ /^FALLOC_/ ||
|
||||||
$2 ~ /^ICMPV?6?_(FILTER|SEC)/ ||
|
$2 ~ /^ICMPV?6?_(FILTER|SEC)/ ||
|
||||||
|
|||||||
6
vendor/golang.org/x/sys/unix/ptrace_darwin.go
generated
vendored
6
vendor/golang.org/x/sys/unix/ptrace_darwin.go
generated
vendored
@@ -7,6 +7,12 @@
|
|||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
import "unsafe"
|
||||||
|
|
||||||
func ptrace(request int, pid int, addr uintptr, data uintptr) error {
|
func ptrace(request int, pid int, addr uintptr, data uintptr) error {
|
||||||
return ptrace1(request, pid, addr, data)
|
return ptrace1(request, pid, addr, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func ptracePtr(request int, pid int, addr uintptr, data unsafe.Pointer) error {
|
||||||
|
return ptrace1Ptr(request, pid, addr, data)
|
||||||
|
}
|
||||||
|
|||||||
6
vendor/golang.org/x/sys/unix/ptrace_ios.go
generated
vendored
6
vendor/golang.org/x/sys/unix/ptrace_ios.go
generated
vendored
@@ -7,6 +7,12 @@
|
|||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
import "unsafe"
|
||||||
|
|
||||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||||
return ENOTSUP
|
return ENOTSUP
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func ptracePtr(request int, pid int, addr uintptr, data unsafe.Pointer) (err error) {
|
||||||
|
return ENOTSUP
|
||||||
|
}
|
||||||
|
|||||||
7
vendor/golang.org/x/sys/unix/syscall_aix.go
generated
vendored
7
vendor/golang.org/x/sys/unix/syscall_aix.go
generated
vendored
@@ -292,9 +292,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
sa.Name = string(unsafe.Slice((*byte)(unsafe.Pointer(&pp.Path[0])), n))
|
||||||
bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
|
||||||
sa.Name = string(bytes)
|
|
||||||
return sa, nil
|
return sa, nil
|
||||||
|
|
||||||
case AF_INET:
|
case AF_INET:
|
||||||
@@ -410,7 +408,8 @@ func (w WaitStatus) CoreDump() bool { return w&0x80 == 0x80 }
|
|||||||
|
|
||||||
func (w WaitStatus) TrapCause() int { return -1 }
|
func (w WaitStatus) TrapCause() int { return -1 }
|
||||||
|
|
||||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
//sys ioctl(fd int, req int, arg uintptr) (err error)
|
||||||
|
//sys ioctlPtr(fd int, req int, arg unsafe.Pointer) (err error) = ioctl
|
||||||
|
|
||||||
// fcntl must never be called with cmd=F_DUP2FD because it doesn't work on AIX
|
// 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,
|
// There is no way to create a custom fcntl and to keep //sys fcntl easily,
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/syscall_aix_ppc.go
generated
vendored
1
vendor/golang.org/x/sys/unix/syscall_aix_ppc.go
generated
vendored
@@ -8,7 +8,6 @@
|
|||||||
package unix
|
package unix
|
||||||
|
|
||||||
//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) = getrlimit64
|
//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 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)
|
//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go
generated
vendored
1
vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go
generated
vendored
@@ -8,7 +8,6 @@
|
|||||||
package unix
|
package unix
|
||||||
|
|
||||||
//sysnb Getrlimit(resource int, rlim *Rlimit) (err error)
|
//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 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
|
//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) = mmap64
|
||||||
|
|||||||
3
vendor/golang.org/x/sys/unix/syscall_bsd.go
generated
vendored
3
vendor/golang.org/x/sys/unix/syscall_bsd.go
generated
vendored
@@ -245,8 +245,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
sa.Name = string(unsafe.Slice((*byte)(unsafe.Pointer(&pp.Path[0])), n))
|
||||||
sa.Name = string(bytes)
|
|
||||||
return sa, nil
|
return sa, nil
|
||||||
|
|
||||||
case AF_INET:
|
case AF_INET:
|
||||||
|
|||||||
16
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
16
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
@@ -14,7 +14,6 @@ package unix
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"runtime"
|
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
@@ -230,6 +229,7 @@ func direntNamlen(buf []byte) (uint64, bool) {
|
|||||||
|
|
||||||
func PtraceAttach(pid int) (err error) { return ptrace(PT_ATTACH, pid, 0, 0) }
|
func PtraceAttach(pid int) (err error) { return ptrace(PT_ATTACH, pid, 0, 0) }
|
||||||
func PtraceDetach(pid int) (err error) { return ptrace(PT_DETACH, pid, 0, 0) }
|
func PtraceDetach(pid int) (err error) { return ptrace(PT_DETACH, pid, 0, 0) }
|
||||||
|
func PtraceDenyAttach() (err error) { return ptrace(PT_DENY_ATTACH, 0, 0, 0) }
|
||||||
|
|
||||||
//sysnb pipe(p *[2]int32) (err error)
|
//sysnb pipe(p *[2]int32) (err error)
|
||||||
|
|
||||||
@@ -375,11 +375,10 @@ func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
|||||||
func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(signum), 1) }
|
func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(signum), 1) }
|
||||||
|
|
||||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||||
|
//sys ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) = SYS_IOCTL
|
||||||
|
|
||||||
func IoctlCtlInfo(fd int, ctlInfo *CtlInfo) error {
|
func IoctlCtlInfo(fd int, ctlInfo *CtlInfo) error {
|
||||||
err := ioctl(fd, CTLIOCGINFO, uintptr(unsafe.Pointer(ctlInfo)))
|
return ioctlPtr(fd, CTLIOCGINFO, unsafe.Pointer(ctlInfo))
|
||||||
runtime.KeepAlive(ctlInfo)
|
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// IfreqMTU is struct ifreq used to get or set a network device's MTU.
|
// IfreqMTU is struct ifreq used to get or set a network device's MTU.
|
||||||
@@ -393,16 +392,14 @@ type IfreqMTU struct {
|
|||||||
func IoctlGetIfreqMTU(fd int, ifname string) (*IfreqMTU, error) {
|
func IoctlGetIfreqMTU(fd int, ifname string) (*IfreqMTU, error) {
|
||||||
var ifreq IfreqMTU
|
var ifreq IfreqMTU
|
||||||
copy(ifreq.Name[:], ifname)
|
copy(ifreq.Name[:], ifname)
|
||||||
err := ioctl(fd, SIOCGIFMTU, uintptr(unsafe.Pointer(&ifreq)))
|
err := ioctlPtr(fd, SIOCGIFMTU, unsafe.Pointer(&ifreq))
|
||||||
return &ifreq, err
|
return &ifreq, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// IoctlSetIfreqMTU performs the SIOCSIFMTU ioctl operation on fd to set the MTU
|
// IoctlSetIfreqMTU performs the SIOCSIFMTU ioctl operation on fd to set the MTU
|
||||||
// of the network device specified by ifreq.Name.
|
// of the network device specified by ifreq.Name.
|
||||||
func IoctlSetIfreqMTU(fd int, ifreq *IfreqMTU) error {
|
func IoctlSetIfreqMTU(fd int, ifreq *IfreqMTU) error {
|
||||||
err := ioctl(fd, SIOCSIFMTU, uintptr(unsafe.Pointer(ifreq)))
|
return ioctlPtr(fd, SIOCSIFMTU, unsafe.Pointer(ifreq))
|
||||||
runtime.KeepAlive(ifreq)
|
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS_SYSCTL
|
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS_SYSCTL
|
||||||
@@ -616,6 +613,7 @@ func SysctlKinfoProcSlice(name string, args ...int) ([]KinfoProc, 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
|
||||||
//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 Setattrlist(path string, attrlist *Attrlist, attrBuf []byte, options int) (err error)
|
||||||
//sys Setegid(egid int) (err error)
|
//sys Setegid(egid int) (err error)
|
||||||
//sysnb Seteuid(euid int) (err error)
|
//sysnb Seteuid(euid int) (err error)
|
||||||
//sysnb Setgid(gid int) (err error)
|
//sysnb Setgid(gid int) (err error)
|
||||||
@@ -625,7 +623,6 @@ func SysctlKinfoProcSlice(name string, args ...int) ([]KinfoProc, error) {
|
|||||||
//sys Setprivexec(flag int) (err error)
|
//sys Setprivexec(flag int) (err error)
|
||||||
//sysnb Setregid(rgid int, egid int) (err error)
|
//sysnb Setregid(rgid int, egid int) (err error)
|
||||||
//sysnb Setreuid(ruid int, euid int) (err error)
|
//sysnb Setreuid(ruid int, euid int) (err error)
|
||||||
//sysnb Setrlimit(which int, lim *Rlimit) (err 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)
|
||||||
@@ -679,7 +676,6 @@ func SysctlKinfoProcSlice(name string, args ...int) ([]KinfoProc, error) {
|
|||||||
// Kqueue_from_portset_np
|
// Kqueue_from_portset_np
|
||||||
// Kqueue_portset
|
// Kqueue_portset
|
||||||
// Getattrlist
|
// Getattrlist
|
||||||
// Setattrlist
|
|
||||||
// Getdirentriesattr
|
// Getdirentriesattr
|
||||||
// Searchfs
|
// Searchfs
|
||||||
// Delete
|
// Delete
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go
generated
vendored
1
vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go
generated
vendored
@@ -47,5 +47,6 @@ func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr,
|
|||||||
//sys getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT64
|
//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 Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
||||||
//sys ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) = SYS_ptrace
|
//sys ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) = SYS_ptrace
|
||||||
|
//sys ptrace1Ptr(request int, pid int, addr unsafe.Pointer, data uintptr) (err error) = SYS_ptrace
|
||||||
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
||||||
//sys Statfs(path string, stat *Statfs_t) (err error) = SYS_STATFS64
|
//sys Statfs(path string, stat *Statfs_t) (err error) = SYS_STATFS64
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go
generated
vendored
1
vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go
generated
vendored
@@ -47,5 +47,6 @@ func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr,
|
|||||||
//sys getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT
|
//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 Lstat(path string, stat *Stat_t) (err error)
|
||||||
//sys ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) = SYS_ptrace
|
//sys ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) = SYS_ptrace
|
||||||
|
//sys ptrace1Ptr(request int, pid int, addr unsafe.Pointer, data uintptr) (err error) = SYS_ptrace
|
||||||
//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)
|
||||||
|
|||||||
3
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
3
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
@@ -172,6 +172,7 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||||
|
//sys ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) = SYS_IOCTL
|
||||||
|
|
||||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||||
|
|
||||||
@@ -255,6 +256,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|||||||
//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)
|
||||||
@@ -324,7 +326,6 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|||||||
//sysnb Setreuid(ruid int, euid int) (err error)
|
//sysnb Setreuid(ruid int, euid int) (err error)
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
||||||
//sysnb Setrlimit(which int, lim *Rlimit) (err 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)
|
||||||
|
|||||||
45
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
45
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
@@ -161,7 +161,8 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
//sys ioctl(fd int, req uint, arg uintptr) (err error) = SYS_IOCTL
|
||||||
|
//sys ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) = SYS_IOCTL
|
||||||
|
|
||||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||||
|
|
||||||
@@ -253,6 +254,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|||||||
}
|
}
|
||||||
|
|
||||||
//sys ptrace(request int, pid int, addr uintptr, data int) (err error)
|
//sys ptrace(request int, pid int, addr uintptr, data int) (err error)
|
||||||
|
//sys ptracePtr(request int, pid int, addr unsafe.Pointer, data int) (err error) = SYS_PTRACE
|
||||||
|
|
||||||
func PtraceAttach(pid int) (err error) {
|
func PtraceAttach(pid int) (err error) {
|
||||||
return ptrace(PT_ATTACH, pid, 0, 0)
|
return ptrace(PT_ATTACH, pid, 0, 0)
|
||||||
@@ -267,19 +269,36 @@ func PtraceDetach(pid int) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func PtraceGetFpRegs(pid int, fpregsout *FpReg) (err error) {
|
func PtraceGetFpRegs(pid int, fpregsout *FpReg) (err error) {
|
||||||
return ptrace(PT_GETFPREGS, pid, uintptr(unsafe.Pointer(fpregsout)), 0)
|
return ptracePtr(PT_GETFPREGS, pid, unsafe.Pointer(fpregsout), 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
func PtraceGetRegs(pid int, regsout *Reg) (err error) {
|
func PtraceGetRegs(pid int, regsout *Reg) (err error) {
|
||||||
return ptrace(PT_GETREGS, pid, uintptr(unsafe.Pointer(regsout)), 0)
|
return ptracePtr(PT_GETREGS, pid, unsafe.Pointer(regsout), 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtraceIO(req int, pid int, offs uintptr, out []byte, countin int) (count int, err error) {
|
||||||
|
ioDesc := PtraceIoDesc{
|
||||||
|
Op: int32(req),
|
||||||
|
Offs: offs,
|
||||||
|
}
|
||||||
|
if countin > 0 {
|
||||||
|
_ = out[:countin] // check bounds
|
||||||
|
ioDesc.Addr = &out[0]
|
||||||
|
} else if out != nil {
|
||||||
|
ioDesc.Addr = (*byte)(unsafe.Pointer(&_zero))
|
||||||
|
}
|
||||||
|
ioDesc.SetLen(countin)
|
||||||
|
|
||||||
|
err = ptracePtr(PT_IO, pid, unsafe.Pointer(&ioDesc), 0)
|
||||||
|
return int(ioDesc.Len), err
|
||||||
}
|
}
|
||||||
|
|
||||||
func PtraceLwpEvents(pid int, enable int) (err error) {
|
func PtraceLwpEvents(pid int, enable int) (err error) {
|
||||||
return ptrace(PT_LWP_EVENTS, pid, 0, enable)
|
return ptrace(PT_LWP_EVENTS, pid, 0, enable)
|
||||||
}
|
}
|
||||||
|
|
||||||
func PtraceLwpInfo(pid int, info uintptr) (err error) {
|
func PtraceLwpInfo(pid int, info *PtraceLwpInfoStruct) (err error) {
|
||||||
return ptrace(PT_LWPINFO, pid, info, int(unsafe.Sizeof(PtraceLwpInfoStruct{})))
|
return ptracePtr(PT_LWPINFO, pid, unsafe.Pointer(info), int(unsafe.Sizeof(*info)))
|
||||||
}
|
}
|
||||||
|
|
||||||
func PtracePeekData(pid int, addr uintptr, out []byte) (count int, err error) {
|
func PtracePeekData(pid int, addr uintptr, out []byte) (count int, err error) {
|
||||||
@@ -299,13 +318,25 @@ func PtracePokeText(pid int, addr uintptr, data []byte) (count int, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func PtraceSetRegs(pid int, regs *Reg) (err error) {
|
func PtraceSetRegs(pid int, regs *Reg) (err error) {
|
||||||
return ptrace(PT_SETREGS, pid, uintptr(unsafe.Pointer(regs)), 0)
|
return ptracePtr(PT_SETREGS, pid, unsafe.Pointer(regs), 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
func PtraceSingleStep(pid int) (err error) {
|
func PtraceSingleStep(pid int) (err error) {
|
||||||
return ptrace(PT_STEP, pid, 1, 0)
|
return ptrace(PT_STEP, pid, 1, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Dup3(oldfd, newfd, flags int) error {
|
||||||
|
if oldfd == newfd || flags&^O_CLOEXEC != 0 {
|
||||||
|
return EINVAL
|
||||||
|
}
|
||||||
|
how := F_DUP2FD
|
||||||
|
if flags&O_CLOEXEC != 0 {
|
||||||
|
how = F_DUP2FD_CLOEXEC
|
||||||
|
}
|
||||||
|
_, err := fcntl(oldfd, how, newfd)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Exposed directly
|
* Exposed directly
|
||||||
*/
|
*/
|
||||||
@@ -319,6 +350,7 @@ func PtraceSingleStep(pid int) (err 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)
|
||||||
@@ -401,7 +433,6 @@ func PtraceSingleStep(pid int) (err error) {
|
|||||||
//sysnb Setreuid(ruid int, euid int) (err error)
|
//sysnb Setreuid(ruid int, euid int) (err error)
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
||||||
//sysnb Setrlimit(which int, lim *Rlimit) (err 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)
|
||||||
|
|||||||
12
vendor/golang.org/x/sys/unix/syscall_freebsd_386.go
generated
vendored
12
vendor/golang.org/x/sys/unix/syscall_freebsd_386.go
generated
vendored
@@ -42,6 +42,10 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
|||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (d *PtraceIoDesc) SetLen(length int) {
|
||||||
|
d.Len = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
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) {
|
||||||
var writtenOut uint64 = 0
|
var writtenOut uint64 = 0
|
||||||
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr((*offset)>>32), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0)
|
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr((*offset)>>32), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0)
|
||||||
@@ -57,11 +61,5 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|||||||
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)
|
||||||
|
|
||||||
func PtraceGetFsBase(pid int, fsbase *int64) (err error) {
|
func PtraceGetFsBase(pid int, fsbase *int64) (err error) {
|
||||||
return ptrace(PT_GETFSBASE, pid, uintptr(unsafe.Pointer(fsbase)), 0)
|
return ptracePtr(PT_GETFSBASE, pid, unsafe.Pointer(fsbase), 0)
|
||||||
}
|
|
||||||
|
|
||||||
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
|
||||||
ioDesc := PtraceIoDesc{Op: int32(req), Offs: uintptr(unsafe.Pointer(addr)), Addr: uintptr(unsafe.Pointer(&out[0])), Len: uint32(countin)}
|
|
||||||
err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
|
||||||
return int(ioDesc.Len), err
|
|
||||||
}
|
}
|
||||||
|
|||||||
12
vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
generated
vendored
12
vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
generated
vendored
@@ -42,6 +42,10 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
|||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (d *PtraceIoDesc) SetLen(length int) {
|
||||||
|
d.Len = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
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) {
|
||||||
var writtenOut uint64 = 0
|
var writtenOut uint64 = 0
|
||||||
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0, 0)
|
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0, 0)
|
||||||
@@ -57,11 +61,5 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|||||||
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)
|
||||||
|
|
||||||
func PtraceGetFsBase(pid int, fsbase *int64) (err error) {
|
func PtraceGetFsBase(pid int, fsbase *int64) (err error) {
|
||||||
return ptrace(PT_GETFSBASE, pid, uintptr(unsafe.Pointer(fsbase)), 0)
|
return ptracePtr(PT_GETFSBASE, pid, unsafe.Pointer(fsbase), 0)
|
||||||
}
|
|
||||||
|
|
||||||
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
|
||||||
ioDesc := PtraceIoDesc{Op: int32(req), Offs: uintptr(unsafe.Pointer(addr)), Addr: uintptr(unsafe.Pointer(&out[0])), Len: uint64(countin)}
|
|
||||||
err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
|
||||||
return int(ioDesc.Len), err
|
|
||||||
}
|
}
|
||||||
|
|||||||
10
vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
generated
vendored
10
vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
generated
vendored
@@ -42,6 +42,10 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
|||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (d *PtraceIoDesc) SetLen(length int) {
|
||||||
|
d.Len = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
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) {
|
||||||
var writtenOut uint64 = 0
|
var writtenOut uint64 = 0
|
||||||
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr((*offset)>>32), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0)
|
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr((*offset)>>32), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0)
|
||||||
@@ -55,9 +59,3 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|||||||
}
|
}
|
||||||
|
|
||||||
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)
|
||||||
|
|
||||||
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
|
||||||
ioDesc := PtraceIoDesc{Op: int32(req), Offs: uintptr(unsafe.Pointer(addr)), Addr: uintptr(unsafe.Pointer(&out[0])), Len: uint32(countin)}
|
|
||||||
err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
|
||||||
return int(ioDesc.Len), err
|
|
||||||
}
|
|
||||||
|
|||||||
10
vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
generated
vendored
10
vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
generated
vendored
@@ -42,6 +42,10 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
|||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (d *PtraceIoDesc) SetLen(length int) {
|
||||||
|
d.Len = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
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) {
|
||||||
var writtenOut uint64 = 0
|
var writtenOut uint64 = 0
|
||||||
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0, 0)
|
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0, 0)
|
||||||
@@ -55,9 +59,3 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|||||||
}
|
}
|
||||||
|
|
||||||
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)
|
||||||
|
|
||||||
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
|
||||||
ioDesc := PtraceIoDesc{Op: int32(req), Offs: uintptr(unsafe.Pointer(addr)), Addr: uintptr(unsafe.Pointer(&out[0])), Len: uint64(countin)}
|
|
||||||
err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
|
||||||
return int(ioDesc.Len), err
|
|
||||||
}
|
|
||||||
|
|||||||
10
vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go
generated
vendored
10
vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go
generated
vendored
@@ -42,6 +42,10 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
|||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (d *PtraceIoDesc) SetLen(length int) {
|
||||||
|
d.Len = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
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) {
|
||||||
var writtenOut uint64 = 0
|
var writtenOut uint64 = 0
|
||||||
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0, 0)
|
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0, 0)
|
||||||
@@ -55,9 +59,3 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|||||||
}
|
}
|
||||||
|
|
||||||
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)
|
||||||
|
|
||||||
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
|
||||||
ioDesc := PtraceIoDesc{Op: int32(req), Offs: uintptr(unsafe.Pointer(addr)), Addr: uintptr(unsafe.Pointer(&out[0])), Len: uint64(countin)}
|
|
||||||
err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
|
||||||
return int(ioDesc.Len), err
|
|
||||||
}
|
|
||||||
|
|||||||
30
vendor/golang.org/x/sys/unix/syscall_hurd.go
generated
vendored
Normal file
30
vendor/golang.org/x/sys/unix/syscall_hurd.go
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
// Copyright 2022 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.
|
||||||
|
|
||||||
|
//go:build hurd
|
||||||
|
// +build hurd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
/*
|
||||||
|
#include <stdint.h>
|
||||||
|
int ioctl(int, unsigned long int, uintptr_t);
|
||||||
|
*/
|
||||||
|
import "C"
|
||||||
|
|
||||||
|
func ioctl(fd int, req uint, arg uintptr) (err error) {
|
||||||
|
r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(arg))
|
||||||
|
if r0 == -1 && er != nil {
|
||||||
|
err = er
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
||||||
|
r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(uintptr(arg)))
|
||||||
|
if r0 == -1 && er != nil {
|
||||||
|
err = er
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
29
vendor/golang.org/x/sys/unix/syscall_hurd_386.go
generated
vendored
Normal file
29
vendor/golang.org/x/sys/unix/syscall_hurd_386.go
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
// Copyright 2022 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.
|
||||||
|
|
||||||
|
//go:build 386 && hurd
|
||||||
|
// +build 386,hurd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
const (
|
||||||
|
TIOCGETA = 0x62251713
|
||||||
|
)
|
||||||
|
|
||||||
|
type Winsize struct {
|
||||||
|
Row uint16
|
||||||
|
Col uint16
|
||||||
|
Xpixel uint16
|
||||||
|
Ypixel uint16
|
||||||
|
}
|
||||||
|
|
||||||
|
type Termios struct {
|
||||||
|
Iflag uint32
|
||||||
|
Oflag uint32
|
||||||
|
Cflag uint32
|
||||||
|
Lflag uint32
|
||||||
|
Cc [20]uint8
|
||||||
|
Ispeed int32
|
||||||
|
Ospeed int32
|
||||||
|
}
|
||||||
97
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
97
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
@@ -1015,8 +1015,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
|||||||
for n < len(pp.Path) && pp.Path[n] != 0 {
|
for n < len(pp.Path) && pp.Path[n] != 0 {
|
||||||
n++
|
n++
|
||||||
}
|
}
|
||||||
bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
sa.Name = string(unsafe.Slice((*byte)(unsafe.Pointer(&pp.Path[0])), n))
|
||||||
sa.Name = string(bytes)
|
|
||||||
return sa, nil
|
return sa, nil
|
||||||
|
|
||||||
case AF_INET:
|
case AF_INET:
|
||||||
@@ -1365,6 +1364,10 @@ func SetsockoptTCPRepairOpt(fd, level, opt int, o []TCPRepairOpt) (err error) {
|
|||||||
return setsockopt(fd, level, opt, unsafe.Pointer(&o[0]), uintptr(SizeofTCPRepairOpt*len(o)))
|
return setsockopt(fd, level, opt, unsafe.Pointer(&o[0]), uintptr(SizeofTCPRepairOpt*len(o)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func SetsockoptTCPMD5Sig(fd, level, opt int, s *TCPMD5Sig) error {
|
||||||
|
return setsockopt(fd, level, opt, unsafe.Pointer(s), unsafe.Sizeof(*s))
|
||||||
|
}
|
||||||
|
|
||||||
// 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.
|
||||||
@@ -1579,6 +1582,7 @@ func BindToDevice(fd int, device string) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
|
//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
|
||||||
|
//sys ptracePtr(request int, pid int, addr uintptr, data unsafe.Pointer) (err error) = SYS_PTRACE
|
||||||
|
|
||||||
func ptracePeek(req int, pid int, addr uintptr, out []byte) (count int, err error) {
|
func ptracePeek(req int, pid int, addr uintptr, out []byte) (count int, err error) {
|
||||||
// The peek requests are machine-size oriented, so we wrap it
|
// The peek requests are machine-size oriented, so we wrap it
|
||||||
@@ -1596,7 +1600,7 @@ func ptracePeek(req int, pid int, addr uintptr, out []byte) (count int, err erro
|
|||||||
// 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 = ptracePtr(req, pid, addr-addr%SizeofPtr, unsafe.Pointer(&buf[0]))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
@@ -1608,7 +1612,7 @@ func ptracePeek(req int, pid int, addr uintptr, out []byte) (count int, err erro
|
|||||||
for len(out) > 0 {
|
for len(out) > 0 {
|
||||||
// We use an internal buffer to guarantee alignment.
|
// We use an internal buffer to guarantee alignment.
|
||||||
// It's not documented if this is necessary, but we're paranoid.
|
// It's not documented if this is necessary, but we're paranoid.
|
||||||
err = ptrace(req, pid, addr+uintptr(n), uintptr(unsafe.Pointer(&buf[0])))
|
err = ptracePtr(req, pid, addr+uintptr(n), unsafe.Pointer(&buf[0]))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return n, err
|
return n, err
|
||||||
}
|
}
|
||||||
@@ -1640,7 +1644,7 @@ func ptracePoke(pokeReq int, peekReq int, pid int, addr uintptr, data []byte) (c
|
|||||||
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 = ptracePtr(peekReq, pid, addr-addr%SizeofPtr, unsafe.Pointer(&buf[0]))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
@@ -1667,7 +1671,7 @@ func ptracePoke(pokeReq int, peekReq int, pid int, addr uintptr, data []byte) (c
|
|||||||
// 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 = ptracePtr(peekReq, pid, addr+uintptr(n), unsafe.Pointer(&buf[0]))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return n, err
|
return n, err
|
||||||
}
|
}
|
||||||
@@ -1696,11 +1700,11 @@ func PtracePokeUser(pid int, addr uintptr, data []byte) (count int, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error) {
|
func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error) {
|
||||||
return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
|
||||||
}
|
}
|
||||||
|
|
||||||
func PtraceSetRegs(pid int, regs *PtraceRegs) (err error) {
|
func PtraceSetRegs(pid int, regs *PtraceRegs) (err error) {
|
||||||
return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
|
||||||
}
|
}
|
||||||
|
|
||||||
func PtraceSetOptions(pid int, options int) (err error) {
|
func PtraceSetOptions(pid int, options int) (err error) {
|
||||||
@@ -1709,7 +1713,7 @@ func PtraceSetOptions(pid int, options int) (err error) {
|
|||||||
|
|
||||||
func PtraceGetEventMsg(pid int) (msg uint, err error) {
|
func PtraceGetEventMsg(pid int) (msg uint, err error) {
|
||||||
var data _C_long
|
var data _C_long
|
||||||
err = ptrace(PTRACE_GETEVENTMSG, pid, 0, uintptr(unsafe.Pointer(&data)))
|
err = ptracePtr(PTRACE_GETEVENTMSG, pid, 0, unsafe.Pointer(&data))
|
||||||
msg = uint(data)
|
msg = uint(data)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -1800,6 +1804,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|||||||
//sysnb Capset(hdr *CapUserHeader, data *CapUserData) (err error)
|
//sysnb 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 ClockAdjtime(clockid int32, buf *Timex) (state int, err error)
|
||||||
//sys ClockGetres(clockid int32, res *Timespec) (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 ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error)
|
||||||
@@ -1868,7 +1873,6 @@ func Getpgrp() (pid int) {
|
|||||||
//sys OpenTree(dfd int, fileName string, flags uint) (r int, err error)
|
//sys OpenTree(dfd int, fileName string, flags uint) (r int, err error)
|
||||||
//sys PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error)
|
//sys PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error)
|
||||||
//sys PivotRoot(newroot string, putold string) (err error) = SYS_PIVOT_ROOT
|
//sys PivotRoot(newroot string, putold string) (err error) = SYS_PIVOT_ROOT
|
||||||
//sysnb Prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) = SYS_PRLIMIT64
|
|
||||||
//sys Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error)
|
//sys Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error)
|
||||||
//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)
|
||||||
@@ -1882,6 +1886,15 @@ func Getpgrp() (pid int) {
|
|||||||
//sysnb Settimeofday(tv *Timeval) (err error)
|
//sysnb Settimeofday(tv *Timeval) (err error)
|
||||||
//sys Setns(fd int, nstype int) (err error)
|
//sys Setns(fd int, nstype int) (err error)
|
||||||
|
|
||||||
|
//go:linkname syscall_prlimit syscall.prlimit
|
||||||
|
func syscall_prlimit(pid, resource int, newlimit, old *syscall.Rlimit) error
|
||||||
|
|
||||||
|
func Prlimit(pid, resource int, newlimit, old *Rlimit) error {
|
||||||
|
// Just call the syscall version, because as of Go 1.21
|
||||||
|
// it will affect starting a new process.
|
||||||
|
return syscall_prlimit(pid, resource, (*syscall.Rlimit)(newlimit), (*syscall.Rlimit)(old))
|
||||||
|
}
|
||||||
|
|
||||||
// PrctlRetInt performs a prctl operation specified by option and further
|
// PrctlRetInt performs a prctl operation specified by option and further
|
||||||
// optional arguments arg2 through arg5 depending on option. It returns a
|
// optional arguments arg2 through arg5 depending on option. It returns a
|
||||||
// non-negative integer that is returned by the prctl syscall.
|
// non-negative integer that is returned by the prctl syscall.
|
||||||
@@ -1973,36 +1986,46 @@ func Signalfd(fd int, sigmask *Sigset_t, flags int) (newfd int, err error) {
|
|||||||
//sys preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PREADV2
|
//sys preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PREADV2
|
||||||
//sys pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PWRITEV2
|
//sys pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PWRITEV2
|
||||||
|
|
||||||
func bytes2iovec(bs [][]byte) []Iovec {
|
// minIovec is the size of the small initial allocation used by
|
||||||
iovecs := make([]Iovec, len(bs))
|
// Readv, Writev, etc.
|
||||||
for i, b := range bs {
|
//
|
||||||
iovecs[i].SetLen(len(b))
|
// This small allocation gets stack allocated, which lets the
|
||||||
|
// common use case of len(iovs) <= minIovs avoid more expensive
|
||||||
|
// heap allocations.
|
||||||
|
const minIovec = 8
|
||||||
|
|
||||||
|
// appendBytes converts bs to Iovecs and appends them to vecs.
|
||||||
|
func appendBytes(vecs []Iovec, bs [][]byte) []Iovec {
|
||||||
|
for _, b := range bs {
|
||||||
|
var v Iovec
|
||||||
|
v.SetLen(len(b))
|
||||||
if len(b) > 0 {
|
if len(b) > 0 {
|
||||||
iovecs[i].Base = &b[0]
|
v.Base = &b[0]
|
||||||
} else {
|
} else {
|
||||||
iovecs[i].Base = (*byte)(unsafe.Pointer(&_zero))
|
v.Base = (*byte)(unsafe.Pointer(&_zero))
|
||||||
}
|
}
|
||||||
|
vecs = append(vecs, v)
|
||||||
}
|
}
|
||||||
return iovecs
|
return vecs
|
||||||
}
|
}
|
||||||
|
|
||||||
// offs2lohi splits offs into its lower and upper unsigned long. On 64-bit
|
// offs2lohi splits offs into its low and high order bits.
|
||||||
// systems, hi will always be 0. On 32-bit systems, offs will be split in half.
|
|
||||||
// preadv/pwritev chose this calling convention so they don't need to add a
|
|
||||||
// padding-register for alignment on ARM.
|
|
||||||
func offs2lohi(offs int64) (lo, hi uintptr) {
|
func offs2lohi(offs int64) (lo, hi uintptr) {
|
||||||
return uintptr(offs), uintptr(uint64(offs) >> SizeofLong)
|
const longBits = SizeofLong * 8
|
||||||
|
return uintptr(offs), uintptr(uint64(offs) >> (longBits - 1) >> 1) // two shifts to avoid false positive in vet
|
||||||
}
|
}
|
||||||
|
|
||||||
func Readv(fd int, iovs [][]byte) (n int, err error) {
|
func Readv(fd int, iovs [][]byte) (n int, err error) {
|
||||||
iovecs := bytes2iovec(iovs)
|
iovecs := make([]Iovec, 0, minIovec)
|
||||||
|
iovecs = appendBytes(iovecs, iovs)
|
||||||
n, err = readv(fd, iovecs)
|
n, err = readv(fd, iovecs)
|
||||||
readvRacedetect(iovecs, n, err)
|
readvRacedetect(iovecs, n, err)
|
||||||
return n, err
|
return n, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func Preadv(fd int, iovs [][]byte, offset int64) (n int, err error) {
|
func Preadv(fd int, iovs [][]byte, offset int64) (n int, err error) {
|
||||||
iovecs := bytes2iovec(iovs)
|
iovecs := make([]Iovec, 0, minIovec)
|
||||||
|
iovecs = appendBytes(iovecs, iovs)
|
||||||
lo, hi := offs2lohi(offset)
|
lo, hi := offs2lohi(offset)
|
||||||
n, err = preadv(fd, iovecs, lo, hi)
|
n, err = preadv(fd, iovecs, lo, hi)
|
||||||
readvRacedetect(iovecs, n, err)
|
readvRacedetect(iovecs, n, err)
|
||||||
@@ -2010,7 +2033,8 @@ func Preadv(fd int, iovs [][]byte, offset int64) (n int, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Preadv2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) {
|
func Preadv2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) {
|
||||||
iovecs := bytes2iovec(iovs)
|
iovecs := make([]Iovec, 0, minIovec)
|
||||||
|
iovecs = appendBytes(iovecs, iovs)
|
||||||
lo, hi := offs2lohi(offset)
|
lo, hi := offs2lohi(offset)
|
||||||
n, err = preadv2(fd, iovecs, lo, hi, flags)
|
n, err = preadv2(fd, iovecs, lo, hi, flags)
|
||||||
readvRacedetect(iovecs, n, err)
|
readvRacedetect(iovecs, n, err)
|
||||||
@@ -2037,7 +2061,8 @@ func readvRacedetect(iovecs []Iovec, n int, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Writev(fd int, iovs [][]byte) (n int, err error) {
|
func Writev(fd int, iovs [][]byte) (n int, err error) {
|
||||||
iovecs := bytes2iovec(iovs)
|
iovecs := make([]Iovec, 0, minIovec)
|
||||||
|
iovecs = appendBytes(iovecs, iovs)
|
||||||
if raceenabled {
|
if raceenabled {
|
||||||
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
||||||
}
|
}
|
||||||
@@ -2047,7 +2072,8 @@ func Writev(fd int, iovs [][]byte) (n int, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Pwritev(fd int, iovs [][]byte, offset int64) (n int, err error) {
|
func Pwritev(fd int, iovs [][]byte, offset int64) (n int, err error) {
|
||||||
iovecs := bytes2iovec(iovs)
|
iovecs := make([]Iovec, 0, minIovec)
|
||||||
|
iovecs = appendBytes(iovecs, iovs)
|
||||||
if raceenabled {
|
if raceenabled {
|
||||||
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
||||||
}
|
}
|
||||||
@@ -2058,7 +2084,8 @@ func Pwritev(fd int, iovs [][]byte, offset int64) (n int, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Pwritev2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) {
|
func Pwritev2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) {
|
||||||
iovecs := bytes2iovec(iovs)
|
iovecs := make([]Iovec, 0, minIovec)
|
||||||
|
iovecs = appendBytes(iovecs, iovs)
|
||||||
if raceenabled {
|
if raceenabled {
|
||||||
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
||||||
}
|
}
|
||||||
@@ -2139,6 +2166,14 @@ func isGroupMember(gid int) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func isCapDacOverrideSet() bool {
|
||||||
|
hdr := CapUserHeader{Version: LINUX_CAPABILITY_VERSION_3}
|
||||||
|
data := [2]CapUserData{}
|
||||||
|
err := Capget(&hdr, &data[0])
|
||||||
|
|
||||||
|
return err == nil && data[0].Effective&(1<<CAP_DAC_OVERRIDE) != 0
|
||||||
|
}
|
||||||
|
|
||||||
//sys faccessat(dirfd int, path string, mode uint32) (err error)
|
//sys faccessat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Faccessat2(dirfd int, path string, mode uint32, flags int) (err error)
|
//sys Faccessat2(dirfd int, path string, mode uint32, flags int) (err error)
|
||||||
|
|
||||||
@@ -2174,6 +2209,12 @@ func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
|||||||
var uid int
|
var uid int
|
||||||
if flags&AT_EACCESS != 0 {
|
if flags&AT_EACCESS != 0 {
|
||||||
uid = Geteuid()
|
uid = Geteuid()
|
||||||
|
if uid != 0 && isCapDacOverrideSet() {
|
||||||
|
// If CAP_DAC_OVERRIDE is set, file access check is
|
||||||
|
// done by the kernel in the same way as for root
|
||||||
|
// (see generic_permission() in the Linux sources).
|
||||||
|
uid = 0
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
uid = Getuid()
|
uid = Getuid()
|
||||||
}
|
}
|
||||||
|
|||||||
27
vendor/golang.org/x/sys/unix/syscall_linux_386.go
generated
vendored
27
vendor/golang.org/x/sys/unix/syscall_linux_386.go
generated
vendored
@@ -97,33 +97,6 @@ func Getrlimit(resource int, rlim *Rlimit) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT
|
|
||||||
|
|
||||||
func Setrlimit(resource int, rlim *Rlimit) (err error) {
|
|
||||||
err = Prlimit(0, resource, rlim, nil)
|
|
||||||
if err != ENOSYS {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
rl := rlimit32{}
|
|
||||||
if rlim.Cur == rlimInf64 {
|
|
||||||
rl.Cur = rlimInf32
|
|
||||||
} else if rlim.Cur < uint64(rlimInf32) {
|
|
||||||
rl.Cur = uint32(rlim.Cur)
|
|
||||||
} else {
|
|
||||||
return EINVAL
|
|
||||||
}
|
|
||||||
if rlim.Max == rlimInf64 {
|
|
||||||
rl.Max = rlimInf32
|
|
||||||
} else if rlim.Max < uint64(rlimInf32) {
|
|
||||||
rl.Max = uint32(rlim.Max)
|
|
||||||
} else {
|
|
||||||
return EINVAL
|
|
||||||
}
|
|
||||||
|
|
||||||
return setrlimit(resource, &rl)
|
|
||||||
}
|
|
||||||
|
|
||||||
func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
||||||
newoffset, errno := seek(fd, offset, whence)
|
newoffset, errno := seek(fd, offset, whence)
|
||||||
if errno != 0 {
|
if errno != 0 {
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
generated
vendored
1
vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
generated
vendored
@@ -46,7 +46,6 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
|
|||||||
//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)
|
||||||
//sys setfsgid(gid int) (prev int, err error)
|
//sys setfsgid(gid int) (prev int, err error)
|
||||||
//sys setfsuid(uid int) (prev int, err error)
|
//sys setfsuid(uid int) (prev int, err error)
|
||||||
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
|
||||||
//sys Shutdown(fd int, how int) (err error)
|
//sys Shutdown(fd int, how int) (err error)
|
||||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
||||||
|
|
||||||
|
|||||||
27
vendor/golang.org/x/sys/unix/syscall_linux_arm.go
generated
vendored
27
vendor/golang.org/x/sys/unix/syscall_linux_arm.go
generated
vendored
@@ -171,33 +171,6 @@ func Getrlimit(resource int, rlim *Rlimit) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT
|
|
||||||
|
|
||||||
func Setrlimit(resource int, rlim *Rlimit) (err error) {
|
|
||||||
err = Prlimit(0, resource, rlim, nil)
|
|
||||||
if err != ENOSYS {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
rl := rlimit32{}
|
|
||||||
if rlim.Cur == rlimInf64 {
|
|
||||||
rl.Cur = rlimInf32
|
|
||||||
} else if rlim.Cur < uint64(rlimInf32) {
|
|
||||||
rl.Cur = uint32(rlim.Cur)
|
|
||||||
} else {
|
|
||||||
return EINVAL
|
|
||||||
}
|
|
||||||
if rlim.Max == rlimInf64 {
|
|
||||||
rl.Max = rlimInf32
|
|
||||||
} else if rlim.Max < uint64(rlimInf32) {
|
|
||||||
rl.Max = uint32(rlim.Max)
|
|
||||||
} else {
|
|
||||||
return EINVAL
|
|
||||||
}
|
|
||||||
|
|
||||||
return setrlimit(resource, &rl)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (r *PtraceRegs) PC() uint64 { return uint64(r.Uregs[15]) }
|
func (r *PtraceRegs) PC() uint64 { return uint64(r.Uregs[15]) }
|
||||||
|
|
||||||
func (r *PtraceRegs) SetPC(pc uint64) { r.Uregs[15] = uint32(pc) }
|
func (r *PtraceRegs) SetPC(pc uint64) { r.Uregs[15] = uint32(pc) }
|
||||||
|
|||||||
10
vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
generated
vendored
10
vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
generated
vendored
@@ -39,7 +39,6 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
|
|||||||
//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)
|
||||||
//sys setfsgid(gid int) (prev int, err error)
|
//sys setfsgid(gid int) (prev int, err error)
|
||||||
//sys setfsuid(uid int) (prev int, err error)
|
//sys setfsuid(uid int) (prev int, err error)
|
||||||
//sysnb setrlimit(resource int, rlim *Rlimit) (err error)
|
|
||||||
//sys Shutdown(fd int, how int) (err error)
|
//sys Shutdown(fd int, how int) (err error)
|
||||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
||||||
|
|
||||||
@@ -143,15 +142,6 @@ func Getrlimit(resource int, rlim *Rlimit) error {
|
|||||||
return getrlimit(resource, rlim)
|
return getrlimit(resource, rlim)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Setrlimit prefers the prlimit64 system call. See issue 38604.
|
|
||||||
func Setrlimit(resource int, rlim *Rlimit) error {
|
|
||||||
err := Prlimit(0, resource, rlim, nil)
|
|
||||||
if err != ENOSYS {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return setrlimit(resource, rlim)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (r *PtraceRegs) PC() uint64 { return r.Pc }
|
func (r *PtraceRegs) PC() uint64 { return r.Pc }
|
||||||
|
|
||||||
func (r *PtraceRegs) SetPC(pc uint64) { r.Pc = pc }
|
func (r *PtraceRegs) SetPC(pc uint64) { r.Pc = pc }
|
||||||
|
|||||||
5
vendor/golang.org/x/sys/unix/syscall_linux_loong64.go
generated
vendored
5
vendor/golang.org/x/sys/unix/syscall_linux_loong64.go
generated
vendored
@@ -126,11 +126,6 @@ func Getrlimit(resource int, rlim *Rlimit) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func Setrlimit(resource int, rlim *Rlimit) (err error) {
|
|
||||||
err = Prlimit(0, resource, rlim, nil)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func futimesat(dirfd int, path string, tv *[2]Timeval) (err error) {
|
func futimesat(dirfd int, path string, tv *[2]Timeval) (err error) {
|
||||||
if tv == nil {
|
if tv == nil {
|
||||||
return utimensat(dirfd, path, nil, 0)
|
return utimensat(dirfd, path, nil, 0)
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
generated
vendored
1
vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
generated
vendored
@@ -37,7 +37,6 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
|
|||||||
//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)
|
||||||
//sys setfsgid(gid int) (prev int, err error)
|
//sys setfsgid(gid int) (prev int, err error)
|
||||||
//sys setfsuid(uid int) (prev int, err error)
|
//sys setfsuid(uid int) (prev int, err error)
|
||||||
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
|
||||||
//sys Shutdown(fd int, how int) (err error)
|
//sys Shutdown(fd int, how int) (err error)
|
||||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
||||||
//sys Statfs(path string, buf *Statfs_t) (err error)
|
//sys Statfs(path string, buf *Statfs_t) (err error)
|
||||||
|
|||||||
27
vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
generated
vendored
27
vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
generated
vendored
@@ -151,33 +151,6 @@ func Getrlimit(resource int, rlim *Rlimit) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT
|
|
||||||
|
|
||||||
func Setrlimit(resource int, rlim *Rlimit) (err error) {
|
|
||||||
err = Prlimit(0, resource, rlim, nil)
|
|
||||||
if err != ENOSYS {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
rl := rlimit32{}
|
|
||||||
if rlim.Cur == rlimInf64 {
|
|
||||||
rl.Cur = rlimInf32
|
|
||||||
} else if rlim.Cur < uint64(rlimInf32) {
|
|
||||||
rl.Cur = uint32(rlim.Cur)
|
|
||||||
} else {
|
|
||||||
return EINVAL
|
|
||||||
}
|
|
||||||
if rlim.Max == rlimInf64 {
|
|
||||||
rl.Max = rlimInf32
|
|
||||||
} else if rlim.Max < uint64(rlimInf32) {
|
|
||||||
rl.Max = uint32(rlim.Max)
|
|
||||||
} else {
|
|
||||||
return EINVAL
|
|
||||||
}
|
|
||||||
|
|
||||||
return setrlimit(resource, &rl)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (r *PtraceRegs) PC() uint64 { return r.Epc }
|
func (r *PtraceRegs) PC() uint64 { return r.Epc }
|
||||||
|
|
||||||
func (r *PtraceRegs) SetPC(pc uint64) { r.Epc = pc }
|
func (r *PtraceRegs) SetPC(pc uint64) { r.Epc = pc }
|
||||||
|
|||||||
27
vendor/golang.org/x/sys/unix/syscall_linux_ppc.go
generated
vendored
27
vendor/golang.org/x/sys/unix/syscall_linux_ppc.go
generated
vendored
@@ -159,33 +159,6 @@ func Getrlimit(resource int, rlim *Rlimit) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT
|
|
||||||
|
|
||||||
func Setrlimit(resource int, rlim *Rlimit) (err error) {
|
|
||||||
err = Prlimit(0, resource, rlim, nil)
|
|
||||||
if err != ENOSYS {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
rl := rlimit32{}
|
|
||||||
if rlim.Cur == rlimInf64 {
|
|
||||||
rl.Cur = rlimInf32
|
|
||||||
} else if rlim.Cur < uint64(rlimInf32) {
|
|
||||||
rl.Cur = uint32(rlim.Cur)
|
|
||||||
} else {
|
|
||||||
return EINVAL
|
|
||||||
}
|
|
||||||
if rlim.Max == rlimInf64 {
|
|
||||||
rl.Max = rlimInf32
|
|
||||||
} else if rlim.Max < uint64(rlimInf32) {
|
|
||||||
rl.Max = uint32(rlim.Max)
|
|
||||||
} else {
|
|
||||||
return EINVAL
|
|
||||||
}
|
|
||||||
|
|
||||||
return setrlimit(resource, &rl)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (r *PtraceRegs) PC() uint32 { return r.Nip }
|
func (r *PtraceRegs) PC() uint32 { return r.Nip }
|
||||||
|
|
||||||
func (r *PtraceRegs) SetPC(pc uint32) { r.Nip = pc }
|
func (r *PtraceRegs) SetPC(pc uint32) { r.Nip = pc }
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
generated
vendored
1
vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
generated
vendored
@@ -34,7 +34,6 @@ package unix
|
|||||||
//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)
|
||||||
//sys setfsgid(gid int) (prev int, err error)
|
//sys setfsgid(gid int) (prev int, err error)
|
||||||
//sys setfsuid(uid int) (prev int, err error)
|
//sys setfsuid(uid int) (prev int, err error)
|
||||||
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
|
||||||
//sys Shutdown(fd int, how int) (err error)
|
//sys Shutdown(fd int, how int) (err error)
|
||||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
||||||
//sys Stat(path string, stat *Stat_t) (err error)
|
//sys Stat(path string, stat *Stat_t) (err error)
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
generated
vendored
1
vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
generated
vendored
@@ -38,7 +38,6 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
|
|||||||
//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)
|
||||||
//sys setfsgid(gid int) (prev int, err error)
|
//sys setfsgid(gid int) (prev int, err error)
|
||||||
//sys setfsuid(uid int) (prev int, err error)
|
//sys setfsuid(uid int) (prev int, err error)
|
||||||
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
|
||||||
//sys Shutdown(fd int, how int) (err error)
|
//sys Shutdown(fd int, how int) (err error)
|
||||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
||||||
|
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
generated
vendored
1
vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
generated
vendored
@@ -34,7 +34,6 @@ import (
|
|||||||
//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)
|
||||||
//sys setfsgid(gid int) (prev int, err error)
|
//sys setfsgid(gid int) (prev int, err error)
|
||||||
//sys setfsuid(uid int) (prev int, err error)
|
//sys setfsuid(uid int) (prev int, err error)
|
||||||
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
|
||||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n 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)
|
||||||
|
|||||||
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
@@ -31,7 +31,6 @@ package unix
|
|||||||
//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)
|
||||||
//sys setfsgid(gid int) (prev int, err error)
|
//sys setfsgid(gid int) (prev int, err error)
|
||||||
//sys setfsuid(uid int) (prev int, err error)
|
//sys setfsuid(uid int) (prev int, err error)
|
||||||
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
|
||||||
//sys Shutdown(fd int, how int) (err error)
|
//sys Shutdown(fd int, how int) (err error)
|
||||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
||||||
//sys Stat(path string, stat *Stat_t) (err error)
|
//sys Stat(path string, stat *Stat_t) (err error)
|
||||||
|
|||||||
22
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
22
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
@@ -13,7 +13,6 @@
|
|||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"runtime"
|
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
@@ -110,6 +109,20 @@ func direntNamlen(buf []byte) (uint64, bool) {
|
|||||||
return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
return &u, nil
|
||||||
|
}
|
||||||
|
|
||||||
func Pipe(p []int) (err error) {
|
func Pipe(p []int) (err error) {
|
||||||
return Pipe2(p, 0)
|
return Pipe2(p, 0)
|
||||||
}
|
}
|
||||||
@@ -164,13 +177,13 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|||||||
}
|
}
|
||||||
|
|
||||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||||
|
//sys ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) = SYS_IOCTL
|
||||||
|
|
||||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||||
|
|
||||||
func IoctlGetPtmget(fd int, req uint) (*Ptmget, error) {
|
func IoctlGetPtmget(fd int, req uint) (*Ptmget, error) {
|
||||||
var value Ptmget
|
var value Ptmget
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
err := ioctlPtr(fd, req, unsafe.Pointer(&value))
|
||||||
runtime.KeepAlive(value)
|
|
||||||
return &value, err
|
return &value, err
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -245,6 +258,7 @@ func Statvfs(path string, buf *Statvfs_t) (err 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)
|
||||||
@@ -326,7 +340,6 @@ func Statvfs(path string, buf *Statvfs_t) (err error) {
|
|||||||
//sys Setpriority(which int, who int, prio int) (err error)
|
//sys Setpriority(which int, who int, prio int) (err error)
|
||||||
//sysnb Setregid(rgid int, egid int) (err error)
|
//sysnb Setregid(rgid int, egid int) (err error)
|
||||||
//sysnb Setreuid(ruid int, euid int) (err error)
|
//sysnb Setreuid(ruid int, euid int) (err error)
|
||||||
//sysnb Setrlimit(which int, lim *Rlimit) (err 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)
|
||||||
@@ -487,7 +500,6 @@ func Statvfs(path string, buf *Statvfs_t) (err error) {
|
|||||||
// compat_43_osendmsg
|
// compat_43_osendmsg
|
||||||
// compat_43_osethostid
|
// compat_43_osethostid
|
||||||
// compat_43_osethostname
|
// compat_43_osethostname
|
||||||
// compat_43_osetrlimit
|
|
||||||
// compat_43_osigblock
|
// compat_43_osigblock
|
||||||
// compat_43_osigsetmask
|
// compat_43_osigsetmask
|
||||||
// compat_43_osigstack
|
// compat_43_osigstack
|
||||||
|
|||||||
3
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
3
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
@@ -152,6 +152,7 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||||
|
//sys ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) = SYS_IOCTL
|
||||||
|
|
||||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||||
|
|
||||||
@@ -220,6 +221,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)
|
||||||
@@ -292,7 +294,6 @@ func Uname(uname *Utsname) error {
|
|||||||
//sysnb Setreuid(ruid int, euid int) (err error)
|
//sysnb Setreuid(ruid int, euid int) (err error)
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
||||||
//sysnb Setrlimit(which int, lim *Rlimit) (err error)
|
|
||||||
//sysnb Setrtable(rtable int) (err error)
|
//sysnb Setrtable(rtable int) (err 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)
|
||||||
|
|||||||
4
vendor/golang.org/x/sys/unix/syscall_openbsd_libc.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_openbsd_libc.go
generated
vendored
@@ -2,8 +2,8 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
//go:build openbsd && !mips64
|
//go:build openbsd
|
||||||
// +build openbsd,!mips64
|
// +build openbsd
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
|||||||
37
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
37
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
@@ -408,8 +408,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
|||||||
for n < len(pp.Path) && pp.Path[n] != 0 {
|
for n < len(pp.Path) && pp.Path[n] != 0 {
|
||||||
n++
|
n++
|
||||||
}
|
}
|
||||||
bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
sa.Name = string(unsafe.Slice((*byte)(unsafe.Pointer(&pp.Path[0])), n))
|
||||||
sa.Name = string(bytes)
|
|
||||||
return sa, nil
|
return sa, nil
|
||||||
|
|
||||||
case AF_INET:
|
case AF_INET:
|
||||||
@@ -546,22 +545,26 @@ func Minor(dev uint64) uint32 {
|
|||||||
* Expose the ioctl function
|
* Expose the ioctl function
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//sys ioctlRet(fd int, req uint, arg uintptr) (ret int, err error) = libc.ioctl
|
//sys ioctlRet(fd int, req int, arg uintptr) (ret int, err error) = libc.ioctl
|
||||||
|
//sys ioctlPtrRet(fd int, req int, arg unsafe.Pointer) (ret int, err error) = libc.ioctl
|
||||||
|
|
||||||
func ioctl(fd int, req uint, arg uintptr) (err error) {
|
func ioctl(fd int, req int, arg uintptr) (err error) {
|
||||||
_, err = ioctlRet(fd, req, arg)
|
_, err = ioctlRet(fd, req, arg)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func IoctlSetTermio(fd int, req uint, value *Termio) error {
|
func ioctlPtr(fd int, req int, arg unsafe.Pointer) (err error) {
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
_, err = ioctlPtrRet(fd, req, arg)
|
||||||
runtime.KeepAlive(value)
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func IoctlGetTermio(fd int, req uint) (*Termio, error) {
|
func IoctlSetTermio(fd int, req int, value *Termio) error {
|
||||||
|
return ioctlPtr(fd, req, unsafe.Pointer(value))
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlGetTermio(fd int, req int) (*Termio, error) {
|
||||||
var value Termio
|
var value Termio
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
err := ioctlPtr(fd, req, unsafe.Pointer(&value))
|
||||||
return &value, err
|
return &value, err
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -590,6 +593,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|||||||
//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 Creat(path string, mode uint32) (fd int, err error)
|
//sys Creat(path string, mode uint32) (fd int, err error)
|
||||||
//sys Dup(fd int) (nfd int, err error)
|
//sys Dup(fd int) (nfd int, err error)
|
||||||
@@ -661,7 +665,6 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|||||||
//sys Setpriority(which int, who int, prio int) (err error)
|
//sys Setpriority(which int, who int, prio int) (err error)
|
||||||
//sysnb Setregid(rgid int, egid int) (err error)
|
//sysnb Setregid(rgid int, egid int) (err error)
|
||||||
//sysnb Setreuid(ruid int, euid int) (err error)
|
//sysnb Setreuid(ruid int, euid int) (err error)
|
||||||
//sysnb Setrlimit(which int, lim *Rlimit) (err error)
|
|
||||||
//sysnb Setsid() (pid int, err error)
|
//sysnb Setsid() (pid int, err error)
|
||||||
//sysnb Setuid(uid int) (err error)
|
//sysnb Setuid(uid int) (err error)
|
||||||
//sys Shutdown(s int, how int) (err error) = libsocket.shutdown
|
//sys Shutdown(s int, how int) (err error) = libsocket.shutdown
|
||||||
@@ -1076,14 +1079,14 @@ func Getmsg(fd int, cl []byte, data []byte) (retCl []byte, retData []byte, flags
|
|||||||
return retCl, retData, flags, nil
|
return retCl, retData, flags, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func IoctlSetIntRetInt(fd int, req uint, arg int) (int, error) {
|
func IoctlSetIntRetInt(fd int, req int, arg int) (int, error) {
|
||||||
return ioctlRet(fd, req, uintptr(arg))
|
return ioctlRet(fd, req, uintptr(arg))
|
||||||
}
|
}
|
||||||
|
|
||||||
func IoctlSetString(fd int, req uint, val string) error {
|
func IoctlSetString(fd int, req int, val string) error {
|
||||||
bs := make([]byte, len(val)+1)
|
bs := make([]byte, len(val)+1)
|
||||||
copy(bs[:len(bs)-1], val)
|
copy(bs[:len(bs)-1], val)
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&bs[0])))
|
err := ioctlPtr(fd, req, unsafe.Pointer(&bs[0]))
|
||||||
runtime.KeepAlive(&bs[0])
|
runtime.KeepAlive(&bs[0])
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@@ -1116,8 +1119,8 @@ func (l *Lifreq) GetLifruUint() uint {
|
|||||||
return *(*uint)(unsafe.Pointer(&l.Lifru[0]))
|
return *(*uint)(unsafe.Pointer(&l.Lifru[0]))
|
||||||
}
|
}
|
||||||
|
|
||||||
func IoctlLifreq(fd int, req uint, l *Lifreq) error {
|
func IoctlLifreq(fd int, req int, l *Lifreq) error {
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(l)))
|
return ioctlPtr(fd, req, unsafe.Pointer(l))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Strioctl Helpers
|
// Strioctl Helpers
|
||||||
@@ -1127,6 +1130,6 @@ func (s *Strioctl) SetInt(i int) {
|
|||||||
s.Dp = (*int8)(unsafe.Pointer(&i))
|
s.Dp = (*int8)(unsafe.Pointer(&i))
|
||||||
}
|
}
|
||||||
|
|
||||||
func IoctlSetStrioctlRetInt(fd int, req uint, s *Strioctl) (int, error) {
|
func IoctlSetStrioctlRetInt(fd int, req int, s *Strioctl) (int, error) {
|
||||||
return ioctlRet(fd, req, uintptr(unsafe.Pointer(s)))
|
return ioctlPtrRet(fd, req, unsafe.Pointer(s))
|
||||||
}
|
}
|
||||||
|
|||||||
64
vendor/golang.org/x/sys/unix/syscall_unix.go
generated
vendored
64
vendor/golang.org/x/sys/unix/syscall_unix.go
generated
vendored
@@ -331,6 +331,19 @@ func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Recvmsg receives a message from a socket using the recvmsg system call. The
|
||||||
|
// received non-control data will be written to p, and any "out of band"
|
||||||
|
// control data will be written to oob. The flags are passed to recvmsg.
|
||||||
|
//
|
||||||
|
// The results are:
|
||||||
|
// - n is the number of non-control data bytes read into p
|
||||||
|
// - oobn is the number of control data bytes read into oob; this may be interpreted using [ParseSocketControlMessage]
|
||||||
|
// - recvflags is flags returned by recvmsg
|
||||||
|
// - from is the address of the sender
|
||||||
|
//
|
||||||
|
// If the underlying socket type is not SOCK_DGRAM, a received message
|
||||||
|
// containing oob data and a single '\0' of non-control data is treated as if
|
||||||
|
// the message contained only control data, i.e. n will be zero on return.
|
||||||
func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
|
func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
|
||||||
var iov [1]Iovec
|
var iov [1]Iovec
|
||||||
if len(p) > 0 {
|
if len(p) > 0 {
|
||||||
@@ -346,13 +359,9 @@ func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// RecvmsgBuffers receives a message from a socket using the recvmsg
|
// RecvmsgBuffers receives a message from a socket using the recvmsg system
|
||||||
// system call. The flags are passed to recvmsg. Any non-control data
|
// call. This function is equivalent to Recvmsg, but non-control data read is
|
||||||
// read is scattered into the buffers slices. The results are:
|
// scattered into the buffers slices.
|
||||||
// - n is the number of non-control data read into bufs
|
|
||||||
// - oobn is the number of control data read into oob; this may be interpreted using [ParseSocketControlMessage]
|
|
||||||
// - recvflags is flags returned by recvmsg
|
|
||||||
// - from is the address of the sender
|
|
||||||
func RecvmsgBuffers(fd int, buffers [][]byte, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
|
func RecvmsgBuffers(fd int, buffers [][]byte, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
|
||||||
iov := make([]Iovec, len(buffers))
|
iov := make([]Iovec, len(buffers))
|
||||||
for i := range buffers {
|
for i := range buffers {
|
||||||
@@ -371,11 +380,38 @@ func RecvmsgBuffers(fd int, buffers [][]byte, oob []byte, flags int) (n, oobn in
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sendmsg sends a message on a socket to an address using the sendmsg system
|
||||||
|
// call. This function is equivalent to SendmsgN, but does not return the
|
||||||
|
// number of bytes actually sent.
|
||||||
func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error) {
|
func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error) {
|
||||||
_, err = SendmsgN(fd, p, oob, to, flags)
|
_, err = SendmsgN(fd, p, oob, to, flags)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SendmsgN sends a message on a socket to an address using the sendmsg system
|
||||||
|
// call. p contains the non-control data to send, and oob contains the "out of
|
||||||
|
// band" control data. The flags are passed to sendmsg. The number of
|
||||||
|
// non-control bytes actually written to the socket is returned.
|
||||||
|
//
|
||||||
|
// Some socket types do not support sending control data without accompanying
|
||||||
|
// non-control data. If p is empty, and oob contains control data, and the
|
||||||
|
// underlying socket type is not SOCK_DGRAM, p will be treated as containing a
|
||||||
|
// single '\0' and the return value will indicate zero bytes sent.
|
||||||
|
//
|
||||||
|
// The Go function Recvmsg, if called with an empty p and a non-empty oob,
|
||||||
|
// will read and ignore this additional '\0'. If the message is received by
|
||||||
|
// code that does not use Recvmsg, or that does not use Go at all, that code
|
||||||
|
// will need to be written to expect and ignore the additional '\0'.
|
||||||
|
//
|
||||||
|
// If you need to send non-empty oob with p actually empty, and if the
|
||||||
|
// underlying socket type supports it, you can do so via a raw system call as
|
||||||
|
// follows:
|
||||||
|
//
|
||||||
|
// msg := &unix.Msghdr{
|
||||||
|
// Control: &oob[0],
|
||||||
|
// }
|
||||||
|
// msg.SetControllen(len(oob))
|
||||||
|
// n, _, errno := unix.Syscall(unix.SYS_SENDMSG, uintptr(fd), uintptr(unsafe.Pointer(msg)), flags)
|
||||||
func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error) {
|
func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error) {
|
||||||
var iov [1]Iovec
|
var iov [1]Iovec
|
||||||
if len(p) > 0 {
|
if len(p) > 0 {
|
||||||
@@ -394,9 +430,8 @@ func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// SendmsgBuffers sends a message on a socket to an address using the sendmsg
|
// SendmsgBuffers sends a message on a socket to an address using the sendmsg
|
||||||
// system call. The flags are passed to sendmsg. Any non-control data written
|
// system call. This function is equivalent to SendmsgN, but the non-control
|
||||||
// is gathered from buffers. The function returns the number of bytes written
|
// data is gathered from buffers.
|
||||||
// to the socket.
|
|
||||||
func SendmsgBuffers(fd int, buffers [][]byte, oob []byte, to Sockaddr, flags int) (n int, err error) {
|
func SendmsgBuffers(fd int, buffers [][]byte, oob []byte, to Sockaddr, flags int) (n int, err error) {
|
||||||
iov := make([]Iovec, len(buffers))
|
iov := make([]Iovec, len(buffers))
|
||||||
for i := range buffers {
|
for i := range buffers {
|
||||||
@@ -543,7 +578,7 @@ func Lutimes(path string, tv []Timeval) error {
|
|||||||
return UtimesNanoAt(AT_FDCWD, path, ts, AT_SYMLINK_NOFOLLOW)
|
return UtimesNanoAt(AT_FDCWD, path, ts, AT_SYMLINK_NOFOLLOW)
|
||||||
}
|
}
|
||||||
|
|
||||||
// emptyIovec reports whether there are no bytes in the slice of Iovec.
|
// emptyIovecs reports whether there are no bytes in the slice of Iovec.
|
||||||
func emptyIovecs(iov []Iovec) bool {
|
func emptyIovecs(iov []Iovec) bool {
|
||||||
for i := range iov {
|
for i := range iov {
|
||||||
if iov[i].Len > 0 {
|
if iov[i].Len > 0 {
|
||||||
@@ -552,3 +587,10 @@ func emptyIovecs(iov []Iovec) bool {
|
|||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Setrlimit sets a resource limit.
|
||||||
|
func Setrlimit(resource int, rlim *Rlimit) error {
|
||||||
|
// Just call the syscall version, because as of Go 1.21
|
||||||
|
// it will affect starting a new process.
|
||||||
|
return syscall.Setrlimit(resource, (*syscall.Rlimit)(rlim))
|
||||||
|
}
|
||||||
|
|||||||
6
vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
generated
vendored
6
vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
generated
vendored
@@ -139,8 +139,7 @@ func anyToSockaddr(_ int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
|||||||
for n < int(pp.Len) && pp.Path[n] != 0 {
|
for n < int(pp.Len) && pp.Path[n] != 0 {
|
||||||
n++
|
n++
|
||||||
}
|
}
|
||||||
bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
sa.Name = string(unsafe.Slice((*byte)(unsafe.Pointer(&pp.Path[0])), n))
|
||||||
sa.Name = string(bytes)
|
|
||||||
return sa, nil
|
return sa, nil
|
||||||
|
|
||||||
case AF_INET:
|
case AF_INET:
|
||||||
@@ -213,7 +212,8 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
|||||||
//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) = SYS___SENDMSG_A
|
//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) = SYS___SENDMSG_A
|
||||||
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) = SYS_MMAP
|
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) = SYS_MMAP
|
||||||
//sys munmap(addr uintptr, length uintptr) (err error) = SYS_MUNMAP
|
//sys munmap(addr uintptr, length uintptr) (err error) = SYS_MUNMAP
|
||||||
//sys ioctl(fd int, req uint, arg uintptr) (err error) = SYS_IOCTL
|
//sys ioctl(fd int, req int, arg uintptr) (err error) = SYS_IOCTL
|
||||||
|
//sys ioctlPtr(fd int, req int, arg unsafe.Pointer) (err error) = SYS_IOCTL
|
||||||
|
|
||||||
//sys Access(path string, mode uint32) (err error) = SYS___ACCESS_A
|
//sys Access(path string, mode uint32) (err error) = SYS___ACCESS_A
|
||||||
//sys Chdir(path string) (err error) = SYS___CHDIR_A
|
//sys Chdir(path string) (err error) = SYS___CHDIR_A
|
||||||
|
|||||||
2
vendor/golang.org/x/sys/unix/timestruct.go
generated
vendored
2
vendor/golang.org/x/sys/unix/timestruct.go
generated
vendored
@@ -9,7 +9,7 @@ package unix
|
|||||||
|
|
||||||
import "time"
|
import "time"
|
||||||
|
|
||||||
// TimespecToNSec returns the time stored in ts as nanoseconds.
|
// TimespecToNsec returns the time stored in ts as nanoseconds.
|
||||||
func TimespecToNsec(ts Timespec) int64 { return ts.Nano() }
|
func TimespecToNsec(ts Timespec) int64 { return ts.Nano() }
|
||||||
|
|
||||||
// NsecToTimespec converts a number of nanoseconds into a Timespec.
|
// NsecToTimespec converts a number of nanoseconds into a Timespec.
|
||||||
|
|||||||
9
vendor/golang.org/x/sys/unix/xattr_bsd.go
generated
vendored
9
vendor/golang.org/x/sys/unix/xattr_bsd.go
generated
vendored
@@ -36,9 +36,14 @@ func xattrnamespace(fullattr string) (ns int, attr string, err error) {
|
|||||||
func initxattrdest(dest []byte, idx int) (d unsafe.Pointer) {
|
func initxattrdest(dest []byte, idx int) (d unsafe.Pointer) {
|
||||||
if len(dest) > idx {
|
if len(dest) > idx {
|
||||||
return unsafe.Pointer(&dest[idx])
|
return unsafe.Pointer(&dest[idx])
|
||||||
} else {
|
|
||||||
return unsafe.Pointer(_zero)
|
|
||||||
}
|
}
|
||||||
|
if dest != nil {
|
||||||
|
// extattr_get_file and extattr_list_file treat NULL differently from
|
||||||
|
// a non-NULL pointer of length zero. Preserve the property of nilness,
|
||||||
|
// even if we can't use dest directly.
|
||||||
|
return unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// FreeBSD and NetBSD implement their own syscalls to handle extended attributes
|
// FreeBSD and NetBSD implement their own syscalls to handle extended attributes
|
||||||
|
|||||||
19
vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go
generated
vendored
19
vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go
generated
vendored
@@ -1270,6 +1270,16 @@ const (
|
|||||||
SEEK_END = 0x2
|
SEEK_END = 0x2
|
||||||
SEEK_HOLE = 0x3
|
SEEK_HOLE = 0x3
|
||||||
SEEK_SET = 0x0
|
SEEK_SET = 0x0
|
||||||
|
SF_APPEND = 0x40000
|
||||||
|
SF_ARCHIVED = 0x10000
|
||||||
|
SF_DATALESS = 0x40000000
|
||||||
|
SF_FIRMLINK = 0x800000
|
||||||
|
SF_IMMUTABLE = 0x20000
|
||||||
|
SF_NOUNLINK = 0x100000
|
||||||
|
SF_RESTRICTED = 0x80000
|
||||||
|
SF_SETTABLE = 0x3fff0000
|
||||||
|
SF_SUPPORTED = 0x9f0000
|
||||||
|
SF_SYNTHETIC = 0xc0000000
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@@ -1543,6 +1553,15 @@ const (
|
|||||||
TIOCTIMESTAMP = 0x40107459
|
TIOCTIMESTAMP = 0x40107459
|
||||||
TIOCUCNTL = 0x80047466
|
TIOCUCNTL = 0x80047466
|
||||||
TOSTOP = 0x400000
|
TOSTOP = 0x400000
|
||||||
|
UF_APPEND = 0x4
|
||||||
|
UF_COMPRESSED = 0x20
|
||||||
|
UF_DATAVAULT = 0x80
|
||||||
|
UF_HIDDEN = 0x8000
|
||||||
|
UF_IMMUTABLE = 0x2
|
||||||
|
UF_NODUMP = 0x1
|
||||||
|
UF_OPAQUE = 0x8
|
||||||
|
UF_SETTABLE = 0xffff
|
||||||
|
UF_TRACKED = 0x40
|
||||||
VDISCARD = 0xf
|
VDISCARD = 0xf
|
||||||
VDSUSP = 0xb
|
VDSUSP = 0xb
|
||||||
VEOF = 0x0
|
VEOF = 0x0
|
||||||
|
|||||||
19
vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go
generated
vendored
19
vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go
generated
vendored
@@ -1270,6 +1270,16 @@ const (
|
|||||||
SEEK_END = 0x2
|
SEEK_END = 0x2
|
||||||
SEEK_HOLE = 0x3
|
SEEK_HOLE = 0x3
|
||||||
SEEK_SET = 0x0
|
SEEK_SET = 0x0
|
||||||
|
SF_APPEND = 0x40000
|
||||||
|
SF_ARCHIVED = 0x10000
|
||||||
|
SF_DATALESS = 0x40000000
|
||||||
|
SF_FIRMLINK = 0x800000
|
||||||
|
SF_IMMUTABLE = 0x20000
|
||||||
|
SF_NOUNLINK = 0x100000
|
||||||
|
SF_RESTRICTED = 0x80000
|
||||||
|
SF_SETTABLE = 0x3fff0000
|
||||||
|
SF_SUPPORTED = 0x9f0000
|
||||||
|
SF_SYNTHETIC = 0xc0000000
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@@ -1543,6 +1553,15 @@ const (
|
|||||||
TIOCTIMESTAMP = 0x40107459
|
TIOCTIMESTAMP = 0x40107459
|
||||||
TIOCUCNTL = 0x80047466
|
TIOCUCNTL = 0x80047466
|
||||||
TOSTOP = 0x400000
|
TOSTOP = 0x400000
|
||||||
|
UF_APPEND = 0x4
|
||||||
|
UF_COMPRESSED = 0x20
|
||||||
|
UF_DATAVAULT = 0x80
|
||||||
|
UF_HIDDEN = 0x8000
|
||||||
|
UF_IMMUTABLE = 0x2
|
||||||
|
UF_NODUMP = 0x1
|
||||||
|
UF_OPAQUE = 0x8
|
||||||
|
UF_SETTABLE = 0xffff
|
||||||
|
UF_TRACKED = 0x40
|
||||||
VDISCARD = 0xf
|
VDISCARD = 0xf
|
||||||
VDSUSP = 0xb
|
VDSUSP = 0xb
|
||||||
VEOF = 0x0
|
VEOF = 0x0
|
||||||
|
|||||||
54
vendor/golang.org/x/sys/unix/zerrors_linux.go
generated
vendored
54
vendor/golang.org/x/sys/unix/zerrors_linux.go
generated
vendored
@@ -70,6 +70,7 @@ const (
|
|||||||
ALG_SET_DRBG_ENTROPY = 0x6
|
ALG_SET_DRBG_ENTROPY = 0x6
|
||||||
ALG_SET_IV = 0x2
|
ALG_SET_IV = 0x2
|
||||||
ALG_SET_KEY = 0x1
|
ALG_SET_KEY = 0x1
|
||||||
|
ALG_SET_KEY_BY_KEY_SERIAL = 0x7
|
||||||
ALG_SET_OP = 0x3
|
ALG_SET_OP = 0x3
|
||||||
ANON_INODE_FS_MAGIC = 0x9041934
|
ANON_INODE_FS_MAGIC = 0x9041934
|
||||||
ARPHRD_6LOWPAN = 0x339
|
ARPHRD_6LOWPAN = 0x339
|
||||||
@@ -457,7 +458,6 @@ const (
|
|||||||
B600 = 0x8
|
B600 = 0x8
|
||||||
B75 = 0x2
|
B75 = 0x2
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
BALLOON_KVM_MAGIC = 0x13661366
|
|
||||||
BDEVFS_MAGIC = 0x62646576
|
BDEVFS_MAGIC = 0x62646576
|
||||||
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
||||||
BINFMTFS_MAGIC = 0x42494e4d
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
@@ -563,6 +563,7 @@ const (
|
|||||||
BUS_USB = 0x3
|
BUS_USB = 0x3
|
||||||
BUS_VIRTUAL = 0x6
|
BUS_VIRTUAL = 0x6
|
||||||
CAN_BCM = 0x2
|
CAN_BCM = 0x2
|
||||||
|
CAN_BUS_OFF_THRESHOLD = 0x100
|
||||||
CAN_CTRLMODE_3_SAMPLES = 0x4
|
CAN_CTRLMODE_3_SAMPLES = 0x4
|
||||||
CAN_CTRLMODE_BERR_REPORTING = 0x10
|
CAN_CTRLMODE_BERR_REPORTING = 0x10
|
||||||
CAN_CTRLMODE_CC_LEN8_DLC = 0x100
|
CAN_CTRLMODE_CC_LEN8_DLC = 0x100
|
||||||
@@ -577,9 +578,12 @@ const (
|
|||||||
CAN_EFF_FLAG = 0x80000000
|
CAN_EFF_FLAG = 0x80000000
|
||||||
CAN_EFF_ID_BITS = 0x1d
|
CAN_EFF_ID_BITS = 0x1d
|
||||||
CAN_EFF_MASK = 0x1fffffff
|
CAN_EFF_MASK = 0x1fffffff
|
||||||
|
CAN_ERROR_PASSIVE_THRESHOLD = 0x80
|
||||||
|
CAN_ERROR_WARNING_THRESHOLD = 0x60
|
||||||
CAN_ERR_ACK = 0x20
|
CAN_ERR_ACK = 0x20
|
||||||
CAN_ERR_BUSERROR = 0x80
|
CAN_ERR_BUSERROR = 0x80
|
||||||
CAN_ERR_BUSOFF = 0x40
|
CAN_ERR_BUSOFF = 0x40
|
||||||
|
CAN_ERR_CNT = 0x200
|
||||||
CAN_ERR_CRTL = 0x4
|
CAN_ERR_CRTL = 0x4
|
||||||
CAN_ERR_CRTL_ACTIVE = 0x40
|
CAN_ERR_CRTL_ACTIVE = 0x40
|
||||||
CAN_ERR_CRTL_RX_OVERFLOW = 0x1
|
CAN_ERR_CRTL_RX_OVERFLOW = 0x1
|
||||||
@@ -771,6 +775,8 @@ const (
|
|||||||
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
|
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
|
||||||
DEVLINK_GENL_NAME = "devlink"
|
DEVLINK_GENL_NAME = "devlink"
|
||||||
DEVLINK_GENL_VERSION = 0x1
|
DEVLINK_GENL_VERSION = 0x1
|
||||||
|
DEVLINK_PORT_FN_CAP_MIGRATABLE = 0x2
|
||||||
|
DEVLINK_PORT_FN_CAP_ROCE = 0x1
|
||||||
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
|
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
|
||||||
DEVLINK_SUPPORTED_FLASH_OVERWRITE_SECTIONS = 0x3
|
DEVLINK_SUPPORTED_FLASH_OVERWRITE_SECTIONS = 0x3
|
||||||
DEVMEM_MAGIC = 0x454d444d
|
DEVMEM_MAGIC = 0x454d444d
|
||||||
@@ -820,9 +826,9 @@ const (
|
|||||||
DM_UUID_FLAG = 0x4000
|
DM_UUID_FLAG = 0x4000
|
||||||
DM_UUID_LEN = 0x81
|
DM_UUID_LEN = 0x81
|
||||||
DM_VERSION = 0xc138fd00
|
DM_VERSION = 0xc138fd00
|
||||||
DM_VERSION_EXTRA = "-ioctl (2022-02-22)"
|
DM_VERSION_EXTRA = "-ioctl (2022-07-28)"
|
||||||
DM_VERSION_MAJOR = 0x4
|
DM_VERSION_MAJOR = 0x4
|
||||||
DM_VERSION_MINOR = 0x2e
|
DM_VERSION_MINOR = 0x2f
|
||||||
DM_VERSION_PATCHLEVEL = 0x0
|
DM_VERSION_PATCHLEVEL = 0x0
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
@@ -1049,6 +1055,7 @@ const (
|
|||||||
ETH_P_CAIF = 0xf7
|
ETH_P_CAIF = 0xf7
|
||||||
ETH_P_CAN = 0xc
|
ETH_P_CAN = 0xc
|
||||||
ETH_P_CANFD = 0xd
|
ETH_P_CANFD = 0xd
|
||||||
|
ETH_P_CANXL = 0xe
|
||||||
ETH_P_CFM = 0x8902
|
ETH_P_CFM = 0x8902
|
||||||
ETH_P_CONTROL = 0x16
|
ETH_P_CONTROL = 0x16
|
||||||
ETH_P_CUST = 0x6006
|
ETH_P_CUST = 0x6006
|
||||||
@@ -1060,6 +1067,7 @@ const (
|
|||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
ETH_P_DSA_8021Q = 0xdadb
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
|
ETH_P_DSA_A5PSW = 0xe001
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
@@ -1194,8 +1202,10 @@ const (
|
|||||||
FAN_MARK_EVICTABLE = 0x200
|
FAN_MARK_EVICTABLE = 0x200
|
||||||
FAN_MARK_FILESYSTEM = 0x100
|
FAN_MARK_FILESYSTEM = 0x100
|
||||||
FAN_MARK_FLUSH = 0x80
|
FAN_MARK_FLUSH = 0x80
|
||||||
|
FAN_MARK_IGNORE = 0x400
|
||||||
FAN_MARK_IGNORED_MASK = 0x20
|
FAN_MARK_IGNORED_MASK = 0x20
|
||||||
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
||||||
|
FAN_MARK_IGNORE_SURV = 0x440
|
||||||
FAN_MARK_INODE = 0x0
|
FAN_MARK_INODE = 0x0
|
||||||
FAN_MARK_MOUNT = 0x10
|
FAN_MARK_MOUNT = 0x10
|
||||||
FAN_MARK_ONLYDIR = 0x8
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
@@ -1253,7 +1263,10 @@ const (
|
|||||||
FSCRYPT_MODE_AES_128_CBC = 0x5
|
FSCRYPT_MODE_AES_128_CBC = 0x5
|
||||||
FSCRYPT_MODE_AES_128_CTS = 0x6
|
FSCRYPT_MODE_AES_128_CTS = 0x6
|
||||||
FSCRYPT_MODE_AES_256_CTS = 0x4
|
FSCRYPT_MODE_AES_256_CTS = 0x4
|
||||||
|
FSCRYPT_MODE_AES_256_HCTR2 = 0xa
|
||||||
FSCRYPT_MODE_AES_256_XTS = 0x1
|
FSCRYPT_MODE_AES_256_XTS = 0x1
|
||||||
|
FSCRYPT_MODE_SM4_CTS = 0x8
|
||||||
|
FSCRYPT_MODE_SM4_XTS = 0x7
|
||||||
FSCRYPT_POLICY_FLAGS_PAD_16 = 0x2
|
FSCRYPT_POLICY_FLAGS_PAD_16 = 0x2
|
||||||
FSCRYPT_POLICY_FLAGS_PAD_32 = 0x3
|
FSCRYPT_POLICY_FLAGS_PAD_32 = 0x3
|
||||||
FSCRYPT_POLICY_FLAGS_PAD_4 = 0x0
|
FSCRYPT_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
@@ -1272,8 +1285,6 @@ 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_ADD_ENCRYPTION_KEY = 0xc0506617
|
FS_IOC_ADD_ENCRYPTION_KEY = 0xc0506617
|
||||||
FS_IOC_GET_ENCRYPTION_KEY_STATUS = 0xc080661a
|
FS_IOC_GET_ENCRYPTION_KEY_STATUS = 0xc080661a
|
||||||
FS_IOC_GET_ENCRYPTION_POLICY_EX = 0xc0096616
|
FS_IOC_GET_ENCRYPTION_POLICY_EX = 0xc0096616
|
||||||
@@ -1430,6 +1441,7 @@ const (
|
|||||||
IFF_NOARP = 0x80
|
IFF_NOARP = 0x80
|
||||||
IFF_NOFILTER = 0x1000
|
IFF_NOFILTER = 0x1000
|
||||||
IFF_NOTRAILERS = 0x20
|
IFF_NOTRAILERS = 0x20
|
||||||
|
IFF_NO_CARRIER = 0x40
|
||||||
IFF_NO_PI = 0x1000
|
IFF_NO_PI = 0x1000
|
||||||
IFF_ONE_QUEUE = 0x2000
|
IFF_ONE_QUEUE = 0x2000
|
||||||
IFF_PERSIST = 0x800
|
IFF_PERSIST = 0x800
|
||||||
@@ -1761,6 +1773,7 @@ const (
|
|||||||
LANDLOCK_ACCESS_FS_REFER = 0x2000
|
LANDLOCK_ACCESS_FS_REFER = 0x2000
|
||||||
LANDLOCK_ACCESS_FS_REMOVE_DIR = 0x10
|
LANDLOCK_ACCESS_FS_REMOVE_DIR = 0x10
|
||||||
LANDLOCK_ACCESS_FS_REMOVE_FILE = 0x20
|
LANDLOCK_ACCESS_FS_REMOVE_FILE = 0x20
|
||||||
|
LANDLOCK_ACCESS_FS_TRUNCATE = 0x4000
|
||||||
LANDLOCK_ACCESS_FS_WRITE_FILE = 0x2
|
LANDLOCK_ACCESS_FS_WRITE_FILE = 0x2
|
||||||
LANDLOCK_CREATE_RULESET_VERSION = 0x1
|
LANDLOCK_CREATE_RULESET_VERSION = 0x1
|
||||||
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
||||||
@@ -1800,11 +1813,13 @@ const (
|
|||||||
LWTUNNEL_IP_OPT_GENEVE_MAX = 0x3
|
LWTUNNEL_IP_OPT_GENEVE_MAX = 0x3
|
||||||
LWTUNNEL_IP_OPT_VXLAN_MAX = 0x1
|
LWTUNNEL_IP_OPT_VXLAN_MAX = 0x1
|
||||||
MADV_COLD = 0x14
|
MADV_COLD = 0x14
|
||||||
|
MADV_COLLAPSE = 0x19
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
MADV_DONTFORK = 0xa
|
MADV_DONTFORK = 0xa
|
||||||
MADV_DONTNEED = 0x4
|
MADV_DONTNEED = 0x4
|
||||||
|
MADV_DONTNEED_LOCKED = 0x18
|
||||||
MADV_FREE = 0x8
|
MADV_FREE = 0x8
|
||||||
MADV_HUGEPAGE = 0xe
|
MADV_HUGEPAGE = 0xe
|
||||||
MADV_HWPOISON = 0x64
|
MADV_HWPOISON = 0x64
|
||||||
@@ -1846,7 +1861,7 @@ const (
|
|||||||
MFD_ALLOW_SEALING = 0x2
|
MFD_ALLOW_SEALING = 0x2
|
||||||
MFD_CLOEXEC = 0x1
|
MFD_CLOEXEC = 0x1
|
||||||
MFD_HUGETLB = 0x4
|
MFD_HUGETLB = 0x4
|
||||||
MFD_HUGE_16GB = -0x78000000
|
MFD_HUGE_16GB = 0x88000000
|
||||||
MFD_HUGE_16MB = 0x60000000
|
MFD_HUGE_16MB = 0x60000000
|
||||||
MFD_HUGE_1GB = 0x78000000
|
MFD_HUGE_1GB = 0x78000000
|
||||||
MFD_HUGE_1MB = 0x50000000
|
MFD_HUGE_1MB = 0x50000000
|
||||||
@@ -2153,6 +2168,7 @@ const (
|
|||||||
PACKET_FANOUT_DATA = 0x16
|
PACKET_FANOUT_DATA = 0x16
|
||||||
PACKET_FANOUT_EBPF = 0x7
|
PACKET_FANOUT_EBPF = 0x7
|
||||||
PACKET_FANOUT_FLAG_DEFRAG = 0x8000
|
PACKET_FANOUT_FLAG_DEFRAG = 0x8000
|
||||||
|
PACKET_FANOUT_FLAG_IGNORE_OUTGOING = 0x4000
|
||||||
PACKET_FANOUT_FLAG_ROLLOVER = 0x1000
|
PACKET_FANOUT_FLAG_ROLLOVER = 0x1000
|
||||||
PACKET_FANOUT_FLAG_UNIQUEID = 0x2000
|
PACKET_FANOUT_FLAG_UNIQUEID = 0x2000
|
||||||
PACKET_FANOUT_HASH = 0x0
|
PACKET_FANOUT_HASH = 0x0
|
||||||
@@ -2212,6 +2228,11 @@ const (
|
|||||||
PERF_AUX_FLAG_PARTIAL = 0x4
|
PERF_AUX_FLAG_PARTIAL = 0x4
|
||||||
PERF_AUX_FLAG_PMU_FORMAT_TYPE_MASK = 0xff00
|
PERF_AUX_FLAG_PMU_FORMAT_TYPE_MASK = 0xff00
|
||||||
PERF_AUX_FLAG_TRUNCATED = 0x1
|
PERF_AUX_FLAG_TRUNCATED = 0x1
|
||||||
|
PERF_BR_ARM64_DEBUG_DATA = 0x7
|
||||||
|
PERF_BR_ARM64_DEBUG_EXIT = 0x5
|
||||||
|
PERF_BR_ARM64_DEBUG_HALT = 0x4
|
||||||
|
PERF_BR_ARM64_DEBUG_INST = 0x6
|
||||||
|
PERF_BR_ARM64_FIQ = 0x3
|
||||||
PERF_FLAG_FD_CLOEXEC = 0x8
|
PERF_FLAG_FD_CLOEXEC = 0x8
|
||||||
PERF_FLAG_FD_NO_GROUP = 0x1
|
PERF_FLAG_FD_NO_GROUP = 0x1
|
||||||
PERF_FLAG_FD_OUTPUT = 0x2
|
PERF_FLAG_FD_OUTPUT = 0x2
|
||||||
@@ -2232,6 +2253,8 @@ const (
|
|||||||
PERF_MEM_LOCK_NA = 0x1
|
PERF_MEM_LOCK_NA = 0x1
|
||||||
PERF_MEM_LOCK_SHIFT = 0x18
|
PERF_MEM_LOCK_SHIFT = 0x18
|
||||||
PERF_MEM_LVLNUM_ANY_CACHE = 0xb
|
PERF_MEM_LVLNUM_ANY_CACHE = 0xb
|
||||||
|
PERF_MEM_LVLNUM_CXL = 0x9
|
||||||
|
PERF_MEM_LVLNUM_IO = 0xa
|
||||||
PERF_MEM_LVLNUM_L1 = 0x1
|
PERF_MEM_LVLNUM_L1 = 0x1
|
||||||
PERF_MEM_LVLNUM_L2 = 0x2
|
PERF_MEM_LVLNUM_L2 = 0x2
|
||||||
PERF_MEM_LVLNUM_L3 = 0x3
|
PERF_MEM_LVLNUM_L3 = 0x3
|
||||||
@@ -2265,6 +2288,7 @@ const (
|
|||||||
PERF_MEM_REMOTE_REMOTE = 0x1
|
PERF_MEM_REMOTE_REMOTE = 0x1
|
||||||
PERF_MEM_REMOTE_SHIFT = 0x25
|
PERF_MEM_REMOTE_SHIFT = 0x25
|
||||||
PERF_MEM_SNOOPX_FWD = 0x1
|
PERF_MEM_SNOOPX_FWD = 0x1
|
||||||
|
PERF_MEM_SNOOPX_PEER = 0x2
|
||||||
PERF_MEM_SNOOPX_SHIFT = 0x26
|
PERF_MEM_SNOOPX_SHIFT = 0x26
|
||||||
PERF_MEM_SNOOP_HIT = 0x4
|
PERF_MEM_SNOOP_HIT = 0x4
|
||||||
PERF_MEM_SNOOP_HITM = 0x10
|
PERF_MEM_SNOOP_HITM = 0x10
|
||||||
@@ -2301,7 +2325,6 @@ const (
|
|||||||
PERF_SAMPLE_BRANCH_PLM_ALL = 0x7
|
PERF_SAMPLE_BRANCH_PLM_ALL = 0x7
|
||||||
PERF_SAMPLE_WEIGHT_TYPE = 0x1004000
|
PERF_SAMPLE_WEIGHT_TYPE = 0x1004000
|
||||||
PIPEFS_MAGIC = 0x50495045
|
PIPEFS_MAGIC = 0x50495045
|
||||||
PPC_CMM_MAGIC = 0xc7571590
|
|
||||||
PPPIOCGNPMODE = 0xc008744c
|
PPPIOCGNPMODE = 0xc008744c
|
||||||
PPPIOCNEWUNIT = 0xc004743e
|
PPPIOCNEWUNIT = 0xc004743e
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
@@ -2944,6 +2967,7 @@ const (
|
|||||||
SOL_TCP = 0x6
|
SOL_TCP = 0x6
|
||||||
SOL_TIPC = 0x10f
|
SOL_TIPC = 0x10f
|
||||||
SOL_TLS = 0x11a
|
SOL_TLS = 0x11a
|
||||||
|
SOL_UDP = 0x11
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
SOL_XDP = 0x11b
|
SOL_XDP = 0x11b
|
||||||
SOMAXCONN = 0x1000
|
SOMAXCONN = 0x1000
|
||||||
@@ -2999,6 +3023,7 @@ const (
|
|||||||
STATX_BLOCKS = 0x400
|
STATX_BLOCKS = 0x400
|
||||||
STATX_BTIME = 0x800
|
STATX_BTIME = 0x800
|
||||||
STATX_CTIME = 0x80
|
STATX_CTIME = 0x80
|
||||||
|
STATX_DIOALIGN = 0x2000
|
||||||
STATX_GID = 0x10
|
STATX_GID = 0x10
|
||||||
STATX_INO = 0x100
|
STATX_INO = 0x100
|
||||||
STATX_MNT_ID = 0x1000
|
STATX_MNT_ID = 0x1000
|
||||||
@@ -3227,6 +3252,19 @@ const (
|
|||||||
TRACEFS_MAGIC = 0x74726163
|
TRACEFS_MAGIC = 0x74726163
|
||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
UDF_SUPER_MAGIC = 0x15013346
|
UDF_SUPER_MAGIC = 0x15013346
|
||||||
|
UDP_CORK = 0x1
|
||||||
|
UDP_ENCAP = 0x64
|
||||||
|
UDP_ENCAP_ESPINUDP = 0x2
|
||||||
|
UDP_ENCAP_ESPINUDP_NON_IKE = 0x1
|
||||||
|
UDP_ENCAP_GTP0 = 0x4
|
||||||
|
UDP_ENCAP_GTP1U = 0x5
|
||||||
|
UDP_ENCAP_L2TPINUDP = 0x3
|
||||||
|
UDP_GRO = 0x68
|
||||||
|
UDP_NO_CHECK6_RX = 0x66
|
||||||
|
UDP_NO_CHECK6_TX = 0x65
|
||||||
|
UDP_SEGMENT = 0x67
|
||||||
|
UDP_V4_FLOW = 0x2
|
||||||
|
UDP_V6_FLOW = 0x6
|
||||||
UMOUNT_NOFOLLOW = 0x8
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||||
UTIME_NOW = 0x3fffffff
|
UTIME_NOW = 0x3fffffff
|
||||||
@@ -3392,9 +3430,7 @@ const (
|
|||||||
XDP_ZEROCOPY = 0x4
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XFS_SUPER_MAGIC = 0x58465342
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
Z3FOLD_MAGIC = 0x33
|
|
||||||
ZONEFS_MAGIC = 0x5a4f4653
|
ZONEFS_MAGIC = 0x5a4f4653
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
|
||||||
_HIDIOCGRAWNAME_LEN = 0x80
|
_HIDIOCGRAWNAME_LEN = 0x80
|
||||||
_HIDIOCGRAWPHYS_LEN = 0x40
|
_HIDIOCGRAWPHYS_LEN = 0x40
|
||||||
_HIDIOCGRAWUNIQ_LEN = 0x40
|
_HIDIOCGRAWUNIQ_LEN = 0x40
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
1
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
@@ -133,6 +133,7 @@ const (
|
|||||||
MEMGETREGIONCOUNT = 0x80044d07
|
MEMGETREGIONCOUNT = 0x80044d07
|
||||||
MEMISLOCKED = 0x80084d17
|
MEMISLOCKED = 0x80084d17
|
||||||
MEMLOCK = 0x40084d05
|
MEMLOCK = 0x40084d05
|
||||||
|
MEMREAD = 0xc03c4d1a
|
||||||
MEMREADOOB = 0xc00c4d04
|
MEMREADOOB = 0xc00c4d04
|
||||||
MEMSETBADBLOCK = 0x40084d0c
|
MEMSETBADBLOCK = 0x40084d0c
|
||||||
MEMUNLOCK = 0x40084d06
|
MEMUNLOCK = 0x40084d06
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
1
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
@@ -133,6 +133,7 @@ const (
|
|||||||
MEMGETREGIONCOUNT = 0x80044d07
|
MEMGETREGIONCOUNT = 0x80044d07
|
||||||
MEMISLOCKED = 0x80084d17
|
MEMISLOCKED = 0x80084d17
|
||||||
MEMLOCK = 0x40084d05
|
MEMLOCK = 0x40084d05
|
||||||
|
MEMREAD = 0xc0404d1a
|
||||||
MEMREADOOB = 0xc0104d04
|
MEMREADOOB = 0xc0104d04
|
||||||
MEMSETBADBLOCK = 0x40084d0c
|
MEMSETBADBLOCK = 0x40084d0c
|
||||||
MEMUNLOCK = 0x40084d06
|
MEMUNLOCK = 0x40084d06
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
1
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
@@ -131,6 +131,7 @@ const (
|
|||||||
MEMGETREGIONCOUNT = 0x80044d07
|
MEMGETREGIONCOUNT = 0x80044d07
|
||||||
MEMISLOCKED = 0x80084d17
|
MEMISLOCKED = 0x80084d17
|
||||||
MEMLOCK = 0x40084d05
|
MEMLOCK = 0x40084d05
|
||||||
|
MEMREAD = 0xc0404d1a
|
||||||
MEMREADOOB = 0xc00c4d04
|
MEMREADOOB = 0xc00c4d04
|
||||||
MEMSETBADBLOCK = 0x40084d0c
|
MEMSETBADBLOCK = 0x40084d0c
|
||||||
MEMUNLOCK = 0x40084d06
|
MEMUNLOCK = 0x40084d06
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
1
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
@@ -134,6 +134,7 @@ const (
|
|||||||
MEMGETREGIONCOUNT = 0x80044d07
|
MEMGETREGIONCOUNT = 0x80044d07
|
||||||
MEMISLOCKED = 0x80084d17
|
MEMISLOCKED = 0x80084d17
|
||||||
MEMLOCK = 0x40084d05
|
MEMLOCK = 0x40084d05
|
||||||
|
MEMREAD = 0xc0404d1a
|
||||||
MEMREADOOB = 0xc0104d04
|
MEMREADOOB = 0xc0104d04
|
||||||
MEMSETBADBLOCK = 0x40084d0c
|
MEMSETBADBLOCK = 0x40084d0c
|
||||||
MEMUNLOCK = 0x40084d06
|
MEMUNLOCK = 0x40084d06
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go
generated
vendored
1
vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go
generated
vendored
@@ -132,6 +132,7 @@ const (
|
|||||||
MEMGETREGIONCOUNT = 0x80044d07
|
MEMGETREGIONCOUNT = 0x80044d07
|
||||||
MEMISLOCKED = 0x80084d17
|
MEMISLOCKED = 0x80084d17
|
||||||
MEMLOCK = 0x40084d05
|
MEMLOCK = 0x40084d05
|
||||||
|
MEMREAD = 0xc0404d1a
|
||||||
MEMREADOOB = 0xc0104d04
|
MEMREADOOB = 0xc0104d04
|
||||||
MEMSETBADBLOCK = 0x40084d0c
|
MEMSETBADBLOCK = 0x40084d0c
|
||||||
MEMUNLOCK = 0x40084d06
|
MEMUNLOCK = 0x40084d06
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
1
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
@@ -131,6 +131,7 @@ const (
|
|||||||
MEMGETREGIONCOUNT = 0x40044d07
|
MEMGETREGIONCOUNT = 0x40044d07
|
||||||
MEMISLOCKED = 0x40084d17
|
MEMISLOCKED = 0x40084d17
|
||||||
MEMLOCK = 0x80084d05
|
MEMLOCK = 0x80084d05
|
||||||
|
MEMREAD = 0xc0404d1a
|
||||||
MEMREADOOB = 0xc00c4d04
|
MEMREADOOB = 0xc00c4d04
|
||||||
MEMSETBADBLOCK = 0x80084d0c
|
MEMSETBADBLOCK = 0x80084d0c
|
||||||
MEMUNLOCK = 0x80084d06
|
MEMUNLOCK = 0x80084d06
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
1
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
@@ -131,6 +131,7 @@ const (
|
|||||||
MEMGETREGIONCOUNT = 0x40044d07
|
MEMGETREGIONCOUNT = 0x40044d07
|
||||||
MEMISLOCKED = 0x40084d17
|
MEMISLOCKED = 0x40084d17
|
||||||
MEMLOCK = 0x80084d05
|
MEMLOCK = 0x80084d05
|
||||||
|
MEMREAD = 0xc0404d1a
|
||||||
MEMREADOOB = 0xc0104d04
|
MEMREADOOB = 0xc0104d04
|
||||||
MEMSETBADBLOCK = 0x80084d0c
|
MEMSETBADBLOCK = 0x80084d0c
|
||||||
MEMUNLOCK = 0x80084d06
|
MEMUNLOCK = 0x80084d06
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
1
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
@@ -131,6 +131,7 @@ const (
|
|||||||
MEMGETREGIONCOUNT = 0x40044d07
|
MEMGETREGIONCOUNT = 0x40044d07
|
||||||
MEMISLOCKED = 0x40084d17
|
MEMISLOCKED = 0x40084d17
|
||||||
MEMLOCK = 0x80084d05
|
MEMLOCK = 0x80084d05
|
||||||
|
MEMREAD = 0xc0404d1a
|
||||||
MEMREADOOB = 0xc0104d04
|
MEMREADOOB = 0xc0104d04
|
||||||
MEMSETBADBLOCK = 0x80084d0c
|
MEMSETBADBLOCK = 0x80084d0c
|
||||||
MEMUNLOCK = 0x80084d06
|
MEMUNLOCK = 0x80084d06
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
1
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
@@ -131,6 +131,7 @@ const (
|
|||||||
MEMGETREGIONCOUNT = 0x40044d07
|
MEMGETREGIONCOUNT = 0x40044d07
|
||||||
MEMISLOCKED = 0x40084d17
|
MEMISLOCKED = 0x40084d17
|
||||||
MEMLOCK = 0x80084d05
|
MEMLOCK = 0x80084d05
|
||||||
|
MEMREAD = 0xc0404d1a
|
||||||
MEMREADOOB = 0xc00c4d04
|
MEMREADOOB = 0xc00c4d04
|
||||||
MEMSETBADBLOCK = 0x80084d0c
|
MEMSETBADBLOCK = 0x80084d0c
|
||||||
MEMUNLOCK = 0x80084d06
|
MEMUNLOCK = 0x80084d06
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go
generated
vendored
1
vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go
generated
vendored
@@ -131,6 +131,7 @@ const (
|
|||||||
MEMGETREGIONCOUNT = 0x40044d07
|
MEMGETREGIONCOUNT = 0x40044d07
|
||||||
MEMISLOCKED = 0x40084d17
|
MEMISLOCKED = 0x40084d17
|
||||||
MEMLOCK = 0x80084d05
|
MEMLOCK = 0x80084d05
|
||||||
|
MEMREAD = 0xc0404d1a
|
||||||
MEMREADOOB = 0xc00c4d04
|
MEMREADOOB = 0xc00c4d04
|
||||||
MEMSETBADBLOCK = 0x80084d0c
|
MEMSETBADBLOCK = 0x80084d0c
|
||||||
MEMUNLOCK = 0x80084d06
|
MEMUNLOCK = 0x80084d06
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
1
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
@@ -131,6 +131,7 @@ const (
|
|||||||
MEMGETREGIONCOUNT = 0x40044d07
|
MEMGETREGIONCOUNT = 0x40044d07
|
||||||
MEMISLOCKED = 0x40084d17
|
MEMISLOCKED = 0x40084d17
|
||||||
MEMLOCK = 0x80084d05
|
MEMLOCK = 0x80084d05
|
||||||
|
MEMREAD = 0xc0404d1a
|
||||||
MEMREADOOB = 0xc0104d04
|
MEMREADOOB = 0xc0104d04
|
||||||
MEMSETBADBLOCK = 0x80084d0c
|
MEMSETBADBLOCK = 0x80084d0c
|
||||||
MEMUNLOCK = 0x80084d06
|
MEMUNLOCK = 0x80084d06
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
1
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
@@ -131,6 +131,7 @@ const (
|
|||||||
MEMGETREGIONCOUNT = 0x40044d07
|
MEMGETREGIONCOUNT = 0x40044d07
|
||||||
MEMISLOCKED = 0x40084d17
|
MEMISLOCKED = 0x40084d17
|
||||||
MEMLOCK = 0x80084d05
|
MEMLOCK = 0x80084d05
|
||||||
|
MEMREAD = 0xc0404d1a
|
||||||
MEMREADOOB = 0xc0104d04
|
MEMREADOOB = 0xc0104d04
|
||||||
MEMSETBADBLOCK = 0x80084d0c
|
MEMSETBADBLOCK = 0x80084d0c
|
||||||
MEMUNLOCK = 0x80084d06
|
MEMUNLOCK = 0x80084d06
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
generated
vendored
1
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
generated
vendored
@@ -131,6 +131,7 @@ const (
|
|||||||
MEMGETREGIONCOUNT = 0x80044d07
|
MEMGETREGIONCOUNT = 0x80044d07
|
||||||
MEMISLOCKED = 0x80084d17
|
MEMISLOCKED = 0x80084d17
|
||||||
MEMLOCK = 0x40084d05
|
MEMLOCK = 0x40084d05
|
||||||
|
MEMREAD = 0xc0404d1a
|
||||||
MEMREADOOB = 0xc0104d04
|
MEMREADOOB = 0xc0104d04
|
||||||
MEMSETBADBLOCK = 0x40084d0c
|
MEMSETBADBLOCK = 0x40084d0c
|
||||||
MEMUNLOCK = 0x40084d06
|
MEMUNLOCK = 0x40084d06
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
1
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
@@ -131,6 +131,7 @@ const (
|
|||||||
MEMGETREGIONCOUNT = 0x80044d07
|
MEMGETREGIONCOUNT = 0x80044d07
|
||||||
MEMISLOCKED = 0x80084d17
|
MEMISLOCKED = 0x80084d17
|
||||||
MEMLOCK = 0x40084d05
|
MEMLOCK = 0x40084d05
|
||||||
|
MEMREAD = 0xc0404d1a
|
||||||
MEMREADOOB = 0xc0104d04
|
MEMREADOOB = 0xc0104d04
|
||||||
MEMSETBADBLOCK = 0x40084d0c
|
MEMSETBADBLOCK = 0x40084d0c
|
||||||
MEMUNLOCK = 0x40084d06
|
MEMUNLOCK = 0x40084d06
|
||||||
|
|||||||
1
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
generated
vendored
1
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
generated
vendored
@@ -136,6 +136,7 @@ const (
|
|||||||
MEMGETREGIONCOUNT = 0x40044d07
|
MEMGETREGIONCOUNT = 0x40044d07
|
||||||
MEMISLOCKED = 0x40084d17
|
MEMISLOCKED = 0x40084d17
|
||||||
MEMLOCK = 0x80084d05
|
MEMLOCK = 0x80084d05
|
||||||
|
MEMREAD = 0xc0404d1a
|
||||||
MEMREADOOB = 0xc0104d04
|
MEMREADOOB = 0xc0104d04
|
||||||
MEMSETBADBLOCK = 0x80084d0c
|
MEMSETBADBLOCK = 0x80084d0c
|
||||||
MEMUNLOCK = 0x80084d06
|
MEMUNLOCK = 0x80084d06
|
||||||
|
|||||||
356
vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
generated
vendored
356
vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
generated
vendored
@@ -46,6 +46,7 @@ const (
|
|||||||
AF_SNA = 0xb
|
AF_SNA = 0xb
|
||||||
AF_UNIX = 0x1
|
AF_UNIX = 0x1
|
||||||
AF_UNSPEC = 0x0
|
AF_UNSPEC = 0x0
|
||||||
|
ALTWERASE = 0x200
|
||||||
ARPHRD_ETHER = 0x1
|
ARPHRD_ETHER = 0x1
|
||||||
ARPHRD_FRELAY = 0xf
|
ARPHRD_FRELAY = 0xf
|
||||||
ARPHRD_IEEE1394 = 0x18
|
ARPHRD_IEEE1394 = 0x18
|
||||||
@@ -108,6 +109,15 @@ const (
|
|||||||
BPF_DIRECTION_IN = 0x1
|
BPF_DIRECTION_IN = 0x1
|
||||||
BPF_DIRECTION_OUT = 0x2
|
BPF_DIRECTION_OUT = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_FILDROP_CAPTURE = 0x1
|
||||||
|
BPF_FILDROP_DROP = 0x2
|
||||||
|
BPF_FILDROP_PASS = 0x0
|
||||||
|
BPF_F_DIR_IN = 0x10
|
||||||
|
BPF_F_DIR_MASK = 0x30
|
||||||
|
BPF_F_DIR_OUT = 0x20
|
||||||
|
BPF_F_DIR_SHIFT = 0x4
|
||||||
|
BPF_F_FLOWID = 0x8
|
||||||
|
BPF_F_PRI_MASK = 0x7
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@@ -136,6 +146,7 @@ const (
|
|||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_RELEASE = 0x30bb6
|
BPF_RELEASE = 0x30bb6
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
|
BPF_RND = 0xc0
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
@@ -147,6 +158,12 @@ const (
|
|||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
CLOCAL = 0x8000
|
CLOCAL = 0x8000
|
||||||
|
CLOCK_BOOTTIME = 0x6
|
||||||
|
CLOCK_MONOTONIC = 0x3
|
||||||
|
CLOCK_PROCESS_CPUTIME_ID = 0x2
|
||||||
|
CLOCK_REALTIME = 0x0
|
||||||
|
CLOCK_THREAD_CPUTIME_ID = 0x4
|
||||||
|
CLOCK_UPTIME = 0x5
|
||||||
CPUSTATES = 0x6
|
CPUSTATES = 0x6
|
||||||
CP_IDLE = 0x5
|
CP_IDLE = 0x5
|
||||||
CP_INTR = 0x4
|
CP_INTR = 0x4
|
||||||
@@ -170,7 +187,65 @@ const (
|
|||||||
CTL_KERN = 0x1
|
CTL_KERN = 0x1
|
||||||
CTL_MAXNAME = 0xc
|
CTL_MAXNAME = 0xc
|
||||||
CTL_NET = 0x4
|
CTL_NET = 0x4
|
||||||
|
DIOCADDQUEUE = 0xc100445d
|
||||||
|
DIOCADDRULE = 0xccc84404
|
||||||
|
DIOCADDSTATE = 0xc1084425
|
||||||
|
DIOCCHANGERULE = 0xccc8441a
|
||||||
|
DIOCCLRIFFLAG = 0xc024445a
|
||||||
|
DIOCCLRSRCNODES = 0x20004455
|
||||||
|
DIOCCLRSTATES = 0xc0d04412
|
||||||
|
DIOCCLRSTATUS = 0xc0244416
|
||||||
|
DIOCGETLIMIT = 0xc0084427
|
||||||
|
DIOCGETQSTATS = 0xc1084460
|
||||||
|
DIOCGETQUEUE = 0xc100445f
|
||||||
|
DIOCGETQUEUES = 0xc100445e
|
||||||
|
DIOCGETRULE = 0xccc84407
|
||||||
|
DIOCGETRULES = 0xccc84406
|
||||||
|
DIOCGETRULESET = 0xc444443b
|
||||||
|
DIOCGETRULESETS = 0xc444443a
|
||||||
|
DIOCGETSRCNODES = 0xc0084454
|
||||||
|
DIOCGETSTATE = 0xc1084413
|
||||||
|
DIOCGETSTATES = 0xc0084419
|
||||||
|
DIOCGETSTATUS = 0xc1e84415
|
||||||
|
DIOCGETSYNFLWATS = 0xc0084463
|
||||||
|
DIOCGETTIMEOUT = 0xc008441e
|
||||||
|
DIOCIGETIFACES = 0xc0244457
|
||||||
|
DIOCKILLSRCNODES = 0xc068445b
|
||||||
|
DIOCKILLSTATES = 0xc0d04429
|
||||||
|
DIOCNATLOOK = 0xc0504417
|
||||||
|
DIOCOSFPADD = 0xc084444f
|
||||||
DIOCOSFPFLUSH = 0x2000444e
|
DIOCOSFPFLUSH = 0x2000444e
|
||||||
|
DIOCOSFPGET = 0xc0844450
|
||||||
|
DIOCRADDADDRS = 0xc44c4443
|
||||||
|
DIOCRADDTABLES = 0xc44c443d
|
||||||
|
DIOCRCLRADDRS = 0xc44c4442
|
||||||
|
DIOCRCLRASTATS = 0xc44c4448
|
||||||
|
DIOCRCLRTABLES = 0xc44c443c
|
||||||
|
DIOCRCLRTSTATS = 0xc44c4441
|
||||||
|
DIOCRDELADDRS = 0xc44c4444
|
||||||
|
DIOCRDELTABLES = 0xc44c443e
|
||||||
|
DIOCRGETADDRS = 0xc44c4446
|
||||||
|
DIOCRGETASTATS = 0xc44c4447
|
||||||
|
DIOCRGETTABLES = 0xc44c443f
|
||||||
|
DIOCRGETTSTATS = 0xc44c4440
|
||||||
|
DIOCRINADEFINE = 0xc44c444d
|
||||||
|
DIOCRSETADDRS = 0xc44c4445
|
||||||
|
DIOCRSETTFLAGS = 0xc44c444a
|
||||||
|
DIOCRTSTADDRS = 0xc44c4449
|
||||||
|
DIOCSETDEBUG = 0xc0044418
|
||||||
|
DIOCSETHOSTID = 0xc0044456
|
||||||
|
DIOCSETIFFLAG = 0xc0244459
|
||||||
|
DIOCSETLIMIT = 0xc0084428
|
||||||
|
DIOCSETREASS = 0xc004445c
|
||||||
|
DIOCSETSTATUSIF = 0xc0244414
|
||||||
|
DIOCSETSYNCOOKIES = 0xc0014462
|
||||||
|
DIOCSETSYNFLWATS = 0xc0084461
|
||||||
|
DIOCSETTIMEOUT = 0xc008441d
|
||||||
|
DIOCSTART = 0x20004401
|
||||||
|
DIOCSTOP = 0x20004402
|
||||||
|
DIOCXBEGIN = 0xc00c4451
|
||||||
|
DIOCXCOMMIT = 0xc00c4452
|
||||||
|
DIOCXROLLBACK = 0xc00c4453
|
||||||
DLT_ARCNET = 0x7
|
DLT_ARCNET = 0x7
|
||||||
DLT_ATM_RFC1483 = 0xb
|
DLT_ATM_RFC1483 = 0xb
|
||||||
DLT_AX25 = 0x3
|
DLT_AX25 = 0x3
|
||||||
@@ -186,6 +261,7 @@ const (
|
|||||||
DLT_LOOP = 0xc
|
DLT_LOOP = 0xc
|
||||||
DLT_MPLS = 0xdb
|
DLT_MPLS = 0xdb
|
||||||
DLT_NULL = 0x0
|
DLT_NULL = 0x0
|
||||||
|
DLT_OPENFLOW = 0x10b
|
||||||
DLT_PFLOG = 0x75
|
DLT_PFLOG = 0x75
|
||||||
DLT_PFSYNC = 0x12
|
DLT_PFSYNC = 0x12
|
||||||
DLT_PPP = 0x9
|
DLT_PPP = 0x9
|
||||||
@@ -196,6 +272,23 @@ const (
|
|||||||
DLT_RAW = 0xe
|
DLT_RAW = 0xe
|
||||||
DLT_SLIP = 0x8
|
DLT_SLIP = 0x8
|
||||||
DLT_SLIP_BSDOS = 0xf
|
DLT_SLIP_BSDOS = 0xf
|
||||||
|
DLT_USBPCAP = 0xf9
|
||||||
|
DLT_USER0 = 0x93
|
||||||
|
DLT_USER1 = 0x94
|
||||||
|
DLT_USER10 = 0x9d
|
||||||
|
DLT_USER11 = 0x9e
|
||||||
|
DLT_USER12 = 0x9f
|
||||||
|
DLT_USER13 = 0xa0
|
||||||
|
DLT_USER14 = 0xa1
|
||||||
|
DLT_USER15 = 0xa2
|
||||||
|
DLT_USER2 = 0x95
|
||||||
|
DLT_USER3 = 0x96
|
||||||
|
DLT_USER4 = 0x97
|
||||||
|
DLT_USER5 = 0x98
|
||||||
|
DLT_USER6 = 0x99
|
||||||
|
DLT_USER7 = 0x9a
|
||||||
|
DLT_USER8 = 0x9b
|
||||||
|
DLT_USER9 = 0x9c
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
@@ -215,6 +308,8 @@ const (
|
|||||||
EMUL_ENABLED = 0x1
|
EMUL_ENABLED = 0x1
|
||||||
EMUL_NATIVE = 0x2
|
EMUL_NATIVE = 0x2
|
||||||
ENDRUNDISC = 0x9
|
ENDRUNDISC = 0x9
|
||||||
|
ETH64_8021_RSVD_MASK = 0xfffffffffff0
|
||||||
|
ETH64_8021_RSVD_PREFIX = 0x180c2000000
|
||||||
ETHERMIN = 0x2e
|
ETHERMIN = 0x2e
|
||||||
ETHERMTU = 0x5dc
|
ETHERMTU = 0x5dc
|
||||||
ETHERTYPE_8023 = 0x4
|
ETHERTYPE_8023 = 0x4
|
||||||
@@ -267,6 +362,7 @@ const (
|
|||||||
ETHERTYPE_DN = 0x6003
|
ETHERTYPE_DN = 0x6003
|
||||||
ETHERTYPE_DOGFIGHT = 0x1989
|
ETHERTYPE_DOGFIGHT = 0x1989
|
||||||
ETHERTYPE_DSMD = 0x8039
|
ETHERTYPE_DSMD = 0x8039
|
||||||
|
ETHERTYPE_EAPOL = 0x888e
|
||||||
ETHERTYPE_ECMA = 0x803
|
ETHERTYPE_ECMA = 0x803
|
||||||
ETHERTYPE_ENCRYPT = 0x803d
|
ETHERTYPE_ENCRYPT = 0x803d
|
||||||
ETHERTYPE_ES = 0x805d
|
ETHERTYPE_ES = 0x805d
|
||||||
@@ -298,6 +394,7 @@ const (
|
|||||||
ETHERTYPE_LLDP = 0x88cc
|
ETHERTYPE_LLDP = 0x88cc
|
||||||
ETHERTYPE_LOGICRAFT = 0x8148
|
ETHERTYPE_LOGICRAFT = 0x8148
|
||||||
ETHERTYPE_LOOPBACK = 0x9000
|
ETHERTYPE_LOOPBACK = 0x9000
|
||||||
|
ETHERTYPE_MACSEC = 0x88e5
|
||||||
ETHERTYPE_MATRA = 0x807a
|
ETHERTYPE_MATRA = 0x807a
|
||||||
ETHERTYPE_MAX = 0xffff
|
ETHERTYPE_MAX = 0xffff
|
||||||
ETHERTYPE_MERIT = 0x807c
|
ETHERTYPE_MERIT = 0x807c
|
||||||
@@ -326,15 +423,17 @@ const (
|
|||||||
ETHERTYPE_NCD = 0x8149
|
ETHERTYPE_NCD = 0x8149
|
||||||
ETHERTYPE_NESTAR = 0x8006
|
ETHERTYPE_NESTAR = 0x8006
|
||||||
ETHERTYPE_NETBEUI = 0x8191
|
ETHERTYPE_NETBEUI = 0x8191
|
||||||
|
ETHERTYPE_NHRP = 0x2001
|
||||||
ETHERTYPE_NOVELL = 0x8138
|
ETHERTYPE_NOVELL = 0x8138
|
||||||
ETHERTYPE_NS = 0x600
|
ETHERTYPE_NS = 0x600
|
||||||
ETHERTYPE_NSAT = 0x601
|
ETHERTYPE_NSAT = 0x601
|
||||||
ETHERTYPE_NSCOMPAT = 0x807
|
ETHERTYPE_NSCOMPAT = 0x807
|
||||||
|
ETHERTYPE_NSH = 0x984f
|
||||||
ETHERTYPE_NTRAILER = 0x10
|
ETHERTYPE_NTRAILER = 0x10
|
||||||
ETHERTYPE_OS9 = 0x7007
|
ETHERTYPE_OS9 = 0x7007
|
||||||
ETHERTYPE_OS9NET = 0x7009
|
ETHERTYPE_OS9NET = 0x7009
|
||||||
ETHERTYPE_PACER = 0x80c6
|
ETHERTYPE_PACER = 0x80c6
|
||||||
ETHERTYPE_PAE = 0x888e
|
ETHERTYPE_PBB = 0x88e7
|
||||||
ETHERTYPE_PCS = 0x4242
|
ETHERTYPE_PCS = 0x4242
|
||||||
ETHERTYPE_PLANNING = 0x8044
|
ETHERTYPE_PLANNING = 0x8044
|
||||||
ETHERTYPE_PPP = 0x880b
|
ETHERTYPE_PPP = 0x880b
|
||||||
@@ -409,28 +508,40 @@ const (
|
|||||||
ETHER_CRC_POLY_LE = 0xedb88320
|
ETHER_CRC_POLY_LE = 0xedb88320
|
||||||
ETHER_HDR_LEN = 0xe
|
ETHER_HDR_LEN = 0xe
|
||||||
ETHER_MAX_DIX_LEN = 0x600
|
ETHER_MAX_DIX_LEN = 0x600
|
||||||
|
ETHER_MAX_HARDMTU_LEN = 0xff9b
|
||||||
ETHER_MAX_LEN = 0x5ee
|
ETHER_MAX_LEN = 0x5ee
|
||||||
ETHER_MIN_LEN = 0x40
|
ETHER_MIN_LEN = 0x40
|
||||||
ETHER_TYPE_LEN = 0x2
|
ETHER_TYPE_LEN = 0x2
|
||||||
ETHER_VLAN_ENCAP_LEN = 0x4
|
ETHER_VLAN_ENCAP_LEN = 0x4
|
||||||
EVFILT_AIO = -0x3
|
EVFILT_AIO = -0x3
|
||||||
|
EVFILT_DEVICE = -0x8
|
||||||
|
EVFILT_EXCEPT = -0x9
|
||||||
EVFILT_PROC = -0x5
|
EVFILT_PROC = -0x5
|
||||||
EVFILT_READ = -0x1
|
EVFILT_READ = -0x1
|
||||||
EVFILT_SIGNAL = -0x6
|
EVFILT_SIGNAL = -0x6
|
||||||
EVFILT_SYSCOUNT = 0x7
|
EVFILT_SYSCOUNT = 0x9
|
||||||
EVFILT_TIMER = -0x7
|
EVFILT_TIMER = -0x7
|
||||||
EVFILT_VNODE = -0x4
|
EVFILT_VNODE = -0x4
|
||||||
EVFILT_WRITE = -0x2
|
EVFILT_WRITE = -0x2
|
||||||
|
EVL_ENCAPLEN = 0x4
|
||||||
|
EVL_PRIO_BITS = 0xd
|
||||||
|
EVL_PRIO_MAX = 0x7
|
||||||
|
EVL_VLID_MASK = 0xfff
|
||||||
|
EVL_VLID_MAX = 0xffe
|
||||||
|
EVL_VLID_MIN = 0x1
|
||||||
|
EVL_VLID_NULL = 0x0
|
||||||
EV_ADD = 0x1
|
EV_ADD = 0x1
|
||||||
EV_CLEAR = 0x20
|
EV_CLEAR = 0x20
|
||||||
EV_DELETE = 0x2
|
EV_DELETE = 0x2
|
||||||
EV_DISABLE = 0x8
|
EV_DISABLE = 0x8
|
||||||
|
EV_DISPATCH = 0x80
|
||||||
EV_ENABLE = 0x4
|
EV_ENABLE = 0x4
|
||||||
EV_EOF = 0x8000
|
EV_EOF = 0x8000
|
||||||
EV_ERROR = 0x4000
|
EV_ERROR = 0x4000
|
||||||
EV_FLAG1 = 0x2000
|
EV_FLAG1 = 0x2000
|
||||||
EV_ONESHOT = 0x10
|
EV_ONESHOT = 0x10
|
||||||
EV_SYSFLAGS = 0xf000
|
EV_RECEIPT = 0x40
|
||||||
|
EV_SYSFLAGS = 0xf800
|
||||||
EXTA = 0x4b00
|
EXTA = 0x4b00
|
||||||
EXTB = 0x9600
|
EXTB = 0x9600
|
||||||
EXTPROC = 0x800
|
EXTPROC = 0x800
|
||||||
@@ -443,6 +554,7 @@ const (
|
|||||||
F_GETFL = 0x3
|
F_GETFL = 0x3
|
||||||
F_GETLK = 0x7
|
F_GETLK = 0x7
|
||||||
F_GETOWN = 0x5
|
F_GETOWN = 0x5
|
||||||
|
F_ISATTY = 0xb
|
||||||
F_OK = 0x0
|
F_OK = 0x0
|
||||||
F_RDLCK = 0x1
|
F_RDLCK = 0x1
|
||||||
F_SETFD = 0x2
|
F_SETFD = 0x2
|
||||||
@@ -460,7 +572,6 @@ const (
|
|||||||
IEXTEN = 0x400
|
IEXTEN = 0x400
|
||||||
IFAN_ARRIVAL = 0x0
|
IFAN_ARRIVAL = 0x0
|
||||||
IFAN_DEPARTURE = 0x1
|
IFAN_DEPARTURE = 0x1
|
||||||
IFA_ROUTE = 0x1
|
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_BROADCAST = 0x2
|
IFF_BROADCAST = 0x2
|
||||||
IFF_CANTCHANGE = 0x8e52
|
IFF_CANTCHANGE = 0x8e52
|
||||||
@@ -471,12 +582,12 @@ const (
|
|||||||
IFF_LOOPBACK = 0x8
|
IFF_LOOPBACK = 0x8
|
||||||
IFF_MULTICAST = 0x8000
|
IFF_MULTICAST = 0x8000
|
||||||
IFF_NOARP = 0x80
|
IFF_NOARP = 0x80
|
||||||
IFF_NOTRAILERS = 0x20
|
|
||||||
IFF_OACTIVE = 0x400
|
IFF_OACTIVE = 0x400
|
||||||
IFF_POINTOPOINT = 0x10
|
IFF_POINTOPOINT = 0x10
|
||||||
IFF_PROMISC = 0x100
|
IFF_PROMISC = 0x100
|
||||||
IFF_RUNNING = 0x40
|
IFF_RUNNING = 0x40
|
||||||
IFF_SIMPLEX = 0x800
|
IFF_SIMPLEX = 0x800
|
||||||
|
IFF_STATICARP = 0x20
|
||||||
IFF_UP = 0x1
|
IFF_UP = 0x1
|
||||||
IFNAMSIZ = 0x10
|
IFNAMSIZ = 0x10
|
||||||
IFT_1822 = 0x2
|
IFT_1822 = 0x2
|
||||||
@@ -605,6 +716,7 @@ const (
|
|||||||
IFT_LINEGROUP = 0xd2
|
IFT_LINEGROUP = 0xd2
|
||||||
IFT_LOCALTALK = 0x2a
|
IFT_LOCALTALK = 0x2a
|
||||||
IFT_LOOP = 0x18
|
IFT_LOOP = 0x18
|
||||||
|
IFT_MBIM = 0xfa
|
||||||
IFT_MEDIAMAILOVERIP = 0x8b
|
IFT_MEDIAMAILOVERIP = 0x8b
|
||||||
IFT_MFSIGLINK = 0xa7
|
IFT_MFSIGLINK = 0xa7
|
||||||
IFT_MIOX25 = 0x26
|
IFT_MIOX25 = 0x26
|
||||||
@@ -695,6 +807,7 @@ const (
|
|||||||
IFT_VOICEOVERCABLE = 0xc6
|
IFT_VOICEOVERCABLE = 0xc6
|
||||||
IFT_VOICEOVERFRAMERELAY = 0x99
|
IFT_VOICEOVERFRAMERELAY = 0x99
|
||||||
IFT_VOICEOVERIP = 0x68
|
IFT_VOICEOVERIP = 0x68
|
||||||
|
IFT_WIREGUARD = 0xfb
|
||||||
IFT_X213 = 0x5d
|
IFT_X213 = 0x5d
|
||||||
IFT_X25 = 0x5
|
IFT_X25 = 0x5
|
||||||
IFT_X25DDN = 0x4
|
IFT_X25DDN = 0x4
|
||||||
@@ -729,8 +842,6 @@ const (
|
|||||||
IPPROTO_AH = 0x33
|
IPPROTO_AH = 0x33
|
||||||
IPPROTO_CARP = 0x70
|
IPPROTO_CARP = 0x70
|
||||||
IPPROTO_DIVERT = 0x102
|
IPPROTO_DIVERT = 0x102
|
||||||
IPPROTO_DIVERT_INIT = 0x2
|
|
||||||
IPPROTO_DIVERT_RESP = 0x1
|
|
||||||
IPPROTO_DONE = 0x101
|
IPPROTO_DONE = 0x101
|
||||||
IPPROTO_DSTOPTS = 0x3c
|
IPPROTO_DSTOPTS = 0x3c
|
||||||
IPPROTO_EGP = 0x8
|
IPPROTO_EGP = 0x8
|
||||||
@@ -762,9 +873,11 @@ const (
|
|||||||
IPPROTO_RAW = 0xff
|
IPPROTO_RAW = 0xff
|
||||||
IPPROTO_ROUTING = 0x2b
|
IPPROTO_ROUTING = 0x2b
|
||||||
IPPROTO_RSVP = 0x2e
|
IPPROTO_RSVP = 0x2e
|
||||||
|
IPPROTO_SCTP = 0x84
|
||||||
IPPROTO_TCP = 0x6
|
IPPROTO_TCP = 0x6
|
||||||
IPPROTO_TP = 0x1d
|
IPPROTO_TP = 0x1d
|
||||||
IPPROTO_UDP = 0x11
|
IPPROTO_UDP = 0x11
|
||||||
|
IPPROTO_UDPLITE = 0x88
|
||||||
IPV6_AUTH_LEVEL = 0x35
|
IPV6_AUTH_LEVEL = 0x35
|
||||||
IPV6_AUTOFLOWLABEL = 0x3b
|
IPV6_AUTOFLOWLABEL = 0x3b
|
||||||
IPV6_CHECKSUM = 0x1a
|
IPV6_CHECKSUM = 0x1a
|
||||||
@@ -787,6 +900,7 @@ const (
|
|||||||
IPV6_LEAVE_GROUP = 0xd
|
IPV6_LEAVE_GROUP = 0xd
|
||||||
IPV6_MAXHLIM = 0xff
|
IPV6_MAXHLIM = 0xff
|
||||||
IPV6_MAXPACKET = 0xffff
|
IPV6_MAXPACKET = 0xffff
|
||||||
|
IPV6_MINHOPCOUNT = 0x41
|
||||||
IPV6_MMTU = 0x500
|
IPV6_MMTU = 0x500
|
||||||
IPV6_MULTICAST_HOPS = 0xa
|
IPV6_MULTICAST_HOPS = 0xa
|
||||||
IPV6_MULTICAST_IF = 0x9
|
IPV6_MULTICAST_IF = 0x9
|
||||||
@@ -826,12 +940,12 @@ const (
|
|||||||
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
||||||
IP_DEFAULT_MULTICAST_TTL = 0x1
|
IP_DEFAULT_MULTICAST_TTL = 0x1
|
||||||
IP_DF = 0x4000
|
IP_DF = 0x4000
|
||||||
IP_DIVERTFL = 0x1022
|
|
||||||
IP_DROP_MEMBERSHIP = 0xd
|
IP_DROP_MEMBERSHIP = 0xd
|
||||||
IP_ESP_NETWORK_LEVEL = 0x16
|
IP_ESP_NETWORK_LEVEL = 0x16
|
||||||
IP_ESP_TRANS_LEVEL = 0x15
|
IP_ESP_TRANS_LEVEL = 0x15
|
||||||
IP_HDRINCL = 0x2
|
IP_HDRINCL = 0x2
|
||||||
IP_IPCOMP_LEVEL = 0x1d
|
IP_IPCOMP_LEVEL = 0x1d
|
||||||
|
IP_IPDEFTTL = 0x25
|
||||||
IP_IPSECFLOWINFO = 0x24
|
IP_IPSECFLOWINFO = 0x24
|
||||||
IP_IPSEC_LOCAL_AUTH = 0x1b
|
IP_IPSEC_LOCAL_AUTH = 0x1b
|
||||||
IP_IPSEC_LOCAL_CRED = 0x19
|
IP_IPSEC_LOCAL_CRED = 0x19
|
||||||
@@ -865,10 +979,15 @@ const (
|
|||||||
IP_RETOPTS = 0x8
|
IP_RETOPTS = 0x8
|
||||||
IP_RF = 0x8000
|
IP_RF = 0x8000
|
||||||
IP_RTABLE = 0x1021
|
IP_RTABLE = 0x1021
|
||||||
|
IP_SENDSRCADDR = 0x7
|
||||||
IP_TOS = 0x3
|
IP_TOS = 0x3
|
||||||
IP_TTL = 0x4
|
IP_TTL = 0x4
|
||||||
ISIG = 0x80
|
ISIG = 0x80
|
||||||
ISTRIP = 0x20
|
ISTRIP = 0x20
|
||||||
|
ITIMER_PROF = 0x2
|
||||||
|
ITIMER_REAL = 0x0
|
||||||
|
ITIMER_VIRTUAL = 0x1
|
||||||
|
IUCLC = 0x1000
|
||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x400
|
IXOFF = 0x400
|
||||||
IXON = 0x200
|
IXON = 0x200
|
||||||
@@ -900,10 +1019,11 @@ const (
|
|||||||
MAP_INHERIT_COPY = 0x1
|
MAP_INHERIT_COPY = 0x1
|
||||||
MAP_INHERIT_NONE = 0x2
|
MAP_INHERIT_NONE = 0x2
|
||||||
MAP_INHERIT_SHARE = 0x0
|
MAP_INHERIT_SHARE = 0x0
|
||||||
MAP_NOEXTEND = 0x100
|
MAP_INHERIT_ZERO = 0x3
|
||||||
MAP_NORESERVE = 0x40
|
MAP_NOEXTEND = 0x0
|
||||||
|
MAP_NORESERVE = 0x0
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_RENAME = 0x20
|
MAP_RENAME = 0x0
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
MAP_STACK = 0x4000
|
MAP_STACK = 0x4000
|
||||||
MAP_TRYFIXED = 0x0
|
MAP_TRYFIXED = 0x0
|
||||||
@@ -922,6 +1042,7 @@ const (
|
|||||||
MNT_NOATIME = 0x8000
|
MNT_NOATIME = 0x8000
|
||||||
MNT_NODEV = 0x10
|
MNT_NODEV = 0x10
|
||||||
MNT_NOEXEC = 0x4
|
MNT_NOEXEC = 0x4
|
||||||
|
MNT_NOPERM = 0x20
|
||||||
MNT_NOSUID = 0x8
|
MNT_NOSUID = 0x8
|
||||||
MNT_NOWAIT = 0x2
|
MNT_NOWAIT = 0x2
|
||||||
MNT_QUOTA = 0x2000
|
MNT_QUOTA = 0x2000
|
||||||
@@ -929,13 +1050,29 @@ const (
|
|||||||
MNT_RELOAD = 0x40000
|
MNT_RELOAD = 0x40000
|
||||||
MNT_ROOTFS = 0x4000
|
MNT_ROOTFS = 0x4000
|
||||||
MNT_SOFTDEP = 0x4000000
|
MNT_SOFTDEP = 0x4000000
|
||||||
|
MNT_STALLED = 0x100000
|
||||||
|
MNT_SWAPPABLE = 0x200000
|
||||||
MNT_SYNCHRONOUS = 0x2
|
MNT_SYNCHRONOUS = 0x2
|
||||||
MNT_UPDATE = 0x10000
|
MNT_UPDATE = 0x10000
|
||||||
MNT_VISFLAGMASK = 0x400ffff
|
MNT_VISFLAGMASK = 0x400ffff
|
||||||
MNT_WAIT = 0x1
|
MNT_WAIT = 0x1
|
||||||
MNT_WANTRDWR = 0x2000000
|
MNT_WANTRDWR = 0x2000000
|
||||||
MNT_WXALLOWED = 0x800
|
MNT_WXALLOWED = 0x800
|
||||||
|
MOUNT_AFS = "afs"
|
||||||
|
MOUNT_CD9660 = "cd9660"
|
||||||
|
MOUNT_EXT2FS = "ext2fs"
|
||||||
|
MOUNT_FFS = "ffs"
|
||||||
|
MOUNT_FUSEFS = "fuse"
|
||||||
|
MOUNT_MFS = "mfs"
|
||||||
|
MOUNT_MSDOS = "msdos"
|
||||||
|
MOUNT_NCPFS = "ncpfs"
|
||||||
|
MOUNT_NFS = "nfs"
|
||||||
|
MOUNT_NTFS = "ntfs"
|
||||||
|
MOUNT_TMPFS = "tmpfs"
|
||||||
|
MOUNT_UDF = "udf"
|
||||||
|
MOUNT_UFS = "ffs"
|
||||||
MSG_BCAST = 0x100
|
MSG_BCAST = 0x100
|
||||||
|
MSG_CMSG_CLOEXEC = 0x800
|
||||||
MSG_CTRUNC = 0x20
|
MSG_CTRUNC = 0x20
|
||||||
MSG_DONTROUTE = 0x4
|
MSG_DONTROUTE = 0x4
|
||||||
MSG_DONTWAIT = 0x80
|
MSG_DONTWAIT = 0x80
|
||||||
@@ -946,6 +1083,7 @@ const (
|
|||||||
MSG_PEEK = 0x2
|
MSG_PEEK = 0x2
|
||||||
MSG_TRUNC = 0x10
|
MSG_TRUNC = 0x10
|
||||||
MSG_WAITALL = 0x40
|
MSG_WAITALL = 0x40
|
||||||
|
MSG_WAITFORONE = 0x1000
|
||||||
MS_ASYNC = 0x1
|
MS_ASYNC = 0x1
|
||||||
MS_INVALIDATE = 0x4
|
MS_INVALIDATE = 0x4
|
||||||
MS_SYNC = 0x2
|
MS_SYNC = 0x2
|
||||||
@@ -953,12 +1091,16 @@ const (
|
|||||||
NET_RT_DUMP = 0x1
|
NET_RT_DUMP = 0x1
|
||||||
NET_RT_FLAGS = 0x2
|
NET_RT_FLAGS = 0x2
|
||||||
NET_RT_IFLIST = 0x3
|
NET_RT_IFLIST = 0x3
|
||||||
NET_RT_MAXID = 0x6
|
NET_RT_IFNAMES = 0x6
|
||||||
|
NET_RT_MAXID = 0x8
|
||||||
|
NET_RT_SOURCE = 0x7
|
||||||
NET_RT_STATS = 0x4
|
NET_RT_STATS = 0x4
|
||||||
NET_RT_TABLE = 0x5
|
NET_RT_TABLE = 0x5
|
||||||
NFDBITS = 0x20
|
NFDBITS = 0x20
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
|
NOKERNINFO = 0x2000000
|
||||||
NOTE_ATTRIB = 0x8
|
NOTE_ATTRIB = 0x8
|
||||||
|
NOTE_CHANGE = 0x1
|
||||||
NOTE_CHILD = 0x4
|
NOTE_CHILD = 0x4
|
||||||
NOTE_DELETE = 0x1
|
NOTE_DELETE = 0x1
|
||||||
NOTE_EOF = 0x2
|
NOTE_EOF = 0x2
|
||||||
@@ -968,6 +1110,7 @@ const (
|
|||||||
NOTE_FORK = 0x40000000
|
NOTE_FORK = 0x40000000
|
||||||
NOTE_LINK = 0x10
|
NOTE_LINK = 0x10
|
||||||
NOTE_LOWAT = 0x1
|
NOTE_LOWAT = 0x1
|
||||||
|
NOTE_OOB = 0x4
|
||||||
NOTE_PCTRLMASK = 0xf0000000
|
NOTE_PCTRLMASK = 0xf0000000
|
||||||
NOTE_PDATAMASK = 0xfffff
|
NOTE_PDATAMASK = 0xfffff
|
||||||
NOTE_RENAME = 0x20
|
NOTE_RENAME = 0x20
|
||||||
@@ -977,11 +1120,13 @@ const (
|
|||||||
NOTE_TRUNCATE = 0x80
|
NOTE_TRUNCATE = 0x80
|
||||||
NOTE_WRITE = 0x2
|
NOTE_WRITE = 0x2
|
||||||
OCRNL = 0x10
|
OCRNL = 0x10
|
||||||
|
OLCUC = 0x20
|
||||||
ONLCR = 0x2
|
ONLCR = 0x2
|
||||||
ONLRET = 0x80
|
ONLRET = 0x80
|
||||||
ONOCR = 0x40
|
ONOCR = 0x40
|
||||||
ONOEOT = 0x8
|
ONOEOT = 0x8
|
||||||
OPOST = 0x1
|
OPOST = 0x1
|
||||||
|
OXTABS = 0x4
|
||||||
O_ACCMODE = 0x3
|
O_ACCMODE = 0x3
|
||||||
O_APPEND = 0x8
|
O_APPEND = 0x8
|
||||||
O_ASYNC = 0x40
|
O_ASYNC = 0x40
|
||||||
@@ -1015,7 +1160,6 @@ const (
|
|||||||
PROT_NONE = 0x0
|
PROT_NONE = 0x0
|
||||||
PROT_READ = 0x1
|
PROT_READ = 0x1
|
||||||
PROT_WRITE = 0x2
|
PROT_WRITE = 0x2
|
||||||
PT_MASK = 0x3ff000
|
|
||||||
RLIMIT_CORE = 0x4
|
RLIMIT_CORE = 0x4
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
RLIMIT_DATA = 0x2
|
RLIMIT_DATA = 0x2
|
||||||
@@ -1027,19 +1171,25 @@ const (
|
|||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0x7fffffffffffffff
|
RLIM_INFINITY = 0x7fffffffffffffff
|
||||||
RTAX_AUTHOR = 0x6
|
RTAX_AUTHOR = 0x6
|
||||||
|
RTAX_BFD = 0xb
|
||||||
RTAX_BRD = 0x7
|
RTAX_BRD = 0x7
|
||||||
|
RTAX_DNS = 0xc
|
||||||
RTAX_DST = 0x0
|
RTAX_DST = 0x0
|
||||||
RTAX_GATEWAY = 0x1
|
RTAX_GATEWAY = 0x1
|
||||||
RTAX_GENMASK = 0x3
|
RTAX_GENMASK = 0x3
|
||||||
RTAX_IFA = 0x5
|
RTAX_IFA = 0x5
|
||||||
RTAX_IFP = 0x4
|
RTAX_IFP = 0x4
|
||||||
RTAX_LABEL = 0xa
|
RTAX_LABEL = 0xa
|
||||||
RTAX_MAX = 0xb
|
RTAX_MAX = 0xf
|
||||||
RTAX_NETMASK = 0x2
|
RTAX_NETMASK = 0x2
|
||||||
|
RTAX_SEARCH = 0xe
|
||||||
RTAX_SRC = 0x8
|
RTAX_SRC = 0x8
|
||||||
RTAX_SRCMASK = 0x9
|
RTAX_SRCMASK = 0x9
|
||||||
|
RTAX_STATIC = 0xd
|
||||||
RTA_AUTHOR = 0x40
|
RTA_AUTHOR = 0x40
|
||||||
|
RTA_BFD = 0x800
|
||||||
RTA_BRD = 0x80
|
RTA_BRD = 0x80
|
||||||
|
RTA_DNS = 0x1000
|
||||||
RTA_DST = 0x1
|
RTA_DST = 0x1
|
||||||
RTA_GATEWAY = 0x2
|
RTA_GATEWAY = 0x2
|
||||||
RTA_GENMASK = 0x8
|
RTA_GENMASK = 0x8
|
||||||
@@ -1047,49 +1197,57 @@ const (
|
|||||||
RTA_IFP = 0x10
|
RTA_IFP = 0x10
|
||||||
RTA_LABEL = 0x400
|
RTA_LABEL = 0x400
|
||||||
RTA_NETMASK = 0x4
|
RTA_NETMASK = 0x4
|
||||||
|
RTA_SEARCH = 0x4000
|
||||||
RTA_SRC = 0x100
|
RTA_SRC = 0x100
|
||||||
RTA_SRCMASK = 0x200
|
RTA_SRCMASK = 0x200
|
||||||
|
RTA_STATIC = 0x2000
|
||||||
RTF_ANNOUNCE = 0x4000
|
RTF_ANNOUNCE = 0x4000
|
||||||
|
RTF_BFD = 0x1000000
|
||||||
RTF_BLACKHOLE = 0x1000
|
RTF_BLACKHOLE = 0x1000
|
||||||
|
RTF_BROADCAST = 0x400000
|
||||||
|
RTF_CACHED = 0x20000
|
||||||
RTF_CLONED = 0x10000
|
RTF_CLONED = 0x10000
|
||||||
RTF_CLONING = 0x100
|
RTF_CLONING = 0x100
|
||||||
|
RTF_CONNECTED = 0x800000
|
||||||
RTF_DONE = 0x40
|
RTF_DONE = 0x40
|
||||||
RTF_DYNAMIC = 0x10
|
RTF_DYNAMIC = 0x10
|
||||||
RTF_FMASK = 0x10f808
|
RTF_FMASK = 0x110fc08
|
||||||
RTF_GATEWAY = 0x2
|
RTF_GATEWAY = 0x2
|
||||||
RTF_HOST = 0x4
|
RTF_HOST = 0x4
|
||||||
RTF_LLINFO = 0x400
|
RTF_LLINFO = 0x400
|
||||||
RTF_MASK = 0x80
|
RTF_LOCAL = 0x200000
|
||||||
RTF_MODIFIED = 0x20
|
RTF_MODIFIED = 0x20
|
||||||
RTF_MPATH = 0x40000
|
RTF_MPATH = 0x40000
|
||||||
RTF_MPLS = 0x100000
|
RTF_MPLS = 0x100000
|
||||||
|
RTF_MULTICAST = 0x200
|
||||||
RTF_PERMANENT_ARP = 0x2000
|
RTF_PERMANENT_ARP = 0x2000
|
||||||
RTF_PROTO1 = 0x8000
|
RTF_PROTO1 = 0x8000
|
||||||
RTF_PROTO2 = 0x4000
|
RTF_PROTO2 = 0x4000
|
||||||
RTF_PROTO3 = 0x2000
|
RTF_PROTO3 = 0x2000
|
||||||
RTF_REJECT = 0x8
|
RTF_REJECT = 0x8
|
||||||
RTF_SOURCE = 0x20000
|
|
||||||
RTF_STATIC = 0x800
|
RTF_STATIC = 0x800
|
||||||
RTF_TUNNEL = 0x100000
|
|
||||||
RTF_UP = 0x1
|
RTF_UP = 0x1
|
||||||
RTF_USETRAILERS = 0x8000
|
RTF_USETRAILERS = 0x8000
|
||||||
RTF_XRESOLVE = 0x200
|
RTM_80211INFO = 0x15
|
||||||
RTM_ADD = 0x1
|
RTM_ADD = 0x1
|
||||||
|
RTM_BFD = 0x12
|
||||||
RTM_CHANGE = 0x3
|
RTM_CHANGE = 0x3
|
||||||
|
RTM_CHGADDRATTR = 0x14
|
||||||
RTM_DELADDR = 0xd
|
RTM_DELADDR = 0xd
|
||||||
RTM_DELETE = 0x2
|
RTM_DELETE = 0x2
|
||||||
RTM_DESYNC = 0x10
|
RTM_DESYNC = 0x10
|
||||||
RTM_GET = 0x4
|
RTM_GET = 0x4
|
||||||
RTM_IFANNOUNCE = 0xf
|
RTM_IFANNOUNCE = 0xf
|
||||||
RTM_IFINFO = 0xe
|
RTM_IFINFO = 0xe
|
||||||
RTM_LOCK = 0x8
|
RTM_INVALIDATE = 0x11
|
||||||
RTM_LOSING = 0x5
|
RTM_LOSING = 0x5
|
||||||
RTM_MAXSIZE = 0x800
|
RTM_MAXSIZE = 0x800
|
||||||
RTM_MISS = 0x7
|
RTM_MISS = 0x7
|
||||||
RTM_NEWADDR = 0xc
|
RTM_NEWADDR = 0xc
|
||||||
|
RTM_PROPOSAL = 0x13
|
||||||
RTM_REDIRECT = 0x6
|
RTM_REDIRECT = 0x6
|
||||||
RTM_RESOLVE = 0xb
|
RTM_RESOLVE = 0xb
|
||||||
RTM_RTTUNIT = 0xf4240
|
RTM_SOURCE = 0x16
|
||||||
RTM_VERSION = 0x5
|
RTM_VERSION = 0x5
|
||||||
RTV_EXPIRE = 0x4
|
RTV_EXPIRE = 0x4
|
||||||
RTV_HOPCOUNT = 0x2
|
RTV_HOPCOUNT = 0x2
|
||||||
@@ -1099,67 +1257,74 @@ const (
|
|||||||
RTV_RTTVAR = 0x80
|
RTV_RTTVAR = 0x80
|
||||||
RTV_SPIPE = 0x10
|
RTV_SPIPE = 0x10
|
||||||
RTV_SSTHRESH = 0x20
|
RTV_SSTHRESH = 0x20
|
||||||
|
RT_TABLEID_BITS = 0x8
|
||||||
|
RT_TABLEID_MASK = 0xff
|
||||||
RT_TABLEID_MAX = 0xff
|
RT_TABLEID_MAX = 0xff
|
||||||
RUSAGE_CHILDREN = -0x1
|
RUSAGE_CHILDREN = -0x1
|
||||||
RUSAGE_SELF = 0x0
|
RUSAGE_SELF = 0x0
|
||||||
RUSAGE_THREAD = 0x1
|
RUSAGE_THREAD = 0x1
|
||||||
SCM_RIGHTS = 0x1
|
SCM_RIGHTS = 0x1
|
||||||
SCM_TIMESTAMP = 0x4
|
SCM_TIMESTAMP = 0x4
|
||||||
|
SEEK_CUR = 0x1
|
||||||
|
SEEK_END = 0x2
|
||||||
|
SEEK_SET = 0x0
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
SIOCADDMULTI = 0x80206931
|
SIOCADDMULTI = 0x80206931
|
||||||
SIOCAIFADDR = 0x8040691a
|
SIOCAIFADDR = 0x8040691a
|
||||||
SIOCAIFGROUP = 0x80246987
|
SIOCAIFGROUP = 0x80246987
|
||||||
SIOCALIFADDR = 0x8218691c
|
|
||||||
SIOCATMARK = 0x40047307
|
SIOCATMARK = 0x40047307
|
||||||
SIOCBRDGADD = 0x8054693c
|
SIOCBRDGADD = 0x805c693c
|
||||||
SIOCBRDGADDS = 0x80546941
|
SIOCBRDGADDL = 0x805c6949
|
||||||
SIOCBRDGARL = 0x806e694d
|
SIOCBRDGADDS = 0x805c6941
|
||||||
|
SIOCBRDGARL = 0x808c694d
|
||||||
SIOCBRDGDADDR = 0x81286947
|
SIOCBRDGDADDR = 0x81286947
|
||||||
SIOCBRDGDEL = 0x8054693d
|
SIOCBRDGDEL = 0x805c693d
|
||||||
SIOCBRDGDELS = 0x80546942
|
SIOCBRDGDELS = 0x805c6942
|
||||||
SIOCBRDGFLUSH = 0x80546948
|
SIOCBRDGFLUSH = 0x805c6948
|
||||||
SIOCBRDGFRL = 0x806e694e
|
SIOCBRDGFRL = 0x808c694e
|
||||||
SIOCBRDGGCACHE = 0xc0146941
|
SIOCBRDGGCACHE = 0xc0146941
|
||||||
SIOCBRDGGFD = 0xc0146952
|
SIOCBRDGGFD = 0xc0146952
|
||||||
SIOCBRDGGHT = 0xc0146951
|
SIOCBRDGGHT = 0xc0146951
|
||||||
SIOCBRDGGIFFLGS = 0xc054693e
|
SIOCBRDGGIFFLGS = 0xc05c693e
|
||||||
SIOCBRDGGMA = 0xc0146953
|
SIOCBRDGGMA = 0xc0146953
|
||||||
SIOCBRDGGPARAM = 0xc03c6958
|
SIOCBRDGGPARAM = 0xc03c6958
|
||||||
SIOCBRDGGPRI = 0xc0146950
|
SIOCBRDGGPRI = 0xc0146950
|
||||||
SIOCBRDGGRL = 0xc028694f
|
SIOCBRDGGRL = 0xc028694f
|
||||||
SIOCBRDGGSIFS = 0xc054693c
|
|
||||||
SIOCBRDGGTO = 0xc0146946
|
SIOCBRDGGTO = 0xc0146946
|
||||||
SIOCBRDGIFS = 0xc0546942
|
SIOCBRDGIFS = 0xc05c6942
|
||||||
SIOCBRDGRTS = 0xc0186943
|
SIOCBRDGRTS = 0xc0186943
|
||||||
SIOCBRDGSADDR = 0xc1286944
|
SIOCBRDGSADDR = 0xc1286944
|
||||||
SIOCBRDGSCACHE = 0x80146940
|
SIOCBRDGSCACHE = 0x80146940
|
||||||
SIOCBRDGSFD = 0x80146952
|
SIOCBRDGSFD = 0x80146952
|
||||||
SIOCBRDGSHT = 0x80146951
|
SIOCBRDGSHT = 0x80146951
|
||||||
SIOCBRDGSIFCOST = 0x80546955
|
SIOCBRDGSIFCOST = 0x805c6955
|
||||||
SIOCBRDGSIFFLGS = 0x8054693f
|
SIOCBRDGSIFFLGS = 0x805c693f
|
||||||
SIOCBRDGSIFPRIO = 0x80546954
|
SIOCBRDGSIFPRIO = 0x805c6954
|
||||||
|
SIOCBRDGSIFPROT = 0x805c694a
|
||||||
SIOCBRDGSMA = 0x80146953
|
SIOCBRDGSMA = 0x80146953
|
||||||
SIOCBRDGSPRI = 0x80146950
|
SIOCBRDGSPRI = 0x80146950
|
||||||
SIOCBRDGSPROTO = 0x8014695a
|
SIOCBRDGSPROTO = 0x8014695a
|
||||||
SIOCBRDGSTO = 0x80146945
|
SIOCBRDGSTO = 0x80146945
|
||||||
SIOCBRDGSTXHC = 0x80146959
|
SIOCBRDGSTXHC = 0x80146959
|
||||||
|
SIOCDELLABEL = 0x80206997
|
||||||
SIOCDELMULTI = 0x80206932
|
SIOCDELMULTI = 0x80206932
|
||||||
SIOCDIFADDR = 0x80206919
|
SIOCDIFADDR = 0x80206919
|
||||||
SIOCDIFGROUP = 0x80246989
|
SIOCDIFGROUP = 0x80246989
|
||||||
|
SIOCDIFPARENT = 0x802069b4
|
||||||
SIOCDIFPHYADDR = 0x80206949
|
SIOCDIFPHYADDR = 0x80206949
|
||||||
SIOCDLIFADDR = 0x8218691e
|
SIOCDPWE3NEIGHBOR = 0x802069de
|
||||||
|
SIOCDVNETID = 0x802069af
|
||||||
SIOCGETKALIVE = 0xc01869a4
|
SIOCGETKALIVE = 0xc01869a4
|
||||||
SIOCGETLABEL = 0x8020699a
|
SIOCGETLABEL = 0x8020699a
|
||||||
|
SIOCGETMPWCFG = 0xc02069ae
|
||||||
SIOCGETPFLOW = 0xc02069fe
|
SIOCGETPFLOW = 0xc02069fe
|
||||||
SIOCGETPFSYNC = 0xc02069f8
|
SIOCGETPFSYNC = 0xc02069f8
|
||||||
SIOCGETSGCNT = 0xc0147534
|
SIOCGETSGCNT = 0xc0147534
|
||||||
SIOCGETVIFCNT = 0xc0147533
|
SIOCGETVIFCNT = 0xc0147533
|
||||||
SIOCGETVLAN = 0xc0206990
|
SIOCGETVLAN = 0xc0206990
|
||||||
SIOCGHIWAT = 0x40047301
|
|
||||||
SIOCGIFADDR = 0xc0206921
|
SIOCGIFADDR = 0xc0206921
|
||||||
SIOCGIFASYNCMAP = 0xc020697c
|
|
||||||
SIOCGIFBRDADDR = 0xc0206923
|
SIOCGIFBRDADDR = 0xc0206923
|
||||||
SIOCGIFCONF = 0xc0086924
|
SIOCGIFCONF = 0xc0086924
|
||||||
SIOCGIFDATA = 0xc020691b
|
SIOCGIFDATA = 0xc020691b
|
||||||
@@ -1168,40 +1333,53 @@ const (
|
|||||||
SIOCGIFFLAGS = 0xc0206911
|
SIOCGIFFLAGS = 0xc0206911
|
||||||
SIOCGIFGATTR = 0xc024698b
|
SIOCGIFGATTR = 0xc024698b
|
||||||
SIOCGIFGENERIC = 0xc020693a
|
SIOCGIFGENERIC = 0xc020693a
|
||||||
|
SIOCGIFGLIST = 0xc024698d
|
||||||
SIOCGIFGMEMB = 0xc024698a
|
SIOCGIFGMEMB = 0xc024698a
|
||||||
SIOCGIFGROUP = 0xc0246988
|
SIOCGIFGROUP = 0xc0246988
|
||||||
SIOCGIFHARDMTU = 0xc02069a5
|
SIOCGIFHARDMTU = 0xc02069a5
|
||||||
SIOCGIFMEDIA = 0xc0286936
|
SIOCGIFLLPRIO = 0xc02069b6
|
||||||
|
SIOCGIFMEDIA = 0xc0386938
|
||||||
SIOCGIFMETRIC = 0xc0206917
|
SIOCGIFMETRIC = 0xc0206917
|
||||||
SIOCGIFMTU = 0xc020697e
|
SIOCGIFMTU = 0xc020697e
|
||||||
SIOCGIFNETMASK = 0xc0206925
|
SIOCGIFNETMASK = 0xc0206925
|
||||||
SIOCGIFPDSTADDR = 0xc0206948
|
SIOCGIFPAIR = 0xc02069b1
|
||||||
|
SIOCGIFPARENT = 0xc02069b3
|
||||||
SIOCGIFPRIORITY = 0xc020699c
|
SIOCGIFPRIORITY = 0xc020699c
|
||||||
SIOCGIFPSRCADDR = 0xc0206947
|
|
||||||
SIOCGIFRDOMAIN = 0xc02069a0
|
SIOCGIFRDOMAIN = 0xc02069a0
|
||||||
SIOCGIFRTLABEL = 0xc0206983
|
SIOCGIFRTLABEL = 0xc0206983
|
||||||
SIOCGIFTIMESLOT = 0xc0206986
|
SIOCGIFRXR = 0x802069aa
|
||||||
|
SIOCGIFSFFPAGE = 0xc1126939
|
||||||
SIOCGIFXFLAGS = 0xc020699e
|
SIOCGIFXFLAGS = 0xc020699e
|
||||||
SIOCGLIFADDR = 0xc218691d
|
|
||||||
SIOCGLIFPHYADDR = 0xc218694b
|
SIOCGLIFPHYADDR = 0xc218694b
|
||||||
|
SIOCGLIFPHYDF = 0xc02069c2
|
||||||
|
SIOCGLIFPHYECN = 0xc02069c8
|
||||||
SIOCGLIFPHYRTABLE = 0xc02069a2
|
SIOCGLIFPHYRTABLE = 0xc02069a2
|
||||||
SIOCGLIFPHYTTL = 0xc02069a9
|
SIOCGLIFPHYTTL = 0xc02069a9
|
||||||
SIOCGLOWAT = 0x40047303
|
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
|
SIOCGPWE3 = 0xc0206998
|
||||||
|
SIOCGPWE3CTRLWORD = 0xc02069dc
|
||||||
|
SIOCGPWE3FAT = 0xc02069dd
|
||||||
|
SIOCGPWE3NEIGHBOR = 0xc21869de
|
||||||
|
SIOCGRXHPRIO = 0xc02069db
|
||||||
SIOCGSPPPPARAMS = 0xc0206994
|
SIOCGSPPPPARAMS = 0xc0206994
|
||||||
|
SIOCGTXHPRIO = 0xc02069c6
|
||||||
|
SIOCGUMBINFO = 0xc02069be
|
||||||
|
SIOCGUMBPARAM = 0xc02069c0
|
||||||
SIOCGVH = 0xc02069f6
|
SIOCGVH = 0xc02069f6
|
||||||
|
SIOCGVNETFLOWID = 0xc02069c4
|
||||||
SIOCGVNETID = 0xc02069a7
|
SIOCGVNETID = 0xc02069a7
|
||||||
|
SIOCIFAFATTACH = 0x801169ab
|
||||||
|
SIOCIFAFDETACH = 0x801169ac
|
||||||
SIOCIFCREATE = 0x8020697a
|
SIOCIFCREATE = 0x8020697a
|
||||||
SIOCIFDESTROY = 0x80206979
|
SIOCIFDESTROY = 0x80206979
|
||||||
SIOCIFGCLONERS = 0xc00c6978
|
SIOCIFGCLONERS = 0xc00c6978
|
||||||
SIOCSETKALIVE = 0x801869a3
|
SIOCSETKALIVE = 0x801869a3
|
||||||
SIOCSETLABEL = 0x80206999
|
SIOCSETLABEL = 0x80206999
|
||||||
|
SIOCSETMPWCFG = 0x802069ad
|
||||||
SIOCSETPFLOW = 0x802069fd
|
SIOCSETPFLOW = 0x802069fd
|
||||||
SIOCSETPFSYNC = 0x802069f7
|
SIOCSETPFSYNC = 0x802069f7
|
||||||
SIOCSETVLAN = 0x8020698f
|
SIOCSETVLAN = 0x8020698f
|
||||||
SIOCSHIWAT = 0x80047300
|
|
||||||
SIOCSIFADDR = 0x8020690c
|
SIOCSIFADDR = 0x8020690c
|
||||||
SIOCSIFASYNCMAP = 0x8020697d
|
|
||||||
SIOCSIFBRDADDR = 0x80206913
|
SIOCSIFBRDADDR = 0x80206913
|
||||||
SIOCSIFDESCR = 0x80206980
|
SIOCSIFDESCR = 0x80206980
|
||||||
SIOCSIFDSTADDR = 0x8020690e
|
SIOCSIFDSTADDR = 0x8020690e
|
||||||
@@ -1209,25 +1387,37 @@ const (
|
|||||||
SIOCSIFGATTR = 0x8024698c
|
SIOCSIFGATTR = 0x8024698c
|
||||||
SIOCSIFGENERIC = 0x80206939
|
SIOCSIFGENERIC = 0x80206939
|
||||||
SIOCSIFLLADDR = 0x8020691f
|
SIOCSIFLLADDR = 0x8020691f
|
||||||
SIOCSIFMEDIA = 0xc0206935
|
SIOCSIFLLPRIO = 0x802069b5
|
||||||
|
SIOCSIFMEDIA = 0xc0206937
|
||||||
SIOCSIFMETRIC = 0x80206918
|
SIOCSIFMETRIC = 0x80206918
|
||||||
SIOCSIFMTU = 0x8020697f
|
SIOCSIFMTU = 0x8020697f
|
||||||
SIOCSIFNETMASK = 0x80206916
|
SIOCSIFNETMASK = 0x80206916
|
||||||
SIOCSIFPHYADDR = 0x80406946
|
SIOCSIFPAIR = 0x802069b0
|
||||||
|
SIOCSIFPARENT = 0x802069b2
|
||||||
SIOCSIFPRIORITY = 0x8020699b
|
SIOCSIFPRIORITY = 0x8020699b
|
||||||
SIOCSIFRDOMAIN = 0x8020699f
|
SIOCSIFRDOMAIN = 0x8020699f
|
||||||
SIOCSIFRTLABEL = 0x80206982
|
SIOCSIFRTLABEL = 0x80206982
|
||||||
SIOCSIFTIMESLOT = 0x80206985
|
|
||||||
SIOCSIFXFLAGS = 0x8020699d
|
SIOCSIFXFLAGS = 0x8020699d
|
||||||
SIOCSLIFPHYADDR = 0x8218694a
|
SIOCSLIFPHYADDR = 0x8218694a
|
||||||
|
SIOCSLIFPHYDF = 0x802069c1
|
||||||
|
SIOCSLIFPHYECN = 0x802069c7
|
||||||
SIOCSLIFPHYRTABLE = 0x802069a1
|
SIOCSLIFPHYRTABLE = 0x802069a1
|
||||||
SIOCSLIFPHYTTL = 0x802069a8
|
SIOCSLIFPHYTTL = 0x802069a8
|
||||||
SIOCSLOWAT = 0x80047302
|
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
|
SIOCSPWE3CTRLWORD = 0x802069dc
|
||||||
|
SIOCSPWE3FAT = 0x802069dd
|
||||||
|
SIOCSPWE3NEIGHBOR = 0x821869de
|
||||||
|
SIOCSRXHPRIO = 0x802069db
|
||||||
SIOCSSPPPPARAMS = 0x80206993
|
SIOCSSPPPPARAMS = 0x80206993
|
||||||
|
SIOCSTXHPRIO = 0x802069c5
|
||||||
|
SIOCSUMBPARAM = 0x802069bf
|
||||||
SIOCSVH = 0xc02069f5
|
SIOCSVH = 0xc02069f5
|
||||||
|
SIOCSVNETFLOWID = 0x802069c3
|
||||||
SIOCSVNETID = 0x802069a6
|
SIOCSVNETID = 0x802069a6
|
||||||
|
SOCK_CLOEXEC = 0x8000
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
|
SOCK_DNS = 0x1000
|
||||||
|
SOCK_NONBLOCK = 0x4000
|
||||||
SOCK_RAW = 0x3
|
SOCK_RAW = 0x3
|
||||||
SOCK_RDM = 0x4
|
SOCK_RDM = 0x4
|
||||||
SOCK_SEQPACKET = 0x5
|
SOCK_SEQPACKET = 0x5
|
||||||
@@ -1238,6 +1428,7 @@ const (
|
|||||||
SO_BINDANY = 0x1000
|
SO_BINDANY = 0x1000
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
|
SO_DOMAIN = 0x1024
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
SO_ERROR = 0x1007
|
SO_ERROR = 0x1007
|
||||||
SO_KEEPALIVE = 0x8
|
SO_KEEPALIVE = 0x8
|
||||||
@@ -1245,6 +1436,7 @@ const (
|
|||||||
SO_NETPROC = 0x1020
|
SO_NETPROC = 0x1020
|
||||||
SO_OOBINLINE = 0x100
|
SO_OOBINLINE = 0x100
|
||||||
SO_PEERCRED = 0x1022
|
SO_PEERCRED = 0x1022
|
||||||
|
SO_PROTOCOL = 0x1025
|
||||||
SO_RCVBUF = 0x1002
|
SO_RCVBUF = 0x1002
|
||||||
SO_RCVLOWAT = 0x1004
|
SO_RCVLOWAT = 0x1004
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
@@ -1258,6 +1450,7 @@ const (
|
|||||||
SO_TIMESTAMP = 0x800
|
SO_TIMESTAMP = 0x800
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
|
SO_ZEROIZE = 0x2000
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
S_IFBLK = 0x6000
|
S_IFBLK = 0x6000
|
||||||
@@ -1287,9 +1480,24 @@ const (
|
|||||||
S_IXOTH = 0x1
|
S_IXOTH = 0x1
|
||||||
S_IXUSR = 0x40
|
S_IXUSR = 0x40
|
||||||
TCIFLUSH = 0x1
|
TCIFLUSH = 0x1
|
||||||
|
TCIOFF = 0x3
|
||||||
TCIOFLUSH = 0x3
|
TCIOFLUSH = 0x3
|
||||||
|
TCION = 0x4
|
||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
TCP_MAXBURST = 0x4
|
TCOOFF = 0x1
|
||||||
|
TCOON = 0x2
|
||||||
|
TCPOPT_EOL = 0x0
|
||||||
|
TCPOPT_MAXSEG = 0x2
|
||||||
|
TCPOPT_NOP = 0x1
|
||||||
|
TCPOPT_SACK = 0x5
|
||||||
|
TCPOPT_SACK_HDR = 0x1010500
|
||||||
|
TCPOPT_SACK_PERMITTED = 0x4
|
||||||
|
TCPOPT_SACK_PERMIT_HDR = 0x1010402
|
||||||
|
TCPOPT_SIGNATURE = 0x13
|
||||||
|
TCPOPT_TIMESTAMP = 0x8
|
||||||
|
TCPOPT_TSTAMP_HDR = 0x101080a
|
||||||
|
TCPOPT_WINDOW = 0x3
|
||||||
|
TCP_INFO = 0x9
|
||||||
TCP_MAXSEG = 0x2
|
TCP_MAXSEG = 0x2
|
||||||
TCP_MAXWIN = 0xffff
|
TCP_MAXWIN = 0xffff
|
||||||
TCP_MAX_SACK = 0x3
|
TCP_MAX_SACK = 0x3
|
||||||
@@ -1298,11 +1506,15 @@ const (
|
|||||||
TCP_MSS = 0x200
|
TCP_MSS = 0x200
|
||||||
TCP_NODELAY = 0x1
|
TCP_NODELAY = 0x1
|
||||||
TCP_NOPUSH = 0x10
|
TCP_NOPUSH = 0x10
|
||||||
TCP_NSTATES = 0xb
|
TCP_SACKHOLE_LIMIT = 0x80
|
||||||
TCP_SACK_ENABLE = 0x8
|
TCP_SACK_ENABLE = 0x8
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
|
TIMER_RELTIME = 0x0
|
||||||
TIOCCBRK = 0x2000747a
|
TIOCCBRK = 0x2000747a
|
||||||
TIOCCDTR = 0x20007478
|
TIOCCDTR = 0x20007478
|
||||||
|
TIOCCHKVERAUTH = 0x2000741e
|
||||||
|
TIOCCLRVERAUTH = 0x2000741d
|
||||||
TIOCCONS = 0x80047462
|
TIOCCONS = 0x80047462
|
||||||
TIOCDRAIN = 0x2000745e
|
TIOCDRAIN = 0x2000745e
|
||||||
TIOCEXCL = 0x2000740d
|
TIOCEXCL = 0x2000740d
|
||||||
@@ -1357,17 +1569,21 @@ const (
|
|||||||
TIOCSETAF = 0x802c7416
|
TIOCSETAF = 0x802c7416
|
||||||
TIOCSETAW = 0x802c7415
|
TIOCSETAW = 0x802c7415
|
||||||
TIOCSETD = 0x8004741b
|
TIOCSETD = 0x8004741b
|
||||||
|
TIOCSETVERAUTH = 0x8004741c
|
||||||
TIOCSFLAGS = 0x8004745c
|
TIOCSFLAGS = 0x8004745c
|
||||||
TIOCSIG = 0x8004745f
|
TIOCSIG = 0x8004745f
|
||||||
TIOCSPGRP = 0x80047476
|
TIOCSPGRP = 0x80047476
|
||||||
TIOCSTART = 0x2000746e
|
TIOCSTART = 0x2000746e
|
||||||
TIOCSTAT = 0x80047465
|
TIOCSTAT = 0x20007465
|
||||||
TIOCSTI = 0x80017472
|
|
||||||
TIOCSTOP = 0x2000746f
|
TIOCSTOP = 0x2000746f
|
||||||
TIOCSTSTAMP = 0x8008745a
|
TIOCSTSTAMP = 0x8008745a
|
||||||
TIOCSWINSZ = 0x80087467
|
TIOCSWINSZ = 0x80087467
|
||||||
TIOCUCNTL = 0x80047466
|
TIOCUCNTL = 0x80047466
|
||||||
|
TIOCUCNTL_CBRK = 0x7a
|
||||||
|
TIOCUCNTL_SBRK = 0x7b
|
||||||
TOSTOP = 0x400000
|
TOSTOP = 0x400000
|
||||||
|
UTIME_NOW = -0x2
|
||||||
|
UTIME_OMIT = -0x1
|
||||||
VDISCARD = 0xf
|
VDISCARD = 0xf
|
||||||
VDSUSP = 0xb
|
VDSUSP = 0xb
|
||||||
VEOF = 0x0
|
VEOF = 0x0
|
||||||
@@ -1378,6 +1594,19 @@ const (
|
|||||||
VKILL = 0x5
|
VKILL = 0x5
|
||||||
VLNEXT = 0xe
|
VLNEXT = 0xe
|
||||||
VMIN = 0x10
|
VMIN = 0x10
|
||||||
|
VM_ANONMIN = 0x7
|
||||||
|
VM_LOADAVG = 0x2
|
||||||
|
VM_MALLOC_CONF = 0xc
|
||||||
|
VM_MAXID = 0xd
|
||||||
|
VM_MAXSLP = 0xa
|
||||||
|
VM_METER = 0x1
|
||||||
|
VM_NKMEMPAGES = 0x6
|
||||||
|
VM_PSSTRINGS = 0x3
|
||||||
|
VM_SWAPENCRYPT = 0x5
|
||||||
|
VM_USPACE = 0xb
|
||||||
|
VM_UVMEXP = 0x4
|
||||||
|
VM_VNODEMIN = 0x9
|
||||||
|
VM_VTEXTMIN = 0x8
|
||||||
VQUIT = 0x9
|
VQUIT = 0x9
|
||||||
VREPRINT = 0x6
|
VREPRINT = 0x6
|
||||||
VSTART = 0xc
|
VSTART = 0xc
|
||||||
@@ -1390,8 +1619,8 @@ const (
|
|||||||
WCONTINUED = 0x8
|
WCONTINUED = 0x8
|
||||||
WCOREFLAG = 0x80
|
WCOREFLAG = 0x80
|
||||||
WNOHANG = 0x1
|
WNOHANG = 0x1
|
||||||
WSTOPPED = 0x7f
|
|
||||||
WUNTRACED = 0x2
|
WUNTRACED = 0x2
|
||||||
|
XCASE = 0x1000000
|
||||||
)
|
)
|
||||||
|
|
||||||
// Errors
|
// Errors
|
||||||
@@ -1405,6 +1634,7 @@ const (
|
|||||||
EALREADY = syscall.Errno(0x25)
|
EALREADY = syscall.Errno(0x25)
|
||||||
EAUTH = syscall.Errno(0x50)
|
EAUTH = syscall.Errno(0x50)
|
||||||
EBADF = syscall.Errno(0x9)
|
EBADF = syscall.Errno(0x9)
|
||||||
|
EBADMSG = syscall.Errno(0x5c)
|
||||||
EBADRPC = syscall.Errno(0x48)
|
EBADRPC = syscall.Errno(0x48)
|
||||||
EBUSY = syscall.Errno(0x10)
|
EBUSY = syscall.Errno(0x10)
|
||||||
ECANCELED = syscall.Errno(0x58)
|
ECANCELED = syscall.Errno(0x58)
|
||||||
@@ -1431,7 +1661,7 @@ const (
|
|||||||
EIPSEC = syscall.Errno(0x52)
|
EIPSEC = syscall.Errno(0x52)
|
||||||
EISCONN = syscall.Errno(0x38)
|
EISCONN = syscall.Errno(0x38)
|
||||||
EISDIR = syscall.Errno(0x15)
|
EISDIR = syscall.Errno(0x15)
|
||||||
ELAST = syscall.Errno(0x5b)
|
ELAST = syscall.Errno(0x5f)
|
||||||
ELOOP = syscall.Errno(0x3e)
|
ELOOP = syscall.Errno(0x3e)
|
||||||
EMEDIUMTYPE = syscall.Errno(0x56)
|
EMEDIUMTYPE = syscall.Errno(0x56)
|
||||||
EMFILE = syscall.Errno(0x18)
|
EMFILE = syscall.Errno(0x18)
|
||||||
@@ -1459,12 +1689,14 @@ const (
|
|||||||
ENOTCONN = syscall.Errno(0x39)
|
ENOTCONN = syscall.Errno(0x39)
|
||||||
ENOTDIR = syscall.Errno(0x14)
|
ENOTDIR = syscall.Errno(0x14)
|
||||||
ENOTEMPTY = syscall.Errno(0x42)
|
ENOTEMPTY = syscall.Errno(0x42)
|
||||||
|
ENOTRECOVERABLE = syscall.Errno(0x5d)
|
||||||
ENOTSOCK = syscall.Errno(0x26)
|
ENOTSOCK = syscall.Errno(0x26)
|
||||||
ENOTSUP = syscall.Errno(0x5b)
|
ENOTSUP = syscall.Errno(0x5b)
|
||||||
ENOTTY = syscall.Errno(0x19)
|
ENOTTY = syscall.Errno(0x19)
|
||||||
ENXIO = syscall.Errno(0x6)
|
ENXIO = syscall.Errno(0x6)
|
||||||
EOPNOTSUPP = syscall.Errno(0x2d)
|
EOPNOTSUPP = syscall.Errno(0x2d)
|
||||||
EOVERFLOW = syscall.Errno(0x57)
|
EOVERFLOW = syscall.Errno(0x57)
|
||||||
|
EOWNERDEAD = syscall.Errno(0x5e)
|
||||||
EPERM = syscall.Errno(0x1)
|
EPERM = syscall.Errno(0x1)
|
||||||
EPFNOSUPPORT = syscall.Errno(0x2e)
|
EPFNOSUPPORT = syscall.Errno(0x2e)
|
||||||
EPIPE = syscall.Errno(0x20)
|
EPIPE = syscall.Errno(0x20)
|
||||||
@@ -1472,6 +1704,7 @@ const (
|
|||||||
EPROCUNAVAIL = syscall.Errno(0x4c)
|
EPROCUNAVAIL = syscall.Errno(0x4c)
|
||||||
EPROGMISMATCH = syscall.Errno(0x4b)
|
EPROGMISMATCH = syscall.Errno(0x4b)
|
||||||
EPROGUNAVAIL = syscall.Errno(0x4a)
|
EPROGUNAVAIL = syscall.Errno(0x4a)
|
||||||
|
EPROTO = syscall.Errno(0x5f)
|
||||||
EPROTONOSUPPORT = syscall.Errno(0x2b)
|
EPROTONOSUPPORT = syscall.Errno(0x2b)
|
||||||
EPROTOTYPE = syscall.Errno(0x29)
|
EPROTOTYPE = syscall.Errno(0x29)
|
||||||
ERANGE = syscall.Errno(0x22)
|
ERANGE = syscall.Errno(0x22)
|
||||||
@@ -1568,7 +1801,7 @@ var errorList = [...]struct {
|
|||||||
{32, "EPIPE", "broken pipe"},
|
{32, "EPIPE", "broken pipe"},
|
||||||
{33, "EDOM", "numerical argument out of domain"},
|
{33, "EDOM", "numerical argument out of domain"},
|
||||||
{34, "ERANGE", "result too large"},
|
{34, "ERANGE", "result too large"},
|
||||||
{35, "EWOULDBLOCK", "resource temporarily unavailable"},
|
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||||
{36, "EINPROGRESS", "operation now in progress"},
|
{36, "EINPROGRESS", "operation now in progress"},
|
||||||
{37, "EALREADY", "operation already in progress"},
|
{37, "EALREADY", "operation already in progress"},
|
||||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||||
@@ -1624,7 +1857,11 @@ var errorList = [...]struct {
|
|||||||
{88, "ECANCELED", "operation canceled"},
|
{88, "ECANCELED", "operation canceled"},
|
||||||
{89, "EIDRM", "identifier removed"},
|
{89, "EIDRM", "identifier removed"},
|
||||||
{90, "ENOMSG", "no message of desired type"},
|
{90, "ENOMSG", "no message of desired type"},
|
||||||
{91, "ELAST", "not supported"},
|
{91, "ENOTSUP", "not supported"},
|
||||||
|
{92, "EBADMSG", "bad message"},
|
||||||
|
{93, "ENOTRECOVERABLE", "state not recoverable"},
|
||||||
|
{94, "EOWNERDEAD", "previous owner died"},
|
||||||
|
{95, "ELAST", "protocol error"},
|
||||||
}
|
}
|
||||||
|
|
||||||
// Signal table
|
// Signal table
|
||||||
@@ -1638,7 +1875,7 @@ var signalList = [...]struct {
|
|||||||
{3, "SIGQUIT", "quit"},
|
{3, "SIGQUIT", "quit"},
|
||||||
{4, "SIGILL", "illegal instruction"},
|
{4, "SIGILL", "illegal instruction"},
|
||||||
{5, "SIGTRAP", "trace/BPT trap"},
|
{5, "SIGTRAP", "trace/BPT trap"},
|
||||||
{6, "SIGABRT", "abort trap"},
|
{6, "SIGIOT", "abort trap"},
|
||||||
{7, "SIGEMT", "EMT trap"},
|
{7, "SIGEMT", "EMT trap"},
|
||||||
{8, "SIGFPE", "floating point exception"},
|
{8, "SIGFPE", "floating point exception"},
|
||||||
{9, "SIGKILL", "killed"},
|
{9, "SIGKILL", "killed"},
|
||||||
@@ -1665,4 +1902,5 @@ var signalList = [...]struct {
|
|||||||
{30, "SIGUSR1", "user defined signal 1"},
|
{30, "SIGUSR1", "user defined signal 1"},
|
||||||
{31, "SIGUSR2", "user defined signal 2"},
|
{31, "SIGUSR2", "user defined signal 2"},
|
||||||
{32, "SIGTHR", "thread AST"},
|
{32, "SIGTHR", "thread AST"},
|
||||||
|
{28672, "SIGSTKSZ", "unknown signal"},
|
||||||
}
|
}
|
||||||
|
|||||||
189
vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go
generated
vendored
189
vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go
generated
vendored
@@ -109,6 +109,15 @@ const (
|
|||||||
BPF_DIRECTION_IN = 0x1
|
BPF_DIRECTION_IN = 0x1
|
||||||
BPF_DIRECTION_OUT = 0x2
|
BPF_DIRECTION_OUT = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_FILDROP_CAPTURE = 0x1
|
||||||
|
BPF_FILDROP_DROP = 0x2
|
||||||
|
BPF_FILDROP_PASS = 0x0
|
||||||
|
BPF_F_DIR_IN = 0x10
|
||||||
|
BPF_F_DIR_MASK = 0x30
|
||||||
|
BPF_F_DIR_OUT = 0x20
|
||||||
|
BPF_F_DIR_SHIFT = 0x4
|
||||||
|
BPF_F_FLOWID = 0x8
|
||||||
|
BPF_F_PRI_MASK = 0x7
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@@ -137,6 +146,7 @@ const (
|
|||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_RELEASE = 0x30bb6
|
BPF_RELEASE = 0x30bb6
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
|
BPF_RND = 0xc0
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
@@ -177,7 +187,65 @@ const (
|
|||||||
CTL_KERN = 0x1
|
CTL_KERN = 0x1
|
||||||
CTL_MAXNAME = 0xc
|
CTL_MAXNAME = 0xc
|
||||||
CTL_NET = 0x4
|
CTL_NET = 0x4
|
||||||
|
DIOCADDQUEUE = 0xc110445d
|
||||||
|
DIOCADDRULE = 0xcd604404
|
||||||
|
DIOCADDSTATE = 0xc1084425
|
||||||
|
DIOCCHANGERULE = 0xcd60441a
|
||||||
|
DIOCCLRIFFLAG = 0xc028445a
|
||||||
|
DIOCCLRSRCNODES = 0x20004455
|
||||||
|
DIOCCLRSTATES = 0xc0e04412
|
||||||
|
DIOCCLRSTATUS = 0xc0284416
|
||||||
|
DIOCGETLIMIT = 0xc0084427
|
||||||
|
DIOCGETQSTATS = 0xc1204460
|
||||||
|
DIOCGETQUEUE = 0xc110445f
|
||||||
|
DIOCGETQUEUES = 0xc110445e
|
||||||
|
DIOCGETRULE = 0xcd604407
|
||||||
|
DIOCGETRULES = 0xcd604406
|
||||||
|
DIOCGETRULESET = 0xc444443b
|
||||||
|
DIOCGETRULESETS = 0xc444443a
|
||||||
|
DIOCGETSRCNODES = 0xc0104454
|
||||||
|
DIOCGETSTATE = 0xc1084413
|
||||||
|
DIOCGETSTATES = 0xc0104419
|
||||||
|
DIOCGETSTATUS = 0xc1e84415
|
||||||
|
DIOCGETSYNFLWATS = 0xc0084463
|
||||||
|
DIOCGETTIMEOUT = 0xc008441e
|
||||||
|
DIOCIGETIFACES = 0xc0284457
|
||||||
|
DIOCKILLSRCNODES = 0xc080445b
|
||||||
|
DIOCKILLSTATES = 0xc0e04429
|
||||||
|
DIOCNATLOOK = 0xc0504417
|
||||||
|
DIOCOSFPADD = 0xc088444f
|
||||||
DIOCOSFPFLUSH = 0x2000444e
|
DIOCOSFPFLUSH = 0x2000444e
|
||||||
|
DIOCOSFPGET = 0xc0884450
|
||||||
|
DIOCRADDADDRS = 0xc4504443
|
||||||
|
DIOCRADDTABLES = 0xc450443d
|
||||||
|
DIOCRCLRADDRS = 0xc4504442
|
||||||
|
DIOCRCLRASTATS = 0xc4504448
|
||||||
|
DIOCRCLRTABLES = 0xc450443c
|
||||||
|
DIOCRCLRTSTATS = 0xc4504441
|
||||||
|
DIOCRDELADDRS = 0xc4504444
|
||||||
|
DIOCRDELTABLES = 0xc450443e
|
||||||
|
DIOCRGETADDRS = 0xc4504446
|
||||||
|
DIOCRGETASTATS = 0xc4504447
|
||||||
|
DIOCRGETTABLES = 0xc450443f
|
||||||
|
DIOCRGETTSTATS = 0xc4504440
|
||||||
|
DIOCRINADEFINE = 0xc450444d
|
||||||
|
DIOCRSETADDRS = 0xc4504445
|
||||||
|
DIOCRSETTFLAGS = 0xc450444a
|
||||||
|
DIOCRTSTADDRS = 0xc4504449
|
||||||
|
DIOCSETDEBUG = 0xc0044418
|
||||||
|
DIOCSETHOSTID = 0xc0044456
|
||||||
|
DIOCSETIFFLAG = 0xc0284459
|
||||||
|
DIOCSETLIMIT = 0xc0084428
|
||||||
|
DIOCSETREASS = 0xc004445c
|
||||||
|
DIOCSETSTATUSIF = 0xc0284414
|
||||||
|
DIOCSETSYNCOOKIES = 0xc0014462
|
||||||
|
DIOCSETSYNFLWATS = 0xc0084461
|
||||||
|
DIOCSETTIMEOUT = 0xc008441d
|
||||||
|
DIOCSTART = 0x20004401
|
||||||
|
DIOCSTOP = 0x20004402
|
||||||
|
DIOCXBEGIN = 0xc0104451
|
||||||
|
DIOCXCOMMIT = 0xc0104452
|
||||||
|
DIOCXROLLBACK = 0xc0104453
|
||||||
DLT_ARCNET = 0x7
|
DLT_ARCNET = 0x7
|
||||||
DLT_ATM_RFC1483 = 0xb
|
DLT_ATM_RFC1483 = 0xb
|
||||||
DLT_AX25 = 0x3
|
DLT_AX25 = 0x3
|
||||||
@@ -240,6 +308,8 @@ const (
|
|||||||
EMUL_ENABLED = 0x1
|
EMUL_ENABLED = 0x1
|
||||||
EMUL_NATIVE = 0x2
|
EMUL_NATIVE = 0x2
|
||||||
ENDRUNDISC = 0x9
|
ENDRUNDISC = 0x9
|
||||||
|
ETH64_8021_RSVD_MASK = 0xfffffffffff0
|
||||||
|
ETH64_8021_RSVD_PREFIX = 0x180c2000000
|
||||||
ETHERMIN = 0x2e
|
ETHERMIN = 0x2e
|
||||||
ETHERMTU = 0x5dc
|
ETHERMTU = 0x5dc
|
||||||
ETHERTYPE_8023 = 0x4
|
ETHERTYPE_8023 = 0x4
|
||||||
@@ -292,6 +362,7 @@ const (
|
|||||||
ETHERTYPE_DN = 0x6003
|
ETHERTYPE_DN = 0x6003
|
||||||
ETHERTYPE_DOGFIGHT = 0x1989
|
ETHERTYPE_DOGFIGHT = 0x1989
|
||||||
ETHERTYPE_DSMD = 0x8039
|
ETHERTYPE_DSMD = 0x8039
|
||||||
|
ETHERTYPE_EAPOL = 0x888e
|
||||||
ETHERTYPE_ECMA = 0x803
|
ETHERTYPE_ECMA = 0x803
|
||||||
ETHERTYPE_ENCRYPT = 0x803d
|
ETHERTYPE_ENCRYPT = 0x803d
|
||||||
ETHERTYPE_ES = 0x805d
|
ETHERTYPE_ES = 0x805d
|
||||||
@@ -323,6 +394,7 @@ const (
|
|||||||
ETHERTYPE_LLDP = 0x88cc
|
ETHERTYPE_LLDP = 0x88cc
|
||||||
ETHERTYPE_LOGICRAFT = 0x8148
|
ETHERTYPE_LOGICRAFT = 0x8148
|
||||||
ETHERTYPE_LOOPBACK = 0x9000
|
ETHERTYPE_LOOPBACK = 0x9000
|
||||||
|
ETHERTYPE_MACSEC = 0x88e5
|
||||||
ETHERTYPE_MATRA = 0x807a
|
ETHERTYPE_MATRA = 0x807a
|
||||||
ETHERTYPE_MAX = 0xffff
|
ETHERTYPE_MAX = 0xffff
|
||||||
ETHERTYPE_MERIT = 0x807c
|
ETHERTYPE_MERIT = 0x807c
|
||||||
@@ -351,15 +423,17 @@ const (
|
|||||||
ETHERTYPE_NCD = 0x8149
|
ETHERTYPE_NCD = 0x8149
|
||||||
ETHERTYPE_NESTAR = 0x8006
|
ETHERTYPE_NESTAR = 0x8006
|
||||||
ETHERTYPE_NETBEUI = 0x8191
|
ETHERTYPE_NETBEUI = 0x8191
|
||||||
|
ETHERTYPE_NHRP = 0x2001
|
||||||
ETHERTYPE_NOVELL = 0x8138
|
ETHERTYPE_NOVELL = 0x8138
|
||||||
ETHERTYPE_NS = 0x600
|
ETHERTYPE_NS = 0x600
|
||||||
ETHERTYPE_NSAT = 0x601
|
ETHERTYPE_NSAT = 0x601
|
||||||
ETHERTYPE_NSCOMPAT = 0x807
|
ETHERTYPE_NSCOMPAT = 0x807
|
||||||
|
ETHERTYPE_NSH = 0x984f
|
||||||
ETHERTYPE_NTRAILER = 0x10
|
ETHERTYPE_NTRAILER = 0x10
|
||||||
ETHERTYPE_OS9 = 0x7007
|
ETHERTYPE_OS9 = 0x7007
|
||||||
ETHERTYPE_OS9NET = 0x7009
|
ETHERTYPE_OS9NET = 0x7009
|
||||||
ETHERTYPE_PACER = 0x80c6
|
ETHERTYPE_PACER = 0x80c6
|
||||||
ETHERTYPE_PAE = 0x888e
|
ETHERTYPE_PBB = 0x88e7
|
||||||
ETHERTYPE_PCS = 0x4242
|
ETHERTYPE_PCS = 0x4242
|
||||||
ETHERTYPE_PLANNING = 0x8044
|
ETHERTYPE_PLANNING = 0x8044
|
||||||
ETHERTYPE_PPP = 0x880b
|
ETHERTYPE_PPP = 0x880b
|
||||||
@@ -441,10 +515,11 @@ const (
|
|||||||
ETHER_VLAN_ENCAP_LEN = 0x4
|
ETHER_VLAN_ENCAP_LEN = 0x4
|
||||||
EVFILT_AIO = -0x3
|
EVFILT_AIO = -0x3
|
||||||
EVFILT_DEVICE = -0x8
|
EVFILT_DEVICE = -0x8
|
||||||
|
EVFILT_EXCEPT = -0x9
|
||||||
EVFILT_PROC = -0x5
|
EVFILT_PROC = -0x5
|
||||||
EVFILT_READ = -0x1
|
EVFILT_READ = -0x1
|
||||||
EVFILT_SIGNAL = -0x6
|
EVFILT_SIGNAL = -0x6
|
||||||
EVFILT_SYSCOUNT = 0x8
|
EVFILT_SYSCOUNT = 0x9
|
||||||
EVFILT_TIMER = -0x7
|
EVFILT_TIMER = -0x7
|
||||||
EVFILT_VNODE = -0x4
|
EVFILT_VNODE = -0x4
|
||||||
EVFILT_WRITE = -0x2
|
EVFILT_WRITE = -0x2
|
||||||
@@ -466,7 +541,7 @@ const (
|
|||||||
EV_FLAG1 = 0x2000
|
EV_FLAG1 = 0x2000
|
||||||
EV_ONESHOT = 0x10
|
EV_ONESHOT = 0x10
|
||||||
EV_RECEIPT = 0x40
|
EV_RECEIPT = 0x40
|
||||||
EV_SYSFLAGS = 0xf000
|
EV_SYSFLAGS = 0xf800
|
||||||
EXTA = 0x4b00
|
EXTA = 0x4b00
|
||||||
EXTB = 0x9600
|
EXTB = 0x9600
|
||||||
EXTPROC = 0x800
|
EXTPROC = 0x800
|
||||||
@@ -732,6 +807,7 @@ const (
|
|||||||
IFT_VOICEOVERCABLE = 0xc6
|
IFT_VOICEOVERCABLE = 0xc6
|
||||||
IFT_VOICEOVERFRAMERELAY = 0x99
|
IFT_VOICEOVERFRAMERELAY = 0x99
|
||||||
IFT_VOICEOVERIP = 0x68
|
IFT_VOICEOVERIP = 0x68
|
||||||
|
IFT_WIREGUARD = 0xfb
|
||||||
IFT_X213 = 0x5d
|
IFT_X213 = 0x5d
|
||||||
IFT_X25 = 0x5
|
IFT_X25 = 0x5
|
||||||
IFT_X25DDN = 0x4
|
IFT_X25DDN = 0x4
|
||||||
@@ -797,9 +873,11 @@ const (
|
|||||||
IPPROTO_RAW = 0xff
|
IPPROTO_RAW = 0xff
|
||||||
IPPROTO_ROUTING = 0x2b
|
IPPROTO_ROUTING = 0x2b
|
||||||
IPPROTO_RSVP = 0x2e
|
IPPROTO_RSVP = 0x2e
|
||||||
|
IPPROTO_SCTP = 0x84
|
||||||
IPPROTO_TCP = 0x6
|
IPPROTO_TCP = 0x6
|
||||||
IPPROTO_TP = 0x1d
|
IPPROTO_TP = 0x1d
|
||||||
IPPROTO_UDP = 0x11
|
IPPROTO_UDP = 0x11
|
||||||
|
IPPROTO_UDPLITE = 0x88
|
||||||
IPV6_AUTH_LEVEL = 0x35
|
IPV6_AUTH_LEVEL = 0x35
|
||||||
IPV6_AUTOFLOWLABEL = 0x3b
|
IPV6_AUTOFLOWLABEL = 0x3b
|
||||||
IPV6_CHECKSUM = 0x1a
|
IPV6_CHECKSUM = 0x1a
|
||||||
@@ -906,6 +984,9 @@ const (
|
|||||||
IP_TTL = 0x4
|
IP_TTL = 0x4
|
||||||
ISIG = 0x80
|
ISIG = 0x80
|
||||||
ISTRIP = 0x20
|
ISTRIP = 0x20
|
||||||
|
ITIMER_PROF = 0x2
|
||||||
|
ITIMER_REAL = 0x0
|
||||||
|
ITIMER_VIRTUAL = 0x1
|
||||||
IUCLC = 0x1000
|
IUCLC = 0x1000
|
||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x400
|
IXOFF = 0x400
|
||||||
@@ -970,12 +1051,26 @@ const (
|
|||||||
MNT_ROOTFS = 0x4000
|
MNT_ROOTFS = 0x4000
|
||||||
MNT_SOFTDEP = 0x4000000
|
MNT_SOFTDEP = 0x4000000
|
||||||
MNT_STALLED = 0x100000
|
MNT_STALLED = 0x100000
|
||||||
|
MNT_SWAPPABLE = 0x200000
|
||||||
MNT_SYNCHRONOUS = 0x2
|
MNT_SYNCHRONOUS = 0x2
|
||||||
MNT_UPDATE = 0x10000
|
MNT_UPDATE = 0x10000
|
||||||
MNT_VISFLAGMASK = 0x400ffff
|
MNT_VISFLAGMASK = 0x400ffff
|
||||||
MNT_WAIT = 0x1
|
MNT_WAIT = 0x1
|
||||||
MNT_WANTRDWR = 0x2000000
|
MNT_WANTRDWR = 0x2000000
|
||||||
MNT_WXALLOWED = 0x800
|
MNT_WXALLOWED = 0x800
|
||||||
|
MOUNT_AFS = "afs"
|
||||||
|
MOUNT_CD9660 = "cd9660"
|
||||||
|
MOUNT_EXT2FS = "ext2fs"
|
||||||
|
MOUNT_FFS = "ffs"
|
||||||
|
MOUNT_FUSEFS = "fuse"
|
||||||
|
MOUNT_MFS = "mfs"
|
||||||
|
MOUNT_MSDOS = "msdos"
|
||||||
|
MOUNT_NCPFS = "ncpfs"
|
||||||
|
MOUNT_NFS = "nfs"
|
||||||
|
MOUNT_NTFS = "ntfs"
|
||||||
|
MOUNT_TMPFS = "tmpfs"
|
||||||
|
MOUNT_UDF = "udf"
|
||||||
|
MOUNT_UFS = "ffs"
|
||||||
MSG_BCAST = 0x100
|
MSG_BCAST = 0x100
|
||||||
MSG_CMSG_CLOEXEC = 0x800
|
MSG_CMSG_CLOEXEC = 0x800
|
||||||
MSG_CTRUNC = 0x20
|
MSG_CTRUNC = 0x20
|
||||||
@@ -988,6 +1083,7 @@ const (
|
|||||||
MSG_PEEK = 0x2
|
MSG_PEEK = 0x2
|
||||||
MSG_TRUNC = 0x10
|
MSG_TRUNC = 0x10
|
||||||
MSG_WAITALL = 0x40
|
MSG_WAITALL = 0x40
|
||||||
|
MSG_WAITFORONE = 0x1000
|
||||||
MS_ASYNC = 0x1
|
MS_ASYNC = 0x1
|
||||||
MS_INVALIDATE = 0x4
|
MS_INVALIDATE = 0x4
|
||||||
MS_SYNC = 0x2
|
MS_SYNC = 0x2
|
||||||
@@ -996,7 +1092,8 @@ const (
|
|||||||
NET_RT_FLAGS = 0x2
|
NET_RT_FLAGS = 0x2
|
||||||
NET_RT_IFLIST = 0x3
|
NET_RT_IFLIST = 0x3
|
||||||
NET_RT_IFNAMES = 0x6
|
NET_RT_IFNAMES = 0x6
|
||||||
NET_RT_MAXID = 0x7
|
NET_RT_MAXID = 0x8
|
||||||
|
NET_RT_SOURCE = 0x7
|
||||||
NET_RT_STATS = 0x4
|
NET_RT_STATS = 0x4
|
||||||
NET_RT_TABLE = 0x5
|
NET_RT_TABLE = 0x5
|
||||||
NFDBITS = 0x20
|
NFDBITS = 0x20
|
||||||
@@ -1013,6 +1110,7 @@ const (
|
|||||||
NOTE_FORK = 0x40000000
|
NOTE_FORK = 0x40000000
|
||||||
NOTE_LINK = 0x10
|
NOTE_LINK = 0x10
|
||||||
NOTE_LOWAT = 0x1
|
NOTE_LOWAT = 0x1
|
||||||
|
NOTE_OOB = 0x4
|
||||||
NOTE_PCTRLMASK = 0xf0000000
|
NOTE_PCTRLMASK = 0xf0000000
|
||||||
NOTE_PDATAMASK = 0xfffff
|
NOTE_PDATAMASK = 0xfffff
|
||||||
NOTE_RENAME = 0x20
|
NOTE_RENAME = 0x20
|
||||||
@@ -1130,9 +1228,11 @@ const (
|
|||||||
RTF_STATIC = 0x800
|
RTF_STATIC = 0x800
|
||||||
RTF_UP = 0x1
|
RTF_UP = 0x1
|
||||||
RTF_USETRAILERS = 0x8000
|
RTF_USETRAILERS = 0x8000
|
||||||
|
RTM_80211INFO = 0x15
|
||||||
RTM_ADD = 0x1
|
RTM_ADD = 0x1
|
||||||
RTM_BFD = 0x12
|
RTM_BFD = 0x12
|
||||||
RTM_CHANGE = 0x3
|
RTM_CHANGE = 0x3
|
||||||
|
RTM_CHGADDRATTR = 0x14
|
||||||
RTM_DELADDR = 0xd
|
RTM_DELADDR = 0xd
|
||||||
RTM_DELETE = 0x2
|
RTM_DELETE = 0x2
|
||||||
RTM_DESYNC = 0x10
|
RTM_DESYNC = 0x10
|
||||||
@@ -1140,7 +1240,6 @@ const (
|
|||||||
RTM_IFANNOUNCE = 0xf
|
RTM_IFANNOUNCE = 0xf
|
||||||
RTM_IFINFO = 0xe
|
RTM_IFINFO = 0xe
|
||||||
RTM_INVALIDATE = 0x11
|
RTM_INVALIDATE = 0x11
|
||||||
RTM_LOCK = 0x8
|
|
||||||
RTM_LOSING = 0x5
|
RTM_LOSING = 0x5
|
||||||
RTM_MAXSIZE = 0x800
|
RTM_MAXSIZE = 0x800
|
||||||
RTM_MISS = 0x7
|
RTM_MISS = 0x7
|
||||||
@@ -1148,7 +1247,7 @@ const (
|
|||||||
RTM_PROPOSAL = 0x13
|
RTM_PROPOSAL = 0x13
|
||||||
RTM_REDIRECT = 0x6
|
RTM_REDIRECT = 0x6
|
||||||
RTM_RESOLVE = 0xb
|
RTM_RESOLVE = 0xb
|
||||||
RTM_RTTUNIT = 0xf4240
|
RTM_SOURCE = 0x16
|
||||||
RTM_VERSION = 0x5
|
RTM_VERSION = 0x5
|
||||||
RTV_EXPIRE = 0x4
|
RTV_EXPIRE = 0x4
|
||||||
RTV_HOPCOUNT = 0x2
|
RTV_HOPCOUNT = 0x2
|
||||||
@@ -1166,6 +1265,9 @@ const (
|
|||||||
RUSAGE_THREAD = 0x1
|
RUSAGE_THREAD = 0x1
|
||||||
SCM_RIGHTS = 0x1
|
SCM_RIGHTS = 0x1
|
||||||
SCM_TIMESTAMP = 0x4
|
SCM_TIMESTAMP = 0x4
|
||||||
|
SEEK_CUR = 0x1
|
||||||
|
SEEK_END = 0x2
|
||||||
|
SEEK_SET = 0x0
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@@ -1182,35 +1284,37 @@ const (
|
|||||||
SIOCBRDGDELS = 0x80606942
|
SIOCBRDGDELS = 0x80606942
|
||||||
SIOCBRDGFLUSH = 0x80606948
|
SIOCBRDGFLUSH = 0x80606948
|
||||||
SIOCBRDGFRL = 0x808c694e
|
SIOCBRDGFRL = 0x808c694e
|
||||||
SIOCBRDGGCACHE = 0xc0186941
|
SIOCBRDGGCACHE = 0xc0146941
|
||||||
SIOCBRDGGFD = 0xc0186952
|
SIOCBRDGGFD = 0xc0146952
|
||||||
SIOCBRDGGHT = 0xc0186951
|
SIOCBRDGGHT = 0xc0146951
|
||||||
SIOCBRDGGIFFLGS = 0xc060693e
|
SIOCBRDGGIFFLGS = 0xc060693e
|
||||||
SIOCBRDGGMA = 0xc0186953
|
SIOCBRDGGMA = 0xc0146953
|
||||||
SIOCBRDGGPARAM = 0xc0406958
|
SIOCBRDGGPARAM = 0xc0406958
|
||||||
SIOCBRDGGPRI = 0xc0186950
|
SIOCBRDGGPRI = 0xc0146950
|
||||||
SIOCBRDGGRL = 0xc030694f
|
SIOCBRDGGRL = 0xc030694f
|
||||||
SIOCBRDGGTO = 0xc0186946
|
SIOCBRDGGTO = 0xc0146946
|
||||||
SIOCBRDGIFS = 0xc0606942
|
SIOCBRDGIFS = 0xc0606942
|
||||||
SIOCBRDGRTS = 0xc0206943
|
SIOCBRDGRTS = 0xc0206943
|
||||||
SIOCBRDGSADDR = 0xc1286944
|
SIOCBRDGSADDR = 0xc1286944
|
||||||
SIOCBRDGSCACHE = 0x80186940
|
SIOCBRDGSCACHE = 0x80146940
|
||||||
SIOCBRDGSFD = 0x80186952
|
SIOCBRDGSFD = 0x80146952
|
||||||
SIOCBRDGSHT = 0x80186951
|
SIOCBRDGSHT = 0x80146951
|
||||||
SIOCBRDGSIFCOST = 0x80606955
|
SIOCBRDGSIFCOST = 0x80606955
|
||||||
SIOCBRDGSIFFLGS = 0x8060693f
|
SIOCBRDGSIFFLGS = 0x8060693f
|
||||||
SIOCBRDGSIFPRIO = 0x80606954
|
SIOCBRDGSIFPRIO = 0x80606954
|
||||||
SIOCBRDGSIFPROT = 0x8060694a
|
SIOCBRDGSIFPROT = 0x8060694a
|
||||||
SIOCBRDGSMA = 0x80186953
|
SIOCBRDGSMA = 0x80146953
|
||||||
SIOCBRDGSPRI = 0x80186950
|
SIOCBRDGSPRI = 0x80146950
|
||||||
SIOCBRDGSPROTO = 0x8018695a
|
SIOCBRDGSPROTO = 0x8014695a
|
||||||
SIOCBRDGSTO = 0x80186945
|
SIOCBRDGSTO = 0x80146945
|
||||||
SIOCBRDGSTXHC = 0x80186959
|
SIOCBRDGSTXHC = 0x80146959
|
||||||
|
SIOCDELLABEL = 0x80206997
|
||||||
SIOCDELMULTI = 0x80206932
|
SIOCDELMULTI = 0x80206932
|
||||||
SIOCDIFADDR = 0x80206919
|
SIOCDIFADDR = 0x80206919
|
||||||
SIOCDIFGROUP = 0x80286989
|
SIOCDIFGROUP = 0x80286989
|
||||||
SIOCDIFPARENT = 0x802069b4
|
SIOCDIFPARENT = 0x802069b4
|
||||||
SIOCDIFPHYADDR = 0x80206949
|
SIOCDIFPHYADDR = 0x80206949
|
||||||
|
SIOCDPWE3NEIGHBOR = 0x802069de
|
||||||
SIOCDVNETID = 0x802069af
|
SIOCDVNETID = 0x802069af
|
||||||
SIOCGETKALIVE = 0xc01869a4
|
SIOCGETKALIVE = 0xc01869a4
|
||||||
SIOCGETLABEL = 0x8020699a
|
SIOCGETLABEL = 0x8020699a
|
||||||
@@ -1229,6 +1333,7 @@ const (
|
|||||||
SIOCGIFFLAGS = 0xc0206911
|
SIOCGIFFLAGS = 0xc0206911
|
||||||
SIOCGIFGATTR = 0xc028698b
|
SIOCGIFGATTR = 0xc028698b
|
||||||
SIOCGIFGENERIC = 0xc020693a
|
SIOCGIFGENERIC = 0xc020693a
|
||||||
|
SIOCGIFGLIST = 0xc028698d
|
||||||
SIOCGIFGMEMB = 0xc028698a
|
SIOCGIFGMEMB = 0xc028698a
|
||||||
SIOCGIFGROUP = 0xc0286988
|
SIOCGIFGROUP = 0xc0286988
|
||||||
SIOCGIFHARDMTU = 0xc02069a5
|
SIOCGIFHARDMTU = 0xc02069a5
|
||||||
@@ -1243,13 +1348,21 @@ const (
|
|||||||
SIOCGIFRDOMAIN = 0xc02069a0
|
SIOCGIFRDOMAIN = 0xc02069a0
|
||||||
SIOCGIFRTLABEL = 0xc0206983
|
SIOCGIFRTLABEL = 0xc0206983
|
||||||
SIOCGIFRXR = 0x802069aa
|
SIOCGIFRXR = 0x802069aa
|
||||||
|
SIOCGIFSFFPAGE = 0xc1126939
|
||||||
SIOCGIFXFLAGS = 0xc020699e
|
SIOCGIFXFLAGS = 0xc020699e
|
||||||
SIOCGLIFPHYADDR = 0xc218694b
|
SIOCGLIFPHYADDR = 0xc218694b
|
||||||
SIOCGLIFPHYDF = 0xc02069c2
|
SIOCGLIFPHYDF = 0xc02069c2
|
||||||
|
SIOCGLIFPHYECN = 0xc02069c8
|
||||||
SIOCGLIFPHYRTABLE = 0xc02069a2
|
SIOCGLIFPHYRTABLE = 0xc02069a2
|
||||||
SIOCGLIFPHYTTL = 0xc02069a9
|
SIOCGLIFPHYTTL = 0xc02069a9
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
|
SIOCGPWE3 = 0xc0206998
|
||||||
|
SIOCGPWE3CTRLWORD = 0xc02069dc
|
||||||
|
SIOCGPWE3FAT = 0xc02069dd
|
||||||
|
SIOCGPWE3NEIGHBOR = 0xc21869de
|
||||||
|
SIOCGRXHPRIO = 0xc02069db
|
||||||
SIOCGSPPPPARAMS = 0xc0206994
|
SIOCGSPPPPARAMS = 0xc0206994
|
||||||
|
SIOCGTXHPRIO = 0xc02069c6
|
||||||
SIOCGUMBINFO = 0xc02069be
|
SIOCGUMBINFO = 0xc02069be
|
||||||
SIOCGUMBPARAM = 0xc02069c0
|
SIOCGUMBPARAM = 0xc02069c0
|
||||||
SIOCGVH = 0xc02069f6
|
SIOCGVH = 0xc02069f6
|
||||||
@@ -1287,19 +1400,20 @@ const (
|
|||||||
SIOCSIFXFLAGS = 0x8020699d
|
SIOCSIFXFLAGS = 0x8020699d
|
||||||
SIOCSLIFPHYADDR = 0x8218694a
|
SIOCSLIFPHYADDR = 0x8218694a
|
||||||
SIOCSLIFPHYDF = 0x802069c1
|
SIOCSLIFPHYDF = 0x802069c1
|
||||||
|
SIOCSLIFPHYECN = 0x802069c7
|
||||||
SIOCSLIFPHYRTABLE = 0x802069a1
|
SIOCSLIFPHYRTABLE = 0x802069a1
|
||||||
SIOCSLIFPHYTTL = 0x802069a8
|
SIOCSLIFPHYTTL = 0x802069a8
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
|
SIOCSPWE3CTRLWORD = 0x802069dc
|
||||||
|
SIOCSPWE3FAT = 0x802069dd
|
||||||
|
SIOCSPWE3NEIGHBOR = 0x821869de
|
||||||
|
SIOCSRXHPRIO = 0x802069db
|
||||||
SIOCSSPPPPARAMS = 0x80206993
|
SIOCSSPPPPARAMS = 0x80206993
|
||||||
|
SIOCSTXHPRIO = 0x802069c5
|
||||||
SIOCSUMBPARAM = 0x802069bf
|
SIOCSUMBPARAM = 0x802069bf
|
||||||
SIOCSVH = 0xc02069f5
|
SIOCSVH = 0xc02069f5
|
||||||
SIOCSVNETFLOWID = 0x802069c3
|
SIOCSVNETFLOWID = 0x802069c3
|
||||||
SIOCSVNETID = 0x802069a6
|
SIOCSVNETID = 0x802069a6
|
||||||
SIOCSWGDPID = 0xc018695b
|
|
||||||
SIOCSWGMAXFLOW = 0xc0186960
|
|
||||||
SIOCSWGMAXGROUP = 0xc018695d
|
|
||||||
SIOCSWSDPID = 0x8018695c
|
|
||||||
SIOCSWSPORTNO = 0xc060695f
|
|
||||||
SOCK_CLOEXEC = 0x8000
|
SOCK_CLOEXEC = 0x8000
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
SOCK_DNS = 0x1000
|
SOCK_DNS = 0x1000
|
||||||
@@ -1314,6 +1428,7 @@ const (
|
|||||||
SO_BINDANY = 0x1000
|
SO_BINDANY = 0x1000
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
|
SO_DOMAIN = 0x1024
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
SO_ERROR = 0x1007
|
SO_ERROR = 0x1007
|
||||||
SO_KEEPALIVE = 0x8
|
SO_KEEPALIVE = 0x8
|
||||||
@@ -1321,6 +1436,7 @@ const (
|
|||||||
SO_NETPROC = 0x1020
|
SO_NETPROC = 0x1020
|
||||||
SO_OOBINLINE = 0x100
|
SO_OOBINLINE = 0x100
|
||||||
SO_PEERCRED = 0x1022
|
SO_PEERCRED = 0x1022
|
||||||
|
SO_PROTOCOL = 0x1025
|
||||||
SO_RCVBUF = 0x1002
|
SO_RCVBUF = 0x1002
|
||||||
SO_RCVLOWAT = 0x1004
|
SO_RCVLOWAT = 0x1004
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
@@ -1370,7 +1486,18 @@ const (
|
|||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
TCOOFF = 0x1
|
TCOOFF = 0x1
|
||||||
TCOON = 0x2
|
TCOON = 0x2
|
||||||
TCP_MAXBURST = 0x4
|
TCPOPT_EOL = 0x0
|
||||||
|
TCPOPT_MAXSEG = 0x2
|
||||||
|
TCPOPT_NOP = 0x1
|
||||||
|
TCPOPT_SACK = 0x5
|
||||||
|
TCPOPT_SACK_HDR = 0x1010500
|
||||||
|
TCPOPT_SACK_PERMITTED = 0x4
|
||||||
|
TCPOPT_SACK_PERMIT_HDR = 0x1010402
|
||||||
|
TCPOPT_SIGNATURE = 0x13
|
||||||
|
TCPOPT_TIMESTAMP = 0x8
|
||||||
|
TCPOPT_TSTAMP_HDR = 0x101080a
|
||||||
|
TCPOPT_WINDOW = 0x3
|
||||||
|
TCP_INFO = 0x9
|
||||||
TCP_MAXSEG = 0x2
|
TCP_MAXSEG = 0x2
|
||||||
TCP_MAXWIN = 0xffff
|
TCP_MAXWIN = 0xffff
|
||||||
TCP_MAX_SACK = 0x3
|
TCP_MAX_SACK = 0x3
|
||||||
@@ -1379,8 +1506,11 @@ const (
|
|||||||
TCP_MSS = 0x200
|
TCP_MSS = 0x200
|
||||||
TCP_NODELAY = 0x1
|
TCP_NODELAY = 0x1
|
||||||
TCP_NOPUSH = 0x10
|
TCP_NOPUSH = 0x10
|
||||||
|
TCP_SACKHOLE_LIMIT = 0x80
|
||||||
TCP_SACK_ENABLE = 0x8
|
TCP_SACK_ENABLE = 0x8
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
|
TIMER_RELTIME = 0x0
|
||||||
TIOCCBRK = 0x2000747a
|
TIOCCBRK = 0x2000747a
|
||||||
TIOCCDTR = 0x20007478
|
TIOCCDTR = 0x20007478
|
||||||
TIOCCHKVERAUTH = 0x2000741e
|
TIOCCHKVERAUTH = 0x2000741e
|
||||||
@@ -1445,7 +1575,6 @@ const (
|
|||||||
TIOCSPGRP = 0x80047476
|
TIOCSPGRP = 0x80047476
|
||||||
TIOCSTART = 0x2000746e
|
TIOCSTART = 0x2000746e
|
||||||
TIOCSTAT = 0x20007465
|
TIOCSTAT = 0x20007465
|
||||||
TIOCSTI = 0x80017472
|
|
||||||
TIOCSTOP = 0x2000746f
|
TIOCSTOP = 0x2000746f
|
||||||
TIOCSTSTAMP = 0x8008745a
|
TIOCSTSTAMP = 0x8008745a
|
||||||
TIOCSWINSZ = 0x80087467
|
TIOCSWINSZ = 0x80087467
|
||||||
@@ -1467,7 +1596,8 @@ const (
|
|||||||
VMIN = 0x10
|
VMIN = 0x10
|
||||||
VM_ANONMIN = 0x7
|
VM_ANONMIN = 0x7
|
||||||
VM_LOADAVG = 0x2
|
VM_LOADAVG = 0x2
|
||||||
VM_MAXID = 0xc
|
VM_MALLOC_CONF = 0xc
|
||||||
|
VM_MAXID = 0xd
|
||||||
VM_MAXSLP = 0xa
|
VM_MAXSLP = 0xa
|
||||||
VM_METER = 0x1
|
VM_METER = 0x1
|
||||||
VM_NKMEMPAGES = 0x6
|
VM_NKMEMPAGES = 0x6
|
||||||
@@ -1745,7 +1875,7 @@ var signalList = [...]struct {
|
|||||||
{3, "SIGQUIT", "quit"},
|
{3, "SIGQUIT", "quit"},
|
||||||
{4, "SIGILL", "illegal instruction"},
|
{4, "SIGILL", "illegal instruction"},
|
||||||
{5, "SIGTRAP", "trace/BPT trap"},
|
{5, "SIGTRAP", "trace/BPT trap"},
|
||||||
{6, "SIGABRT", "abort trap"},
|
{6, "SIGIOT", "abort trap"},
|
||||||
{7, "SIGEMT", "EMT trap"},
|
{7, "SIGEMT", "EMT trap"},
|
||||||
{8, "SIGFPE", "floating point exception"},
|
{8, "SIGFPE", "floating point exception"},
|
||||||
{9, "SIGKILL", "killed"},
|
{9, "SIGKILL", "killed"},
|
||||||
@@ -1772,4 +1902,5 @@ var signalList = [...]struct {
|
|||||||
{30, "SIGUSR1", "user defined signal 1"},
|
{30, "SIGUSR1", "user defined signal 1"},
|
||||||
{31, "SIGUSR2", "user defined signal 2"},
|
{31, "SIGUSR2", "user defined signal 2"},
|
||||||
{32, "SIGTHR", "thread AST"},
|
{32, "SIGTHR", "thread AST"},
|
||||||
|
{28672, "SIGSTKSZ", "unknown signal"},
|
||||||
}
|
}
|
||||||
|
|||||||
348
vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go
generated
vendored
348
vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go
generated
vendored
@@ -46,6 +46,7 @@ const (
|
|||||||
AF_SNA = 0xb
|
AF_SNA = 0xb
|
||||||
AF_UNIX = 0x1
|
AF_UNIX = 0x1
|
||||||
AF_UNSPEC = 0x0
|
AF_UNSPEC = 0x0
|
||||||
|
ALTWERASE = 0x200
|
||||||
ARPHRD_ETHER = 0x1
|
ARPHRD_ETHER = 0x1
|
||||||
ARPHRD_FRELAY = 0xf
|
ARPHRD_FRELAY = 0xf
|
||||||
ARPHRD_IEEE1394 = 0x18
|
ARPHRD_IEEE1394 = 0x18
|
||||||
@@ -82,7 +83,7 @@ const (
|
|||||||
BIOCGFILDROP = 0x40044278
|
BIOCGFILDROP = 0x40044278
|
||||||
BIOCGHDRCMPLT = 0x40044274
|
BIOCGHDRCMPLT = 0x40044274
|
||||||
BIOCGRSIG = 0x40044273
|
BIOCGRSIG = 0x40044273
|
||||||
BIOCGRTIMEOUT = 0x400c426e
|
BIOCGRTIMEOUT = 0x4010426e
|
||||||
BIOCGSTATS = 0x4008426f
|
BIOCGSTATS = 0x4008426f
|
||||||
BIOCIMMEDIATE = 0x80044270
|
BIOCIMMEDIATE = 0x80044270
|
||||||
BIOCLOCK = 0x20004276
|
BIOCLOCK = 0x20004276
|
||||||
@@ -96,7 +97,7 @@ const (
|
|||||||
BIOCSFILDROP = 0x80044279
|
BIOCSFILDROP = 0x80044279
|
||||||
BIOCSHDRCMPLT = 0x80044275
|
BIOCSHDRCMPLT = 0x80044275
|
||||||
BIOCSRSIG = 0x80044272
|
BIOCSRSIG = 0x80044272
|
||||||
BIOCSRTIMEOUT = 0x800c426d
|
BIOCSRTIMEOUT = 0x8010426d
|
||||||
BIOCVERSION = 0x40044271
|
BIOCVERSION = 0x40044271
|
||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
@@ -108,6 +109,15 @@ const (
|
|||||||
BPF_DIRECTION_IN = 0x1
|
BPF_DIRECTION_IN = 0x1
|
||||||
BPF_DIRECTION_OUT = 0x2
|
BPF_DIRECTION_OUT = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_FILDROP_CAPTURE = 0x1
|
||||||
|
BPF_FILDROP_DROP = 0x2
|
||||||
|
BPF_FILDROP_PASS = 0x0
|
||||||
|
BPF_F_DIR_IN = 0x10
|
||||||
|
BPF_F_DIR_MASK = 0x30
|
||||||
|
BPF_F_DIR_OUT = 0x20
|
||||||
|
BPF_F_DIR_SHIFT = 0x4
|
||||||
|
BPF_F_FLOWID = 0x8
|
||||||
|
BPF_F_PRI_MASK = 0x7
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@@ -136,6 +146,7 @@ const (
|
|||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_RELEASE = 0x30bb6
|
BPF_RELEASE = 0x30bb6
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
|
BPF_RND = 0xc0
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
@@ -147,6 +158,12 @@ const (
|
|||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
CLOCAL = 0x8000
|
CLOCAL = 0x8000
|
||||||
|
CLOCK_BOOTTIME = 0x6
|
||||||
|
CLOCK_MONOTONIC = 0x3
|
||||||
|
CLOCK_PROCESS_CPUTIME_ID = 0x2
|
||||||
|
CLOCK_REALTIME = 0x0
|
||||||
|
CLOCK_THREAD_CPUTIME_ID = 0x4
|
||||||
|
CLOCK_UPTIME = 0x5
|
||||||
CPUSTATES = 0x6
|
CPUSTATES = 0x6
|
||||||
CP_IDLE = 0x5
|
CP_IDLE = 0x5
|
||||||
CP_INTR = 0x4
|
CP_INTR = 0x4
|
||||||
@@ -170,7 +187,65 @@ const (
|
|||||||
CTL_KERN = 0x1
|
CTL_KERN = 0x1
|
||||||
CTL_MAXNAME = 0xc
|
CTL_MAXNAME = 0xc
|
||||||
CTL_NET = 0x4
|
CTL_NET = 0x4
|
||||||
|
DIOCADDQUEUE = 0xc100445d
|
||||||
|
DIOCADDRULE = 0xcce04404
|
||||||
|
DIOCADDSTATE = 0xc1084425
|
||||||
|
DIOCCHANGERULE = 0xcce0441a
|
||||||
|
DIOCCLRIFFLAG = 0xc024445a
|
||||||
|
DIOCCLRSRCNODES = 0x20004455
|
||||||
|
DIOCCLRSTATES = 0xc0d04412
|
||||||
|
DIOCCLRSTATUS = 0xc0244416
|
||||||
|
DIOCGETLIMIT = 0xc0084427
|
||||||
|
DIOCGETQSTATS = 0xc1084460
|
||||||
|
DIOCGETQUEUE = 0xc100445f
|
||||||
|
DIOCGETQUEUES = 0xc100445e
|
||||||
|
DIOCGETRULE = 0xcce04407
|
||||||
|
DIOCGETRULES = 0xcce04406
|
||||||
|
DIOCGETRULESET = 0xc444443b
|
||||||
|
DIOCGETRULESETS = 0xc444443a
|
||||||
|
DIOCGETSRCNODES = 0xc0084454
|
||||||
|
DIOCGETSTATE = 0xc1084413
|
||||||
|
DIOCGETSTATES = 0xc0084419
|
||||||
|
DIOCGETSTATUS = 0xc1e84415
|
||||||
|
DIOCGETSYNFLWATS = 0xc0084463
|
||||||
|
DIOCGETTIMEOUT = 0xc008441e
|
||||||
|
DIOCIGETIFACES = 0xc0244457
|
||||||
|
DIOCKILLSRCNODES = 0xc068445b
|
||||||
|
DIOCKILLSTATES = 0xc0d04429
|
||||||
|
DIOCNATLOOK = 0xc0504417
|
||||||
|
DIOCOSFPADD = 0xc088444f
|
||||||
DIOCOSFPFLUSH = 0x2000444e
|
DIOCOSFPFLUSH = 0x2000444e
|
||||||
|
DIOCOSFPGET = 0xc0884450
|
||||||
|
DIOCRADDADDRS = 0xc44c4443
|
||||||
|
DIOCRADDTABLES = 0xc44c443d
|
||||||
|
DIOCRCLRADDRS = 0xc44c4442
|
||||||
|
DIOCRCLRASTATS = 0xc44c4448
|
||||||
|
DIOCRCLRTABLES = 0xc44c443c
|
||||||
|
DIOCRCLRTSTATS = 0xc44c4441
|
||||||
|
DIOCRDELADDRS = 0xc44c4444
|
||||||
|
DIOCRDELTABLES = 0xc44c443e
|
||||||
|
DIOCRGETADDRS = 0xc44c4446
|
||||||
|
DIOCRGETASTATS = 0xc44c4447
|
||||||
|
DIOCRGETTABLES = 0xc44c443f
|
||||||
|
DIOCRGETTSTATS = 0xc44c4440
|
||||||
|
DIOCRINADEFINE = 0xc44c444d
|
||||||
|
DIOCRSETADDRS = 0xc44c4445
|
||||||
|
DIOCRSETTFLAGS = 0xc44c444a
|
||||||
|
DIOCRTSTADDRS = 0xc44c4449
|
||||||
|
DIOCSETDEBUG = 0xc0044418
|
||||||
|
DIOCSETHOSTID = 0xc0044456
|
||||||
|
DIOCSETIFFLAG = 0xc0244459
|
||||||
|
DIOCSETLIMIT = 0xc0084428
|
||||||
|
DIOCSETREASS = 0xc004445c
|
||||||
|
DIOCSETSTATUSIF = 0xc0244414
|
||||||
|
DIOCSETSYNCOOKIES = 0xc0014462
|
||||||
|
DIOCSETSYNFLWATS = 0xc0084461
|
||||||
|
DIOCSETTIMEOUT = 0xc008441d
|
||||||
|
DIOCSTART = 0x20004401
|
||||||
|
DIOCSTOP = 0x20004402
|
||||||
|
DIOCXBEGIN = 0xc00c4451
|
||||||
|
DIOCXCOMMIT = 0xc00c4452
|
||||||
|
DIOCXROLLBACK = 0xc00c4453
|
||||||
DLT_ARCNET = 0x7
|
DLT_ARCNET = 0x7
|
||||||
DLT_ATM_RFC1483 = 0xb
|
DLT_ATM_RFC1483 = 0xb
|
||||||
DLT_AX25 = 0x3
|
DLT_AX25 = 0x3
|
||||||
@@ -186,6 +261,7 @@ const (
|
|||||||
DLT_LOOP = 0xc
|
DLT_LOOP = 0xc
|
||||||
DLT_MPLS = 0xdb
|
DLT_MPLS = 0xdb
|
||||||
DLT_NULL = 0x0
|
DLT_NULL = 0x0
|
||||||
|
DLT_OPENFLOW = 0x10b
|
||||||
DLT_PFLOG = 0x75
|
DLT_PFLOG = 0x75
|
||||||
DLT_PFSYNC = 0x12
|
DLT_PFSYNC = 0x12
|
||||||
DLT_PPP = 0x9
|
DLT_PPP = 0x9
|
||||||
@@ -196,6 +272,23 @@ const (
|
|||||||
DLT_RAW = 0xe
|
DLT_RAW = 0xe
|
||||||
DLT_SLIP = 0x8
|
DLT_SLIP = 0x8
|
||||||
DLT_SLIP_BSDOS = 0xf
|
DLT_SLIP_BSDOS = 0xf
|
||||||
|
DLT_USBPCAP = 0xf9
|
||||||
|
DLT_USER0 = 0x93
|
||||||
|
DLT_USER1 = 0x94
|
||||||
|
DLT_USER10 = 0x9d
|
||||||
|
DLT_USER11 = 0x9e
|
||||||
|
DLT_USER12 = 0x9f
|
||||||
|
DLT_USER13 = 0xa0
|
||||||
|
DLT_USER14 = 0xa1
|
||||||
|
DLT_USER15 = 0xa2
|
||||||
|
DLT_USER2 = 0x95
|
||||||
|
DLT_USER3 = 0x96
|
||||||
|
DLT_USER4 = 0x97
|
||||||
|
DLT_USER5 = 0x98
|
||||||
|
DLT_USER6 = 0x99
|
||||||
|
DLT_USER7 = 0x9a
|
||||||
|
DLT_USER8 = 0x9b
|
||||||
|
DLT_USER9 = 0x9c
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
@@ -215,6 +308,8 @@ const (
|
|||||||
EMUL_ENABLED = 0x1
|
EMUL_ENABLED = 0x1
|
||||||
EMUL_NATIVE = 0x2
|
EMUL_NATIVE = 0x2
|
||||||
ENDRUNDISC = 0x9
|
ENDRUNDISC = 0x9
|
||||||
|
ETH64_8021_RSVD_MASK = 0xfffffffffff0
|
||||||
|
ETH64_8021_RSVD_PREFIX = 0x180c2000000
|
||||||
ETHERMIN = 0x2e
|
ETHERMIN = 0x2e
|
||||||
ETHERMTU = 0x5dc
|
ETHERMTU = 0x5dc
|
||||||
ETHERTYPE_8023 = 0x4
|
ETHERTYPE_8023 = 0x4
|
||||||
@@ -267,6 +362,7 @@ const (
|
|||||||
ETHERTYPE_DN = 0x6003
|
ETHERTYPE_DN = 0x6003
|
||||||
ETHERTYPE_DOGFIGHT = 0x1989
|
ETHERTYPE_DOGFIGHT = 0x1989
|
||||||
ETHERTYPE_DSMD = 0x8039
|
ETHERTYPE_DSMD = 0x8039
|
||||||
|
ETHERTYPE_EAPOL = 0x888e
|
||||||
ETHERTYPE_ECMA = 0x803
|
ETHERTYPE_ECMA = 0x803
|
||||||
ETHERTYPE_ENCRYPT = 0x803d
|
ETHERTYPE_ENCRYPT = 0x803d
|
||||||
ETHERTYPE_ES = 0x805d
|
ETHERTYPE_ES = 0x805d
|
||||||
@@ -298,6 +394,7 @@ const (
|
|||||||
ETHERTYPE_LLDP = 0x88cc
|
ETHERTYPE_LLDP = 0x88cc
|
||||||
ETHERTYPE_LOGICRAFT = 0x8148
|
ETHERTYPE_LOGICRAFT = 0x8148
|
||||||
ETHERTYPE_LOOPBACK = 0x9000
|
ETHERTYPE_LOOPBACK = 0x9000
|
||||||
|
ETHERTYPE_MACSEC = 0x88e5
|
||||||
ETHERTYPE_MATRA = 0x807a
|
ETHERTYPE_MATRA = 0x807a
|
||||||
ETHERTYPE_MAX = 0xffff
|
ETHERTYPE_MAX = 0xffff
|
||||||
ETHERTYPE_MERIT = 0x807c
|
ETHERTYPE_MERIT = 0x807c
|
||||||
@@ -326,15 +423,17 @@ const (
|
|||||||
ETHERTYPE_NCD = 0x8149
|
ETHERTYPE_NCD = 0x8149
|
||||||
ETHERTYPE_NESTAR = 0x8006
|
ETHERTYPE_NESTAR = 0x8006
|
||||||
ETHERTYPE_NETBEUI = 0x8191
|
ETHERTYPE_NETBEUI = 0x8191
|
||||||
|
ETHERTYPE_NHRP = 0x2001
|
||||||
ETHERTYPE_NOVELL = 0x8138
|
ETHERTYPE_NOVELL = 0x8138
|
||||||
ETHERTYPE_NS = 0x600
|
ETHERTYPE_NS = 0x600
|
||||||
ETHERTYPE_NSAT = 0x601
|
ETHERTYPE_NSAT = 0x601
|
||||||
ETHERTYPE_NSCOMPAT = 0x807
|
ETHERTYPE_NSCOMPAT = 0x807
|
||||||
|
ETHERTYPE_NSH = 0x984f
|
||||||
ETHERTYPE_NTRAILER = 0x10
|
ETHERTYPE_NTRAILER = 0x10
|
||||||
ETHERTYPE_OS9 = 0x7007
|
ETHERTYPE_OS9 = 0x7007
|
||||||
ETHERTYPE_OS9NET = 0x7009
|
ETHERTYPE_OS9NET = 0x7009
|
||||||
ETHERTYPE_PACER = 0x80c6
|
ETHERTYPE_PACER = 0x80c6
|
||||||
ETHERTYPE_PAE = 0x888e
|
ETHERTYPE_PBB = 0x88e7
|
||||||
ETHERTYPE_PCS = 0x4242
|
ETHERTYPE_PCS = 0x4242
|
||||||
ETHERTYPE_PLANNING = 0x8044
|
ETHERTYPE_PLANNING = 0x8044
|
||||||
ETHERTYPE_PPP = 0x880b
|
ETHERTYPE_PPP = 0x880b
|
||||||
@@ -409,28 +508,40 @@ const (
|
|||||||
ETHER_CRC_POLY_LE = 0xedb88320
|
ETHER_CRC_POLY_LE = 0xedb88320
|
||||||
ETHER_HDR_LEN = 0xe
|
ETHER_HDR_LEN = 0xe
|
||||||
ETHER_MAX_DIX_LEN = 0x600
|
ETHER_MAX_DIX_LEN = 0x600
|
||||||
|
ETHER_MAX_HARDMTU_LEN = 0xff9b
|
||||||
ETHER_MAX_LEN = 0x5ee
|
ETHER_MAX_LEN = 0x5ee
|
||||||
ETHER_MIN_LEN = 0x40
|
ETHER_MIN_LEN = 0x40
|
||||||
ETHER_TYPE_LEN = 0x2
|
ETHER_TYPE_LEN = 0x2
|
||||||
ETHER_VLAN_ENCAP_LEN = 0x4
|
ETHER_VLAN_ENCAP_LEN = 0x4
|
||||||
EVFILT_AIO = -0x3
|
EVFILT_AIO = -0x3
|
||||||
|
EVFILT_DEVICE = -0x8
|
||||||
|
EVFILT_EXCEPT = -0x9
|
||||||
EVFILT_PROC = -0x5
|
EVFILT_PROC = -0x5
|
||||||
EVFILT_READ = -0x1
|
EVFILT_READ = -0x1
|
||||||
EVFILT_SIGNAL = -0x6
|
EVFILT_SIGNAL = -0x6
|
||||||
EVFILT_SYSCOUNT = 0x7
|
EVFILT_SYSCOUNT = 0x9
|
||||||
EVFILT_TIMER = -0x7
|
EVFILT_TIMER = -0x7
|
||||||
EVFILT_VNODE = -0x4
|
EVFILT_VNODE = -0x4
|
||||||
EVFILT_WRITE = -0x2
|
EVFILT_WRITE = -0x2
|
||||||
|
EVL_ENCAPLEN = 0x4
|
||||||
|
EVL_PRIO_BITS = 0xd
|
||||||
|
EVL_PRIO_MAX = 0x7
|
||||||
|
EVL_VLID_MASK = 0xfff
|
||||||
|
EVL_VLID_MAX = 0xffe
|
||||||
|
EVL_VLID_MIN = 0x1
|
||||||
|
EVL_VLID_NULL = 0x0
|
||||||
EV_ADD = 0x1
|
EV_ADD = 0x1
|
||||||
EV_CLEAR = 0x20
|
EV_CLEAR = 0x20
|
||||||
EV_DELETE = 0x2
|
EV_DELETE = 0x2
|
||||||
EV_DISABLE = 0x8
|
EV_DISABLE = 0x8
|
||||||
|
EV_DISPATCH = 0x80
|
||||||
EV_ENABLE = 0x4
|
EV_ENABLE = 0x4
|
||||||
EV_EOF = 0x8000
|
EV_EOF = 0x8000
|
||||||
EV_ERROR = 0x4000
|
EV_ERROR = 0x4000
|
||||||
EV_FLAG1 = 0x2000
|
EV_FLAG1 = 0x2000
|
||||||
EV_ONESHOT = 0x10
|
EV_ONESHOT = 0x10
|
||||||
EV_SYSFLAGS = 0xf000
|
EV_RECEIPT = 0x40
|
||||||
|
EV_SYSFLAGS = 0xf800
|
||||||
EXTA = 0x4b00
|
EXTA = 0x4b00
|
||||||
EXTB = 0x9600
|
EXTB = 0x9600
|
||||||
EXTPROC = 0x800
|
EXTPROC = 0x800
|
||||||
@@ -443,6 +554,8 @@ const (
|
|||||||
F_GETFL = 0x3
|
F_GETFL = 0x3
|
||||||
F_GETLK = 0x7
|
F_GETLK = 0x7
|
||||||
F_GETOWN = 0x5
|
F_GETOWN = 0x5
|
||||||
|
F_ISATTY = 0xb
|
||||||
|
F_OK = 0x0
|
||||||
F_RDLCK = 0x1
|
F_RDLCK = 0x1
|
||||||
F_SETFD = 0x2
|
F_SETFD = 0x2
|
||||||
F_SETFL = 0x4
|
F_SETFL = 0x4
|
||||||
@@ -459,7 +572,6 @@ const (
|
|||||||
IEXTEN = 0x400
|
IEXTEN = 0x400
|
||||||
IFAN_ARRIVAL = 0x0
|
IFAN_ARRIVAL = 0x0
|
||||||
IFAN_DEPARTURE = 0x1
|
IFAN_DEPARTURE = 0x1
|
||||||
IFA_ROUTE = 0x1
|
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_BROADCAST = 0x2
|
IFF_BROADCAST = 0x2
|
||||||
IFF_CANTCHANGE = 0x8e52
|
IFF_CANTCHANGE = 0x8e52
|
||||||
@@ -470,12 +582,12 @@ const (
|
|||||||
IFF_LOOPBACK = 0x8
|
IFF_LOOPBACK = 0x8
|
||||||
IFF_MULTICAST = 0x8000
|
IFF_MULTICAST = 0x8000
|
||||||
IFF_NOARP = 0x80
|
IFF_NOARP = 0x80
|
||||||
IFF_NOTRAILERS = 0x20
|
|
||||||
IFF_OACTIVE = 0x400
|
IFF_OACTIVE = 0x400
|
||||||
IFF_POINTOPOINT = 0x10
|
IFF_POINTOPOINT = 0x10
|
||||||
IFF_PROMISC = 0x100
|
IFF_PROMISC = 0x100
|
||||||
IFF_RUNNING = 0x40
|
IFF_RUNNING = 0x40
|
||||||
IFF_SIMPLEX = 0x800
|
IFF_SIMPLEX = 0x800
|
||||||
|
IFF_STATICARP = 0x20
|
||||||
IFF_UP = 0x1
|
IFF_UP = 0x1
|
||||||
IFNAMSIZ = 0x10
|
IFNAMSIZ = 0x10
|
||||||
IFT_1822 = 0x2
|
IFT_1822 = 0x2
|
||||||
@@ -604,6 +716,7 @@ const (
|
|||||||
IFT_LINEGROUP = 0xd2
|
IFT_LINEGROUP = 0xd2
|
||||||
IFT_LOCALTALK = 0x2a
|
IFT_LOCALTALK = 0x2a
|
||||||
IFT_LOOP = 0x18
|
IFT_LOOP = 0x18
|
||||||
|
IFT_MBIM = 0xfa
|
||||||
IFT_MEDIAMAILOVERIP = 0x8b
|
IFT_MEDIAMAILOVERIP = 0x8b
|
||||||
IFT_MFSIGLINK = 0xa7
|
IFT_MFSIGLINK = 0xa7
|
||||||
IFT_MIOX25 = 0x26
|
IFT_MIOX25 = 0x26
|
||||||
@@ -694,6 +807,7 @@ const (
|
|||||||
IFT_VOICEOVERCABLE = 0xc6
|
IFT_VOICEOVERCABLE = 0xc6
|
||||||
IFT_VOICEOVERFRAMERELAY = 0x99
|
IFT_VOICEOVERFRAMERELAY = 0x99
|
||||||
IFT_VOICEOVERIP = 0x68
|
IFT_VOICEOVERIP = 0x68
|
||||||
|
IFT_WIREGUARD = 0xfb
|
||||||
IFT_X213 = 0x5d
|
IFT_X213 = 0x5d
|
||||||
IFT_X25 = 0x5
|
IFT_X25 = 0x5
|
||||||
IFT_X25DDN = 0x4
|
IFT_X25DDN = 0x4
|
||||||
@@ -728,8 +842,6 @@ const (
|
|||||||
IPPROTO_AH = 0x33
|
IPPROTO_AH = 0x33
|
||||||
IPPROTO_CARP = 0x70
|
IPPROTO_CARP = 0x70
|
||||||
IPPROTO_DIVERT = 0x102
|
IPPROTO_DIVERT = 0x102
|
||||||
IPPROTO_DIVERT_INIT = 0x2
|
|
||||||
IPPROTO_DIVERT_RESP = 0x1
|
|
||||||
IPPROTO_DONE = 0x101
|
IPPROTO_DONE = 0x101
|
||||||
IPPROTO_DSTOPTS = 0x3c
|
IPPROTO_DSTOPTS = 0x3c
|
||||||
IPPROTO_EGP = 0x8
|
IPPROTO_EGP = 0x8
|
||||||
@@ -761,9 +873,11 @@ const (
|
|||||||
IPPROTO_RAW = 0xff
|
IPPROTO_RAW = 0xff
|
||||||
IPPROTO_ROUTING = 0x2b
|
IPPROTO_ROUTING = 0x2b
|
||||||
IPPROTO_RSVP = 0x2e
|
IPPROTO_RSVP = 0x2e
|
||||||
|
IPPROTO_SCTP = 0x84
|
||||||
IPPROTO_TCP = 0x6
|
IPPROTO_TCP = 0x6
|
||||||
IPPROTO_TP = 0x1d
|
IPPROTO_TP = 0x1d
|
||||||
IPPROTO_UDP = 0x11
|
IPPROTO_UDP = 0x11
|
||||||
|
IPPROTO_UDPLITE = 0x88
|
||||||
IPV6_AUTH_LEVEL = 0x35
|
IPV6_AUTH_LEVEL = 0x35
|
||||||
IPV6_AUTOFLOWLABEL = 0x3b
|
IPV6_AUTOFLOWLABEL = 0x3b
|
||||||
IPV6_CHECKSUM = 0x1a
|
IPV6_CHECKSUM = 0x1a
|
||||||
@@ -786,6 +900,7 @@ const (
|
|||||||
IPV6_LEAVE_GROUP = 0xd
|
IPV6_LEAVE_GROUP = 0xd
|
||||||
IPV6_MAXHLIM = 0xff
|
IPV6_MAXHLIM = 0xff
|
||||||
IPV6_MAXPACKET = 0xffff
|
IPV6_MAXPACKET = 0xffff
|
||||||
|
IPV6_MINHOPCOUNT = 0x41
|
||||||
IPV6_MMTU = 0x500
|
IPV6_MMTU = 0x500
|
||||||
IPV6_MULTICAST_HOPS = 0xa
|
IPV6_MULTICAST_HOPS = 0xa
|
||||||
IPV6_MULTICAST_IF = 0x9
|
IPV6_MULTICAST_IF = 0x9
|
||||||
@@ -825,12 +940,12 @@ const (
|
|||||||
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
||||||
IP_DEFAULT_MULTICAST_TTL = 0x1
|
IP_DEFAULT_MULTICAST_TTL = 0x1
|
||||||
IP_DF = 0x4000
|
IP_DF = 0x4000
|
||||||
IP_DIVERTFL = 0x1022
|
|
||||||
IP_DROP_MEMBERSHIP = 0xd
|
IP_DROP_MEMBERSHIP = 0xd
|
||||||
IP_ESP_NETWORK_LEVEL = 0x16
|
IP_ESP_NETWORK_LEVEL = 0x16
|
||||||
IP_ESP_TRANS_LEVEL = 0x15
|
IP_ESP_TRANS_LEVEL = 0x15
|
||||||
IP_HDRINCL = 0x2
|
IP_HDRINCL = 0x2
|
||||||
IP_IPCOMP_LEVEL = 0x1d
|
IP_IPCOMP_LEVEL = 0x1d
|
||||||
|
IP_IPDEFTTL = 0x25
|
||||||
IP_IPSECFLOWINFO = 0x24
|
IP_IPSECFLOWINFO = 0x24
|
||||||
IP_IPSEC_LOCAL_AUTH = 0x1b
|
IP_IPSEC_LOCAL_AUTH = 0x1b
|
||||||
IP_IPSEC_LOCAL_CRED = 0x19
|
IP_IPSEC_LOCAL_CRED = 0x19
|
||||||
@@ -864,10 +979,15 @@ const (
|
|||||||
IP_RETOPTS = 0x8
|
IP_RETOPTS = 0x8
|
||||||
IP_RF = 0x8000
|
IP_RF = 0x8000
|
||||||
IP_RTABLE = 0x1021
|
IP_RTABLE = 0x1021
|
||||||
|
IP_SENDSRCADDR = 0x7
|
||||||
IP_TOS = 0x3
|
IP_TOS = 0x3
|
||||||
IP_TTL = 0x4
|
IP_TTL = 0x4
|
||||||
ISIG = 0x80
|
ISIG = 0x80
|
||||||
ISTRIP = 0x20
|
ISTRIP = 0x20
|
||||||
|
ITIMER_PROF = 0x2
|
||||||
|
ITIMER_REAL = 0x0
|
||||||
|
ITIMER_VIRTUAL = 0x1
|
||||||
|
IUCLC = 0x1000
|
||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x400
|
IXOFF = 0x400
|
||||||
IXON = 0x200
|
IXON = 0x200
|
||||||
@@ -922,6 +1042,7 @@ const (
|
|||||||
MNT_NOATIME = 0x8000
|
MNT_NOATIME = 0x8000
|
||||||
MNT_NODEV = 0x10
|
MNT_NODEV = 0x10
|
||||||
MNT_NOEXEC = 0x4
|
MNT_NOEXEC = 0x4
|
||||||
|
MNT_NOPERM = 0x20
|
||||||
MNT_NOSUID = 0x8
|
MNT_NOSUID = 0x8
|
||||||
MNT_NOWAIT = 0x2
|
MNT_NOWAIT = 0x2
|
||||||
MNT_QUOTA = 0x2000
|
MNT_QUOTA = 0x2000
|
||||||
@@ -929,12 +1050,27 @@ const (
|
|||||||
MNT_RELOAD = 0x40000
|
MNT_RELOAD = 0x40000
|
||||||
MNT_ROOTFS = 0x4000
|
MNT_ROOTFS = 0x4000
|
||||||
MNT_SOFTDEP = 0x4000000
|
MNT_SOFTDEP = 0x4000000
|
||||||
|
MNT_STALLED = 0x100000
|
||||||
|
MNT_SWAPPABLE = 0x200000
|
||||||
MNT_SYNCHRONOUS = 0x2
|
MNT_SYNCHRONOUS = 0x2
|
||||||
MNT_UPDATE = 0x10000
|
MNT_UPDATE = 0x10000
|
||||||
MNT_VISFLAGMASK = 0x400ffff
|
MNT_VISFLAGMASK = 0x400ffff
|
||||||
MNT_WAIT = 0x1
|
MNT_WAIT = 0x1
|
||||||
MNT_WANTRDWR = 0x2000000
|
MNT_WANTRDWR = 0x2000000
|
||||||
MNT_WXALLOWED = 0x800
|
MNT_WXALLOWED = 0x800
|
||||||
|
MOUNT_AFS = "afs"
|
||||||
|
MOUNT_CD9660 = "cd9660"
|
||||||
|
MOUNT_EXT2FS = "ext2fs"
|
||||||
|
MOUNT_FFS = "ffs"
|
||||||
|
MOUNT_FUSEFS = "fuse"
|
||||||
|
MOUNT_MFS = "mfs"
|
||||||
|
MOUNT_MSDOS = "msdos"
|
||||||
|
MOUNT_NCPFS = "ncpfs"
|
||||||
|
MOUNT_NFS = "nfs"
|
||||||
|
MOUNT_NTFS = "ntfs"
|
||||||
|
MOUNT_TMPFS = "tmpfs"
|
||||||
|
MOUNT_UDF = "udf"
|
||||||
|
MOUNT_UFS = "ffs"
|
||||||
MSG_BCAST = 0x100
|
MSG_BCAST = 0x100
|
||||||
MSG_CMSG_CLOEXEC = 0x800
|
MSG_CMSG_CLOEXEC = 0x800
|
||||||
MSG_CTRUNC = 0x20
|
MSG_CTRUNC = 0x20
|
||||||
@@ -947,6 +1083,7 @@ const (
|
|||||||
MSG_PEEK = 0x2
|
MSG_PEEK = 0x2
|
||||||
MSG_TRUNC = 0x10
|
MSG_TRUNC = 0x10
|
||||||
MSG_WAITALL = 0x40
|
MSG_WAITALL = 0x40
|
||||||
|
MSG_WAITFORONE = 0x1000
|
||||||
MS_ASYNC = 0x1
|
MS_ASYNC = 0x1
|
||||||
MS_INVALIDATE = 0x4
|
MS_INVALIDATE = 0x4
|
||||||
MS_SYNC = 0x2
|
MS_SYNC = 0x2
|
||||||
@@ -954,12 +1091,16 @@ const (
|
|||||||
NET_RT_DUMP = 0x1
|
NET_RT_DUMP = 0x1
|
||||||
NET_RT_FLAGS = 0x2
|
NET_RT_FLAGS = 0x2
|
||||||
NET_RT_IFLIST = 0x3
|
NET_RT_IFLIST = 0x3
|
||||||
NET_RT_MAXID = 0x6
|
NET_RT_IFNAMES = 0x6
|
||||||
|
NET_RT_MAXID = 0x8
|
||||||
|
NET_RT_SOURCE = 0x7
|
||||||
NET_RT_STATS = 0x4
|
NET_RT_STATS = 0x4
|
||||||
NET_RT_TABLE = 0x5
|
NET_RT_TABLE = 0x5
|
||||||
NFDBITS = 0x20
|
NFDBITS = 0x20
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
|
NOKERNINFO = 0x2000000
|
||||||
NOTE_ATTRIB = 0x8
|
NOTE_ATTRIB = 0x8
|
||||||
|
NOTE_CHANGE = 0x1
|
||||||
NOTE_CHILD = 0x4
|
NOTE_CHILD = 0x4
|
||||||
NOTE_DELETE = 0x1
|
NOTE_DELETE = 0x1
|
||||||
NOTE_EOF = 0x2
|
NOTE_EOF = 0x2
|
||||||
@@ -969,6 +1110,7 @@ const (
|
|||||||
NOTE_FORK = 0x40000000
|
NOTE_FORK = 0x40000000
|
||||||
NOTE_LINK = 0x10
|
NOTE_LINK = 0x10
|
||||||
NOTE_LOWAT = 0x1
|
NOTE_LOWAT = 0x1
|
||||||
|
NOTE_OOB = 0x4
|
||||||
NOTE_PCTRLMASK = 0xf0000000
|
NOTE_PCTRLMASK = 0xf0000000
|
||||||
NOTE_PDATAMASK = 0xfffff
|
NOTE_PDATAMASK = 0xfffff
|
||||||
NOTE_RENAME = 0x20
|
NOTE_RENAME = 0x20
|
||||||
@@ -978,11 +1120,13 @@ const (
|
|||||||
NOTE_TRUNCATE = 0x80
|
NOTE_TRUNCATE = 0x80
|
||||||
NOTE_WRITE = 0x2
|
NOTE_WRITE = 0x2
|
||||||
OCRNL = 0x10
|
OCRNL = 0x10
|
||||||
|
OLCUC = 0x20
|
||||||
ONLCR = 0x2
|
ONLCR = 0x2
|
||||||
ONLRET = 0x80
|
ONLRET = 0x80
|
||||||
ONOCR = 0x40
|
ONOCR = 0x40
|
||||||
ONOEOT = 0x8
|
ONOEOT = 0x8
|
||||||
OPOST = 0x1
|
OPOST = 0x1
|
||||||
|
OXTABS = 0x4
|
||||||
O_ACCMODE = 0x3
|
O_ACCMODE = 0x3
|
||||||
O_APPEND = 0x8
|
O_APPEND = 0x8
|
||||||
O_ASYNC = 0x40
|
O_ASYNC = 0x40
|
||||||
@@ -1027,19 +1171,25 @@ const (
|
|||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0x7fffffffffffffff
|
RLIM_INFINITY = 0x7fffffffffffffff
|
||||||
RTAX_AUTHOR = 0x6
|
RTAX_AUTHOR = 0x6
|
||||||
|
RTAX_BFD = 0xb
|
||||||
RTAX_BRD = 0x7
|
RTAX_BRD = 0x7
|
||||||
|
RTAX_DNS = 0xc
|
||||||
RTAX_DST = 0x0
|
RTAX_DST = 0x0
|
||||||
RTAX_GATEWAY = 0x1
|
RTAX_GATEWAY = 0x1
|
||||||
RTAX_GENMASK = 0x3
|
RTAX_GENMASK = 0x3
|
||||||
RTAX_IFA = 0x5
|
RTAX_IFA = 0x5
|
||||||
RTAX_IFP = 0x4
|
RTAX_IFP = 0x4
|
||||||
RTAX_LABEL = 0xa
|
RTAX_LABEL = 0xa
|
||||||
RTAX_MAX = 0xb
|
RTAX_MAX = 0xf
|
||||||
RTAX_NETMASK = 0x2
|
RTAX_NETMASK = 0x2
|
||||||
|
RTAX_SEARCH = 0xe
|
||||||
RTAX_SRC = 0x8
|
RTAX_SRC = 0x8
|
||||||
RTAX_SRCMASK = 0x9
|
RTAX_SRCMASK = 0x9
|
||||||
|
RTAX_STATIC = 0xd
|
||||||
RTA_AUTHOR = 0x40
|
RTA_AUTHOR = 0x40
|
||||||
|
RTA_BFD = 0x800
|
||||||
RTA_BRD = 0x80
|
RTA_BRD = 0x80
|
||||||
|
RTA_DNS = 0x1000
|
||||||
RTA_DST = 0x1
|
RTA_DST = 0x1
|
||||||
RTA_GATEWAY = 0x2
|
RTA_GATEWAY = 0x2
|
||||||
RTA_GENMASK = 0x8
|
RTA_GENMASK = 0x8
|
||||||
@@ -1047,24 +1197,29 @@ const (
|
|||||||
RTA_IFP = 0x10
|
RTA_IFP = 0x10
|
||||||
RTA_LABEL = 0x400
|
RTA_LABEL = 0x400
|
||||||
RTA_NETMASK = 0x4
|
RTA_NETMASK = 0x4
|
||||||
|
RTA_SEARCH = 0x4000
|
||||||
RTA_SRC = 0x100
|
RTA_SRC = 0x100
|
||||||
RTA_SRCMASK = 0x200
|
RTA_SRCMASK = 0x200
|
||||||
|
RTA_STATIC = 0x2000
|
||||||
RTF_ANNOUNCE = 0x4000
|
RTF_ANNOUNCE = 0x4000
|
||||||
|
RTF_BFD = 0x1000000
|
||||||
RTF_BLACKHOLE = 0x1000
|
RTF_BLACKHOLE = 0x1000
|
||||||
RTF_BROADCAST = 0x400000
|
RTF_BROADCAST = 0x400000
|
||||||
|
RTF_CACHED = 0x20000
|
||||||
RTF_CLONED = 0x10000
|
RTF_CLONED = 0x10000
|
||||||
RTF_CLONING = 0x100
|
RTF_CLONING = 0x100
|
||||||
|
RTF_CONNECTED = 0x800000
|
||||||
RTF_DONE = 0x40
|
RTF_DONE = 0x40
|
||||||
RTF_DYNAMIC = 0x10
|
RTF_DYNAMIC = 0x10
|
||||||
RTF_FMASK = 0x70f808
|
RTF_FMASK = 0x110fc08
|
||||||
RTF_GATEWAY = 0x2
|
RTF_GATEWAY = 0x2
|
||||||
RTF_HOST = 0x4
|
RTF_HOST = 0x4
|
||||||
RTF_LLINFO = 0x400
|
RTF_LLINFO = 0x400
|
||||||
RTF_LOCAL = 0x200000
|
RTF_LOCAL = 0x200000
|
||||||
RTF_MASK = 0x80
|
|
||||||
RTF_MODIFIED = 0x20
|
RTF_MODIFIED = 0x20
|
||||||
RTF_MPATH = 0x40000
|
RTF_MPATH = 0x40000
|
||||||
RTF_MPLS = 0x100000
|
RTF_MPLS = 0x100000
|
||||||
|
RTF_MULTICAST = 0x200
|
||||||
RTF_PERMANENT_ARP = 0x2000
|
RTF_PERMANENT_ARP = 0x2000
|
||||||
RTF_PROTO1 = 0x8000
|
RTF_PROTO1 = 0x8000
|
||||||
RTF_PROTO2 = 0x4000
|
RTF_PROTO2 = 0x4000
|
||||||
@@ -1073,23 +1228,26 @@ const (
|
|||||||
RTF_STATIC = 0x800
|
RTF_STATIC = 0x800
|
||||||
RTF_UP = 0x1
|
RTF_UP = 0x1
|
||||||
RTF_USETRAILERS = 0x8000
|
RTF_USETRAILERS = 0x8000
|
||||||
RTF_XRESOLVE = 0x200
|
RTM_80211INFO = 0x15
|
||||||
RTM_ADD = 0x1
|
RTM_ADD = 0x1
|
||||||
|
RTM_BFD = 0x12
|
||||||
RTM_CHANGE = 0x3
|
RTM_CHANGE = 0x3
|
||||||
|
RTM_CHGADDRATTR = 0x14
|
||||||
RTM_DELADDR = 0xd
|
RTM_DELADDR = 0xd
|
||||||
RTM_DELETE = 0x2
|
RTM_DELETE = 0x2
|
||||||
RTM_DESYNC = 0x10
|
RTM_DESYNC = 0x10
|
||||||
RTM_GET = 0x4
|
RTM_GET = 0x4
|
||||||
RTM_IFANNOUNCE = 0xf
|
RTM_IFANNOUNCE = 0xf
|
||||||
RTM_IFINFO = 0xe
|
RTM_IFINFO = 0xe
|
||||||
RTM_LOCK = 0x8
|
RTM_INVALIDATE = 0x11
|
||||||
RTM_LOSING = 0x5
|
RTM_LOSING = 0x5
|
||||||
RTM_MAXSIZE = 0x800
|
RTM_MAXSIZE = 0x800
|
||||||
RTM_MISS = 0x7
|
RTM_MISS = 0x7
|
||||||
RTM_NEWADDR = 0xc
|
RTM_NEWADDR = 0xc
|
||||||
|
RTM_PROPOSAL = 0x13
|
||||||
RTM_REDIRECT = 0x6
|
RTM_REDIRECT = 0x6
|
||||||
RTM_RESOLVE = 0xb
|
RTM_RESOLVE = 0xb
|
||||||
RTM_RTTUNIT = 0xf4240
|
RTM_SOURCE = 0x16
|
||||||
RTM_VERSION = 0x5
|
RTM_VERSION = 0x5
|
||||||
RTV_EXPIRE = 0x4
|
RTV_EXPIRE = 0x4
|
||||||
RTV_HOPCOUNT = 0x2
|
RTV_HOPCOUNT = 0x2
|
||||||
@@ -1099,67 +1257,74 @@ const (
|
|||||||
RTV_RTTVAR = 0x80
|
RTV_RTTVAR = 0x80
|
||||||
RTV_SPIPE = 0x10
|
RTV_SPIPE = 0x10
|
||||||
RTV_SSTHRESH = 0x20
|
RTV_SSTHRESH = 0x20
|
||||||
|
RT_TABLEID_BITS = 0x8
|
||||||
|
RT_TABLEID_MASK = 0xff
|
||||||
RT_TABLEID_MAX = 0xff
|
RT_TABLEID_MAX = 0xff
|
||||||
RUSAGE_CHILDREN = -0x1
|
RUSAGE_CHILDREN = -0x1
|
||||||
RUSAGE_SELF = 0x0
|
RUSAGE_SELF = 0x0
|
||||||
RUSAGE_THREAD = 0x1
|
RUSAGE_THREAD = 0x1
|
||||||
SCM_RIGHTS = 0x1
|
SCM_RIGHTS = 0x1
|
||||||
SCM_TIMESTAMP = 0x4
|
SCM_TIMESTAMP = 0x4
|
||||||
|
SEEK_CUR = 0x1
|
||||||
|
SEEK_END = 0x2
|
||||||
|
SEEK_SET = 0x0
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
SIOCADDMULTI = 0x80206931
|
SIOCADDMULTI = 0x80206931
|
||||||
SIOCAIFADDR = 0x8040691a
|
SIOCAIFADDR = 0x8040691a
|
||||||
SIOCAIFGROUP = 0x80246987
|
SIOCAIFGROUP = 0x80246987
|
||||||
SIOCALIFADDR = 0x8218691c
|
|
||||||
SIOCATMARK = 0x40047307
|
SIOCATMARK = 0x40047307
|
||||||
SIOCBRDGADD = 0x8054693c
|
SIOCBRDGADD = 0x8060693c
|
||||||
SIOCBRDGADDS = 0x80546941
|
SIOCBRDGADDL = 0x80606949
|
||||||
SIOCBRDGARL = 0x806e694d
|
SIOCBRDGADDS = 0x80606941
|
||||||
|
SIOCBRDGARL = 0x808c694d
|
||||||
SIOCBRDGDADDR = 0x81286947
|
SIOCBRDGDADDR = 0x81286947
|
||||||
SIOCBRDGDEL = 0x8054693d
|
SIOCBRDGDEL = 0x8060693d
|
||||||
SIOCBRDGDELS = 0x80546942
|
SIOCBRDGDELS = 0x80606942
|
||||||
SIOCBRDGFLUSH = 0x80546948
|
SIOCBRDGFLUSH = 0x80606948
|
||||||
SIOCBRDGFRL = 0x806e694e
|
SIOCBRDGFRL = 0x808c694e
|
||||||
SIOCBRDGGCACHE = 0xc0146941
|
SIOCBRDGGCACHE = 0xc0146941
|
||||||
SIOCBRDGGFD = 0xc0146952
|
SIOCBRDGGFD = 0xc0146952
|
||||||
SIOCBRDGGHT = 0xc0146951
|
SIOCBRDGGHT = 0xc0146951
|
||||||
SIOCBRDGGIFFLGS = 0xc054693e
|
SIOCBRDGGIFFLGS = 0xc060693e
|
||||||
SIOCBRDGGMA = 0xc0146953
|
SIOCBRDGGMA = 0xc0146953
|
||||||
SIOCBRDGGPARAM = 0xc03c6958
|
SIOCBRDGGPARAM = 0xc0406958
|
||||||
SIOCBRDGGPRI = 0xc0146950
|
SIOCBRDGGPRI = 0xc0146950
|
||||||
SIOCBRDGGRL = 0xc028694f
|
SIOCBRDGGRL = 0xc028694f
|
||||||
SIOCBRDGGSIFS = 0xc054693c
|
|
||||||
SIOCBRDGGTO = 0xc0146946
|
SIOCBRDGGTO = 0xc0146946
|
||||||
SIOCBRDGIFS = 0xc0546942
|
SIOCBRDGIFS = 0xc0606942
|
||||||
SIOCBRDGRTS = 0xc0186943
|
SIOCBRDGRTS = 0xc0186943
|
||||||
SIOCBRDGSADDR = 0xc1286944
|
SIOCBRDGSADDR = 0xc1286944
|
||||||
SIOCBRDGSCACHE = 0x80146940
|
SIOCBRDGSCACHE = 0x80146940
|
||||||
SIOCBRDGSFD = 0x80146952
|
SIOCBRDGSFD = 0x80146952
|
||||||
SIOCBRDGSHT = 0x80146951
|
SIOCBRDGSHT = 0x80146951
|
||||||
SIOCBRDGSIFCOST = 0x80546955
|
SIOCBRDGSIFCOST = 0x80606955
|
||||||
SIOCBRDGSIFFLGS = 0x8054693f
|
SIOCBRDGSIFFLGS = 0x8060693f
|
||||||
SIOCBRDGSIFPRIO = 0x80546954
|
SIOCBRDGSIFPRIO = 0x80606954
|
||||||
|
SIOCBRDGSIFPROT = 0x8060694a
|
||||||
SIOCBRDGSMA = 0x80146953
|
SIOCBRDGSMA = 0x80146953
|
||||||
SIOCBRDGSPRI = 0x80146950
|
SIOCBRDGSPRI = 0x80146950
|
||||||
SIOCBRDGSPROTO = 0x8014695a
|
SIOCBRDGSPROTO = 0x8014695a
|
||||||
SIOCBRDGSTO = 0x80146945
|
SIOCBRDGSTO = 0x80146945
|
||||||
SIOCBRDGSTXHC = 0x80146959
|
SIOCBRDGSTXHC = 0x80146959
|
||||||
|
SIOCDELLABEL = 0x80206997
|
||||||
SIOCDELMULTI = 0x80206932
|
SIOCDELMULTI = 0x80206932
|
||||||
SIOCDIFADDR = 0x80206919
|
SIOCDIFADDR = 0x80206919
|
||||||
SIOCDIFGROUP = 0x80246989
|
SIOCDIFGROUP = 0x80246989
|
||||||
|
SIOCDIFPARENT = 0x802069b4
|
||||||
SIOCDIFPHYADDR = 0x80206949
|
SIOCDIFPHYADDR = 0x80206949
|
||||||
SIOCDLIFADDR = 0x8218691e
|
SIOCDPWE3NEIGHBOR = 0x802069de
|
||||||
|
SIOCDVNETID = 0x802069af
|
||||||
SIOCGETKALIVE = 0xc01869a4
|
SIOCGETKALIVE = 0xc01869a4
|
||||||
SIOCGETLABEL = 0x8020699a
|
SIOCGETLABEL = 0x8020699a
|
||||||
|
SIOCGETMPWCFG = 0xc02069ae
|
||||||
SIOCGETPFLOW = 0xc02069fe
|
SIOCGETPFLOW = 0xc02069fe
|
||||||
SIOCGETPFSYNC = 0xc02069f8
|
SIOCGETPFSYNC = 0xc02069f8
|
||||||
SIOCGETSGCNT = 0xc0147534
|
SIOCGETSGCNT = 0xc0147534
|
||||||
SIOCGETVIFCNT = 0xc0147533
|
SIOCGETVIFCNT = 0xc0147533
|
||||||
SIOCGETVLAN = 0xc0206990
|
SIOCGETVLAN = 0xc0206990
|
||||||
SIOCGHIWAT = 0x40047301
|
|
||||||
SIOCGIFADDR = 0xc0206921
|
SIOCGIFADDR = 0xc0206921
|
||||||
SIOCGIFASYNCMAP = 0xc020697c
|
|
||||||
SIOCGIFBRDADDR = 0xc0206923
|
SIOCGIFBRDADDR = 0xc0206923
|
||||||
SIOCGIFCONF = 0xc0086924
|
SIOCGIFCONF = 0xc0086924
|
||||||
SIOCGIFDATA = 0xc020691b
|
SIOCGIFDATA = 0xc020691b
|
||||||
@@ -1168,41 +1333,53 @@ const (
|
|||||||
SIOCGIFFLAGS = 0xc0206911
|
SIOCGIFFLAGS = 0xc0206911
|
||||||
SIOCGIFGATTR = 0xc024698b
|
SIOCGIFGATTR = 0xc024698b
|
||||||
SIOCGIFGENERIC = 0xc020693a
|
SIOCGIFGENERIC = 0xc020693a
|
||||||
|
SIOCGIFGLIST = 0xc024698d
|
||||||
SIOCGIFGMEMB = 0xc024698a
|
SIOCGIFGMEMB = 0xc024698a
|
||||||
SIOCGIFGROUP = 0xc0246988
|
SIOCGIFGROUP = 0xc0246988
|
||||||
SIOCGIFHARDMTU = 0xc02069a5
|
SIOCGIFHARDMTU = 0xc02069a5
|
||||||
SIOCGIFMEDIA = 0xc0286936
|
SIOCGIFLLPRIO = 0xc02069b6
|
||||||
|
SIOCGIFMEDIA = 0xc0386938
|
||||||
SIOCGIFMETRIC = 0xc0206917
|
SIOCGIFMETRIC = 0xc0206917
|
||||||
SIOCGIFMTU = 0xc020697e
|
SIOCGIFMTU = 0xc020697e
|
||||||
SIOCGIFNETMASK = 0xc0206925
|
SIOCGIFNETMASK = 0xc0206925
|
||||||
SIOCGIFPDSTADDR = 0xc0206948
|
SIOCGIFPAIR = 0xc02069b1
|
||||||
|
SIOCGIFPARENT = 0xc02069b3
|
||||||
SIOCGIFPRIORITY = 0xc020699c
|
SIOCGIFPRIORITY = 0xc020699c
|
||||||
SIOCGIFPSRCADDR = 0xc0206947
|
|
||||||
SIOCGIFRDOMAIN = 0xc02069a0
|
SIOCGIFRDOMAIN = 0xc02069a0
|
||||||
SIOCGIFRTLABEL = 0xc0206983
|
SIOCGIFRTLABEL = 0xc0206983
|
||||||
SIOCGIFRXR = 0x802069aa
|
SIOCGIFRXR = 0x802069aa
|
||||||
SIOCGIFTIMESLOT = 0xc0206986
|
SIOCGIFSFFPAGE = 0xc1126939
|
||||||
SIOCGIFXFLAGS = 0xc020699e
|
SIOCGIFXFLAGS = 0xc020699e
|
||||||
SIOCGLIFADDR = 0xc218691d
|
|
||||||
SIOCGLIFPHYADDR = 0xc218694b
|
SIOCGLIFPHYADDR = 0xc218694b
|
||||||
|
SIOCGLIFPHYDF = 0xc02069c2
|
||||||
|
SIOCGLIFPHYECN = 0xc02069c8
|
||||||
SIOCGLIFPHYRTABLE = 0xc02069a2
|
SIOCGLIFPHYRTABLE = 0xc02069a2
|
||||||
SIOCGLIFPHYTTL = 0xc02069a9
|
SIOCGLIFPHYTTL = 0xc02069a9
|
||||||
SIOCGLOWAT = 0x40047303
|
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
|
SIOCGPWE3 = 0xc0206998
|
||||||
|
SIOCGPWE3CTRLWORD = 0xc02069dc
|
||||||
|
SIOCGPWE3FAT = 0xc02069dd
|
||||||
|
SIOCGPWE3NEIGHBOR = 0xc21869de
|
||||||
|
SIOCGRXHPRIO = 0xc02069db
|
||||||
SIOCGSPPPPARAMS = 0xc0206994
|
SIOCGSPPPPARAMS = 0xc0206994
|
||||||
|
SIOCGTXHPRIO = 0xc02069c6
|
||||||
|
SIOCGUMBINFO = 0xc02069be
|
||||||
|
SIOCGUMBPARAM = 0xc02069c0
|
||||||
SIOCGVH = 0xc02069f6
|
SIOCGVH = 0xc02069f6
|
||||||
|
SIOCGVNETFLOWID = 0xc02069c4
|
||||||
SIOCGVNETID = 0xc02069a7
|
SIOCGVNETID = 0xc02069a7
|
||||||
|
SIOCIFAFATTACH = 0x801169ab
|
||||||
|
SIOCIFAFDETACH = 0x801169ac
|
||||||
SIOCIFCREATE = 0x8020697a
|
SIOCIFCREATE = 0x8020697a
|
||||||
SIOCIFDESTROY = 0x80206979
|
SIOCIFDESTROY = 0x80206979
|
||||||
SIOCIFGCLONERS = 0xc00c6978
|
SIOCIFGCLONERS = 0xc00c6978
|
||||||
SIOCSETKALIVE = 0x801869a3
|
SIOCSETKALIVE = 0x801869a3
|
||||||
SIOCSETLABEL = 0x80206999
|
SIOCSETLABEL = 0x80206999
|
||||||
|
SIOCSETMPWCFG = 0x802069ad
|
||||||
SIOCSETPFLOW = 0x802069fd
|
SIOCSETPFLOW = 0x802069fd
|
||||||
SIOCSETPFSYNC = 0x802069f7
|
SIOCSETPFSYNC = 0x802069f7
|
||||||
SIOCSETVLAN = 0x8020698f
|
SIOCSETVLAN = 0x8020698f
|
||||||
SIOCSHIWAT = 0x80047300
|
|
||||||
SIOCSIFADDR = 0x8020690c
|
SIOCSIFADDR = 0x8020690c
|
||||||
SIOCSIFASYNCMAP = 0x8020697d
|
|
||||||
SIOCSIFBRDADDR = 0x80206913
|
SIOCSIFBRDADDR = 0x80206913
|
||||||
SIOCSIFDESCR = 0x80206980
|
SIOCSIFDESCR = 0x80206980
|
||||||
SIOCSIFDSTADDR = 0x8020690e
|
SIOCSIFDSTADDR = 0x8020690e
|
||||||
@@ -1210,26 +1387,36 @@ const (
|
|||||||
SIOCSIFGATTR = 0x8024698c
|
SIOCSIFGATTR = 0x8024698c
|
||||||
SIOCSIFGENERIC = 0x80206939
|
SIOCSIFGENERIC = 0x80206939
|
||||||
SIOCSIFLLADDR = 0x8020691f
|
SIOCSIFLLADDR = 0x8020691f
|
||||||
SIOCSIFMEDIA = 0xc0206935
|
SIOCSIFLLPRIO = 0x802069b5
|
||||||
|
SIOCSIFMEDIA = 0xc0206937
|
||||||
SIOCSIFMETRIC = 0x80206918
|
SIOCSIFMETRIC = 0x80206918
|
||||||
SIOCSIFMTU = 0x8020697f
|
SIOCSIFMTU = 0x8020697f
|
||||||
SIOCSIFNETMASK = 0x80206916
|
SIOCSIFNETMASK = 0x80206916
|
||||||
SIOCSIFPHYADDR = 0x80406946
|
SIOCSIFPAIR = 0x802069b0
|
||||||
|
SIOCSIFPARENT = 0x802069b2
|
||||||
SIOCSIFPRIORITY = 0x8020699b
|
SIOCSIFPRIORITY = 0x8020699b
|
||||||
SIOCSIFRDOMAIN = 0x8020699f
|
SIOCSIFRDOMAIN = 0x8020699f
|
||||||
SIOCSIFRTLABEL = 0x80206982
|
SIOCSIFRTLABEL = 0x80206982
|
||||||
SIOCSIFTIMESLOT = 0x80206985
|
|
||||||
SIOCSIFXFLAGS = 0x8020699d
|
SIOCSIFXFLAGS = 0x8020699d
|
||||||
SIOCSLIFPHYADDR = 0x8218694a
|
SIOCSLIFPHYADDR = 0x8218694a
|
||||||
|
SIOCSLIFPHYDF = 0x802069c1
|
||||||
|
SIOCSLIFPHYECN = 0x802069c7
|
||||||
SIOCSLIFPHYRTABLE = 0x802069a1
|
SIOCSLIFPHYRTABLE = 0x802069a1
|
||||||
SIOCSLIFPHYTTL = 0x802069a8
|
SIOCSLIFPHYTTL = 0x802069a8
|
||||||
SIOCSLOWAT = 0x80047302
|
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
|
SIOCSPWE3CTRLWORD = 0x802069dc
|
||||||
|
SIOCSPWE3FAT = 0x802069dd
|
||||||
|
SIOCSPWE3NEIGHBOR = 0x821869de
|
||||||
|
SIOCSRXHPRIO = 0x802069db
|
||||||
SIOCSSPPPPARAMS = 0x80206993
|
SIOCSSPPPPARAMS = 0x80206993
|
||||||
|
SIOCSTXHPRIO = 0x802069c5
|
||||||
|
SIOCSUMBPARAM = 0x802069bf
|
||||||
SIOCSVH = 0xc02069f5
|
SIOCSVH = 0xc02069f5
|
||||||
|
SIOCSVNETFLOWID = 0x802069c3
|
||||||
SIOCSVNETID = 0x802069a6
|
SIOCSVNETID = 0x802069a6
|
||||||
SOCK_CLOEXEC = 0x8000
|
SOCK_CLOEXEC = 0x8000
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
|
SOCK_DNS = 0x1000
|
||||||
SOCK_NONBLOCK = 0x4000
|
SOCK_NONBLOCK = 0x4000
|
||||||
SOCK_RAW = 0x3
|
SOCK_RAW = 0x3
|
||||||
SOCK_RDM = 0x4
|
SOCK_RDM = 0x4
|
||||||
@@ -1241,6 +1428,7 @@ const (
|
|||||||
SO_BINDANY = 0x1000
|
SO_BINDANY = 0x1000
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
|
SO_DOMAIN = 0x1024
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
SO_ERROR = 0x1007
|
SO_ERROR = 0x1007
|
||||||
SO_KEEPALIVE = 0x8
|
SO_KEEPALIVE = 0x8
|
||||||
@@ -1248,6 +1436,7 @@ const (
|
|||||||
SO_NETPROC = 0x1020
|
SO_NETPROC = 0x1020
|
||||||
SO_OOBINLINE = 0x100
|
SO_OOBINLINE = 0x100
|
||||||
SO_PEERCRED = 0x1022
|
SO_PEERCRED = 0x1022
|
||||||
|
SO_PROTOCOL = 0x1025
|
||||||
SO_RCVBUF = 0x1002
|
SO_RCVBUF = 0x1002
|
||||||
SO_RCVLOWAT = 0x1004
|
SO_RCVLOWAT = 0x1004
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
@@ -1261,6 +1450,7 @@ const (
|
|||||||
SO_TIMESTAMP = 0x800
|
SO_TIMESTAMP = 0x800
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
|
SO_ZEROIZE = 0x2000
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
S_IFBLK = 0x6000
|
S_IFBLK = 0x6000
|
||||||
@@ -1290,9 +1480,24 @@ const (
|
|||||||
S_IXOTH = 0x1
|
S_IXOTH = 0x1
|
||||||
S_IXUSR = 0x40
|
S_IXUSR = 0x40
|
||||||
TCIFLUSH = 0x1
|
TCIFLUSH = 0x1
|
||||||
|
TCIOFF = 0x3
|
||||||
TCIOFLUSH = 0x3
|
TCIOFLUSH = 0x3
|
||||||
|
TCION = 0x4
|
||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
TCP_MAXBURST = 0x4
|
TCOOFF = 0x1
|
||||||
|
TCOON = 0x2
|
||||||
|
TCPOPT_EOL = 0x0
|
||||||
|
TCPOPT_MAXSEG = 0x2
|
||||||
|
TCPOPT_NOP = 0x1
|
||||||
|
TCPOPT_SACK = 0x5
|
||||||
|
TCPOPT_SACK_HDR = 0x1010500
|
||||||
|
TCPOPT_SACK_PERMITTED = 0x4
|
||||||
|
TCPOPT_SACK_PERMIT_HDR = 0x1010402
|
||||||
|
TCPOPT_SIGNATURE = 0x13
|
||||||
|
TCPOPT_TIMESTAMP = 0x8
|
||||||
|
TCPOPT_TSTAMP_HDR = 0x101080a
|
||||||
|
TCPOPT_WINDOW = 0x3
|
||||||
|
TCP_INFO = 0x9
|
||||||
TCP_MAXSEG = 0x2
|
TCP_MAXSEG = 0x2
|
||||||
TCP_MAXWIN = 0xffff
|
TCP_MAXWIN = 0xffff
|
||||||
TCP_MAX_SACK = 0x3
|
TCP_MAX_SACK = 0x3
|
||||||
@@ -1301,11 +1506,15 @@ const (
|
|||||||
TCP_MSS = 0x200
|
TCP_MSS = 0x200
|
||||||
TCP_NODELAY = 0x1
|
TCP_NODELAY = 0x1
|
||||||
TCP_NOPUSH = 0x10
|
TCP_NOPUSH = 0x10
|
||||||
TCP_NSTATES = 0xb
|
TCP_SACKHOLE_LIMIT = 0x80
|
||||||
TCP_SACK_ENABLE = 0x8
|
TCP_SACK_ENABLE = 0x8
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
|
TIMER_RELTIME = 0x0
|
||||||
TIOCCBRK = 0x2000747a
|
TIOCCBRK = 0x2000747a
|
||||||
TIOCCDTR = 0x20007478
|
TIOCCDTR = 0x20007478
|
||||||
|
TIOCCHKVERAUTH = 0x2000741e
|
||||||
|
TIOCCLRVERAUTH = 0x2000741d
|
||||||
TIOCCONS = 0x80047462
|
TIOCCONS = 0x80047462
|
||||||
TIOCDRAIN = 0x2000745e
|
TIOCDRAIN = 0x2000745e
|
||||||
TIOCEXCL = 0x2000740d
|
TIOCEXCL = 0x2000740d
|
||||||
@@ -1321,7 +1530,7 @@ const (
|
|||||||
TIOCGFLAGS = 0x4004745d
|
TIOCGFLAGS = 0x4004745d
|
||||||
TIOCGPGRP = 0x40047477
|
TIOCGPGRP = 0x40047477
|
||||||
TIOCGSID = 0x40047463
|
TIOCGSID = 0x40047463
|
||||||
TIOCGTSTAMP = 0x400c745b
|
TIOCGTSTAMP = 0x4010745b
|
||||||
TIOCGWINSZ = 0x40087468
|
TIOCGWINSZ = 0x40087468
|
||||||
TIOCMBIC = 0x8004746b
|
TIOCMBIC = 0x8004746b
|
||||||
TIOCMBIS = 0x8004746c
|
TIOCMBIS = 0x8004746c
|
||||||
@@ -1360,17 +1569,21 @@ const (
|
|||||||
TIOCSETAF = 0x802c7416
|
TIOCSETAF = 0x802c7416
|
||||||
TIOCSETAW = 0x802c7415
|
TIOCSETAW = 0x802c7415
|
||||||
TIOCSETD = 0x8004741b
|
TIOCSETD = 0x8004741b
|
||||||
|
TIOCSETVERAUTH = 0x8004741c
|
||||||
TIOCSFLAGS = 0x8004745c
|
TIOCSFLAGS = 0x8004745c
|
||||||
TIOCSIG = 0x8004745f
|
TIOCSIG = 0x8004745f
|
||||||
TIOCSPGRP = 0x80047476
|
TIOCSPGRP = 0x80047476
|
||||||
TIOCSTART = 0x2000746e
|
TIOCSTART = 0x2000746e
|
||||||
TIOCSTAT = 0x80047465
|
TIOCSTAT = 0x20007465
|
||||||
TIOCSTI = 0x80017472
|
|
||||||
TIOCSTOP = 0x2000746f
|
TIOCSTOP = 0x2000746f
|
||||||
TIOCSTSTAMP = 0x8008745a
|
TIOCSTSTAMP = 0x8008745a
|
||||||
TIOCSWINSZ = 0x80087467
|
TIOCSWINSZ = 0x80087467
|
||||||
TIOCUCNTL = 0x80047466
|
TIOCUCNTL = 0x80047466
|
||||||
|
TIOCUCNTL_CBRK = 0x7a
|
||||||
|
TIOCUCNTL_SBRK = 0x7b
|
||||||
TOSTOP = 0x400000
|
TOSTOP = 0x400000
|
||||||
|
UTIME_NOW = -0x2
|
||||||
|
UTIME_OMIT = -0x1
|
||||||
VDISCARD = 0xf
|
VDISCARD = 0xf
|
||||||
VDSUSP = 0xb
|
VDSUSP = 0xb
|
||||||
VEOF = 0x0
|
VEOF = 0x0
|
||||||
@@ -1381,6 +1594,19 @@ const (
|
|||||||
VKILL = 0x5
|
VKILL = 0x5
|
||||||
VLNEXT = 0xe
|
VLNEXT = 0xe
|
||||||
VMIN = 0x10
|
VMIN = 0x10
|
||||||
|
VM_ANONMIN = 0x7
|
||||||
|
VM_LOADAVG = 0x2
|
||||||
|
VM_MALLOC_CONF = 0xc
|
||||||
|
VM_MAXID = 0xd
|
||||||
|
VM_MAXSLP = 0xa
|
||||||
|
VM_METER = 0x1
|
||||||
|
VM_NKMEMPAGES = 0x6
|
||||||
|
VM_PSSTRINGS = 0x3
|
||||||
|
VM_SWAPENCRYPT = 0x5
|
||||||
|
VM_USPACE = 0xb
|
||||||
|
VM_UVMEXP = 0x4
|
||||||
|
VM_VNODEMIN = 0x9
|
||||||
|
VM_VTEXTMIN = 0x8
|
||||||
VQUIT = 0x9
|
VQUIT = 0x9
|
||||||
VREPRINT = 0x6
|
VREPRINT = 0x6
|
||||||
VSTART = 0xc
|
VSTART = 0xc
|
||||||
@@ -1394,6 +1620,7 @@ const (
|
|||||||
WCOREFLAG = 0x80
|
WCOREFLAG = 0x80
|
||||||
WNOHANG = 0x1
|
WNOHANG = 0x1
|
||||||
WUNTRACED = 0x2
|
WUNTRACED = 0x2
|
||||||
|
XCASE = 0x1000000
|
||||||
)
|
)
|
||||||
|
|
||||||
// Errors
|
// Errors
|
||||||
@@ -1407,6 +1634,7 @@ const (
|
|||||||
EALREADY = syscall.Errno(0x25)
|
EALREADY = syscall.Errno(0x25)
|
||||||
EAUTH = syscall.Errno(0x50)
|
EAUTH = syscall.Errno(0x50)
|
||||||
EBADF = syscall.Errno(0x9)
|
EBADF = syscall.Errno(0x9)
|
||||||
|
EBADMSG = syscall.Errno(0x5c)
|
||||||
EBADRPC = syscall.Errno(0x48)
|
EBADRPC = syscall.Errno(0x48)
|
||||||
EBUSY = syscall.Errno(0x10)
|
EBUSY = syscall.Errno(0x10)
|
||||||
ECANCELED = syscall.Errno(0x58)
|
ECANCELED = syscall.Errno(0x58)
|
||||||
@@ -1433,7 +1661,7 @@ const (
|
|||||||
EIPSEC = syscall.Errno(0x52)
|
EIPSEC = syscall.Errno(0x52)
|
||||||
EISCONN = syscall.Errno(0x38)
|
EISCONN = syscall.Errno(0x38)
|
||||||
EISDIR = syscall.Errno(0x15)
|
EISDIR = syscall.Errno(0x15)
|
||||||
ELAST = syscall.Errno(0x5b)
|
ELAST = syscall.Errno(0x5f)
|
||||||
ELOOP = syscall.Errno(0x3e)
|
ELOOP = syscall.Errno(0x3e)
|
||||||
EMEDIUMTYPE = syscall.Errno(0x56)
|
EMEDIUMTYPE = syscall.Errno(0x56)
|
||||||
EMFILE = syscall.Errno(0x18)
|
EMFILE = syscall.Errno(0x18)
|
||||||
@@ -1461,12 +1689,14 @@ const (
|
|||||||
ENOTCONN = syscall.Errno(0x39)
|
ENOTCONN = syscall.Errno(0x39)
|
||||||
ENOTDIR = syscall.Errno(0x14)
|
ENOTDIR = syscall.Errno(0x14)
|
||||||
ENOTEMPTY = syscall.Errno(0x42)
|
ENOTEMPTY = syscall.Errno(0x42)
|
||||||
|
ENOTRECOVERABLE = syscall.Errno(0x5d)
|
||||||
ENOTSOCK = syscall.Errno(0x26)
|
ENOTSOCK = syscall.Errno(0x26)
|
||||||
ENOTSUP = syscall.Errno(0x5b)
|
ENOTSUP = syscall.Errno(0x5b)
|
||||||
ENOTTY = syscall.Errno(0x19)
|
ENOTTY = syscall.Errno(0x19)
|
||||||
ENXIO = syscall.Errno(0x6)
|
ENXIO = syscall.Errno(0x6)
|
||||||
EOPNOTSUPP = syscall.Errno(0x2d)
|
EOPNOTSUPP = syscall.Errno(0x2d)
|
||||||
EOVERFLOW = syscall.Errno(0x57)
|
EOVERFLOW = syscall.Errno(0x57)
|
||||||
|
EOWNERDEAD = syscall.Errno(0x5e)
|
||||||
EPERM = syscall.Errno(0x1)
|
EPERM = syscall.Errno(0x1)
|
||||||
EPFNOSUPPORT = syscall.Errno(0x2e)
|
EPFNOSUPPORT = syscall.Errno(0x2e)
|
||||||
EPIPE = syscall.Errno(0x20)
|
EPIPE = syscall.Errno(0x20)
|
||||||
@@ -1474,6 +1704,7 @@ const (
|
|||||||
EPROCUNAVAIL = syscall.Errno(0x4c)
|
EPROCUNAVAIL = syscall.Errno(0x4c)
|
||||||
EPROGMISMATCH = syscall.Errno(0x4b)
|
EPROGMISMATCH = syscall.Errno(0x4b)
|
||||||
EPROGUNAVAIL = syscall.Errno(0x4a)
|
EPROGUNAVAIL = syscall.Errno(0x4a)
|
||||||
|
EPROTO = syscall.Errno(0x5f)
|
||||||
EPROTONOSUPPORT = syscall.Errno(0x2b)
|
EPROTONOSUPPORT = syscall.Errno(0x2b)
|
||||||
EPROTOTYPE = syscall.Errno(0x29)
|
EPROTOTYPE = syscall.Errno(0x29)
|
||||||
ERANGE = syscall.Errno(0x22)
|
ERANGE = syscall.Errno(0x22)
|
||||||
@@ -1570,7 +1801,7 @@ var errorList = [...]struct {
|
|||||||
{32, "EPIPE", "broken pipe"},
|
{32, "EPIPE", "broken pipe"},
|
||||||
{33, "EDOM", "numerical argument out of domain"},
|
{33, "EDOM", "numerical argument out of domain"},
|
||||||
{34, "ERANGE", "result too large"},
|
{34, "ERANGE", "result too large"},
|
||||||
{35, "EWOULDBLOCK", "resource temporarily unavailable"},
|
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||||
{36, "EINPROGRESS", "operation now in progress"},
|
{36, "EINPROGRESS", "operation now in progress"},
|
||||||
{37, "EALREADY", "operation already in progress"},
|
{37, "EALREADY", "operation already in progress"},
|
||||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||||
@@ -1626,7 +1857,11 @@ var errorList = [...]struct {
|
|||||||
{88, "ECANCELED", "operation canceled"},
|
{88, "ECANCELED", "operation canceled"},
|
||||||
{89, "EIDRM", "identifier removed"},
|
{89, "EIDRM", "identifier removed"},
|
||||||
{90, "ENOMSG", "no message of desired type"},
|
{90, "ENOMSG", "no message of desired type"},
|
||||||
{91, "ELAST", "not supported"},
|
{91, "ENOTSUP", "not supported"},
|
||||||
|
{92, "EBADMSG", "bad message"},
|
||||||
|
{93, "ENOTRECOVERABLE", "state not recoverable"},
|
||||||
|
{94, "EOWNERDEAD", "previous owner died"},
|
||||||
|
{95, "ELAST", "protocol error"},
|
||||||
}
|
}
|
||||||
|
|
||||||
// Signal table
|
// Signal table
|
||||||
@@ -1640,7 +1875,7 @@ var signalList = [...]struct {
|
|||||||
{3, "SIGQUIT", "quit"},
|
{3, "SIGQUIT", "quit"},
|
||||||
{4, "SIGILL", "illegal instruction"},
|
{4, "SIGILL", "illegal instruction"},
|
||||||
{5, "SIGTRAP", "trace/BPT trap"},
|
{5, "SIGTRAP", "trace/BPT trap"},
|
||||||
{6, "SIGABRT", "abort trap"},
|
{6, "SIGIOT", "abort trap"},
|
||||||
{7, "SIGEMT", "EMT trap"},
|
{7, "SIGEMT", "EMT trap"},
|
||||||
{8, "SIGFPE", "floating point exception"},
|
{8, "SIGFPE", "floating point exception"},
|
||||||
{9, "SIGKILL", "killed"},
|
{9, "SIGKILL", "killed"},
|
||||||
@@ -1667,4 +1902,5 @@ var signalList = [...]struct {
|
|||||||
{30, "SIGUSR1", "user defined signal 1"},
|
{30, "SIGUSR1", "user defined signal 1"},
|
||||||
{31, "SIGUSR2", "user defined signal 2"},
|
{31, "SIGUSR2", "user defined signal 2"},
|
||||||
{32, "SIGTHR", "thread AST"},
|
{32, "SIGTHR", "thread AST"},
|
||||||
|
{28672, "SIGSTKSZ", "unknown signal"},
|
||||||
}
|
}
|
||||||
|
|||||||
160
vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go
generated
vendored
160
vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go
generated
vendored
@@ -112,6 +112,12 @@ const (
|
|||||||
BPF_FILDROP_CAPTURE = 0x1
|
BPF_FILDROP_CAPTURE = 0x1
|
||||||
BPF_FILDROP_DROP = 0x2
|
BPF_FILDROP_DROP = 0x2
|
||||||
BPF_FILDROP_PASS = 0x0
|
BPF_FILDROP_PASS = 0x0
|
||||||
|
BPF_F_DIR_IN = 0x10
|
||||||
|
BPF_F_DIR_MASK = 0x30
|
||||||
|
BPF_F_DIR_OUT = 0x20
|
||||||
|
BPF_F_DIR_SHIFT = 0x4
|
||||||
|
BPF_F_FLOWID = 0x8
|
||||||
|
BPF_F_PRI_MASK = 0x7
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@@ -140,6 +146,7 @@ const (
|
|||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_RELEASE = 0x30bb6
|
BPF_RELEASE = 0x30bb6
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
|
BPF_RND = 0xc0
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
@@ -180,7 +187,65 @@ const (
|
|||||||
CTL_KERN = 0x1
|
CTL_KERN = 0x1
|
||||||
CTL_MAXNAME = 0xc
|
CTL_MAXNAME = 0xc
|
||||||
CTL_NET = 0x4
|
CTL_NET = 0x4
|
||||||
|
DIOCADDQUEUE = 0xc110445d
|
||||||
|
DIOCADDRULE = 0xcd604404
|
||||||
|
DIOCADDSTATE = 0xc1084425
|
||||||
|
DIOCCHANGERULE = 0xcd60441a
|
||||||
|
DIOCCLRIFFLAG = 0xc028445a
|
||||||
|
DIOCCLRSRCNODES = 0x20004455
|
||||||
|
DIOCCLRSTATES = 0xc0e04412
|
||||||
|
DIOCCLRSTATUS = 0xc0284416
|
||||||
|
DIOCGETLIMIT = 0xc0084427
|
||||||
|
DIOCGETQSTATS = 0xc1204460
|
||||||
|
DIOCGETQUEUE = 0xc110445f
|
||||||
|
DIOCGETQUEUES = 0xc110445e
|
||||||
|
DIOCGETRULE = 0xcd604407
|
||||||
|
DIOCGETRULES = 0xcd604406
|
||||||
|
DIOCGETRULESET = 0xc444443b
|
||||||
|
DIOCGETRULESETS = 0xc444443a
|
||||||
|
DIOCGETSRCNODES = 0xc0104454
|
||||||
|
DIOCGETSTATE = 0xc1084413
|
||||||
|
DIOCGETSTATES = 0xc0104419
|
||||||
|
DIOCGETSTATUS = 0xc1e84415
|
||||||
|
DIOCGETSYNFLWATS = 0xc0084463
|
||||||
|
DIOCGETTIMEOUT = 0xc008441e
|
||||||
|
DIOCIGETIFACES = 0xc0284457
|
||||||
|
DIOCKILLSRCNODES = 0xc080445b
|
||||||
|
DIOCKILLSTATES = 0xc0e04429
|
||||||
|
DIOCNATLOOK = 0xc0504417
|
||||||
|
DIOCOSFPADD = 0xc088444f
|
||||||
DIOCOSFPFLUSH = 0x2000444e
|
DIOCOSFPFLUSH = 0x2000444e
|
||||||
|
DIOCOSFPGET = 0xc0884450
|
||||||
|
DIOCRADDADDRS = 0xc4504443
|
||||||
|
DIOCRADDTABLES = 0xc450443d
|
||||||
|
DIOCRCLRADDRS = 0xc4504442
|
||||||
|
DIOCRCLRASTATS = 0xc4504448
|
||||||
|
DIOCRCLRTABLES = 0xc450443c
|
||||||
|
DIOCRCLRTSTATS = 0xc4504441
|
||||||
|
DIOCRDELADDRS = 0xc4504444
|
||||||
|
DIOCRDELTABLES = 0xc450443e
|
||||||
|
DIOCRGETADDRS = 0xc4504446
|
||||||
|
DIOCRGETASTATS = 0xc4504447
|
||||||
|
DIOCRGETTABLES = 0xc450443f
|
||||||
|
DIOCRGETTSTATS = 0xc4504440
|
||||||
|
DIOCRINADEFINE = 0xc450444d
|
||||||
|
DIOCRSETADDRS = 0xc4504445
|
||||||
|
DIOCRSETTFLAGS = 0xc450444a
|
||||||
|
DIOCRTSTADDRS = 0xc4504449
|
||||||
|
DIOCSETDEBUG = 0xc0044418
|
||||||
|
DIOCSETHOSTID = 0xc0044456
|
||||||
|
DIOCSETIFFLAG = 0xc0284459
|
||||||
|
DIOCSETLIMIT = 0xc0084428
|
||||||
|
DIOCSETREASS = 0xc004445c
|
||||||
|
DIOCSETSTATUSIF = 0xc0284414
|
||||||
|
DIOCSETSYNCOOKIES = 0xc0014462
|
||||||
|
DIOCSETSYNFLWATS = 0xc0084461
|
||||||
|
DIOCSETTIMEOUT = 0xc008441d
|
||||||
|
DIOCSTART = 0x20004401
|
||||||
|
DIOCSTOP = 0x20004402
|
||||||
|
DIOCXBEGIN = 0xc0104451
|
||||||
|
DIOCXCOMMIT = 0xc0104452
|
||||||
|
DIOCXROLLBACK = 0xc0104453
|
||||||
DLT_ARCNET = 0x7
|
DLT_ARCNET = 0x7
|
||||||
DLT_ATM_RFC1483 = 0xb
|
DLT_ATM_RFC1483 = 0xb
|
||||||
DLT_AX25 = 0x3
|
DLT_AX25 = 0x3
|
||||||
@@ -243,6 +308,8 @@ const (
|
|||||||
EMUL_ENABLED = 0x1
|
EMUL_ENABLED = 0x1
|
||||||
EMUL_NATIVE = 0x2
|
EMUL_NATIVE = 0x2
|
||||||
ENDRUNDISC = 0x9
|
ENDRUNDISC = 0x9
|
||||||
|
ETH64_8021_RSVD_MASK = 0xfffffffffff0
|
||||||
|
ETH64_8021_RSVD_PREFIX = 0x180c2000000
|
||||||
ETHERMIN = 0x2e
|
ETHERMIN = 0x2e
|
||||||
ETHERMTU = 0x5dc
|
ETHERMTU = 0x5dc
|
||||||
ETHERTYPE_8023 = 0x4
|
ETHERTYPE_8023 = 0x4
|
||||||
@@ -295,6 +362,7 @@ const (
|
|||||||
ETHERTYPE_DN = 0x6003
|
ETHERTYPE_DN = 0x6003
|
||||||
ETHERTYPE_DOGFIGHT = 0x1989
|
ETHERTYPE_DOGFIGHT = 0x1989
|
||||||
ETHERTYPE_DSMD = 0x8039
|
ETHERTYPE_DSMD = 0x8039
|
||||||
|
ETHERTYPE_EAPOL = 0x888e
|
||||||
ETHERTYPE_ECMA = 0x803
|
ETHERTYPE_ECMA = 0x803
|
||||||
ETHERTYPE_ENCRYPT = 0x803d
|
ETHERTYPE_ENCRYPT = 0x803d
|
||||||
ETHERTYPE_ES = 0x805d
|
ETHERTYPE_ES = 0x805d
|
||||||
@@ -326,6 +394,7 @@ const (
|
|||||||
ETHERTYPE_LLDP = 0x88cc
|
ETHERTYPE_LLDP = 0x88cc
|
||||||
ETHERTYPE_LOGICRAFT = 0x8148
|
ETHERTYPE_LOGICRAFT = 0x8148
|
||||||
ETHERTYPE_LOOPBACK = 0x9000
|
ETHERTYPE_LOOPBACK = 0x9000
|
||||||
|
ETHERTYPE_MACSEC = 0x88e5
|
||||||
ETHERTYPE_MATRA = 0x807a
|
ETHERTYPE_MATRA = 0x807a
|
||||||
ETHERTYPE_MAX = 0xffff
|
ETHERTYPE_MAX = 0xffff
|
||||||
ETHERTYPE_MERIT = 0x807c
|
ETHERTYPE_MERIT = 0x807c
|
||||||
@@ -354,15 +423,16 @@ const (
|
|||||||
ETHERTYPE_NCD = 0x8149
|
ETHERTYPE_NCD = 0x8149
|
||||||
ETHERTYPE_NESTAR = 0x8006
|
ETHERTYPE_NESTAR = 0x8006
|
||||||
ETHERTYPE_NETBEUI = 0x8191
|
ETHERTYPE_NETBEUI = 0x8191
|
||||||
|
ETHERTYPE_NHRP = 0x2001
|
||||||
ETHERTYPE_NOVELL = 0x8138
|
ETHERTYPE_NOVELL = 0x8138
|
||||||
ETHERTYPE_NS = 0x600
|
ETHERTYPE_NS = 0x600
|
||||||
ETHERTYPE_NSAT = 0x601
|
ETHERTYPE_NSAT = 0x601
|
||||||
ETHERTYPE_NSCOMPAT = 0x807
|
ETHERTYPE_NSCOMPAT = 0x807
|
||||||
|
ETHERTYPE_NSH = 0x984f
|
||||||
ETHERTYPE_NTRAILER = 0x10
|
ETHERTYPE_NTRAILER = 0x10
|
||||||
ETHERTYPE_OS9 = 0x7007
|
ETHERTYPE_OS9 = 0x7007
|
||||||
ETHERTYPE_OS9NET = 0x7009
|
ETHERTYPE_OS9NET = 0x7009
|
||||||
ETHERTYPE_PACER = 0x80c6
|
ETHERTYPE_PACER = 0x80c6
|
||||||
ETHERTYPE_PAE = 0x888e
|
|
||||||
ETHERTYPE_PBB = 0x88e7
|
ETHERTYPE_PBB = 0x88e7
|
||||||
ETHERTYPE_PCS = 0x4242
|
ETHERTYPE_PCS = 0x4242
|
||||||
ETHERTYPE_PLANNING = 0x8044
|
ETHERTYPE_PLANNING = 0x8044
|
||||||
@@ -445,10 +515,11 @@ const (
|
|||||||
ETHER_VLAN_ENCAP_LEN = 0x4
|
ETHER_VLAN_ENCAP_LEN = 0x4
|
||||||
EVFILT_AIO = -0x3
|
EVFILT_AIO = -0x3
|
||||||
EVFILT_DEVICE = -0x8
|
EVFILT_DEVICE = -0x8
|
||||||
|
EVFILT_EXCEPT = -0x9
|
||||||
EVFILT_PROC = -0x5
|
EVFILT_PROC = -0x5
|
||||||
EVFILT_READ = -0x1
|
EVFILT_READ = -0x1
|
||||||
EVFILT_SIGNAL = -0x6
|
EVFILT_SIGNAL = -0x6
|
||||||
EVFILT_SYSCOUNT = 0x8
|
EVFILT_SYSCOUNT = 0x9
|
||||||
EVFILT_TIMER = -0x7
|
EVFILT_TIMER = -0x7
|
||||||
EVFILT_VNODE = -0x4
|
EVFILT_VNODE = -0x4
|
||||||
EVFILT_WRITE = -0x2
|
EVFILT_WRITE = -0x2
|
||||||
@@ -470,7 +541,7 @@ const (
|
|||||||
EV_FLAG1 = 0x2000
|
EV_FLAG1 = 0x2000
|
||||||
EV_ONESHOT = 0x10
|
EV_ONESHOT = 0x10
|
||||||
EV_RECEIPT = 0x40
|
EV_RECEIPT = 0x40
|
||||||
EV_SYSFLAGS = 0xf000
|
EV_SYSFLAGS = 0xf800
|
||||||
EXTA = 0x4b00
|
EXTA = 0x4b00
|
||||||
EXTB = 0x9600
|
EXTB = 0x9600
|
||||||
EXTPROC = 0x800
|
EXTPROC = 0x800
|
||||||
@@ -736,6 +807,7 @@ const (
|
|||||||
IFT_VOICEOVERCABLE = 0xc6
|
IFT_VOICEOVERCABLE = 0xc6
|
||||||
IFT_VOICEOVERFRAMERELAY = 0x99
|
IFT_VOICEOVERFRAMERELAY = 0x99
|
||||||
IFT_VOICEOVERIP = 0x68
|
IFT_VOICEOVERIP = 0x68
|
||||||
|
IFT_WIREGUARD = 0xfb
|
||||||
IFT_X213 = 0x5d
|
IFT_X213 = 0x5d
|
||||||
IFT_X25 = 0x5
|
IFT_X25 = 0x5
|
||||||
IFT_X25DDN = 0x4
|
IFT_X25DDN = 0x4
|
||||||
@@ -801,9 +873,11 @@ const (
|
|||||||
IPPROTO_RAW = 0xff
|
IPPROTO_RAW = 0xff
|
||||||
IPPROTO_ROUTING = 0x2b
|
IPPROTO_ROUTING = 0x2b
|
||||||
IPPROTO_RSVP = 0x2e
|
IPPROTO_RSVP = 0x2e
|
||||||
|
IPPROTO_SCTP = 0x84
|
||||||
IPPROTO_TCP = 0x6
|
IPPROTO_TCP = 0x6
|
||||||
IPPROTO_TP = 0x1d
|
IPPROTO_TP = 0x1d
|
||||||
IPPROTO_UDP = 0x11
|
IPPROTO_UDP = 0x11
|
||||||
|
IPPROTO_UDPLITE = 0x88
|
||||||
IPV6_AUTH_LEVEL = 0x35
|
IPV6_AUTH_LEVEL = 0x35
|
||||||
IPV6_AUTOFLOWLABEL = 0x3b
|
IPV6_AUTOFLOWLABEL = 0x3b
|
||||||
IPV6_CHECKSUM = 0x1a
|
IPV6_CHECKSUM = 0x1a
|
||||||
@@ -910,6 +984,9 @@ const (
|
|||||||
IP_TTL = 0x4
|
IP_TTL = 0x4
|
||||||
ISIG = 0x80
|
ISIG = 0x80
|
||||||
ISTRIP = 0x20
|
ISTRIP = 0x20
|
||||||
|
ITIMER_PROF = 0x2
|
||||||
|
ITIMER_REAL = 0x0
|
||||||
|
ITIMER_VIRTUAL = 0x1
|
||||||
IUCLC = 0x1000
|
IUCLC = 0x1000
|
||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x400
|
IXOFF = 0x400
|
||||||
@@ -981,6 +1058,19 @@ const (
|
|||||||
MNT_WAIT = 0x1
|
MNT_WAIT = 0x1
|
||||||
MNT_WANTRDWR = 0x2000000
|
MNT_WANTRDWR = 0x2000000
|
||||||
MNT_WXALLOWED = 0x800
|
MNT_WXALLOWED = 0x800
|
||||||
|
MOUNT_AFS = "afs"
|
||||||
|
MOUNT_CD9660 = "cd9660"
|
||||||
|
MOUNT_EXT2FS = "ext2fs"
|
||||||
|
MOUNT_FFS = "ffs"
|
||||||
|
MOUNT_FUSEFS = "fuse"
|
||||||
|
MOUNT_MFS = "mfs"
|
||||||
|
MOUNT_MSDOS = "msdos"
|
||||||
|
MOUNT_NCPFS = "ncpfs"
|
||||||
|
MOUNT_NFS = "nfs"
|
||||||
|
MOUNT_NTFS = "ntfs"
|
||||||
|
MOUNT_TMPFS = "tmpfs"
|
||||||
|
MOUNT_UDF = "udf"
|
||||||
|
MOUNT_UFS = "ffs"
|
||||||
MSG_BCAST = 0x100
|
MSG_BCAST = 0x100
|
||||||
MSG_CMSG_CLOEXEC = 0x800
|
MSG_CMSG_CLOEXEC = 0x800
|
||||||
MSG_CTRUNC = 0x20
|
MSG_CTRUNC = 0x20
|
||||||
@@ -993,6 +1083,7 @@ const (
|
|||||||
MSG_PEEK = 0x2
|
MSG_PEEK = 0x2
|
||||||
MSG_TRUNC = 0x10
|
MSG_TRUNC = 0x10
|
||||||
MSG_WAITALL = 0x40
|
MSG_WAITALL = 0x40
|
||||||
|
MSG_WAITFORONE = 0x1000
|
||||||
MS_ASYNC = 0x1
|
MS_ASYNC = 0x1
|
||||||
MS_INVALIDATE = 0x4
|
MS_INVALIDATE = 0x4
|
||||||
MS_SYNC = 0x2
|
MS_SYNC = 0x2
|
||||||
@@ -1001,7 +1092,8 @@ const (
|
|||||||
NET_RT_FLAGS = 0x2
|
NET_RT_FLAGS = 0x2
|
||||||
NET_RT_IFLIST = 0x3
|
NET_RT_IFLIST = 0x3
|
||||||
NET_RT_IFNAMES = 0x6
|
NET_RT_IFNAMES = 0x6
|
||||||
NET_RT_MAXID = 0x7
|
NET_RT_MAXID = 0x8
|
||||||
|
NET_RT_SOURCE = 0x7
|
||||||
NET_RT_STATS = 0x4
|
NET_RT_STATS = 0x4
|
||||||
NET_RT_TABLE = 0x5
|
NET_RT_TABLE = 0x5
|
||||||
NFDBITS = 0x20
|
NFDBITS = 0x20
|
||||||
@@ -1018,6 +1110,7 @@ const (
|
|||||||
NOTE_FORK = 0x40000000
|
NOTE_FORK = 0x40000000
|
||||||
NOTE_LINK = 0x10
|
NOTE_LINK = 0x10
|
||||||
NOTE_LOWAT = 0x1
|
NOTE_LOWAT = 0x1
|
||||||
|
NOTE_OOB = 0x4
|
||||||
NOTE_PCTRLMASK = 0xf0000000
|
NOTE_PCTRLMASK = 0xf0000000
|
||||||
NOTE_PDATAMASK = 0xfffff
|
NOTE_PDATAMASK = 0xfffff
|
||||||
NOTE_RENAME = 0x20
|
NOTE_RENAME = 0x20
|
||||||
@@ -1154,7 +1247,7 @@ const (
|
|||||||
RTM_PROPOSAL = 0x13
|
RTM_PROPOSAL = 0x13
|
||||||
RTM_REDIRECT = 0x6
|
RTM_REDIRECT = 0x6
|
||||||
RTM_RESOLVE = 0xb
|
RTM_RESOLVE = 0xb
|
||||||
RTM_RTTUNIT = 0xf4240
|
RTM_SOURCE = 0x16
|
||||||
RTM_VERSION = 0x5
|
RTM_VERSION = 0x5
|
||||||
RTV_EXPIRE = 0x4
|
RTV_EXPIRE = 0x4
|
||||||
RTV_HOPCOUNT = 0x2
|
RTV_HOPCOUNT = 0x2
|
||||||
@@ -1172,6 +1265,9 @@ const (
|
|||||||
RUSAGE_THREAD = 0x1
|
RUSAGE_THREAD = 0x1
|
||||||
SCM_RIGHTS = 0x1
|
SCM_RIGHTS = 0x1
|
||||||
SCM_TIMESTAMP = 0x4
|
SCM_TIMESTAMP = 0x4
|
||||||
|
SEEK_CUR = 0x1
|
||||||
|
SEEK_END = 0x2
|
||||||
|
SEEK_SET = 0x0
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@@ -1188,30 +1284,30 @@ const (
|
|||||||
SIOCBRDGDELS = 0x80606942
|
SIOCBRDGDELS = 0x80606942
|
||||||
SIOCBRDGFLUSH = 0x80606948
|
SIOCBRDGFLUSH = 0x80606948
|
||||||
SIOCBRDGFRL = 0x808c694e
|
SIOCBRDGFRL = 0x808c694e
|
||||||
SIOCBRDGGCACHE = 0xc0186941
|
SIOCBRDGGCACHE = 0xc0146941
|
||||||
SIOCBRDGGFD = 0xc0186952
|
SIOCBRDGGFD = 0xc0146952
|
||||||
SIOCBRDGGHT = 0xc0186951
|
SIOCBRDGGHT = 0xc0146951
|
||||||
SIOCBRDGGIFFLGS = 0xc060693e
|
SIOCBRDGGIFFLGS = 0xc060693e
|
||||||
SIOCBRDGGMA = 0xc0186953
|
SIOCBRDGGMA = 0xc0146953
|
||||||
SIOCBRDGGPARAM = 0xc0406958
|
SIOCBRDGGPARAM = 0xc0406958
|
||||||
SIOCBRDGGPRI = 0xc0186950
|
SIOCBRDGGPRI = 0xc0146950
|
||||||
SIOCBRDGGRL = 0xc030694f
|
SIOCBRDGGRL = 0xc030694f
|
||||||
SIOCBRDGGTO = 0xc0186946
|
SIOCBRDGGTO = 0xc0146946
|
||||||
SIOCBRDGIFS = 0xc0606942
|
SIOCBRDGIFS = 0xc0606942
|
||||||
SIOCBRDGRTS = 0xc0206943
|
SIOCBRDGRTS = 0xc0206943
|
||||||
SIOCBRDGSADDR = 0xc1286944
|
SIOCBRDGSADDR = 0xc1286944
|
||||||
SIOCBRDGSCACHE = 0x80186940
|
SIOCBRDGSCACHE = 0x80146940
|
||||||
SIOCBRDGSFD = 0x80186952
|
SIOCBRDGSFD = 0x80146952
|
||||||
SIOCBRDGSHT = 0x80186951
|
SIOCBRDGSHT = 0x80146951
|
||||||
SIOCBRDGSIFCOST = 0x80606955
|
SIOCBRDGSIFCOST = 0x80606955
|
||||||
SIOCBRDGSIFFLGS = 0x8060693f
|
SIOCBRDGSIFFLGS = 0x8060693f
|
||||||
SIOCBRDGSIFPRIO = 0x80606954
|
SIOCBRDGSIFPRIO = 0x80606954
|
||||||
SIOCBRDGSIFPROT = 0x8060694a
|
SIOCBRDGSIFPROT = 0x8060694a
|
||||||
SIOCBRDGSMA = 0x80186953
|
SIOCBRDGSMA = 0x80146953
|
||||||
SIOCBRDGSPRI = 0x80186950
|
SIOCBRDGSPRI = 0x80146950
|
||||||
SIOCBRDGSPROTO = 0x8018695a
|
SIOCBRDGSPROTO = 0x8014695a
|
||||||
SIOCBRDGSTO = 0x80186945
|
SIOCBRDGSTO = 0x80146945
|
||||||
SIOCBRDGSTXHC = 0x80186959
|
SIOCBRDGSTXHC = 0x80146959
|
||||||
SIOCDELLABEL = 0x80206997
|
SIOCDELLABEL = 0x80206997
|
||||||
SIOCDELMULTI = 0x80206932
|
SIOCDELMULTI = 0x80206932
|
||||||
SIOCDIFADDR = 0x80206919
|
SIOCDIFADDR = 0x80206919
|
||||||
@@ -1264,6 +1360,7 @@ const (
|
|||||||
SIOCGPWE3CTRLWORD = 0xc02069dc
|
SIOCGPWE3CTRLWORD = 0xc02069dc
|
||||||
SIOCGPWE3FAT = 0xc02069dd
|
SIOCGPWE3FAT = 0xc02069dd
|
||||||
SIOCGPWE3NEIGHBOR = 0xc21869de
|
SIOCGPWE3NEIGHBOR = 0xc21869de
|
||||||
|
SIOCGRXHPRIO = 0xc02069db
|
||||||
SIOCGSPPPPARAMS = 0xc0206994
|
SIOCGSPPPPARAMS = 0xc0206994
|
||||||
SIOCGTXHPRIO = 0xc02069c6
|
SIOCGTXHPRIO = 0xc02069c6
|
||||||
SIOCGUMBINFO = 0xc02069be
|
SIOCGUMBINFO = 0xc02069be
|
||||||
@@ -1310,17 +1407,13 @@ const (
|
|||||||
SIOCSPWE3CTRLWORD = 0x802069dc
|
SIOCSPWE3CTRLWORD = 0x802069dc
|
||||||
SIOCSPWE3FAT = 0x802069dd
|
SIOCSPWE3FAT = 0x802069dd
|
||||||
SIOCSPWE3NEIGHBOR = 0x821869de
|
SIOCSPWE3NEIGHBOR = 0x821869de
|
||||||
|
SIOCSRXHPRIO = 0x802069db
|
||||||
SIOCSSPPPPARAMS = 0x80206993
|
SIOCSSPPPPARAMS = 0x80206993
|
||||||
SIOCSTXHPRIO = 0x802069c5
|
SIOCSTXHPRIO = 0x802069c5
|
||||||
SIOCSUMBPARAM = 0x802069bf
|
SIOCSUMBPARAM = 0x802069bf
|
||||||
SIOCSVH = 0xc02069f5
|
SIOCSVH = 0xc02069f5
|
||||||
SIOCSVNETFLOWID = 0x802069c3
|
SIOCSVNETFLOWID = 0x802069c3
|
||||||
SIOCSVNETID = 0x802069a6
|
SIOCSVNETID = 0x802069a6
|
||||||
SIOCSWGDPID = 0xc018695b
|
|
||||||
SIOCSWGMAXFLOW = 0xc0186960
|
|
||||||
SIOCSWGMAXGROUP = 0xc018695d
|
|
||||||
SIOCSWSDPID = 0x8018695c
|
|
||||||
SIOCSWSPORTNO = 0xc060695f
|
|
||||||
SOCK_CLOEXEC = 0x8000
|
SOCK_CLOEXEC = 0x8000
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
SOCK_DNS = 0x1000
|
SOCK_DNS = 0x1000
|
||||||
@@ -1335,6 +1428,7 @@ const (
|
|||||||
SO_BINDANY = 0x1000
|
SO_BINDANY = 0x1000
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
|
SO_DOMAIN = 0x1024
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
SO_ERROR = 0x1007
|
SO_ERROR = 0x1007
|
||||||
SO_KEEPALIVE = 0x8
|
SO_KEEPALIVE = 0x8
|
||||||
@@ -1342,6 +1436,7 @@ const (
|
|||||||
SO_NETPROC = 0x1020
|
SO_NETPROC = 0x1020
|
||||||
SO_OOBINLINE = 0x100
|
SO_OOBINLINE = 0x100
|
||||||
SO_PEERCRED = 0x1022
|
SO_PEERCRED = 0x1022
|
||||||
|
SO_PROTOCOL = 0x1025
|
||||||
SO_RCVBUF = 0x1002
|
SO_RCVBUF = 0x1002
|
||||||
SO_RCVLOWAT = 0x1004
|
SO_RCVLOWAT = 0x1004
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
@@ -1391,7 +1486,18 @@ const (
|
|||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
TCOOFF = 0x1
|
TCOOFF = 0x1
|
||||||
TCOON = 0x2
|
TCOON = 0x2
|
||||||
TCP_MAXBURST = 0x4
|
TCPOPT_EOL = 0x0
|
||||||
|
TCPOPT_MAXSEG = 0x2
|
||||||
|
TCPOPT_NOP = 0x1
|
||||||
|
TCPOPT_SACK = 0x5
|
||||||
|
TCPOPT_SACK_HDR = 0x1010500
|
||||||
|
TCPOPT_SACK_PERMITTED = 0x4
|
||||||
|
TCPOPT_SACK_PERMIT_HDR = 0x1010402
|
||||||
|
TCPOPT_SIGNATURE = 0x13
|
||||||
|
TCPOPT_TIMESTAMP = 0x8
|
||||||
|
TCPOPT_TSTAMP_HDR = 0x101080a
|
||||||
|
TCPOPT_WINDOW = 0x3
|
||||||
|
TCP_INFO = 0x9
|
||||||
TCP_MAXSEG = 0x2
|
TCP_MAXSEG = 0x2
|
||||||
TCP_MAXWIN = 0xffff
|
TCP_MAXWIN = 0xffff
|
||||||
TCP_MAX_SACK = 0x3
|
TCP_MAX_SACK = 0x3
|
||||||
@@ -1400,6 +1506,7 @@ const (
|
|||||||
TCP_MSS = 0x200
|
TCP_MSS = 0x200
|
||||||
TCP_NODELAY = 0x1
|
TCP_NODELAY = 0x1
|
||||||
TCP_NOPUSH = 0x10
|
TCP_NOPUSH = 0x10
|
||||||
|
TCP_SACKHOLE_LIMIT = 0x80
|
||||||
TCP_SACK_ENABLE = 0x8
|
TCP_SACK_ENABLE = 0x8
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
TIMER_ABSTIME = 0x1
|
TIMER_ABSTIME = 0x1
|
||||||
@@ -1768,7 +1875,7 @@ var signalList = [...]struct {
|
|||||||
{3, "SIGQUIT", "quit"},
|
{3, "SIGQUIT", "quit"},
|
||||||
{4, "SIGILL", "illegal instruction"},
|
{4, "SIGILL", "illegal instruction"},
|
||||||
{5, "SIGTRAP", "trace/BPT trap"},
|
{5, "SIGTRAP", "trace/BPT trap"},
|
||||||
{6, "SIGABRT", "abort trap"},
|
{6, "SIGIOT", "abort trap"},
|
||||||
{7, "SIGEMT", "EMT trap"},
|
{7, "SIGEMT", "EMT trap"},
|
||||||
{8, "SIGFPE", "floating point exception"},
|
{8, "SIGFPE", "floating point exception"},
|
||||||
{9, "SIGKILL", "killed"},
|
{9, "SIGKILL", "killed"},
|
||||||
@@ -1795,4 +1902,5 @@ var signalList = [...]struct {
|
|||||||
{30, "SIGUSR1", "user defined signal 1"},
|
{30, "SIGUSR1", "user defined signal 1"},
|
||||||
{31, "SIGUSR2", "user defined signal 2"},
|
{31, "SIGUSR2", "user defined signal 2"},
|
||||||
{32, "SIGTHR", "thread AST"},
|
{32, "SIGTHR", "thread AST"},
|
||||||
|
{28672, "SIGSTKSZ", "unknown signal"},
|
||||||
}
|
}
|
||||||
|
|||||||
95
vendor/golang.org/x/sys/unix/zerrors_openbsd_mips64.go
generated
vendored
95
vendor/golang.org/x/sys/unix/zerrors_openbsd_mips64.go
generated
vendored
@@ -112,6 +112,12 @@ const (
|
|||||||
BPF_FILDROP_CAPTURE = 0x1
|
BPF_FILDROP_CAPTURE = 0x1
|
||||||
BPF_FILDROP_DROP = 0x2
|
BPF_FILDROP_DROP = 0x2
|
||||||
BPF_FILDROP_PASS = 0x0
|
BPF_FILDROP_PASS = 0x0
|
||||||
|
BPF_F_DIR_IN = 0x10
|
||||||
|
BPF_F_DIR_MASK = 0x30
|
||||||
|
BPF_F_DIR_OUT = 0x20
|
||||||
|
BPF_F_DIR_SHIFT = 0x4
|
||||||
|
BPF_F_FLOWID = 0x8
|
||||||
|
BPF_F_PRI_MASK = 0x7
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@@ -140,6 +146,7 @@ const (
|
|||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_RELEASE = 0x30bb6
|
BPF_RELEASE = 0x30bb6
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
|
BPF_RND = 0xc0
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
@@ -301,6 +308,8 @@ const (
|
|||||||
EMUL_ENABLED = 0x1
|
EMUL_ENABLED = 0x1
|
||||||
EMUL_NATIVE = 0x2
|
EMUL_NATIVE = 0x2
|
||||||
ENDRUNDISC = 0x9
|
ENDRUNDISC = 0x9
|
||||||
|
ETH64_8021_RSVD_MASK = 0xfffffffffff0
|
||||||
|
ETH64_8021_RSVD_PREFIX = 0x180c2000000
|
||||||
ETHERMIN = 0x2e
|
ETHERMIN = 0x2e
|
||||||
ETHERMTU = 0x5dc
|
ETHERMTU = 0x5dc
|
||||||
ETHERTYPE_8023 = 0x4
|
ETHERTYPE_8023 = 0x4
|
||||||
@@ -353,6 +362,7 @@ const (
|
|||||||
ETHERTYPE_DN = 0x6003
|
ETHERTYPE_DN = 0x6003
|
||||||
ETHERTYPE_DOGFIGHT = 0x1989
|
ETHERTYPE_DOGFIGHT = 0x1989
|
||||||
ETHERTYPE_DSMD = 0x8039
|
ETHERTYPE_DSMD = 0x8039
|
||||||
|
ETHERTYPE_EAPOL = 0x888e
|
||||||
ETHERTYPE_ECMA = 0x803
|
ETHERTYPE_ECMA = 0x803
|
||||||
ETHERTYPE_ENCRYPT = 0x803d
|
ETHERTYPE_ENCRYPT = 0x803d
|
||||||
ETHERTYPE_ES = 0x805d
|
ETHERTYPE_ES = 0x805d
|
||||||
@@ -413,15 +423,16 @@ const (
|
|||||||
ETHERTYPE_NCD = 0x8149
|
ETHERTYPE_NCD = 0x8149
|
||||||
ETHERTYPE_NESTAR = 0x8006
|
ETHERTYPE_NESTAR = 0x8006
|
||||||
ETHERTYPE_NETBEUI = 0x8191
|
ETHERTYPE_NETBEUI = 0x8191
|
||||||
|
ETHERTYPE_NHRP = 0x2001
|
||||||
ETHERTYPE_NOVELL = 0x8138
|
ETHERTYPE_NOVELL = 0x8138
|
||||||
ETHERTYPE_NS = 0x600
|
ETHERTYPE_NS = 0x600
|
||||||
ETHERTYPE_NSAT = 0x601
|
ETHERTYPE_NSAT = 0x601
|
||||||
ETHERTYPE_NSCOMPAT = 0x807
|
ETHERTYPE_NSCOMPAT = 0x807
|
||||||
|
ETHERTYPE_NSH = 0x984f
|
||||||
ETHERTYPE_NTRAILER = 0x10
|
ETHERTYPE_NTRAILER = 0x10
|
||||||
ETHERTYPE_OS9 = 0x7007
|
ETHERTYPE_OS9 = 0x7007
|
||||||
ETHERTYPE_OS9NET = 0x7009
|
ETHERTYPE_OS9NET = 0x7009
|
||||||
ETHERTYPE_PACER = 0x80c6
|
ETHERTYPE_PACER = 0x80c6
|
||||||
ETHERTYPE_PAE = 0x888e
|
|
||||||
ETHERTYPE_PBB = 0x88e7
|
ETHERTYPE_PBB = 0x88e7
|
||||||
ETHERTYPE_PCS = 0x4242
|
ETHERTYPE_PCS = 0x4242
|
||||||
ETHERTYPE_PLANNING = 0x8044
|
ETHERTYPE_PLANNING = 0x8044
|
||||||
@@ -504,10 +515,11 @@ const (
|
|||||||
ETHER_VLAN_ENCAP_LEN = 0x4
|
ETHER_VLAN_ENCAP_LEN = 0x4
|
||||||
EVFILT_AIO = -0x3
|
EVFILT_AIO = -0x3
|
||||||
EVFILT_DEVICE = -0x8
|
EVFILT_DEVICE = -0x8
|
||||||
|
EVFILT_EXCEPT = -0x9
|
||||||
EVFILT_PROC = -0x5
|
EVFILT_PROC = -0x5
|
||||||
EVFILT_READ = -0x1
|
EVFILT_READ = -0x1
|
||||||
EVFILT_SIGNAL = -0x6
|
EVFILT_SIGNAL = -0x6
|
||||||
EVFILT_SYSCOUNT = 0x8
|
EVFILT_SYSCOUNT = 0x9
|
||||||
EVFILT_TIMER = -0x7
|
EVFILT_TIMER = -0x7
|
||||||
EVFILT_VNODE = -0x4
|
EVFILT_VNODE = -0x4
|
||||||
EVFILT_WRITE = -0x2
|
EVFILT_WRITE = -0x2
|
||||||
@@ -529,7 +541,7 @@ const (
|
|||||||
EV_FLAG1 = 0x2000
|
EV_FLAG1 = 0x2000
|
||||||
EV_ONESHOT = 0x10
|
EV_ONESHOT = 0x10
|
||||||
EV_RECEIPT = 0x40
|
EV_RECEIPT = 0x40
|
||||||
EV_SYSFLAGS = 0xf000
|
EV_SYSFLAGS = 0xf800
|
||||||
EXTA = 0x4b00
|
EXTA = 0x4b00
|
||||||
EXTB = 0x9600
|
EXTB = 0x9600
|
||||||
EXTPROC = 0x800
|
EXTPROC = 0x800
|
||||||
@@ -795,6 +807,7 @@ const (
|
|||||||
IFT_VOICEOVERCABLE = 0xc6
|
IFT_VOICEOVERCABLE = 0xc6
|
||||||
IFT_VOICEOVERFRAMERELAY = 0x99
|
IFT_VOICEOVERFRAMERELAY = 0x99
|
||||||
IFT_VOICEOVERIP = 0x68
|
IFT_VOICEOVERIP = 0x68
|
||||||
|
IFT_WIREGUARD = 0xfb
|
||||||
IFT_X213 = 0x5d
|
IFT_X213 = 0x5d
|
||||||
IFT_X25 = 0x5
|
IFT_X25 = 0x5
|
||||||
IFT_X25DDN = 0x4
|
IFT_X25DDN = 0x4
|
||||||
@@ -860,6 +873,7 @@ const (
|
|||||||
IPPROTO_RAW = 0xff
|
IPPROTO_RAW = 0xff
|
||||||
IPPROTO_ROUTING = 0x2b
|
IPPROTO_ROUTING = 0x2b
|
||||||
IPPROTO_RSVP = 0x2e
|
IPPROTO_RSVP = 0x2e
|
||||||
|
IPPROTO_SCTP = 0x84
|
||||||
IPPROTO_TCP = 0x6
|
IPPROTO_TCP = 0x6
|
||||||
IPPROTO_TP = 0x1d
|
IPPROTO_TP = 0x1d
|
||||||
IPPROTO_UDP = 0x11
|
IPPROTO_UDP = 0x11
|
||||||
@@ -970,6 +984,9 @@ const (
|
|||||||
IP_TTL = 0x4
|
IP_TTL = 0x4
|
||||||
ISIG = 0x80
|
ISIG = 0x80
|
||||||
ISTRIP = 0x20
|
ISTRIP = 0x20
|
||||||
|
ITIMER_PROF = 0x2
|
||||||
|
ITIMER_REAL = 0x0
|
||||||
|
ITIMER_VIRTUAL = 0x1
|
||||||
IUCLC = 0x1000
|
IUCLC = 0x1000
|
||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x400
|
IXOFF = 0x400
|
||||||
@@ -1041,6 +1058,19 @@ const (
|
|||||||
MNT_WAIT = 0x1
|
MNT_WAIT = 0x1
|
||||||
MNT_WANTRDWR = 0x2000000
|
MNT_WANTRDWR = 0x2000000
|
||||||
MNT_WXALLOWED = 0x800
|
MNT_WXALLOWED = 0x800
|
||||||
|
MOUNT_AFS = "afs"
|
||||||
|
MOUNT_CD9660 = "cd9660"
|
||||||
|
MOUNT_EXT2FS = "ext2fs"
|
||||||
|
MOUNT_FFS = "ffs"
|
||||||
|
MOUNT_FUSEFS = "fuse"
|
||||||
|
MOUNT_MFS = "mfs"
|
||||||
|
MOUNT_MSDOS = "msdos"
|
||||||
|
MOUNT_NCPFS = "ncpfs"
|
||||||
|
MOUNT_NFS = "nfs"
|
||||||
|
MOUNT_NTFS = "ntfs"
|
||||||
|
MOUNT_TMPFS = "tmpfs"
|
||||||
|
MOUNT_UDF = "udf"
|
||||||
|
MOUNT_UFS = "ffs"
|
||||||
MSG_BCAST = 0x100
|
MSG_BCAST = 0x100
|
||||||
MSG_CMSG_CLOEXEC = 0x800
|
MSG_CMSG_CLOEXEC = 0x800
|
||||||
MSG_CTRUNC = 0x20
|
MSG_CTRUNC = 0x20
|
||||||
@@ -1053,6 +1083,7 @@ const (
|
|||||||
MSG_PEEK = 0x2
|
MSG_PEEK = 0x2
|
||||||
MSG_TRUNC = 0x10
|
MSG_TRUNC = 0x10
|
||||||
MSG_WAITALL = 0x40
|
MSG_WAITALL = 0x40
|
||||||
|
MSG_WAITFORONE = 0x1000
|
||||||
MS_ASYNC = 0x1
|
MS_ASYNC = 0x1
|
||||||
MS_INVALIDATE = 0x4
|
MS_INVALIDATE = 0x4
|
||||||
MS_SYNC = 0x2
|
MS_SYNC = 0x2
|
||||||
@@ -1061,7 +1092,8 @@ const (
|
|||||||
NET_RT_FLAGS = 0x2
|
NET_RT_FLAGS = 0x2
|
||||||
NET_RT_IFLIST = 0x3
|
NET_RT_IFLIST = 0x3
|
||||||
NET_RT_IFNAMES = 0x6
|
NET_RT_IFNAMES = 0x6
|
||||||
NET_RT_MAXID = 0x7
|
NET_RT_MAXID = 0x8
|
||||||
|
NET_RT_SOURCE = 0x7
|
||||||
NET_RT_STATS = 0x4
|
NET_RT_STATS = 0x4
|
||||||
NET_RT_TABLE = 0x5
|
NET_RT_TABLE = 0x5
|
||||||
NFDBITS = 0x20
|
NFDBITS = 0x20
|
||||||
@@ -1078,6 +1110,7 @@ const (
|
|||||||
NOTE_FORK = 0x40000000
|
NOTE_FORK = 0x40000000
|
||||||
NOTE_LINK = 0x10
|
NOTE_LINK = 0x10
|
||||||
NOTE_LOWAT = 0x1
|
NOTE_LOWAT = 0x1
|
||||||
|
NOTE_OOB = 0x4
|
||||||
NOTE_PCTRLMASK = 0xf0000000
|
NOTE_PCTRLMASK = 0xf0000000
|
||||||
NOTE_PDATAMASK = 0xfffff
|
NOTE_PDATAMASK = 0xfffff
|
||||||
NOTE_RENAME = 0x20
|
NOTE_RENAME = 0x20
|
||||||
@@ -1214,7 +1247,7 @@ const (
|
|||||||
RTM_PROPOSAL = 0x13
|
RTM_PROPOSAL = 0x13
|
||||||
RTM_REDIRECT = 0x6
|
RTM_REDIRECT = 0x6
|
||||||
RTM_RESOLVE = 0xb
|
RTM_RESOLVE = 0xb
|
||||||
RTM_RTTUNIT = 0xf4240
|
RTM_SOURCE = 0x16
|
||||||
RTM_VERSION = 0x5
|
RTM_VERSION = 0x5
|
||||||
RTV_EXPIRE = 0x4
|
RTV_EXPIRE = 0x4
|
||||||
RTV_HOPCOUNT = 0x2
|
RTV_HOPCOUNT = 0x2
|
||||||
@@ -1232,6 +1265,9 @@ const (
|
|||||||
RUSAGE_THREAD = 0x1
|
RUSAGE_THREAD = 0x1
|
||||||
SCM_RIGHTS = 0x1
|
SCM_RIGHTS = 0x1
|
||||||
SCM_TIMESTAMP = 0x4
|
SCM_TIMESTAMP = 0x4
|
||||||
|
SEEK_CUR = 0x1
|
||||||
|
SEEK_END = 0x2
|
||||||
|
SEEK_SET = 0x0
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@@ -1248,30 +1284,30 @@ const (
|
|||||||
SIOCBRDGDELS = 0x80606942
|
SIOCBRDGDELS = 0x80606942
|
||||||
SIOCBRDGFLUSH = 0x80606948
|
SIOCBRDGFLUSH = 0x80606948
|
||||||
SIOCBRDGFRL = 0x808c694e
|
SIOCBRDGFRL = 0x808c694e
|
||||||
SIOCBRDGGCACHE = 0xc0186941
|
SIOCBRDGGCACHE = 0xc0146941
|
||||||
SIOCBRDGGFD = 0xc0186952
|
SIOCBRDGGFD = 0xc0146952
|
||||||
SIOCBRDGGHT = 0xc0186951
|
SIOCBRDGGHT = 0xc0146951
|
||||||
SIOCBRDGGIFFLGS = 0xc060693e
|
SIOCBRDGGIFFLGS = 0xc060693e
|
||||||
SIOCBRDGGMA = 0xc0186953
|
SIOCBRDGGMA = 0xc0146953
|
||||||
SIOCBRDGGPARAM = 0xc0406958
|
SIOCBRDGGPARAM = 0xc0406958
|
||||||
SIOCBRDGGPRI = 0xc0186950
|
SIOCBRDGGPRI = 0xc0146950
|
||||||
SIOCBRDGGRL = 0xc030694f
|
SIOCBRDGGRL = 0xc030694f
|
||||||
SIOCBRDGGTO = 0xc0186946
|
SIOCBRDGGTO = 0xc0146946
|
||||||
SIOCBRDGIFS = 0xc0606942
|
SIOCBRDGIFS = 0xc0606942
|
||||||
SIOCBRDGRTS = 0xc0206943
|
SIOCBRDGRTS = 0xc0206943
|
||||||
SIOCBRDGSADDR = 0xc1286944
|
SIOCBRDGSADDR = 0xc1286944
|
||||||
SIOCBRDGSCACHE = 0x80186940
|
SIOCBRDGSCACHE = 0x80146940
|
||||||
SIOCBRDGSFD = 0x80186952
|
SIOCBRDGSFD = 0x80146952
|
||||||
SIOCBRDGSHT = 0x80186951
|
SIOCBRDGSHT = 0x80146951
|
||||||
SIOCBRDGSIFCOST = 0x80606955
|
SIOCBRDGSIFCOST = 0x80606955
|
||||||
SIOCBRDGSIFFLGS = 0x8060693f
|
SIOCBRDGSIFFLGS = 0x8060693f
|
||||||
SIOCBRDGSIFPRIO = 0x80606954
|
SIOCBRDGSIFPRIO = 0x80606954
|
||||||
SIOCBRDGSIFPROT = 0x8060694a
|
SIOCBRDGSIFPROT = 0x8060694a
|
||||||
SIOCBRDGSMA = 0x80186953
|
SIOCBRDGSMA = 0x80146953
|
||||||
SIOCBRDGSPRI = 0x80186950
|
SIOCBRDGSPRI = 0x80146950
|
||||||
SIOCBRDGSPROTO = 0x8018695a
|
SIOCBRDGSPROTO = 0x8014695a
|
||||||
SIOCBRDGSTO = 0x80186945
|
SIOCBRDGSTO = 0x80146945
|
||||||
SIOCBRDGSTXHC = 0x80186959
|
SIOCBRDGSTXHC = 0x80146959
|
||||||
SIOCDELLABEL = 0x80206997
|
SIOCDELLABEL = 0x80206997
|
||||||
SIOCDELMULTI = 0x80206932
|
SIOCDELMULTI = 0x80206932
|
||||||
SIOCDIFADDR = 0x80206919
|
SIOCDIFADDR = 0x80206919
|
||||||
@@ -1378,11 +1414,6 @@ const (
|
|||||||
SIOCSVH = 0xc02069f5
|
SIOCSVH = 0xc02069f5
|
||||||
SIOCSVNETFLOWID = 0x802069c3
|
SIOCSVNETFLOWID = 0x802069c3
|
||||||
SIOCSVNETID = 0x802069a6
|
SIOCSVNETID = 0x802069a6
|
||||||
SIOCSWGDPID = 0xc018695b
|
|
||||||
SIOCSWGMAXFLOW = 0xc0186960
|
|
||||||
SIOCSWGMAXGROUP = 0xc018695d
|
|
||||||
SIOCSWSDPID = 0x8018695c
|
|
||||||
SIOCSWSPORTNO = 0xc060695f
|
|
||||||
SOCK_CLOEXEC = 0x8000
|
SOCK_CLOEXEC = 0x8000
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
SOCK_DNS = 0x1000
|
SOCK_DNS = 0x1000
|
||||||
@@ -1455,7 +1486,18 @@ const (
|
|||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
TCOOFF = 0x1
|
TCOOFF = 0x1
|
||||||
TCOON = 0x2
|
TCOON = 0x2
|
||||||
TCP_MAXBURST = 0x4
|
TCPOPT_EOL = 0x0
|
||||||
|
TCPOPT_MAXSEG = 0x2
|
||||||
|
TCPOPT_NOP = 0x1
|
||||||
|
TCPOPT_SACK = 0x5
|
||||||
|
TCPOPT_SACK_HDR = 0x1010500
|
||||||
|
TCPOPT_SACK_PERMITTED = 0x4
|
||||||
|
TCPOPT_SACK_PERMIT_HDR = 0x1010402
|
||||||
|
TCPOPT_SIGNATURE = 0x13
|
||||||
|
TCPOPT_TIMESTAMP = 0x8
|
||||||
|
TCPOPT_TSTAMP_HDR = 0x101080a
|
||||||
|
TCPOPT_WINDOW = 0x3
|
||||||
|
TCP_INFO = 0x9
|
||||||
TCP_MAXSEG = 0x2
|
TCP_MAXSEG = 0x2
|
||||||
TCP_MAXWIN = 0xffff
|
TCP_MAXWIN = 0xffff
|
||||||
TCP_MAX_SACK = 0x3
|
TCP_MAX_SACK = 0x3
|
||||||
@@ -1833,7 +1875,7 @@ var signalList = [...]struct {
|
|||||||
{3, "SIGQUIT", "quit"},
|
{3, "SIGQUIT", "quit"},
|
||||||
{4, "SIGILL", "illegal instruction"},
|
{4, "SIGILL", "illegal instruction"},
|
||||||
{5, "SIGTRAP", "trace/BPT trap"},
|
{5, "SIGTRAP", "trace/BPT trap"},
|
||||||
{6, "SIGABRT", "abort trap"},
|
{6, "SIGIOT", "abort trap"},
|
||||||
{7, "SIGEMT", "EMT trap"},
|
{7, "SIGEMT", "EMT trap"},
|
||||||
{8, "SIGFPE", "floating point exception"},
|
{8, "SIGFPE", "floating point exception"},
|
||||||
{9, "SIGKILL", "killed"},
|
{9, "SIGKILL", "killed"},
|
||||||
@@ -1860,4 +1902,5 @@ var signalList = [...]struct {
|
|||||||
{30, "SIGUSR1", "user defined signal 1"},
|
{30, "SIGUSR1", "user defined signal 1"},
|
||||||
{31, "SIGUSR2", "user defined signal 2"},
|
{31, "SIGUSR2", "user defined signal 2"},
|
||||||
{32, "SIGTHR", "thread AST"},
|
{32, "SIGTHR", "thread AST"},
|
||||||
|
{81920, "SIGSTKSZ", "unknown signal"},
|
||||||
}
|
}
|
||||||
|
|||||||
8
vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go
generated
vendored
8
vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go
generated
vendored
@@ -15,12 +15,12 @@ type PtraceRegsArm struct {
|
|||||||
|
|
||||||
// PtraceGetRegsArm fetches the registers used by arm binaries.
|
// PtraceGetRegsArm fetches the registers used by arm binaries.
|
||||||
func PtraceGetRegsArm(pid int, regsout *PtraceRegsArm) error {
|
func PtraceGetRegsArm(pid int, regsout *PtraceRegsArm) error {
|
||||||
return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
|
||||||
}
|
}
|
||||||
|
|
||||||
// PtraceSetRegsArm sets the registers used by arm binaries.
|
// PtraceSetRegsArm sets the registers used by arm binaries.
|
||||||
func PtraceSetRegsArm(pid int, regs *PtraceRegsArm) error {
|
func PtraceSetRegsArm(pid int, regs *PtraceRegsArm) error {
|
||||||
return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
|
||||||
}
|
}
|
||||||
|
|
||||||
// PtraceRegsArm64 is the registers used by arm64 binaries.
|
// PtraceRegsArm64 is the registers used by arm64 binaries.
|
||||||
@@ -33,10 +33,10 @@ type PtraceRegsArm64 struct {
|
|||||||
|
|
||||||
// PtraceGetRegsArm64 fetches the registers used by arm64 binaries.
|
// PtraceGetRegsArm64 fetches the registers used by arm64 binaries.
|
||||||
func PtraceGetRegsArm64(pid int, regsout *PtraceRegsArm64) error {
|
func PtraceGetRegsArm64(pid int, regsout *PtraceRegsArm64) error {
|
||||||
return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
|
||||||
}
|
}
|
||||||
|
|
||||||
// PtraceSetRegsArm64 sets the registers used by arm64 binaries.
|
// PtraceSetRegsArm64 sets the registers used by arm64 binaries.
|
||||||
func PtraceSetRegsArm64(pid int, regs *PtraceRegsArm64) error {
|
func PtraceSetRegsArm64(pid int, regs *PtraceRegsArm64) error {
|
||||||
return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
|
||||||
}
|
}
|
||||||
|
|||||||
4
vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go
generated
vendored
@@ -7,11 +7,11 @@ import "unsafe"
|
|||||||
// PtraceGetRegSetArm64 fetches the registers used by arm64 binaries.
|
// PtraceGetRegSetArm64 fetches the registers used by arm64 binaries.
|
||||||
func PtraceGetRegSetArm64(pid, addr int, regsout *PtraceRegsArm64) error {
|
func PtraceGetRegSetArm64(pid, addr int, regsout *PtraceRegsArm64) error {
|
||||||
iovec := Iovec{(*byte)(unsafe.Pointer(regsout)), uint64(unsafe.Sizeof(*regsout))}
|
iovec := Iovec{(*byte)(unsafe.Pointer(regsout)), uint64(unsafe.Sizeof(*regsout))}
|
||||||
return ptrace(PTRACE_GETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec)))
|
return ptracePtr(PTRACE_GETREGSET, pid, uintptr(addr), unsafe.Pointer(&iovec))
|
||||||
}
|
}
|
||||||
|
|
||||||
// PtraceSetRegSetArm64 sets the registers used by arm64 binaries.
|
// PtraceSetRegSetArm64 sets the registers used by arm64 binaries.
|
||||||
func PtraceSetRegSetArm64(pid, addr int, regs *PtraceRegsArm64) error {
|
func PtraceSetRegSetArm64(pid, addr int, regs *PtraceRegsArm64) error {
|
||||||
iovec := Iovec{(*byte)(unsafe.Pointer(regs)), uint64(unsafe.Sizeof(*regs))}
|
iovec := Iovec{(*byte)(unsafe.Pointer(regs)), uint64(unsafe.Sizeof(*regs))}
|
||||||
return ptrace(PTRACE_SETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec)))
|
return ptracePtr(PTRACE_SETREGSET, pid, uintptr(addr), unsafe.Pointer(&iovec))
|
||||||
}
|
}
|
||||||
|
|||||||
8
vendor/golang.org/x/sys/unix/zptrace_mipsnn_linux.go
generated
vendored
8
vendor/golang.org/x/sys/unix/zptrace_mipsnn_linux.go
generated
vendored
@@ -21,12 +21,12 @@ type PtraceRegsMips struct {
|
|||||||
|
|
||||||
// PtraceGetRegsMips fetches the registers used by mips binaries.
|
// PtraceGetRegsMips fetches the registers used by mips binaries.
|
||||||
func PtraceGetRegsMips(pid int, regsout *PtraceRegsMips) error {
|
func PtraceGetRegsMips(pid int, regsout *PtraceRegsMips) error {
|
||||||
return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
|
||||||
}
|
}
|
||||||
|
|
||||||
// PtraceSetRegsMips sets the registers used by mips binaries.
|
// PtraceSetRegsMips sets the registers used by mips binaries.
|
||||||
func PtraceSetRegsMips(pid int, regs *PtraceRegsMips) error {
|
func PtraceSetRegsMips(pid int, regs *PtraceRegsMips) error {
|
||||||
return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
|
||||||
}
|
}
|
||||||
|
|
||||||
// PtraceRegsMips64 is the registers used by mips64 binaries.
|
// PtraceRegsMips64 is the registers used by mips64 binaries.
|
||||||
@@ -42,10 +42,10 @@ type PtraceRegsMips64 struct {
|
|||||||
|
|
||||||
// PtraceGetRegsMips64 fetches the registers used by mips64 binaries.
|
// PtraceGetRegsMips64 fetches the registers used by mips64 binaries.
|
||||||
func PtraceGetRegsMips64(pid int, regsout *PtraceRegsMips64) error {
|
func PtraceGetRegsMips64(pid int, regsout *PtraceRegsMips64) error {
|
||||||
return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
|
||||||
}
|
}
|
||||||
|
|
||||||
// PtraceSetRegsMips64 sets the registers used by mips64 binaries.
|
// PtraceSetRegsMips64 sets the registers used by mips64 binaries.
|
||||||
func PtraceSetRegsMips64(pid int, regs *PtraceRegsMips64) error {
|
func PtraceSetRegsMips64(pid int, regs *PtraceRegsMips64) error {
|
||||||
return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
|
||||||
}
|
}
|
||||||
|
|||||||
8
vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go
generated
vendored
8
vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go
generated
vendored
@@ -21,12 +21,12 @@ type PtraceRegsMipsle struct {
|
|||||||
|
|
||||||
// PtraceGetRegsMipsle fetches the registers used by mipsle binaries.
|
// PtraceGetRegsMipsle fetches the registers used by mipsle binaries.
|
||||||
func PtraceGetRegsMipsle(pid int, regsout *PtraceRegsMipsle) error {
|
func PtraceGetRegsMipsle(pid int, regsout *PtraceRegsMipsle) error {
|
||||||
return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
|
||||||
}
|
}
|
||||||
|
|
||||||
// PtraceSetRegsMipsle sets the registers used by mipsle binaries.
|
// PtraceSetRegsMipsle sets the registers used by mipsle binaries.
|
||||||
func PtraceSetRegsMipsle(pid int, regs *PtraceRegsMipsle) error {
|
func PtraceSetRegsMipsle(pid int, regs *PtraceRegsMipsle) error {
|
||||||
return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
|
||||||
}
|
}
|
||||||
|
|
||||||
// PtraceRegsMips64le is the registers used by mips64le binaries.
|
// PtraceRegsMips64le is the registers used by mips64le binaries.
|
||||||
@@ -42,10 +42,10 @@ type PtraceRegsMips64le struct {
|
|||||||
|
|
||||||
// PtraceGetRegsMips64le fetches the registers used by mips64le binaries.
|
// PtraceGetRegsMips64le fetches the registers used by mips64le binaries.
|
||||||
func PtraceGetRegsMips64le(pid int, regsout *PtraceRegsMips64le) error {
|
func PtraceGetRegsMips64le(pid int, regsout *PtraceRegsMips64le) error {
|
||||||
return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
|
||||||
}
|
}
|
||||||
|
|
||||||
// PtraceSetRegsMips64le sets the registers used by mips64le binaries.
|
// PtraceSetRegsMips64le sets the registers used by mips64le binaries.
|
||||||
func PtraceSetRegsMips64le(pid int, regs *PtraceRegsMips64le) error {
|
func PtraceSetRegsMips64le(pid int, regs *PtraceRegsMips64le) error {
|
||||||
return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
|
||||||
}
|
}
|
||||||
|
|||||||
8
vendor/golang.org/x/sys/unix/zptrace_x86_linux.go
generated
vendored
8
vendor/golang.org/x/sys/unix/zptrace_x86_linux.go
generated
vendored
@@ -31,12 +31,12 @@ type PtraceRegs386 struct {
|
|||||||
|
|
||||||
// PtraceGetRegs386 fetches the registers used by 386 binaries.
|
// PtraceGetRegs386 fetches the registers used by 386 binaries.
|
||||||
func PtraceGetRegs386(pid int, regsout *PtraceRegs386) error {
|
func PtraceGetRegs386(pid int, regsout *PtraceRegs386) error {
|
||||||
return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
|
||||||
}
|
}
|
||||||
|
|
||||||
// PtraceSetRegs386 sets the registers used by 386 binaries.
|
// PtraceSetRegs386 sets the registers used by 386 binaries.
|
||||||
func PtraceSetRegs386(pid int, regs *PtraceRegs386) error {
|
func PtraceSetRegs386(pid int, regs *PtraceRegs386) error {
|
||||||
return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
|
||||||
}
|
}
|
||||||
|
|
||||||
// PtraceRegsAmd64 is the registers used by amd64 binaries.
|
// PtraceRegsAmd64 is the registers used by amd64 binaries.
|
||||||
@@ -72,10 +72,10 @@ type PtraceRegsAmd64 struct {
|
|||||||
|
|
||||||
// PtraceGetRegsAmd64 fetches the registers used by amd64 binaries.
|
// PtraceGetRegsAmd64 fetches the registers used by amd64 binaries.
|
||||||
func PtraceGetRegsAmd64(pid int, regsout *PtraceRegsAmd64) error {
|
func PtraceGetRegsAmd64(pid int, regsout *PtraceRegsAmd64) error {
|
||||||
return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
|
||||||
}
|
}
|
||||||
|
|
||||||
// PtraceSetRegsAmd64 sets the registers used by amd64 binaries.
|
// PtraceSetRegsAmd64 sets the registers used by amd64 binaries.
|
||||||
func PtraceSetRegsAmd64(pid int, regs *PtraceRegsAmd64) error {
|
func PtraceSetRegsAmd64(pid int, regs *PtraceRegsAmd64) error {
|
||||||
return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
|
||||||
}
|
}
|
||||||
|
|||||||
23
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go
generated
vendored
23
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go
generated
vendored
@@ -124,7 +124,6 @@ int utime(uintptr_t, uintptr_t);
|
|||||||
unsigned long long getsystemcfg(int);
|
unsigned long long getsystemcfg(int);
|
||||||
int umount(uintptr_t);
|
int umount(uintptr_t);
|
||||||
int getrlimit64(int, uintptr_t);
|
int getrlimit64(int, uintptr_t);
|
||||||
int setrlimit64(int, uintptr_t);
|
|
||||||
long long lseek64(int, long long, int);
|
long long lseek64(int, long long, int);
|
||||||
uintptr_t mmap(uintptr_t, uintptr_t, int, int, int, long long);
|
uintptr_t mmap(uintptr_t, uintptr_t, int, int, int, long long);
|
||||||
|
|
||||||
@@ -213,7 +212,7 @@ func wait4(pid Pid_t, status *_C_int, options int, rusage *Rusage) (wpid Pid_t,
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ioctl(fd int, req uint, arg uintptr) (err error) {
|
func ioctl(fd int, req int, arg uintptr) (err error) {
|
||||||
r0, er := C.ioctl(C.int(fd), C.int(req), C.uintptr_t(arg))
|
r0, er := C.ioctl(C.int(fd), C.int(req), C.uintptr_t(arg))
|
||||||
if r0 == -1 && er != nil {
|
if r0 == -1 && er != nil {
|
||||||
err = er
|
err = er
|
||||||
@@ -223,6 +222,16 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ioctlPtr(fd int, req int, arg unsafe.Pointer) (err error) {
|
||||||
|
r0, er := C.ioctl(C.int(fd), C.int(req), C.uintptr_t(uintptr(arg)))
|
||||||
|
if r0 == -1 && er != nil {
|
||||||
|
err = er
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func FcntlInt(fd uintptr, cmd int, arg int) (r int, err error) {
|
func FcntlInt(fd uintptr, cmd int, arg int) (r int, err error) {
|
||||||
r0, er := C.fcntl(C.uintptr_t(fd), C.int(cmd), C.uintptr_t(arg))
|
r0, er := C.fcntl(C.uintptr_t(fd), C.int(cmd), C.uintptr_t(arg))
|
||||||
r = int(r0)
|
r = int(r0)
|
||||||
@@ -1454,16 +1463,6 @@ func Getrlimit(resource int, rlim *Rlimit) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setrlimit(resource int, rlim *Rlimit) (err error) {
|
|
||||||
r0, er := C.setrlimit64(C.int(resource), C.uintptr_t(uintptr(unsafe.Pointer(rlim))))
|
|
||||||
if r0 == -1 && er != nil {
|
|
||||||
err = er
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Seek(fd int, offset int64, whence int) (off int64, err error) {
|
func Seek(fd int, offset int64, whence int) (off int64, err error) {
|
||||||
r0, er := C.lseek64(C.int(fd), C.longlong(offset), C.int(whence))
|
r0, er := C.lseek64(C.int(fd), C.longlong(offset), C.int(whence))
|
||||||
off = int64(r0)
|
off = int64(r0)
|
||||||
|
|||||||
24
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go
generated
vendored
24
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go
generated
vendored
@@ -93,8 +93,18 @@ func wait4(pid Pid_t, status *_C_int, options int, rusage *Rusage) (wpid Pid_t,
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ioctl(fd int, req uint, arg uintptr) (err error) {
|
func ioctl(fd int, req int, arg uintptr) (err error) {
|
||||||
_, e1 := callioctl(fd, int(req), arg)
|
_, e1 := callioctl(fd, req, arg)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ioctlPtr(fd int, req int, arg unsafe.Pointer) (err error) {
|
||||||
|
_, e1 := callioctl_ptr(fd, req, arg)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1412,16 +1422,6 @@ func Getrlimit(resource int, rlim *Rlimit) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setrlimit(resource int, rlim *Rlimit) (err error) {
|
|
||||||
_, e1 := callsetrlimit(resource, uintptr(unsafe.Pointer(rlim)))
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Seek(fd int, offset int64, whence int) (off int64, err error) {
|
func Seek(fd int, offset int64, whence int) (off int64, err error) {
|
||||||
r0, e1 := calllseek(fd, offset, whence)
|
r0, e1 := calllseek(fd, offset, whence)
|
||||||
off = int64(r0)
|
off = int64(r0)
|
||||||
|
|||||||
17
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go
generated
vendored
17
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go
generated
vendored
@@ -124,7 +124,6 @@ import (
|
|||||||
//go:cgo_import_dynamic libc_getsystemcfg getsystemcfg "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_getsystemcfg getsystemcfg "libc.a/shr_64.o"
|
||||||
//go:cgo_import_dynamic libc_umount umount "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_umount umount "libc.a/shr_64.o"
|
||||||
//go:cgo_import_dynamic libc_getrlimit getrlimit "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_getrlimit getrlimit "libc.a/shr_64.o"
|
||||||
//go:cgo_import_dynamic libc_setrlimit setrlimit "libc.a/shr_64.o"
|
|
||||||
//go:cgo_import_dynamic libc_lseek lseek "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_lseek lseek "libc.a/shr_64.o"
|
||||||
//go:cgo_import_dynamic libc_mmap64 mmap64 "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_mmap64 mmap64 "libc.a/shr_64.o"
|
||||||
|
|
||||||
@@ -242,7 +241,6 @@ import (
|
|||||||
//go:linkname libc_getsystemcfg libc_getsystemcfg
|
//go:linkname libc_getsystemcfg libc_getsystemcfg
|
||||||
//go:linkname libc_umount libc_umount
|
//go:linkname libc_umount libc_umount
|
||||||
//go:linkname libc_getrlimit libc_getrlimit
|
//go:linkname libc_getrlimit libc_getrlimit
|
||||||
//go:linkname libc_setrlimit libc_setrlimit
|
|
||||||
//go:linkname libc_lseek libc_lseek
|
//go:linkname libc_lseek libc_lseek
|
||||||
//go:linkname libc_mmap64 libc_mmap64
|
//go:linkname libc_mmap64 libc_mmap64
|
||||||
|
|
||||||
@@ -363,7 +361,6 @@ var (
|
|||||||
libc_getsystemcfg,
|
libc_getsystemcfg,
|
||||||
libc_umount,
|
libc_umount,
|
||||||
libc_getrlimit,
|
libc_getrlimit,
|
||||||
libc_setrlimit,
|
|
||||||
libc_lseek,
|
libc_lseek,
|
||||||
libc_mmap64 syscallFunc
|
libc_mmap64 syscallFunc
|
||||||
)
|
)
|
||||||
@@ -423,6 +420,13 @@ func callioctl(fd int, req int, arg uintptr) (r1 uintptr, e1 Errno) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func callioctl_ptr(fd int, req int, arg unsafe.Pointer) (r1 uintptr, e1 Errno) {
|
||||||
|
r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_ioctl)), 3, uintptr(fd), uintptr(req), uintptr(arg), 0, 0, 0)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func callfcntl(fd uintptr, cmd int, arg uintptr) (r1 uintptr, e1 Errno) {
|
func callfcntl(fd uintptr, cmd int, arg uintptr) (r1 uintptr, e1 Errno) {
|
||||||
r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fcntl)), 3, fd, uintptr(cmd), arg, 0, 0, 0)
|
r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fcntl)), 3, fd, uintptr(cmd), arg, 0, 0, 0)
|
||||||
return
|
return
|
||||||
@@ -1172,13 +1176,6 @@ func callgetrlimit(resource int, rlim uintptr) (r1 uintptr, e1 Errno) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func callsetrlimit(resource int, rlim uintptr) (r1 uintptr, e1 Errno) {
|
|
||||||
r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_setrlimit)), 2, uintptr(resource), rlim, 0, 0, 0, 0)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func calllseek(fd int, offset int64, whence int) (r1 uintptr, e1 Errno) {
|
func calllseek(fd int, offset int64, whence int) (r1 uintptr, e1 Errno) {
|
||||||
r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_lseek)), 3, uintptr(fd), uintptr(offset), uintptr(whence), 0, 0, 0)
|
r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_lseek)), 3, uintptr(fd), uintptr(offset), uintptr(whence), 0, 0, 0)
|
||||||
return
|
return
|
||||||
|
|||||||
18
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go
generated
vendored
18
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go
generated
vendored
@@ -123,7 +123,6 @@ int utime(uintptr_t, uintptr_t);
|
|||||||
unsigned long long getsystemcfg(int);
|
unsigned long long getsystemcfg(int);
|
||||||
int umount(uintptr_t);
|
int umount(uintptr_t);
|
||||||
int getrlimit(int, uintptr_t);
|
int getrlimit(int, uintptr_t);
|
||||||
int setrlimit(int, uintptr_t);
|
|
||||||
long long lseek(int, long long, int);
|
long long lseek(int, long long, int);
|
||||||
uintptr_t mmap64(uintptr_t, uintptr_t, int, int, int, long long);
|
uintptr_t mmap64(uintptr_t, uintptr_t, int, int, int, long long);
|
||||||
|
|
||||||
@@ -131,6 +130,7 @@ uintptr_t mmap64(uintptr_t, uintptr_t, int, int, int, long long);
|
|||||||
import "C"
|
import "C"
|
||||||
import (
|
import (
|
||||||
"syscall"
|
"syscall"
|
||||||
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
@@ -191,6 +191,14 @@ func callioctl(fd int, req int, arg uintptr) (r1 uintptr, e1 Errno) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func callioctl_ptr(fd int, req int, arg unsafe.Pointer) (r1 uintptr, e1 Errno) {
|
||||||
|
r1 = uintptr(C.ioctl(C.int(fd), C.int(req), C.uintptr_t(uintptr(arg))))
|
||||||
|
e1 = syscall.GetErrno()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func callfcntl(fd uintptr, cmd int, arg uintptr) (r1 uintptr, e1 Errno) {
|
func callfcntl(fd uintptr, cmd int, arg uintptr) (r1 uintptr, e1 Errno) {
|
||||||
r1 = uintptr(C.fcntl(C.uintptr_t(fd), C.int(cmd), C.uintptr_t(arg)))
|
r1 = uintptr(C.fcntl(C.uintptr_t(fd), C.int(cmd), C.uintptr_t(arg)))
|
||||||
e1 = syscall.GetErrno()
|
e1 = syscall.GetErrno()
|
||||||
@@ -1047,14 +1055,6 @@ func callgetrlimit(resource int, rlim uintptr) (r1 uintptr, e1 Errno) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func callsetrlimit(resource int, rlim uintptr) (r1 uintptr, e1 Errno) {
|
|
||||||
r1 = uintptr(C.setrlimit(C.int(resource), C.uintptr_t(rlim)))
|
|
||||||
e1 = syscall.GetErrno()
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func calllseek(fd int, offset int64, whence int) (r1 uintptr, e1 Errno) {
|
func calllseek(fd int, offset int64, whence int) (r1 uintptr, e1 Errno) {
|
||||||
r1 = uintptr(C.lseek(C.int(fd), C.longlong(offset), C.int(whence)))
|
r1 = uintptr(C.lseek(C.int(fd), C.longlong(offset), C.int(whence)))
|
||||||
e1 = syscall.GetErrno()
|
e1 = syscall.GetErrno()
|
||||||
|
|||||||
55
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
generated
vendored
55
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
generated
vendored
@@ -725,6 +725,14 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
||||||
|
_, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
var libc_ioctl_trampoline_addr uintptr
|
var libc_ioctl_trampoline_addr uintptr
|
||||||
|
|
||||||
//go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib"
|
//go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib"
|
||||||
@@ -1984,6 +1992,31 @@ var libc_select_trampoline_addr uintptr
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Setattrlist(path string, attrlist *Attrlist, attrBuf []byte, options int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 unsafe.Pointer
|
||||||
|
if len(attrBuf) > 0 {
|
||||||
|
_p1 = unsafe.Pointer(&attrBuf[0])
|
||||||
|
} else {
|
||||||
|
_p1 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := syscall_syscall6(libc_setattrlist_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(attrlist)), uintptr(_p1), uintptr(len(attrBuf)), uintptr(options), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_setattrlist_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_setattrlist setattrlist "/usr/lib/libSystem.B.dylib"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setegid(egid int) (err error) {
|
func Setegid(egid int) (err error) {
|
||||||
_, _, e1 := syscall_syscall(libc_setegid_trampoline_addr, uintptr(egid), 0, 0)
|
_, _, e1 := syscall_syscall(libc_setegid_trampoline_addr, uintptr(egid), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@@ -2115,20 +2148,6 @@ var libc_setreuid_trampoline_addr uintptr
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setrlimit(which int, lim *Rlimit) (err error) {
|
|
||||||
_, _, e1 := syscall_rawSyscall(libc_setrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
var libc_setrlimit_trampoline_addr uintptr
|
|
||||||
|
|
||||||
//go:cgo_import_dynamic libc_setrlimit setrlimit "/usr/lib/libSystem.B.dylib"
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Setsid() (pid int, err error) {
|
func Setsid() (pid int, err error) {
|
||||||
r0, _, e1 := syscall_rawSyscall(libc_setsid_trampoline_addr, 0, 0, 0)
|
r0, _, e1 := syscall_rawSyscall(libc_setsid_trampoline_addr, 0, 0, 0)
|
||||||
pid = int(r0)
|
pid = int(r0)
|
||||||
@@ -2502,6 +2521,14 @@ func ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func ptrace1Ptr(request int, pid int, addr uintptr, data unsafe.Pointer) (err error) {
|
||||||
|
_, _, e1 := syscall_syscall6(libc_ptrace_trampoline_addr, uintptr(request), uintptr(pid), addr, uintptr(data), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
var libc_ptrace_trampoline_addr uintptr
|
var libc_ptrace_trampoline_addr uintptr
|
||||||
|
|
||||||
//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
|
//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
|
||||||
|
|||||||
11
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
generated
vendored
11
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
generated
vendored
@@ -705,6 +705,11 @@ TEXT libc_select_trampoline<>(SB),NOSPLIT,$0-0
|
|||||||
GLOBL ·libc_select_trampoline_addr(SB), RODATA, $8
|
GLOBL ·libc_select_trampoline_addr(SB), RODATA, $8
|
||||||
DATA ·libc_select_trampoline_addr(SB)/8, $libc_select_trampoline<>(SB)
|
DATA ·libc_select_trampoline_addr(SB)/8, $libc_select_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_setattrlist_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setattrlist(SB)
|
||||||
|
GLOBL ·libc_setattrlist_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_setattrlist_trampoline_addr(SB)/8, $libc_setattrlist_trampoline<>(SB)
|
||||||
|
|
||||||
TEXT libc_setegid_trampoline<>(SB),NOSPLIT,$0-0
|
TEXT libc_setegid_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
JMP libc_setegid(SB)
|
JMP libc_setegid(SB)
|
||||||
|
|
||||||
@@ -759,12 +764,6 @@ TEXT libc_setreuid_trampoline<>(SB),NOSPLIT,$0-0
|
|||||||
GLOBL ·libc_setreuid_trampoline_addr(SB), RODATA, $8
|
GLOBL ·libc_setreuid_trampoline_addr(SB), RODATA, $8
|
||||||
DATA ·libc_setreuid_trampoline_addr(SB)/8, $libc_setreuid_trampoline<>(SB)
|
DATA ·libc_setreuid_trampoline_addr(SB)/8, $libc_setreuid_trampoline<>(SB)
|
||||||
|
|
||||||
TEXT libc_setrlimit_trampoline<>(SB),NOSPLIT,$0-0
|
|
||||||
JMP libc_setrlimit(SB)
|
|
||||||
|
|
||||||
GLOBL ·libc_setrlimit_trampoline_addr(SB), RODATA, $8
|
|
||||||
DATA ·libc_setrlimit_trampoline_addr(SB)/8, $libc_setrlimit_trampoline<>(SB)
|
|
||||||
|
|
||||||
TEXT libc_setsid_trampoline<>(SB),NOSPLIT,$0-0
|
TEXT libc_setsid_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
JMP libc_setsid(SB)
|
JMP libc_setsid(SB)
|
||||||
|
|
||||||
|
|||||||
55
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
generated
vendored
55
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
generated
vendored
@@ -725,6 +725,14 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
||||||
|
_, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
var libc_ioctl_trampoline_addr uintptr
|
var libc_ioctl_trampoline_addr uintptr
|
||||||
|
|
||||||
//go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib"
|
//go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib"
|
||||||
@@ -1984,6 +1992,31 @@ var libc_select_trampoline_addr uintptr
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Setattrlist(path string, attrlist *Attrlist, attrBuf []byte, options int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 unsafe.Pointer
|
||||||
|
if len(attrBuf) > 0 {
|
||||||
|
_p1 = unsafe.Pointer(&attrBuf[0])
|
||||||
|
} else {
|
||||||
|
_p1 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := syscall_syscall6(libc_setattrlist_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(attrlist)), uintptr(_p1), uintptr(len(attrBuf)), uintptr(options), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_setattrlist_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_setattrlist setattrlist "/usr/lib/libSystem.B.dylib"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setegid(egid int) (err error) {
|
func Setegid(egid int) (err error) {
|
||||||
_, _, e1 := syscall_syscall(libc_setegid_trampoline_addr, uintptr(egid), 0, 0)
|
_, _, e1 := syscall_syscall(libc_setegid_trampoline_addr, uintptr(egid), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@@ -2115,20 +2148,6 @@ var libc_setreuid_trampoline_addr uintptr
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setrlimit(which int, lim *Rlimit) (err error) {
|
|
||||||
_, _, e1 := syscall_rawSyscall(libc_setrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
var libc_setrlimit_trampoline_addr uintptr
|
|
||||||
|
|
||||||
//go:cgo_import_dynamic libc_setrlimit setrlimit "/usr/lib/libSystem.B.dylib"
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Setsid() (pid int, err error) {
|
func Setsid() (pid int, err error) {
|
||||||
r0, _, e1 := syscall_rawSyscall(libc_setsid_trampoline_addr, 0, 0, 0)
|
r0, _, e1 := syscall_rawSyscall(libc_setsid_trampoline_addr, 0, 0, 0)
|
||||||
pid = int(r0)
|
pid = int(r0)
|
||||||
@@ -2502,6 +2521,14 @@ func ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func ptrace1Ptr(request int, pid int, addr uintptr, data unsafe.Pointer) (err error) {
|
||||||
|
_, _, e1 := syscall_syscall6(libc_ptrace_trampoline_addr, uintptr(request), uintptr(pid), addr, uintptr(data), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
var libc_ptrace_trampoline_addr uintptr
|
var libc_ptrace_trampoline_addr uintptr
|
||||||
|
|
||||||
//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
|
//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
|
||||||
|
|||||||
11
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
generated
vendored
11
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
generated
vendored
@@ -705,6 +705,11 @@ TEXT libc_select_trampoline<>(SB),NOSPLIT,$0-0
|
|||||||
GLOBL ·libc_select_trampoline_addr(SB), RODATA, $8
|
GLOBL ·libc_select_trampoline_addr(SB), RODATA, $8
|
||||||
DATA ·libc_select_trampoline_addr(SB)/8, $libc_select_trampoline<>(SB)
|
DATA ·libc_select_trampoline_addr(SB)/8, $libc_select_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_setattrlist_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setattrlist(SB)
|
||||||
|
GLOBL ·libc_setattrlist_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_setattrlist_trampoline_addr(SB)/8, $libc_setattrlist_trampoline<>(SB)
|
||||||
|
|
||||||
TEXT libc_setegid_trampoline<>(SB),NOSPLIT,$0-0
|
TEXT libc_setegid_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
JMP libc_setegid(SB)
|
JMP libc_setegid(SB)
|
||||||
|
|
||||||
@@ -759,12 +764,6 @@ TEXT libc_setreuid_trampoline<>(SB),NOSPLIT,$0-0
|
|||||||
GLOBL ·libc_setreuid_trampoline_addr(SB), RODATA, $8
|
GLOBL ·libc_setreuid_trampoline_addr(SB), RODATA, $8
|
||||||
DATA ·libc_setreuid_trampoline_addr(SB)/8, $libc_setreuid_trampoline<>(SB)
|
DATA ·libc_setreuid_trampoline_addr(SB)/8, $libc_setreuid_trampoline<>(SB)
|
||||||
|
|
||||||
TEXT libc_setrlimit_trampoline<>(SB),NOSPLIT,$0-0
|
|
||||||
JMP libc_setrlimit(SB)
|
|
||||||
|
|
||||||
GLOBL ·libc_setrlimit_trampoline_addr(SB), RODATA, $8
|
|
||||||
DATA ·libc_setrlimit_trampoline_addr(SB)/8, $libc_setrlimit_trampoline<>(SB)
|
|
||||||
|
|
||||||
TEXT libc_setsid_trampoline<>(SB),NOSPLIT,$0-0
|
TEXT libc_setsid_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
JMP libc_setsid(SB)
|
JMP libc_setsid(SB)
|
||||||
|
|
||||||
|
|||||||
30
vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
generated
vendored
30
vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
generated
vendored
@@ -436,6 +436,16 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(mib) > 0 {
|
if len(mib) > 0 {
|
||||||
@@ -552,6 +562,16 @@ func Chroot(path string) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Close(fd int) (err error) {
|
func Close(fd int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
|
_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@@ -1390,16 +1410,6 @@ func Setresuid(ruid int, euid int, suid int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setrlimit(which int, lim *Rlimit) (err error) {
|
|
||||||
_, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Setsid() (pid int, err error) {
|
func Setsid() (pid int, err error) {
|
||||||
r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
|
r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
|
||||||
pid = int(r0)
|
pid = int(r0)
|
||||||
|
|||||||
40
vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
generated
vendored
40
vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
generated
vendored
@@ -388,6 +388,16 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(mib) > 0 {
|
if len(mib) > 0 {
|
||||||
@@ -414,6 +424,16 @@ func ptrace(request int, pid int, addr uintptr, data int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ptracePtr(request int, pid int, addr unsafe.Pointer, data int) (err error) {
|
||||||
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Access(path string, mode uint32) (err error) {
|
func Access(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@@ -544,6 +564,16 @@ func Chroot(path string) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Close(fd int) (err error) {
|
func Close(fd int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
|
_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@@ -1615,16 +1645,6 @@ func Setresuid(ruid int, euid int, suid int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setrlimit(which int, lim *Rlimit) (err error) {
|
|
||||||
_, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Setsid() (pid int, err error) {
|
func Setsid() (pid int, err error) {
|
||||||
r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
|
r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
|
||||||
pid = int(r0)
|
pid = int(r0)
|
||||||
|
|||||||
40
vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
generated
vendored
40
vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
generated
vendored
@@ -388,6 +388,16 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(mib) > 0 {
|
if len(mib) > 0 {
|
||||||
@@ -414,6 +424,16 @@ func ptrace(request int, pid int, addr uintptr, data int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ptracePtr(request int, pid int, addr unsafe.Pointer, data int) (err error) {
|
||||||
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Access(path string, mode uint32) (err error) {
|
func Access(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@@ -544,6 +564,16 @@ func Chroot(path string) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Close(fd int) (err error) {
|
func Close(fd int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
|
_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@@ -1615,16 +1645,6 @@ func Setresuid(ruid int, euid int, suid int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setrlimit(which int, lim *Rlimit) (err error) {
|
|
||||||
_, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Setsid() (pid int, err error) {
|
func Setsid() (pid int, err error) {
|
||||||
r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
|
r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
|
||||||
pid = int(r0)
|
pid = int(r0)
|
||||||
|
|||||||
40
vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
generated
vendored
40
vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
generated
vendored
@@ -388,6 +388,16 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(mib) > 0 {
|
if len(mib) > 0 {
|
||||||
@@ -414,6 +424,16 @@ func ptrace(request int, pid int, addr uintptr, data int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ptracePtr(request int, pid int, addr unsafe.Pointer, data int) (err error) {
|
||||||
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Access(path string, mode uint32) (err error) {
|
func Access(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@@ -544,6 +564,16 @@ func Chroot(path string) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Close(fd int) (err error) {
|
func Close(fd int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
|
_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@@ -1615,16 +1645,6 @@ func Setresuid(ruid int, euid int, suid int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setrlimit(which int, lim *Rlimit) (err error) {
|
|
||||||
_, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Setsid() (pid int, err error) {
|
func Setsid() (pid int, err error) {
|
||||||
r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
|
r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
|
||||||
pid = int(r0)
|
pid = int(r0)
|
||||||
|
|||||||
40
vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go
generated
vendored
40
vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go
generated
vendored
@@ -388,6 +388,16 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(mib) > 0 {
|
if len(mib) > 0 {
|
||||||
@@ -414,6 +424,16 @@ func ptrace(request int, pid int, addr uintptr, data int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ptracePtr(request int, pid int, addr unsafe.Pointer, data int) (err error) {
|
||||||
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Access(path string, mode uint32) (err error) {
|
func Access(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@@ -544,6 +564,16 @@ func Chroot(path string) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Close(fd int) (err error) {
|
func Close(fd int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
|
_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@@ -1615,16 +1645,6 @@ func Setresuid(ruid int, euid int, suid int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setrlimit(which int, lim *Rlimit) (err error) {
|
|
||||||
_, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Setsid() (pid int, err error) {
|
func Setsid() (pid int, err error) {
|
||||||
r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
|
r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
|
||||||
pid = int(r0)
|
pid = int(r0)
|
||||||
|
|||||||
40
vendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go
generated
vendored
40
vendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go
generated
vendored
@@ -388,6 +388,16 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(mib) > 0 {
|
if len(mib) > 0 {
|
||||||
@@ -414,6 +424,16 @@ func ptrace(request int, pid int, addr uintptr, data int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ptracePtr(request int, pid int, addr unsafe.Pointer, data int) (err error) {
|
||||||
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Access(path string, mode uint32) (err error) {
|
func Access(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@@ -544,6 +564,16 @@ func Chroot(path string) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Close(fd int) (err error) {
|
func Close(fd int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
|
_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@@ -1615,16 +1645,6 @@ func Setresuid(ruid int, euid int, suid int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setrlimit(which int, lim *Rlimit) (err error) {
|
|
||||||
_, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Setsid() (pid int, err error) {
|
func Setsid() (pid int, err error) {
|
||||||
r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
|
r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
|
||||||
pid = int(r0)
|
pid = int(r0)
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user