mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-25 13:29:27 +01:00
upgrade other x dependencies
This commit is contained in:
parent
7a82554f9d
commit
eb84103865
6
go.mod
6
go.mod
@ -20,7 +20,7 @@ require (
|
|||||||
github.com/tidwall/buntdb v1.2.10
|
github.com/tidwall/buntdb v1.2.10
|
||||||
github.com/toorop/go-dkim v0.0.0-20201103131630-e1cd1a0a5208
|
github.com/toorop/go-dkim v0.0.0-20201103131630-e1cd1a0a5208
|
||||||
github.com/xdg-go/scram v1.0.2
|
github.com/xdg-go/scram v1.0.2
|
||||||
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e
|
golang.org/x/crypto v0.5.0
|
||||||
golang.org/x/text v0.6.0
|
golang.org/x/text v0.6.0
|
||||||
gopkg.in/yaml.v2 v2.4.0
|
gopkg.in/yaml.v2 v2.4.0
|
||||||
)
|
)
|
||||||
@ -36,8 +36,8 @@ require (
|
|||||||
github.com/tidwall/rtred v0.1.2 // indirect
|
github.com/tidwall/rtred v0.1.2 // indirect
|
||||||
github.com/tidwall/tinyqueue v0.1.1 // indirect
|
github.com/tidwall/tinyqueue v0.1.1 // indirect
|
||||||
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
|
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
|
||||||
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect
|
golang.org/x/sys v0.4.0 // indirect
|
||||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect
|
golang.org/x/term v0.4.0 // indirect
|
||||||
)
|
)
|
||||||
|
|
||||||
replace github.com/gorilla/websocket => github.com/ergochat/websocket v1.4.2-oragono1
|
replace github.com/gorilla/websocket => github.com/ergochat/websocket v1.4.2-oragono1
|
||||||
|
6
go.sum
6
go.sum
@ -89,6 +89,8 @@ golang.org/x/crypto v0.0.0-20211115234514-b4de73f9ece8 h1:5QRxNnVsaJP6NAse0UdkRg
|
|||||||
golang.org/x/crypto v0.0.0-20211115234514-b4de73f9ece8/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
golang.org/x/crypto v0.0.0-20211115234514-b4de73f9ece8/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||||
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e h1:T8NU3HyQ8ClP4SEE+KbFlg6n0NhuTsN4MyznaarGsZM=
|
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e h1:T8NU3HyQ8ClP4SEE+KbFlg6n0NhuTsN4MyznaarGsZM=
|
||||||
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
|
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
|
||||||
|
golang.org/x/crypto v0.5.0 h1:U/0M97KRkSFvyD/3FSmdP5W5swImpNgle/EHFhOsQPE=
|
||||||
|
golang.org/x/crypto v0.5.0/go.mod h1:NK/OQwhpMQP3MwtdjgLlYHnH9ebylxKWv3e0fK+mkQU=
|
||||||
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 h1:qWPm9rbaAMKs8Bq/9LRpbMqxWRVUAQwMI9fVrssnTfw=
|
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 h1:qWPm9rbaAMKs8Bq/9LRpbMqxWRVUAQwMI9fVrssnTfw=
|
||||||
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||||
@ -101,8 +103,12 @@ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 h1:SrN+KX8Art/Sf4HNj6Zcz06G7
|
|||||||
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f h1:v4INt8xihDGvnrfjMDVXGxw9wrfxYyCjk0KbXjhR55s=
|
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f h1:v4INt8xihDGvnrfjMDVXGxw9wrfxYyCjk0KbXjhR55s=
|
||||||
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
golang.org/x/sys v0.4.0 h1:Zr2JFtRQNX3BCZ8YtxRE9hNJYC8J6I1MVbMg6owUp18=
|
||||||
|
golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E=
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E=
|
||||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||||
|
golang.org/x/term v0.4.0 h1:O7UWfv5+A2qiuulQk30kVinPoMtoIPeVaKLEgLpVkvg=
|
||||||
|
golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ=
|
||||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||||
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||||
|
3
vendor/golang.org/x/crypto/AUTHORS
generated
vendored
3
vendor/golang.org/x/crypto/AUTHORS
generated
vendored
@ -1,3 +0,0 @@
|
|||||||
# This source code refers to The Go Authors for copyright purposes.
|
|
||||||
# The master list of authors is in the main Go distribution,
|
|
||||||
# visible at https://tip.golang.org/AUTHORS.
|
|
3
vendor/golang.org/x/crypto/CONTRIBUTORS
generated
vendored
3
vendor/golang.org/x/crypto/CONTRIBUTORS
generated
vendored
@ -1,3 +0,0 @@
|
|||||||
# This source code was written by the Go contributors.
|
|
||||||
# The master list of contributors is in the main Go distribution,
|
|
||||||
# visible at https://tip.golang.org/CONTRIBUTORS.
|
|
11
vendor/golang.org/x/crypto/bcrypt/bcrypt.go
generated
vendored
11
vendor/golang.org/x/crypto/bcrypt/bcrypt.go
generated
vendored
@ -50,7 +50,7 @@ func (ih InvalidHashPrefixError) Error() string {
|
|||||||
type InvalidCostError int
|
type InvalidCostError int
|
||||||
|
|
||||||
func (ic InvalidCostError) Error() string {
|
func (ic InvalidCostError) Error() string {
|
||||||
return fmt.Sprintf("crypto/bcrypt: cost %d is outside allowed range (%d,%d)", int(ic), int(MinCost), int(MaxCost))
|
return fmt.Sprintf("crypto/bcrypt: cost %d is outside allowed range (%d,%d)", int(ic), MinCost, MaxCost)
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -82,11 +82,20 @@ type hashed struct {
|
|||||||
minor byte
|
minor byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ErrPasswordTooLong is returned when the password passed to
|
||||||
|
// GenerateFromPassword is too long (i.e. > 72 bytes).
|
||||||
|
var ErrPasswordTooLong = errors.New("bcrypt: password length exceeds 72 bytes")
|
||||||
|
|
||||||
// GenerateFromPassword returns the bcrypt hash of the password at the given
|
// GenerateFromPassword returns the bcrypt hash of the password at the given
|
||||||
// cost. If the cost given is less than MinCost, the cost will be set to
|
// cost. If the cost given is less than MinCost, the cost will be set to
|
||||||
// DefaultCost, instead. Use CompareHashAndPassword, as defined in this package,
|
// DefaultCost, instead. Use CompareHashAndPassword, as defined in this package,
|
||||||
// to compare the returned hashed password with its cleartext version.
|
// to compare the returned hashed password with its cleartext version.
|
||||||
|
// GenerateFromPassword does not accept passwords longer than 72 bytes, which
|
||||||
|
// is the longest password bcrypt will operate on.
|
||||||
func GenerateFromPassword(password []byte, cost int) ([]byte, error) {
|
func GenerateFromPassword(password []byte, cost int) ([]byte, error) {
|
||||||
|
if len(password) > 72 {
|
||||||
|
return nil, ErrPasswordTooLong
|
||||||
|
}
|
||||||
p, err := newFromPassword(password, cost)
|
p, err := newFromPassword(password, cost)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
194
vendor/golang.org/x/crypto/sha3/keccakf.go
generated
vendored
194
vendor/golang.org/x/crypto/sha3/keccakf.go
generated
vendored
@ -7,6 +7,8 @@
|
|||||||
|
|
||||||
package sha3
|
package sha3
|
||||||
|
|
||||||
|
import "math/bits"
|
||||||
|
|
||||||
// rc stores the round constants for use in the ι step.
|
// rc stores the round constants for use in the ι step.
|
||||||
var rc = [24]uint64{
|
var rc = [24]uint64{
|
||||||
0x0000000000000001,
|
0x0000000000000001,
|
||||||
@ -60,13 +62,13 @@ func keccakF1600(a *[25]uint64) {
|
|||||||
|
|
||||||
bc0 = a[0] ^ d0
|
bc0 = a[0] ^ d0
|
||||||
t = a[6] ^ d1
|
t = a[6] ^ d1
|
||||||
bc1 = t<<44 | t>>(64-44)
|
bc1 = bits.RotateLeft64(t, 44)
|
||||||
t = a[12] ^ d2
|
t = a[12] ^ d2
|
||||||
bc2 = t<<43 | t>>(64-43)
|
bc2 = bits.RotateLeft64(t, 43)
|
||||||
t = a[18] ^ d3
|
t = a[18] ^ d3
|
||||||
bc3 = t<<21 | t>>(64-21)
|
bc3 = bits.RotateLeft64(t, 21)
|
||||||
t = a[24] ^ d4
|
t = a[24] ^ d4
|
||||||
bc4 = t<<14 | t>>(64-14)
|
bc4 = bits.RotateLeft64(t, 14)
|
||||||
a[0] = bc0 ^ (bc2 &^ bc1) ^ rc[i]
|
a[0] = bc0 ^ (bc2 &^ bc1) ^ rc[i]
|
||||||
a[6] = bc1 ^ (bc3 &^ bc2)
|
a[6] = bc1 ^ (bc3 &^ bc2)
|
||||||
a[12] = bc2 ^ (bc4 &^ bc3)
|
a[12] = bc2 ^ (bc4 &^ bc3)
|
||||||
@ -74,15 +76,15 @@ func keccakF1600(a *[25]uint64) {
|
|||||||
a[24] = bc4 ^ (bc1 &^ bc0)
|
a[24] = bc4 ^ (bc1 &^ bc0)
|
||||||
|
|
||||||
t = a[10] ^ d0
|
t = a[10] ^ d0
|
||||||
bc2 = t<<3 | t>>(64-3)
|
bc2 = bits.RotateLeft64(t, 3)
|
||||||
t = a[16] ^ d1
|
t = a[16] ^ d1
|
||||||
bc3 = t<<45 | t>>(64-45)
|
bc3 = bits.RotateLeft64(t, 45)
|
||||||
t = a[22] ^ d2
|
t = a[22] ^ d2
|
||||||
bc4 = t<<61 | t>>(64-61)
|
bc4 = bits.RotateLeft64(t, 61)
|
||||||
t = a[3] ^ d3
|
t = a[3] ^ d3
|
||||||
bc0 = t<<28 | t>>(64-28)
|
bc0 = bits.RotateLeft64(t, 28)
|
||||||
t = a[9] ^ d4
|
t = a[9] ^ d4
|
||||||
bc1 = t<<20 | t>>(64-20)
|
bc1 = bits.RotateLeft64(t, 20)
|
||||||
a[10] = bc0 ^ (bc2 &^ bc1)
|
a[10] = bc0 ^ (bc2 &^ bc1)
|
||||||
a[16] = bc1 ^ (bc3 &^ bc2)
|
a[16] = bc1 ^ (bc3 &^ bc2)
|
||||||
a[22] = bc2 ^ (bc4 &^ bc3)
|
a[22] = bc2 ^ (bc4 &^ bc3)
|
||||||
@ -90,15 +92,15 @@ func keccakF1600(a *[25]uint64) {
|
|||||||
a[9] = bc4 ^ (bc1 &^ bc0)
|
a[9] = bc4 ^ (bc1 &^ bc0)
|
||||||
|
|
||||||
t = a[20] ^ d0
|
t = a[20] ^ d0
|
||||||
bc4 = t<<18 | t>>(64-18)
|
bc4 = bits.RotateLeft64(t, 18)
|
||||||
t = a[1] ^ d1
|
t = a[1] ^ d1
|
||||||
bc0 = t<<1 | t>>(64-1)
|
bc0 = bits.RotateLeft64(t, 1)
|
||||||
t = a[7] ^ d2
|
t = a[7] ^ d2
|
||||||
bc1 = t<<6 | t>>(64-6)
|
bc1 = bits.RotateLeft64(t, 6)
|
||||||
t = a[13] ^ d3
|
t = a[13] ^ d3
|
||||||
bc2 = t<<25 | t>>(64-25)
|
bc2 = bits.RotateLeft64(t, 25)
|
||||||
t = a[19] ^ d4
|
t = a[19] ^ d4
|
||||||
bc3 = t<<8 | t>>(64-8)
|
bc3 = bits.RotateLeft64(t, 8)
|
||||||
a[20] = bc0 ^ (bc2 &^ bc1)
|
a[20] = bc0 ^ (bc2 &^ bc1)
|
||||||
a[1] = bc1 ^ (bc3 &^ bc2)
|
a[1] = bc1 ^ (bc3 &^ bc2)
|
||||||
a[7] = bc2 ^ (bc4 &^ bc3)
|
a[7] = bc2 ^ (bc4 &^ bc3)
|
||||||
@ -106,15 +108,15 @@ func keccakF1600(a *[25]uint64) {
|
|||||||
a[19] = bc4 ^ (bc1 &^ bc0)
|
a[19] = bc4 ^ (bc1 &^ bc0)
|
||||||
|
|
||||||
t = a[5] ^ d0
|
t = a[5] ^ d0
|
||||||
bc1 = t<<36 | t>>(64-36)
|
bc1 = bits.RotateLeft64(t, 36)
|
||||||
t = a[11] ^ d1
|
t = a[11] ^ d1
|
||||||
bc2 = t<<10 | t>>(64-10)
|
bc2 = bits.RotateLeft64(t, 10)
|
||||||
t = a[17] ^ d2
|
t = a[17] ^ d2
|
||||||
bc3 = t<<15 | t>>(64-15)
|
bc3 = bits.RotateLeft64(t, 15)
|
||||||
t = a[23] ^ d3
|
t = a[23] ^ d3
|
||||||
bc4 = t<<56 | t>>(64-56)
|
bc4 = bits.RotateLeft64(t, 56)
|
||||||
t = a[4] ^ d4
|
t = a[4] ^ d4
|
||||||
bc0 = t<<27 | t>>(64-27)
|
bc0 = bits.RotateLeft64(t, 27)
|
||||||
a[5] = bc0 ^ (bc2 &^ bc1)
|
a[5] = bc0 ^ (bc2 &^ bc1)
|
||||||
a[11] = bc1 ^ (bc3 &^ bc2)
|
a[11] = bc1 ^ (bc3 &^ bc2)
|
||||||
a[17] = bc2 ^ (bc4 &^ bc3)
|
a[17] = bc2 ^ (bc4 &^ bc3)
|
||||||
@ -122,15 +124,15 @@ func keccakF1600(a *[25]uint64) {
|
|||||||
a[4] = bc4 ^ (bc1 &^ bc0)
|
a[4] = bc4 ^ (bc1 &^ bc0)
|
||||||
|
|
||||||
t = a[15] ^ d0
|
t = a[15] ^ d0
|
||||||
bc3 = t<<41 | t>>(64-41)
|
bc3 = bits.RotateLeft64(t, 41)
|
||||||
t = a[21] ^ d1
|
t = a[21] ^ d1
|
||||||
bc4 = t<<2 | t>>(64-2)
|
bc4 = bits.RotateLeft64(t, 2)
|
||||||
t = a[2] ^ d2
|
t = a[2] ^ d2
|
||||||
bc0 = t<<62 | t>>(64-62)
|
bc0 = bits.RotateLeft64(t, 62)
|
||||||
t = a[8] ^ d3
|
t = a[8] ^ d3
|
||||||
bc1 = t<<55 | t>>(64-55)
|
bc1 = bits.RotateLeft64(t, 55)
|
||||||
t = a[14] ^ d4
|
t = a[14] ^ d4
|
||||||
bc2 = t<<39 | t>>(64-39)
|
bc2 = bits.RotateLeft64(t, 39)
|
||||||
a[15] = bc0 ^ (bc2 &^ bc1)
|
a[15] = bc0 ^ (bc2 &^ bc1)
|
||||||
a[21] = bc1 ^ (bc3 &^ bc2)
|
a[21] = bc1 ^ (bc3 &^ bc2)
|
||||||
a[2] = bc2 ^ (bc4 &^ bc3)
|
a[2] = bc2 ^ (bc4 &^ bc3)
|
||||||
@ -151,13 +153,13 @@ func keccakF1600(a *[25]uint64) {
|
|||||||
|
|
||||||
bc0 = a[0] ^ d0
|
bc0 = a[0] ^ d0
|
||||||
t = a[16] ^ d1
|
t = a[16] ^ d1
|
||||||
bc1 = t<<44 | t>>(64-44)
|
bc1 = bits.RotateLeft64(t, 44)
|
||||||
t = a[7] ^ d2
|
t = a[7] ^ d2
|
||||||
bc2 = t<<43 | t>>(64-43)
|
bc2 = bits.RotateLeft64(t, 43)
|
||||||
t = a[23] ^ d3
|
t = a[23] ^ d3
|
||||||
bc3 = t<<21 | t>>(64-21)
|
bc3 = bits.RotateLeft64(t, 21)
|
||||||
t = a[14] ^ d4
|
t = a[14] ^ d4
|
||||||
bc4 = t<<14 | t>>(64-14)
|
bc4 = bits.RotateLeft64(t, 14)
|
||||||
a[0] = bc0 ^ (bc2 &^ bc1) ^ rc[i+1]
|
a[0] = bc0 ^ (bc2 &^ bc1) ^ rc[i+1]
|
||||||
a[16] = bc1 ^ (bc3 &^ bc2)
|
a[16] = bc1 ^ (bc3 &^ bc2)
|
||||||
a[7] = bc2 ^ (bc4 &^ bc3)
|
a[7] = bc2 ^ (bc4 &^ bc3)
|
||||||
@ -165,15 +167,15 @@ func keccakF1600(a *[25]uint64) {
|
|||||||
a[14] = bc4 ^ (bc1 &^ bc0)
|
a[14] = bc4 ^ (bc1 &^ bc0)
|
||||||
|
|
||||||
t = a[20] ^ d0
|
t = a[20] ^ d0
|
||||||
bc2 = t<<3 | t>>(64-3)
|
bc2 = bits.RotateLeft64(t, 3)
|
||||||
t = a[11] ^ d1
|
t = a[11] ^ d1
|
||||||
bc3 = t<<45 | t>>(64-45)
|
bc3 = bits.RotateLeft64(t, 45)
|
||||||
t = a[2] ^ d2
|
t = a[2] ^ d2
|
||||||
bc4 = t<<61 | t>>(64-61)
|
bc4 = bits.RotateLeft64(t, 61)
|
||||||
t = a[18] ^ d3
|
t = a[18] ^ d3
|
||||||
bc0 = t<<28 | t>>(64-28)
|
bc0 = bits.RotateLeft64(t, 28)
|
||||||
t = a[9] ^ d4
|
t = a[9] ^ d4
|
||||||
bc1 = t<<20 | t>>(64-20)
|
bc1 = bits.RotateLeft64(t, 20)
|
||||||
a[20] = bc0 ^ (bc2 &^ bc1)
|
a[20] = bc0 ^ (bc2 &^ bc1)
|
||||||
a[11] = bc1 ^ (bc3 &^ bc2)
|
a[11] = bc1 ^ (bc3 &^ bc2)
|
||||||
a[2] = bc2 ^ (bc4 &^ bc3)
|
a[2] = bc2 ^ (bc4 &^ bc3)
|
||||||
@ -181,15 +183,15 @@ func keccakF1600(a *[25]uint64) {
|
|||||||
a[9] = bc4 ^ (bc1 &^ bc0)
|
a[9] = bc4 ^ (bc1 &^ bc0)
|
||||||
|
|
||||||
t = a[15] ^ d0
|
t = a[15] ^ d0
|
||||||
bc4 = t<<18 | t>>(64-18)
|
bc4 = bits.RotateLeft64(t, 18)
|
||||||
t = a[6] ^ d1
|
t = a[6] ^ d1
|
||||||
bc0 = t<<1 | t>>(64-1)
|
bc0 = bits.RotateLeft64(t, 1)
|
||||||
t = a[22] ^ d2
|
t = a[22] ^ d2
|
||||||
bc1 = t<<6 | t>>(64-6)
|
bc1 = bits.RotateLeft64(t, 6)
|
||||||
t = a[13] ^ d3
|
t = a[13] ^ d3
|
||||||
bc2 = t<<25 | t>>(64-25)
|
bc2 = bits.RotateLeft64(t, 25)
|
||||||
t = a[4] ^ d4
|
t = a[4] ^ d4
|
||||||
bc3 = t<<8 | t>>(64-8)
|
bc3 = bits.RotateLeft64(t, 8)
|
||||||
a[15] = bc0 ^ (bc2 &^ bc1)
|
a[15] = bc0 ^ (bc2 &^ bc1)
|
||||||
a[6] = bc1 ^ (bc3 &^ bc2)
|
a[6] = bc1 ^ (bc3 &^ bc2)
|
||||||
a[22] = bc2 ^ (bc4 &^ bc3)
|
a[22] = bc2 ^ (bc4 &^ bc3)
|
||||||
@ -197,15 +199,15 @@ func keccakF1600(a *[25]uint64) {
|
|||||||
a[4] = bc4 ^ (bc1 &^ bc0)
|
a[4] = bc4 ^ (bc1 &^ bc0)
|
||||||
|
|
||||||
t = a[10] ^ d0
|
t = a[10] ^ d0
|
||||||
bc1 = t<<36 | t>>(64-36)
|
bc1 = bits.RotateLeft64(t, 36)
|
||||||
t = a[1] ^ d1
|
t = a[1] ^ d1
|
||||||
bc2 = t<<10 | t>>(64-10)
|
bc2 = bits.RotateLeft64(t, 10)
|
||||||
t = a[17] ^ d2
|
t = a[17] ^ d2
|
||||||
bc3 = t<<15 | t>>(64-15)
|
bc3 = bits.RotateLeft64(t, 15)
|
||||||
t = a[8] ^ d3
|
t = a[8] ^ d3
|
||||||
bc4 = t<<56 | t>>(64-56)
|
bc4 = bits.RotateLeft64(t, 56)
|
||||||
t = a[24] ^ d4
|
t = a[24] ^ d4
|
||||||
bc0 = t<<27 | t>>(64-27)
|
bc0 = bits.RotateLeft64(t, 27)
|
||||||
a[10] = bc0 ^ (bc2 &^ bc1)
|
a[10] = bc0 ^ (bc2 &^ bc1)
|
||||||
a[1] = bc1 ^ (bc3 &^ bc2)
|
a[1] = bc1 ^ (bc3 &^ bc2)
|
||||||
a[17] = bc2 ^ (bc4 &^ bc3)
|
a[17] = bc2 ^ (bc4 &^ bc3)
|
||||||
@ -213,15 +215,15 @@ func keccakF1600(a *[25]uint64) {
|
|||||||
a[24] = bc4 ^ (bc1 &^ bc0)
|
a[24] = bc4 ^ (bc1 &^ bc0)
|
||||||
|
|
||||||
t = a[5] ^ d0
|
t = a[5] ^ d0
|
||||||
bc3 = t<<41 | t>>(64-41)
|
bc3 = bits.RotateLeft64(t, 41)
|
||||||
t = a[21] ^ d1
|
t = a[21] ^ d1
|
||||||
bc4 = t<<2 | t>>(64-2)
|
bc4 = bits.RotateLeft64(t, 2)
|
||||||
t = a[12] ^ d2
|
t = a[12] ^ d2
|
||||||
bc0 = t<<62 | t>>(64-62)
|
bc0 = bits.RotateLeft64(t, 62)
|
||||||
t = a[3] ^ d3
|
t = a[3] ^ d3
|
||||||
bc1 = t<<55 | t>>(64-55)
|
bc1 = bits.RotateLeft64(t, 55)
|
||||||
t = a[19] ^ d4
|
t = a[19] ^ d4
|
||||||
bc2 = t<<39 | t>>(64-39)
|
bc2 = bits.RotateLeft64(t, 39)
|
||||||
a[5] = bc0 ^ (bc2 &^ bc1)
|
a[5] = bc0 ^ (bc2 &^ bc1)
|
||||||
a[21] = bc1 ^ (bc3 &^ bc2)
|
a[21] = bc1 ^ (bc3 &^ bc2)
|
||||||
a[12] = bc2 ^ (bc4 &^ bc3)
|
a[12] = bc2 ^ (bc4 &^ bc3)
|
||||||
@ -242,13 +244,13 @@ func keccakF1600(a *[25]uint64) {
|
|||||||
|
|
||||||
bc0 = a[0] ^ d0
|
bc0 = a[0] ^ d0
|
||||||
t = a[11] ^ d1
|
t = a[11] ^ d1
|
||||||
bc1 = t<<44 | t>>(64-44)
|
bc1 = bits.RotateLeft64(t, 44)
|
||||||
t = a[22] ^ d2
|
t = a[22] ^ d2
|
||||||
bc2 = t<<43 | t>>(64-43)
|
bc2 = bits.RotateLeft64(t, 43)
|
||||||
t = a[8] ^ d3
|
t = a[8] ^ d3
|
||||||
bc3 = t<<21 | t>>(64-21)
|
bc3 = bits.RotateLeft64(t, 21)
|
||||||
t = a[19] ^ d4
|
t = a[19] ^ d4
|
||||||
bc4 = t<<14 | t>>(64-14)
|
bc4 = bits.RotateLeft64(t, 14)
|
||||||
a[0] = bc0 ^ (bc2 &^ bc1) ^ rc[i+2]
|
a[0] = bc0 ^ (bc2 &^ bc1) ^ rc[i+2]
|
||||||
a[11] = bc1 ^ (bc3 &^ bc2)
|
a[11] = bc1 ^ (bc3 &^ bc2)
|
||||||
a[22] = bc2 ^ (bc4 &^ bc3)
|
a[22] = bc2 ^ (bc4 &^ bc3)
|
||||||
@ -256,15 +258,15 @@ func keccakF1600(a *[25]uint64) {
|
|||||||
a[19] = bc4 ^ (bc1 &^ bc0)
|
a[19] = bc4 ^ (bc1 &^ bc0)
|
||||||
|
|
||||||
t = a[15] ^ d0
|
t = a[15] ^ d0
|
||||||
bc2 = t<<3 | t>>(64-3)
|
bc2 = bits.RotateLeft64(t, 3)
|
||||||
t = a[1] ^ d1
|
t = a[1] ^ d1
|
||||||
bc3 = t<<45 | t>>(64-45)
|
bc3 = bits.RotateLeft64(t, 45)
|
||||||
t = a[12] ^ d2
|
t = a[12] ^ d2
|
||||||
bc4 = t<<61 | t>>(64-61)
|
bc4 = bits.RotateLeft64(t, 61)
|
||||||
t = a[23] ^ d3
|
t = a[23] ^ d3
|
||||||
bc0 = t<<28 | t>>(64-28)
|
bc0 = bits.RotateLeft64(t, 28)
|
||||||
t = a[9] ^ d4
|
t = a[9] ^ d4
|
||||||
bc1 = t<<20 | t>>(64-20)
|
bc1 = bits.RotateLeft64(t, 20)
|
||||||
a[15] = bc0 ^ (bc2 &^ bc1)
|
a[15] = bc0 ^ (bc2 &^ bc1)
|
||||||
a[1] = bc1 ^ (bc3 &^ bc2)
|
a[1] = bc1 ^ (bc3 &^ bc2)
|
||||||
a[12] = bc2 ^ (bc4 &^ bc3)
|
a[12] = bc2 ^ (bc4 &^ bc3)
|
||||||
@ -272,15 +274,15 @@ func keccakF1600(a *[25]uint64) {
|
|||||||
a[9] = bc4 ^ (bc1 &^ bc0)
|
a[9] = bc4 ^ (bc1 &^ bc0)
|
||||||
|
|
||||||
t = a[5] ^ d0
|
t = a[5] ^ d0
|
||||||
bc4 = t<<18 | t>>(64-18)
|
bc4 = bits.RotateLeft64(t, 18)
|
||||||
t = a[16] ^ d1
|
t = a[16] ^ d1
|
||||||
bc0 = t<<1 | t>>(64-1)
|
bc0 = bits.RotateLeft64(t, 1)
|
||||||
t = a[2] ^ d2
|
t = a[2] ^ d2
|
||||||
bc1 = t<<6 | t>>(64-6)
|
bc1 = bits.RotateLeft64(t, 6)
|
||||||
t = a[13] ^ d3
|
t = a[13] ^ d3
|
||||||
bc2 = t<<25 | t>>(64-25)
|
bc2 = bits.RotateLeft64(t, 25)
|
||||||
t = a[24] ^ d4
|
t = a[24] ^ d4
|
||||||
bc3 = t<<8 | t>>(64-8)
|
bc3 = bits.RotateLeft64(t, 8)
|
||||||
a[5] = bc0 ^ (bc2 &^ bc1)
|
a[5] = bc0 ^ (bc2 &^ bc1)
|
||||||
a[16] = bc1 ^ (bc3 &^ bc2)
|
a[16] = bc1 ^ (bc3 &^ bc2)
|
||||||
a[2] = bc2 ^ (bc4 &^ bc3)
|
a[2] = bc2 ^ (bc4 &^ bc3)
|
||||||
@ -288,15 +290,15 @@ func keccakF1600(a *[25]uint64) {
|
|||||||
a[24] = bc4 ^ (bc1 &^ bc0)
|
a[24] = bc4 ^ (bc1 &^ bc0)
|
||||||
|
|
||||||
t = a[20] ^ d0
|
t = a[20] ^ d0
|
||||||
bc1 = t<<36 | t>>(64-36)
|
bc1 = bits.RotateLeft64(t, 36)
|
||||||
t = a[6] ^ d1
|
t = a[6] ^ d1
|
||||||
bc2 = t<<10 | t>>(64-10)
|
bc2 = bits.RotateLeft64(t, 10)
|
||||||
t = a[17] ^ d2
|
t = a[17] ^ d2
|
||||||
bc3 = t<<15 | t>>(64-15)
|
bc3 = bits.RotateLeft64(t, 15)
|
||||||
t = a[3] ^ d3
|
t = a[3] ^ d3
|
||||||
bc4 = t<<56 | t>>(64-56)
|
bc4 = bits.RotateLeft64(t, 56)
|
||||||
t = a[14] ^ d4
|
t = a[14] ^ d4
|
||||||
bc0 = t<<27 | t>>(64-27)
|
bc0 = bits.RotateLeft64(t, 27)
|
||||||
a[20] = bc0 ^ (bc2 &^ bc1)
|
a[20] = bc0 ^ (bc2 &^ bc1)
|
||||||
a[6] = bc1 ^ (bc3 &^ bc2)
|
a[6] = bc1 ^ (bc3 &^ bc2)
|
||||||
a[17] = bc2 ^ (bc4 &^ bc3)
|
a[17] = bc2 ^ (bc4 &^ bc3)
|
||||||
@ -304,15 +306,15 @@ func keccakF1600(a *[25]uint64) {
|
|||||||
a[14] = bc4 ^ (bc1 &^ bc0)
|
a[14] = bc4 ^ (bc1 &^ bc0)
|
||||||
|
|
||||||
t = a[10] ^ d0
|
t = a[10] ^ d0
|
||||||
bc3 = t<<41 | t>>(64-41)
|
bc3 = bits.RotateLeft64(t, 41)
|
||||||
t = a[21] ^ d1
|
t = a[21] ^ d1
|
||||||
bc4 = t<<2 | t>>(64-2)
|
bc4 = bits.RotateLeft64(t, 2)
|
||||||
t = a[7] ^ d2
|
t = a[7] ^ d2
|
||||||
bc0 = t<<62 | t>>(64-62)
|
bc0 = bits.RotateLeft64(t, 62)
|
||||||
t = a[18] ^ d3
|
t = a[18] ^ d3
|
||||||
bc1 = t<<55 | t>>(64-55)
|
bc1 = bits.RotateLeft64(t, 55)
|
||||||
t = a[4] ^ d4
|
t = a[4] ^ d4
|
||||||
bc2 = t<<39 | t>>(64-39)
|
bc2 = bits.RotateLeft64(t, 39)
|
||||||
a[10] = bc0 ^ (bc2 &^ bc1)
|
a[10] = bc0 ^ (bc2 &^ bc1)
|
||||||
a[21] = bc1 ^ (bc3 &^ bc2)
|
a[21] = bc1 ^ (bc3 &^ bc2)
|
||||||
a[7] = bc2 ^ (bc4 &^ bc3)
|
a[7] = bc2 ^ (bc4 &^ bc3)
|
||||||
@ -333,13 +335,13 @@ func keccakF1600(a *[25]uint64) {
|
|||||||
|
|
||||||
bc0 = a[0] ^ d0
|
bc0 = a[0] ^ d0
|
||||||
t = a[1] ^ d1
|
t = a[1] ^ d1
|
||||||
bc1 = t<<44 | t>>(64-44)
|
bc1 = bits.RotateLeft64(t, 44)
|
||||||
t = a[2] ^ d2
|
t = a[2] ^ d2
|
||||||
bc2 = t<<43 | t>>(64-43)
|
bc2 = bits.RotateLeft64(t, 43)
|
||||||
t = a[3] ^ d3
|
t = a[3] ^ d3
|
||||||
bc3 = t<<21 | t>>(64-21)
|
bc3 = bits.RotateLeft64(t, 21)
|
||||||
t = a[4] ^ d4
|
t = a[4] ^ d4
|
||||||
bc4 = t<<14 | t>>(64-14)
|
bc4 = bits.RotateLeft64(t, 14)
|
||||||
a[0] = bc0 ^ (bc2 &^ bc1) ^ rc[i+3]
|
a[0] = bc0 ^ (bc2 &^ bc1) ^ rc[i+3]
|
||||||
a[1] = bc1 ^ (bc3 &^ bc2)
|
a[1] = bc1 ^ (bc3 &^ bc2)
|
||||||
a[2] = bc2 ^ (bc4 &^ bc3)
|
a[2] = bc2 ^ (bc4 &^ bc3)
|
||||||
@ -347,15 +349,15 @@ func keccakF1600(a *[25]uint64) {
|
|||||||
a[4] = bc4 ^ (bc1 &^ bc0)
|
a[4] = bc4 ^ (bc1 &^ bc0)
|
||||||
|
|
||||||
t = a[5] ^ d0
|
t = a[5] ^ d0
|
||||||
bc2 = t<<3 | t>>(64-3)
|
bc2 = bits.RotateLeft64(t, 3)
|
||||||
t = a[6] ^ d1
|
t = a[6] ^ d1
|
||||||
bc3 = t<<45 | t>>(64-45)
|
bc3 = bits.RotateLeft64(t, 45)
|
||||||
t = a[7] ^ d2
|
t = a[7] ^ d2
|
||||||
bc4 = t<<61 | t>>(64-61)
|
bc4 = bits.RotateLeft64(t, 61)
|
||||||
t = a[8] ^ d3
|
t = a[8] ^ d3
|
||||||
bc0 = t<<28 | t>>(64-28)
|
bc0 = bits.RotateLeft64(t, 28)
|
||||||
t = a[9] ^ d4
|
t = a[9] ^ d4
|
||||||
bc1 = t<<20 | t>>(64-20)
|
bc1 = bits.RotateLeft64(t, 20)
|
||||||
a[5] = bc0 ^ (bc2 &^ bc1)
|
a[5] = bc0 ^ (bc2 &^ bc1)
|
||||||
a[6] = bc1 ^ (bc3 &^ bc2)
|
a[6] = bc1 ^ (bc3 &^ bc2)
|
||||||
a[7] = bc2 ^ (bc4 &^ bc3)
|
a[7] = bc2 ^ (bc4 &^ bc3)
|
||||||
@ -363,15 +365,15 @@ func keccakF1600(a *[25]uint64) {
|
|||||||
a[9] = bc4 ^ (bc1 &^ bc0)
|
a[9] = bc4 ^ (bc1 &^ bc0)
|
||||||
|
|
||||||
t = a[10] ^ d0
|
t = a[10] ^ d0
|
||||||
bc4 = t<<18 | t>>(64-18)
|
bc4 = bits.RotateLeft64(t, 18)
|
||||||
t = a[11] ^ d1
|
t = a[11] ^ d1
|
||||||
bc0 = t<<1 | t>>(64-1)
|
bc0 = bits.RotateLeft64(t, 1)
|
||||||
t = a[12] ^ d2
|
t = a[12] ^ d2
|
||||||
bc1 = t<<6 | t>>(64-6)
|
bc1 = bits.RotateLeft64(t, 6)
|
||||||
t = a[13] ^ d3
|
t = a[13] ^ d3
|
||||||
bc2 = t<<25 | t>>(64-25)
|
bc2 = bits.RotateLeft64(t, 25)
|
||||||
t = a[14] ^ d4
|
t = a[14] ^ d4
|
||||||
bc3 = t<<8 | t>>(64-8)
|
bc3 = bits.RotateLeft64(t, 8)
|
||||||
a[10] = bc0 ^ (bc2 &^ bc1)
|
a[10] = bc0 ^ (bc2 &^ bc1)
|
||||||
a[11] = bc1 ^ (bc3 &^ bc2)
|
a[11] = bc1 ^ (bc3 &^ bc2)
|
||||||
a[12] = bc2 ^ (bc4 &^ bc3)
|
a[12] = bc2 ^ (bc4 &^ bc3)
|
||||||
@ -379,15 +381,15 @@ func keccakF1600(a *[25]uint64) {
|
|||||||
a[14] = bc4 ^ (bc1 &^ bc0)
|
a[14] = bc4 ^ (bc1 &^ bc0)
|
||||||
|
|
||||||
t = a[15] ^ d0
|
t = a[15] ^ d0
|
||||||
bc1 = t<<36 | t>>(64-36)
|
bc1 = bits.RotateLeft64(t, 36)
|
||||||
t = a[16] ^ d1
|
t = a[16] ^ d1
|
||||||
bc2 = t<<10 | t>>(64-10)
|
bc2 = bits.RotateLeft64(t, 10)
|
||||||
t = a[17] ^ d2
|
t = a[17] ^ d2
|
||||||
bc3 = t<<15 | t>>(64-15)
|
bc3 = bits.RotateLeft64(t, 15)
|
||||||
t = a[18] ^ d3
|
t = a[18] ^ d3
|
||||||
bc4 = t<<56 | t>>(64-56)
|
bc4 = bits.RotateLeft64(t, 56)
|
||||||
t = a[19] ^ d4
|
t = a[19] ^ d4
|
||||||
bc0 = t<<27 | t>>(64-27)
|
bc0 = bits.RotateLeft64(t, 27)
|
||||||
a[15] = bc0 ^ (bc2 &^ bc1)
|
a[15] = bc0 ^ (bc2 &^ bc1)
|
||||||
a[16] = bc1 ^ (bc3 &^ bc2)
|
a[16] = bc1 ^ (bc3 &^ bc2)
|
||||||
a[17] = bc2 ^ (bc4 &^ bc3)
|
a[17] = bc2 ^ (bc4 &^ bc3)
|
||||||
@ -395,15 +397,15 @@ func keccakF1600(a *[25]uint64) {
|
|||||||
a[19] = bc4 ^ (bc1 &^ bc0)
|
a[19] = bc4 ^ (bc1 &^ bc0)
|
||||||
|
|
||||||
t = a[20] ^ d0
|
t = a[20] ^ d0
|
||||||
bc3 = t<<41 | t>>(64-41)
|
bc3 = bits.RotateLeft64(t, 41)
|
||||||
t = a[21] ^ d1
|
t = a[21] ^ d1
|
||||||
bc4 = t<<2 | t>>(64-2)
|
bc4 = bits.RotateLeft64(t, 2)
|
||||||
t = a[22] ^ d2
|
t = a[22] ^ d2
|
||||||
bc0 = t<<62 | t>>(64-62)
|
bc0 = bits.RotateLeft64(t, 62)
|
||||||
t = a[23] ^ d3
|
t = a[23] ^ d3
|
||||||
bc1 = t<<55 | t>>(64-55)
|
bc1 = bits.RotateLeft64(t, 55)
|
||||||
t = a[24] ^ d4
|
t = a[24] ^ d4
|
||||||
bc2 = t<<39 | t>>(64-39)
|
bc2 = bits.RotateLeft64(t, 39)
|
||||||
a[20] = bc0 ^ (bc2 &^ bc1)
|
a[20] = bc0 ^ (bc2 &^ bc1)
|
||||||
a[21] = bc1 ^ (bc3 &^ bc2)
|
a[21] = bc1 ^ (bc3 &^ bc2)
|
||||||
a[22] = bc2 ^ (bc4 &^ bc3)
|
a[22] = bc2 ^ (bc4 &^ bc3)
|
||||||
|
12
vendor/golang.org/x/sys/cpu/cpu_arm64.go
generated
vendored
12
vendor/golang.org/x/sys/cpu/cpu_arm64.go
generated
vendored
@ -6,7 +6,10 @@ package cpu
|
|||||||
|
|
||||||
import "runtime"
|
import "runtime"
|
||||||
|
|
||||||
const cacheLineSize = 64
|
// cacheLineSize is used to prevent false sharing of cache lines.
|
||||||
|
// We choose 128 because Apple Silicon, a.k.a. M1, has 128-byte cache line size.
|
||||||
|
// It doesn't cost much and is much more future-proof.
|
||||||
|
const cacheLineSize = 128
|
||||||
|
|
||||||
func initOptions() {
|
func initOptions() {
|
||||||
options = []option{
|
options = []option{
|
||||||
@ -41,13 +44,10 @@ func archInit() {
|
|||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "freebsd":
|
case "freebsd":
|
||||||
readARM64Registers()
|
readARM64Registers()
|
||||||
case "linux", "netbsd":
|
case "linux", "netbsd", "openbsd":
|
||||||
doinit()
|
doinit()
|
||||||
default:
|
default:
|
||||||
// Most platforms don't seem to allow reading these registers.
|
// Many platforms don't seem to allow reading these registers.
|
||||||
//
|
|
||||||
// OpenBSD:
|
|
||||||
// See https://golang.org/issue/31746
|
|
||||||
setMinimalFeatures()
|
setMinimalFeatures()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
42
vendor/golang.org/x/sys/cpu/cpu_linux_arm64.go
generated
vendored
42
vendor/golang.org/x/sys/cpu/cpu_linux_arm64.go
generated
vendored
@ -4,6 +4,11 @@
|
|||||||
|
|
||||||
package cpu
|
package cpu
|
||||||
|
|
||||||
|
import (
|
||||||
|
"strings"
|
||||||
|
"syscall"
|
||||||
|
)
|
||||||
|
|
||||||
// HWCAP/HWCAP2 bits. These are exposed by Linux.
|
// HWCAP/HWCAP2 bits. These are exposed by Linux.
|
||||||
const (
|
const (
|
||||||
hwcap_FP = 1 << 0
|
hwcap_FP = 1 << 0
|
||||||
@ -32,10 +37,45 @@ const (
|
|||||||
hwcap_ASIMDFHM = 1 << 23
|
hwcap_ASIMDFHM = 1 << 23
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// linuxKernelCanEmulateCPUID reports whether we're running
|
||||||
|
// on Linux 4.11+. Ideally we'd like to ask the question about
|
||||||
|
// whether the current kernel contains
|
||||||
|
// https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=77c97b4ee21290f5f083173d957843b615abbff2
|
||||||
|
// but the version number will have to do.
|
||||||
|
func linuxKernelCanEmulateCPUID() bool {
|
||||||
|
var un syscall.Utsname
|
||||||
|
syscall.Uname(&un)
|
||||||
|
var sb strings.Builder
|
||||||
|
for _, b := range un.Release[:] {
|
||||||
|
if b == 0 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
sb.WriteByte(byte(b))
|
||||||
|
}
|
||||||
|
major, minor, _, ok := parseRelease(sb.String())
|
||||||
|
return ok && (major > 4 || major == 4 && minor >= 11)
|
||||||
|
}
|
||||||
|
|
||||||
func doinit() {
|
func doinit() {
|
||||||
if err := readHWCAP(); err != nil {
|
if err := readHWCAP(); err != nil {
|
||||||
// failed to read /proc/self/auxv, try reading registers directly
|
// We failed to read /proc/self/auxv. This can happen if the binary has
|
||||||
|
// been given extra capabilities(7) with /bin/setcap.
|
||||||
|
//
|
||||||
|
// When this happens, we have two options. If the Linux kernel is new
|
||||||
|
// enough (4.11+), we can read the arm64 registers directly which'll
|
||||||
|
// trap into the kernel and then return back to userspace.
|
||||||
|
//
|
||||||
|
// But on older kernels, such as Linux 4.4.180 as used on many Synology
|
||||||
|
// devices, calling readARM64Registers (specifically getisar0) will
|
||||||
|
// cause a SIGILL and we'll die. So for older kernels, parse /proc/cpuinfo
|
||||||
|
// instead.
|
||||||
|
//
|
||||||
|
// See golang/go#57336.
|
||||||
|
if linuxKernelCanEmulateCPUID() {
|
||||||
readARM64Registers()
|
readARM64Registers()
|
||||||
|
} else {
|
||||||
|
readLinuxProcCPUInfo()
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
65
vendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.go
generated
vendored
Normal file
65
vendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.go
generated
vendored
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
// 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.
|
||||||
|
|
||||||
|
package cpu
|
||||||
|
|
||||||
|
import (
|
||||||
|
"syscall"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Minimal copy of functionality from x/sys/unix so the cpu package can call
|
||||||
|
// sysctl without depending on x/sys/unix.
|
||||||
|
|
||||||
|
const (
|
||||||
|
// From OpenBSD's sys/sysctl.h.
|
||||||
|
_CTL_MACHDEP = 7
|
||||||
|
|
||||||
|
// From OpenBSD's machine/cpu.h.
|
||||||
|
_CPU_ID_AA64ISAR0 = 2
|
||||||
|
_CPU_ID_AA64ISAR1 = 3
|
||||||
|
)
|
||||||
|
|
||||||
|
// Implemented in the runtime package (runtime/sys_openbsd3.go)
|
||||||
|
func syscall_syscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
||||||
|
|
||||||
|
//go:linkname syscall_syscall6 syscall.syscall6
|
||||||
|
|
||||||
|
func sysctl(mib []uint32, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||||
|
_, _, errno := syscall_syscall6(libc_sysctl_trampoline_addr, uintptr(unsafe.Pointer(&mib[0])), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||||
|
if errno != 0 {
|
||||||
|
return errno
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_sysctl_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_sysctl sysctl "libc.so"
|
||||||
|
|
||||||
|
func sysctlUint64(mib []uint32) (uint64, bool) {
|
||||||
|
var out uint64
|
||||||
|
nout := unsafe.Sizeof(out)
|
||||||
|
if err := sysctl(mib, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0); err != nil {
|
||||||
|
return 0, false
|
||||||
|
}
|
||||||
|
return out, true
|
||||||
|
}
|
||||||
|
|
||||||
|
func doinit() {
|
||||||
|
setMinimalFeatures()
|
||||||
|
|
||||||
|
// Get ID_AA64ISAR0 and ID_AA64ISAR1 from sysctl.
|
||||||
|
isar0, ok := sysctlUint64([]uint32{_CTL_MACHDEP, _CPU_ID_AA64ISAR0})
|
||||||
|
if !ok {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
isar1, ok := sysctlUint64([]uint32{_CTL_MACHDEP, _CPU_ID_AA64ISAR1})
|
||||||
|
if !ok {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
parseARM64SystemRegisters(isar0, isar1, 0)
|
||||||
|
|
||||||
|
Initialized = true
|
||||||
|
}
|
11
vendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.s
generated
vendored
Normal file
11
vendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.s
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
// 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.
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_sysctl(SB)
|
||||||
|
|
||||||
|
GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB)
|
4
vendor/golang.org/x/sys/cpu/cpu_other_arm64.go
generated
vendored
4
vendor/golang.org/x/sys/cpu/cpu_other_arm64.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 !linux && !netbsd && arm64
|
//go:build !linux && !netbsd && !openbsd && arm64
|
||||||
// +build !linux,!netbsd,arm64
|
// +build !linux,!netbsd,!openbsd,arm64
|
||||||
|
|
||||||
package cpu
|
package cpu
|
||||||
|
|
||||||
|
15
vendor/golang.org/x/sys/cpu/cpu_other_ppc64x.go
generated
vendored
Normal file
15
vendor/golang.org/x/sys/cpu/cpu_other_ppc64x.go
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
// 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 !aix && !linux && (ppc64 || ppc64le)
|
||||||
|
// +build !aix
|
||||||
|
// +build !linux
|
||||||
|
// +build ppc64 ppc64le
|
||||||
|
|
||||||
|
package cpu
|
||||||
|
|
||||||
|
func archInit() {
|
||||||
|
PPC64.IsPOWER8 = true
|
||||||
|
Initialized = true
|
||||||
|
}
|
43
vendor/golang.org/x/sys/cpu/parse.go
generated
vendored
Normal file
43
vendor/golang.org/x/sys/cpu/parse.go
generated
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
// 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.
|
||||||
|
|
||||||
|
package cpu
|
||||||
|
|
||||||
|
import "strconv"
|
||||||
|
|
||||||
|
// parseRelease parses a dot-separated version number. It follows the semver
|
||||||
|
// syntax, but allows the minor and patch versions to be elided.
|
||||||
|
//
|
||||||
|
// This is a copy of the Go runtime's parseRelease from
|
||||||
|
// https://golang.org/cl/209597.
|
||||||
|
func parseRelease(rel string) (major, minor, patch int, ok bool) {
|
||||||
|
// Strip anything after a dash or plus.
|
||||||
|
for i := 0; i < len(rel); i++ {
|
||||||
|
if rel[i] == '-' || rel[i] == '+' {
|
||||||
|
rel = rel[:i]
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
next := func() (int, bool) {
|
||||||
|
for i := 0; i < len(rel); i++ {
|
||||||
|
if rel[i] == '.' {
|
||||||
|
ver, err := strconv.Atoi(rel[:i])
|
||||||
|
rel = rel[i+1:]
|
||||||
|
return ver, err == nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ver, err := strconv.Atoi(rel)
|
||||||
|
rel = ""
|
||||||
|
return ver, err == nil
|
||||||
|
}
|
||||||
|
if major, ok = next(); !ok || rel == "" {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if minor, ok = next(); !ok || rel == "" {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
patch, ok = next()
|
||||||
|
return
|
||||||
|
}
|
54
vendor/golang.org/x/sys/cpu/proc_cpuinfo_linux.go
generated
vendored
Normal file
54
vendor/golang.org/x/sys/cpu/proc_cpuinfo_linux.go
generated
vendored
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
// 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 linux && arm64
|
||||||
|
// +build linux,arm64
|
||||||
|
|
||||||
|
package cpu
|
||||||
|
|
||||||
|
import (
|
||||||
|
"errors"
|
||||||
|
"io"
|
||||||
|
"os"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
func readLinuxProcCPUInfo() error {
|
||||||
|
f, err := os.Open("/proc/cpuinfo")
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
defer f.Close()
|
||||||
|
|
||||||
|
var buf [1 << 10]byte // enough for first CPU
|
||||||
|
n, err := io.ReadFull(f, buf[:])
|
||||||
|
if err != nil && err != io.ErrUnexpectedEOF {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
in := string(buf[:n])
|
||||||
|
const features = "\nFeatures : "
|
||||||
|
i := strings.Index(in, features)
|
||||||
|
if i == -1 {
|
||||||
|
return errors.New("no CPU features found")
|
||||||
|
}
|
||||||
|
in = in[i+len(features):]
|
||||||
|
if i := strings.Index(in, "\n"); i != -1 {
|
||||||
|
in = in[:i]
|
||||||
|
}
|
||||||
|
m := map[string]*bool{}
|
||||||
|
|
||||||
|
initOptions() // need it early here; it's harmless to call twice
|
||||||
|
for _, o := range options {
|
||||||
|
m[o.Name] = o.Feature
|
||||||
|
}
|
||||||
|
// The EVTSTRM field has alias "evstrm" in Go, but Linux calls it "evtstrm".
|
||||||
|
m["evtstrm"] = &ARM64.HasEVTSTRM
|
||||||
|
|
||||||
|
for _, f := range strings.Fields(in) {
|
||||||
|
if p, ok := m[f]; ok {
|
||||||
|
*p = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
4
vendor/golang.org/x/sys/plan9/mkerrors.sh
generated
vendored
4
vendor/golang.org/x/sys/plan9/mkerrors.sh
generated
vendored
@ -126,7 +126,7 @@ errors=$(
|
|||||||
signals=$(
|
signals=$(
|
||||||
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
|
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
|
||||||
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' |
|
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' |
|
||||||
egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT)' |
|
grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT' |
|
||||||
sort
|
sort
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -136,7 +136,7 @@ echo '#include <errno.h>' | $CC -x c - -E -dM $ccflags |
|
|||||||
sort >_error.grep
|
sort >_error.grep
|
||||||
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
|
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
|
||||||
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' |
|
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' |
|
||||||
egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT)' |
|
grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT' |
|
||||||
sort >_signal.grep
|
sort >_signal.grep
|
||||||
|
|
||||||
echo '// mkerrors.sh' "$@"
|
echo '// mkerrors.sh' "$@"
|
||||||
|
10
vendor/golang.org/x/sys/plan9/syscall.go
generated
vendored
10
vendor/golang.org/x/sys/plan9/syscall.go
generated
vendored
@ -29,8 +29,6 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"strings"
|
"strings"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
"golang.org/x/sys/internal/unsafeheader"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// ByteSliceFromString returns a NUL-terminated slice of bytes
|
// ByteSliceFromString returns a NUL-terminated slice of bytes
|
||||||
@ -82,13 +80,7 @@ func BytePtrToString(p *byte) string {
|
|||||||
ptr = unsafe.Pointer(uintptr(ptr) + 1)
|
ptr = unsafe.Pointer(uintptr(ptr) + 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
var s []byte
|
return string(unsafe.Slice(p, n))
|
||||||
h := (*unsafeheader.Slice)(unsafe.Pointer(&s))
|
|
||||||
h.Data = unsafe.Pointer(p)
|
|
||||||
h.Len = n
|
|
||||||
h.Cap = n
|
|
||||||
|
|
||||||
return string(s)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Single-word zero for use when we need a valid pointer to 0 bytes.
|
// Single-word zero for use when we need a valid pointer to 0 bytes.
|
||||||
|
31
vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s
generated
vendored
Normal file
31
vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s
generated
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
// 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 (darwin || freebsd || netbsd || openbsd) && gc
|
||||||
|
// +build darwin freebsd netbsd openbsd
|
||||||
|
// +build gc
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
//
|
||||||
|
// System call support for ppc64, BSD
|
||||||
|
//
|
||||||
|
|
||||||
|
// Just jump to package syscall's implementation for all these functions.
|
||||||
|
// The runtime may know about them.
|
||||||
|
|
||||||
|
TEXT ·Syscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·Syscall(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·Syscall6(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall9(SB),NOSPLIT,$0-104
|
||||||
|
JMP syscall·Syscall9(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·RawSyscall(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·RawSyscall6(SB)
|
4
vendor/golang.org/x/sys/unix/dirent.go
generated
vendored
4
vendor/golang.org/x/sys/unix/dirent.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 aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
|
||||||
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
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
|
// +build gccgo,!hurd
|
||||||
// +build !aix
|
// +build !aix,!hurd
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
4
vendor/golang.org/x/sys/unix/ioctl.go
generated
vendored
4
vendor/golang.org/x/sys/unix/ioctl.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 aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
//go:build aix || darwin || dragonfly || freebsd || hurd || linux || netbsd || openbsd || solaris
|
||||||
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
// +build aix darwin dragonfly freebsd hurd linux netbsd openbsd solaris
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
20
vendor/golang.org/x/sys/unix/ioctl_linux.go
generated
vendored
20
vendor/golang.org/x/sys/unix/ioctl_linux.go
generated
vendored
@ -4,9 +4,7 @@
|
|||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import "unsafe"
|
||||||
"unsafe"
|
|
||||||
)
|
|
||||||
|
|
||||||
// IoctlRetInt performs an ioctl operation specified by req on a device
|
// IoctlRetInt performs an ioctl operation specified by req on a device
|
||||||
// associated with opened file descriptor fd, and returns a non-negative
|
// associated with opened file descriptor fd, and returns a non-negative
|
||||||
@ -217,3 +215,19 @@ func IoctlKCMAttach(fd int, info KCMAttach) error {
|
|||||||
func IoctlKCMUnattach(fd int, info KCMUnattach) error {
|
func IoctlKCMUnattach(fd int, info KCMUnattach) error {
|
||||||
return ioctlPtr(fd, SIOCKCMUNATTACH, unsafe.Pointer(&info))
|
return ioctlPtr(fd, SIOCKCMUNATTACH, unsafe.Pointer(&info))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IoctlLoopGetStatus64 gets the status of the loop device associated with the
|
||||||
|
// file descriptor fd using the LOOP_GET_STATUS64 operation.
|
||||||
|
func IoctlLoopGetStatus64(fd int) (*LoopInfo64, error) {
|
||||||
|
var value LoopInfo64
|
||||||
|
if err := ioctlPtr(fd, LOOP_GET_STATUS64, unsafe.Pointer(&value)); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return &value, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// IoctlLoopSetStatus64 sets the status of the loop device associated with the
|
||||||
|
// file descriptor fd using the LOOP_SET_STATUS64 operation.
|
||||||
|
func IoctlLoopSetStatus64(fd int, value *LoopInfo64) error {
|
||||||
|
return ioctlPtr(fd, LOOP_SET_STATUS64, unsafe.Pointer(value))
|
||||||
|
}
|
||||||
|
49
vendor/golang.org/x/sys/unix/mkall.sh
generated
vendored
49
vendor/golang.org/x/sys/unix/mkall.sh
generated
vendored
@ -73,12 +73,12 @@ aix_ppc64)
|
|||||||
darwin_amd64)
|
darwin_amd64)
|
||||||
mkerrors="$mkerrors -m64"
|
mkerrors="$mkerrors -m64"
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
mkasm="go run mkasm_darwin.go"
|
mkasm="go run mkasm.go"
|
||||||
;;
|
;;
|
||||||
darwin_arm64)
|
darwin_arm64)
|
||||||
mkerrors="$mkerrors -m64"
|
mkerrors="$mkerrors -m64"
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
mkasm="go run mkasm_darwin.go"
|
mkasm="go run mkasm.go"
|
||||||
;;
|
;;
|
||||||
dragonfly_amd64)
|
dragonfly_amd64)
|
||||||
mkerrors="$mkerrors -m64"
|
mkerrors="$mkerrors -m64"
|
||||||
@ -142,42 +142,60 @@ netbsd_arm64)
|
|||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
;;
|
;;
|
||||||
openbsd_386)
|
openbsd_386)
|
||||||
|
mkasm="go run mkasm.go"
|
||||||
mkerrors="$mkerrors -m32"
|
mkerrors="$mkerrors -m32"
|
||||||
mksyscall="go run mksyscall.go -l32 -openbsd"
|
mksyscall="go run mksyscall.go -l32 -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'"
|
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
;;
|
;;
|
||||||
openbsd_amd64)
|
openbsd_amd64)
|
||||||
|
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'"
|
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
;;
|
;;
|
||||||
openbsd_arm)
|
openbsd_arm)
|
||||||
|
mkasm="go run mkasm.go"
|
||||||
mkerrors="$mkerrors"
|
mkerrors="$mkerrors"
|
||||||
mksyscall="go run mksyscall.go -l32 -openbsd -arm"
|
mksyscall="go run mksyscall.go -l32 -openbsd -arm -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"
|
||||||
;;
|
;;
|
||||||
openbsd_arm64)
|
openbsd_arm64)
|
||||||
|
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"
|
||||||
;;
|
;;
|
||||||
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"
|
||||||
|
# Let the type of C char be signed for making the bare syscall
|
||||||
|
# API consistent across platforms.
|
||||||
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
||||||
|
;;
|
||||||
|
openbsd_ppc64)
|
||||||
|
mkasm="go run mkasm.go"
|
||||||
|
mkerrors="$mkerrors -m64"
|
||||||
|
mksyscall="go run mksyscall.go -openbsd -libc"
|
||||||
|
mksysctl="go run mksysctl_openbsd.go"
|
||||||
|
# Let the type of C char be signed for making the bare syscall
|
||||||
|
# API consistent across platforms.
|
||||||
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
||||||
|
;;
|
||||||
|
openbsd_riscv64)
|
||||||
|
mkasm="go run mkasm.go"
|
||||||
|
mkerrors="$mkerrors -m64"
|
||||||
|
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"
|
||||||
@ -214,11 +232,6 @@ esac
|
|||||||
if [ "$GOOSARCH" == "aix_ppc64" ]; then
|
if [ "$GOOSARCH" == "aix_ppc64" ]; then
|
||||||
# aix/ppc64 script generates files instead of writing to stdin.
|
# aix/ppc64 script generates files instead of writing to stdin.
|
||||||
echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in && gofmt -w zsyscall_$GOOSARCH.go && gofmt -w zsyscall_"$GOOSARCH"_gccgo.go && gofmt -w zsyscall_"$GOOSARCH"_gc.go " ;
|
echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in && gofmt -w zsyscall_$GOOSARCH.go && gofmt -w zsyscall_"$GOOSARCH"_gccgo.go && gofmt -w zsyscall_"$GOOSARCH"_gc.go " ;
|
||||||
elif [ "$GOOS" == "darwin" ]; then
|
|
||||||
# 1.12 and later, syscalls via libSystem
|
|
||||||
echo "$mksyscall -tags $GOOS,$GOARCH,go1.12 $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go";
|
|
||||||
# 1.13 and later, syscalls via libSystem (including syscallPtr)
|
|
||||||
echo "$mksyscall -tags $GOOS,$GOARCH,go1.13 syscall_darwin.1_13.go |gofmt >zsyscall_$GOOSARCH.1_13.go";
|
|
||||||
elif [ "$GOOS" == "illumos" ]; then
|
elif [ "$GOOS" == "illumos" ]; then
|
||||||
# illumos code generation requires a --illumos switch
|
# illumos code generation requires a --illumos switch
|
||||||
echo "$mksyscall -illumos -tags illumos,$GOARCH syscall_illumos.go |gofmt > zsyscall_illumos_$GOARCH.go";
|
echo "$mksyscall -illumos -tags illumos,$GOARCH syscall_illumos.go |gofmt > zsyscall_illumos_$GOARCH.go";
|
||||||
@ -232,5 +245,5 @@ esac
|
|||||||
if [ -n "$mksysctl" ]; then echo "$mksysctl |gofmt >$zsysctl"; fi
|
if [ -n "$mksysctl" ]; then echo "$mksysctl |gofmt >$zsysctl"; fi
|
||||||
if [ -n "$mksysnum" ]; then echo "$mksysnum |gofmt >zsysnum_$GOOSARCH.go"; fi
|
if [ -n "$mksysnum" ]; then echo "$mksysnum |gofmt >zsysnum_$GOOSARCH.go"; fi
|
||||||
if [ -n "$mktypes" ]; then echo "$mktypes types_$GOOS.go | go run mkpost.go > ztypes_$GOOSARCH.go"; fi
|
if [ -n "$mktypes" ]; then echo "$mktypes types_$GOOS.go | go run mkpost.go > ztypes_$GOOSARCH.go"; fi
|
||||||
if [ -n "$mkasm" ]; then echo "$mkasm $GOARCH"; fi
|
if [ -n "$mkasm" ]; then echo "$mkasm $GOOS $GOARCH"; fi
|
||||||
) | $run
|
) | $run
|
||||||
|
4
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
4
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
@ -642,7 +642,7 @@ errors=$(
|
|||||||
signals=$(
|
signals=$(
|
||||||
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
|
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
|
||||||
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' |
|
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' |
|
||||||
egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' |
|
grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT\|SIGMAX64' |
|
||||||
sort
|
sort
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -652,7 +652,7 @@ echo '#include <errno.h>' | $CC -x c - -E -dM $ccflags |
|
|||||||
sort >_error.grep
|
sort >_error.grep
|
||||||
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
|
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
|
||||||
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' |
|
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' |
|
||||||
egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' |
|
grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT\|SIGMAX64' |
|
||||||
sort >_signal.grep
|
sort >_signal.grep
|
||||||
|
|
||||||
echo '// mkerrors.sh' "$@"
|
echo '// mkerrors.sh' "$@"
|
||||||
|
14
vendor/golang.org/x/sys/unix/sockcmsg_unix.go
generated
vendored
14
vendor/golang.org/x/sys/unix/sockcmsg_unix.go
generated
vendored
@ -52,6 +52,20 @@ func ParseSocketControlMessage(b []byte) ([]SocketControlMessage, error) {
|
|||||||
return msgs, nil
|
return msgs, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ParseOneSocketControlMessage parses a single socket control message from b, returning the message header,
|
||||||
|
// message data (a slice of b), and the remainder of b after that single message.
|
||||||
|
// When there are no remaining messages, len(remainder) == 0.
|
||||||
|
func ParseOneSocketControlMessage(b []byte) (hdr Cmsghdr, data []byte, remainder []byte, err error) {
|
||||||
|
h, dbuf, err := socketControlMessageHeaderAndData(b)
|
||||||
|
if err != nil {
|
||||||
|
return Cmsghdr{}, nil, nil, err
|
||||||
|
}
|
||||||
|
if i := cmsgAlignOf(int(h.Len)); i < len(b) {
|
||||||
|
remainder = b[i:]
|
||||||
|
}
|
||||||
|
return *h, dbuf, remainder, nil
|
||||||
|
}
|
||||||
|
|
||||||
func socketControlMessageHeaderAndData(b []byte) (*Cmsghdr, []byte, error) {
|
func socketControlMessageHeaderAndData(b []byte) (*Cmsghdr, []byte, error) {
|
||||||
h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
|
h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
|
||||||
if h.Len < SizeofCmsghdr || uint64(h.Len) > uint64(len(b)) {
|
if h.Len < SizeofCmsghdr || uint64(h.Len) > uint64(len(b)) {
|
||||||
|
27
vendor/golang.org/x/sys/unix/str.go
generated
vendored
27
vendor/golang.org/x/sys/unix/str.go
generated
vendored
@ -1,27 +0,0 @@
|
|||||||
// Copyright 2009 The Go Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style
|
|
||||||
// license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
|
||||||
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
func itoa(val int) string { // do it here rather than with fmt to avoid dependency
|
|
||||||
if val < 0 {
|
|
||||||
return "-" + uitoa(uint(-val))
|
|
||||||
}
|
|
||||||
return uitoa(uint(val))
|
|
||||||
}
|
|
||||||
|
|
||||||
func uitoa(val uint) string {
|
|
||||||
var buf [32]byte // big enough for int64
|
|
||||||
i := len(buf) - 1
|
|
||||||
for val >= 10 {
|
|
||||||
buf[i] = byte(val%10 + '0')
|
|
||||||
i--
|
|
||||||
val /= 10
|
|
||||||
}
|
|
||||||
buf[i] = byte(val + '0')
|
|
||||||
return string(buf[i:])
|
|
||||||
}
|
|
10
vendor/golang.org/x/sys/unix/syscall.go
generated
vendored
10
vendor/golang.org/x/sys/unix/syscall.go
generated
vendored
@ -29,8 +29,6 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"strings"
|
"strings"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
"golang.org/x/sys/internal/unsafeheader"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// ByteSliceFromString returns a NUL-terminated slice of bytes
|
// ByteSliceFromString returns a NUL-terminated slice of bytes
|
||||||
@ -82,13 +80,7 @@ func BytePtrToString(p *byte) string {
|
|||||||
ptr = unsafe.Pointer(uintptr(ptr) + 1)
|
ptr = unsafe.Pointer(uintptr(ptr) + 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
var s []byte
|
return string(unsafe.Slice(p, n))
|
||||||
h := (*unsafeheader.Slice)(unsafe.Pointer(&s))
|
|
||||||
h.Data = unsafe.Pointer(p)
|
|
||||||
h.Len = n
|
|
||||||
h.Cap = n
|
|
||||||
|
|
||||||
return string(s)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Single-word zero for use when we need a valid pointer to 0 bytes.
|
// Single-word zero for use when we need a valid pointer to 0 bytes.
|
||||||
|
57
vendor/golang.org/x/sys/unix/syscall_aix.go
generated
vendored
57
vendor/golang.org/x/sys/unix/syscall_aix.go
generated
vendored
@ -218,13 +218,62 @@ func Accept(fd int) (nfd int, sa Sockaddr, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func recvmsgRaw(fd int, iov []Iovec, oob []byte, flags int, rsa *RawSockaddrAny) (n, oobn int, recvflags int, err error) {
|
func recvmsgRaw(fd int, iov []Iovec, oob []byte, flags int, rsa *RawSockaddrAny) (n, oobn int, recvflags int, err error) {
|
||||||
// Recvmsg not implemented on AIX
|
var msg Msghdr
|
||||||
return -1, -1, -1, ENOSYS
|
msg.Name = (*byte)(unsafe.Pointer(rsa))
|
||||||
|
msg.Namelen = uint32(SizeofSockaddrAny)
|
||||||
|
var dummy byte
|
||||||
|
if len(oob) > 0 {
|
||||||
|
// receive at least one normal byte
|
||||||
|
if emptyIovecs(iov) {
|
||||||
|
var iova [1]Iovec
|
||||||
|
iova[0].Base = &dummy
|
||||||
|
iova[0].SetLen(1)
|
||||||
|
iov = iova[:]
|
||||||
|
}
|
||||||
|
msg.Control = (*byte)(unsafe.Pointer(&oob[0]))
|
||||||
|
msg.SetControllen(len(oob))
|
||||||
|
}
|
||||||
|
if len(iov) > 0 {
|
||||||
|
msg.Iov = &iov[0]
|
||||||
|
msg.SetIovlen(len(iov))
|
||||||
|
}
|
||||||
|
if n, err = recvmsg(fd, &msg, flags); n == -1 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
oobn = int(msg.Controllen)
|
||||||
|
recvflags = int(msg.Flags)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func sendmsgN(fd int, iov []Iovec, oob []byte, ptr unsafe.Pointer, salen _Socklen, flags int) (n int, err error) {
|
func sendmsgN(fd int, iov []Iovec, oob []byte, ptr unsafe.Pointer, salen _Socklen, flags int) (n int, err error) {
|
||||||
// SendmsgN not implemented on AIX
|
var msg Msghdr
|
||||||
return -1, ENOSYS
|
msg.Name = (*byte)(unsafe.Pointer(ptr))
|
||||||
|
msg.Namelen = uint32(salen)
|
||||||
|
var dummy byte
|
||||||
|
var empty bool
|
||||||
|
if len(oob) > 0 {
|
||||||
|
// send at least one normal byte
|
||||||
|
empty = emptyIovecs(iov)
|
||||||
|
if empty {
|
||||||
|
var iova [1]Iovec
|
||||||
|
iova[0].Base = &dummy
|
||||||
|
iova[0].SetLen(1)
|
||||||
|
iov = iova[:]
|
||||||
|
}
|
||||||
|
msg.Control = (*byte)(unsafe.Pointer(&oob[0]))
|
||||||
|
msg.SetControllen(len(oob))
|
||||||
|
}
|
||||||
|
if len(iov) > 0 {
|
||||||
|
msg.Iov = &iov[0]
|
||||||
|
msg.SetIovlen(len(iov))
|
||||||
|
}
|
||||||
|
if n, err = sendmsg(fd, &msg, flags); err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
if len(oob) > 0 && empty {
|
||||||
|
n = 0
|
||||||
|
}
|
||||||
|
return n, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||||
|
2
vendor/golang.org/x/sys/unix/syscall_bsd.go
generated
vendored
2
vendor/golang.org/x/sys/unix/syscall_bsd.go
generated
vendored
@ -363,7 +363,7 @@ func sendmsgN(fd int, iov []Iovec, oob []byte, ptr unsafe.Pointer, salen _Sockle
|
|||||||
var empty bool
|
var empty bool
|
||||||
if len(oob) > 0 {
|
if len(oob) > 0 {
|
||||||
// send at least one normal byte
|
// send at least one normal byte
|
||||||
empty := emptyIovecs(iov)
|
empty = emptyIovecs(iov)
|
||||||
if empty {
|
if empty {
|
||||||
var iova [1]Iovec
|
var iova [1]Iovec
|
||||||
iova[0].Base = &dummy
|
iova[0].Base = &dummy
|
||||||
|
32
vendor/golang.org/x/sys/unix/syscall_darwin.1_12.go
generated
vendored
32
vendor/golang.org/x/sys/unix/syscall_darwin.1_12.go
generated
vendored
@ -1,32 +0,0 @@
|
|||||||
// Copyright 2019 The Go Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style
|
|
||||||
// license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
//go:build darwin && go1.12 && !go1.13
|
|
||||||
// +build darwin,go1.12,!go1.13
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
import (
|
|
||||||
"unsafe"
|
|
||||||
)
|
|
||||||
|
|
||||||
const _SYS_GETDIRENTRIES64 = 344
|
|
||||||
|
|
||||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
|
||||||
// To implement this using libSystem we'd need syscall_syscallPtr for
|
|
||||||
// fdopendir. However, syscallPtr was only added in Go 1.13, so we fall
|
|
||||||
// back to raw syscalls for this func on Go 1.12.
|
|
||||||
var p unsafe.Pointer
|
|
||||||
if len(buf) > 0 {
|
|
||||||
p = unsafe.Pointer(&buf[0])
|
|
||||||
} else {
|
|
||||||
p = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
r0, _, e1 := Syscall6(_SYS_GETDIRENTRIES64, uintptr(fd), uintptr(p), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
|
|
||||||
n = int(r0)
|
|
||||||
if e1 != 0 {
|
|
||||||
return n, errnoErr(e1)
|
|
||||||
}
|
|
||||||
return n, nil
|
|
||||||
}
|
|
108
vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go
generated
vendored
108
vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go
generated
vendored
@ -1,108 +0,0 @@
|
|||||||
// Copyright 2019 The Go Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style
|
|
||||||
// license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
//go:build darwin && go1.13
|
|
||||||
// +build darwin,go1.13
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
import (
|
|
||||||
"unsafe"
|
|
||||||
|
|
||||||
"golang.org/x/sys/internal/unsafeheader"
|
|
||||||
)
|
|
||||||
|
|
||||||
//sys closedir(dir uintptr) (err error)
|
|
||||||
//sys readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno)
|
|
||||||
|
|
||||||
func fdopendir(fd int) (dir uintptr, err error) {
|
|
||||||
r0, _, e1 := syscall_syscallPtr(libc_fdopendir_trampoline_addr, uintptr(fd), 0, 0)
|
|
||||||
dir = uintptr(r0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
var libc_fdopendir_trampoline_addr uintptr
|
|
||||||
|
|
||||||
//go:cgo_import_dynamic libc_fdopendir fdopendir "/usr/lib/libSystem.B.dylib"
|
|
||||||
|
|
||||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
|
||||||
// Simulate Getdirentries using fdopendir/readdir_r/closedir.
|
|
||||||
// We store the number of entries to skip in the seek
|
|
||||||
// offset of fd. See issue #31368.
|
|
||||||
// It's not the full required semantics, but should handle the case
|
|
||||||
// of calling Getdirentries or ReadDirent repeatedly.
|
|
||||||
// It won't handle assigning the results of lseek to *basep, or handle
|
|
||||||
// the directory being edited underfoot.
|
|
||||||
skip, err := Seek(fd, 0, 1 /* SEEK_CUR */)
|
|
||||||
if err != nil {
|
|
||||||
return 0, err
|
|
||||||
}
|
|
||||||
|
|
||||||
// We need to duplicate the incoming file descriptor
|
|
||||||
// because the caller expects to retain control of it, but
|
|
||||||
// fdopendir expects to take control of its argument.
|
|
||||||
// Just Dup'ing the file descriptor is not enough, as the
|
|
||||||
// result shares underlying state. Use Openat to make a really
|
|
||||||
// new file descriptor referring to the same directory.
|
|
||||||
fd2, err := Openat(fd, ".", O_RDONLY, 0)
|
|
||||||
if err != nil {
|
|
||||||
return 0, err
|
|
||||||
}
|
|
||||||
d, err := fdopendir(fd2)
|
|
||||||
if err != nil {
|
|
||||||
Close(fd2)
|
|
||||||
return 0, err
|
|
||||||
}
|
|
||||||
defer closedir(d)
|
|
||||||
|
|
||||||
var cnt int64
|
|
||||||
for {
|
|
||||||
var entry Dirent
|
|
||||||
var entryp *Dirent
|
|
||||||
e := readdir_r(d, &entry, &entryp)
|
|
||||||
if e != 0 {
|
|
||||||
return n, errnoErr(e)
|
|
||||||
}
|
|
||||||
if entryp == nil {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
if skip > 0 {
|
|
||||||
skip--
|
|
||||||
cnt++
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
reclen := int(entry.Reclen)
|
|
||||||
if reclen > len(buf) {
|
|
||||||
// Not enough room. Return for now.
|
|
||||||
// The counter will let us know where we should start up again.
|
|
||||||
// Note: this strategy for suspending in the middle and
|
|
||||||
// restarting is O(n^2) in the length of the directory. Oh well.
|
|
||||||
break
|
|
||||||
}
|
|
||||||
|
|
||||||
// Copy entry into return buffer.
|
|
||||||
var s []byte
|
|
||||||
hdr := (*unsafeheader.Slice)(unsafe.Pointer(&s))
|
|
||||||
hdr.Data = unsafe.Pointer(&entry)
|
|
||||||
hdr.Cap = reclen
|
|
||||||
hdr.Len = reclen
|
|
||||||
copy(buf, s)
|
|
||||||
|
|
||||||
buf = buf[reclen:]
|
|
||||||
n += reclen
|
|
||||||
cnt++
|
|
||||||
}
|
|
||||||
// Set the seek offset of the input fd to record
|
|
||||||
// how many files we've already returned.
|
|
||||||
_, err = Seek(fd, cnt, 0 /* SEEK_SET */)
|
|
||||||
if err != nil {
|
|
||||||
return n, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return n, nil
|
|
||||||
}
|
|
90
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
90
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
@ -19,6 +19,96 @@ import (
|
|||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//sys closedir(dir uintptr) (err error)
|
||||||
|
//sys readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno)
|
||||||
|
|
||||||
|
func fdopendir(fd int) (dir uintptr, err error) {
|
||||||
|
r0, _, e1 := syscall_syscallPtr(libc_fdopendir_trampoline_addr, uintptr(fd), 0, 0)
|
||||||
|
dir = uintptr(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_fdopendir_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_fdopendir fdopendir "/usr/lib/libSystem.B.dylib"
|
||||||
|
|
||||||
|
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
|
// Simulate Getdirentries using fdopendir/readdir_r/closedir.
|
||||||
|
// We store the number of entries to skip in the seek
|
||||||
|
// offset of fd. See issue #31368.
|
||||||
|
// It's not the full required semantics, but should handle the case
|
||||||
|
// of calling Getdirentries or ReadDirent repeatedly.
|
||||||
|
// It won't handle assigning the results of lseek to *basep, or handle
|
||||||
|
// the directory being edited underfoot.
|
||||||
|
skip, err := Seek(fd, 0, 1 /* SEEK_CUR */)
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
|
||||||
|
// We need to duplicate the incoming file descriptor
|
||||||
|
// because the caller expects to retain control of it, but
|
||||||
|
// fdopendir expects to take control of its argument.
|
||||||
|
// Just Dup'ing the file descriptor is not enough, as the
|
||||||
|
// result shares underlying state. Use Openat to make a really
|
||||||
|
// new file descriptor referring to the same directory.
|
||||||
|
fd2, err := Openat(fd, ".", O_RDONLY, 0)
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
d, err := fdopendir(fd2)
|
||||||
|
if err != nil {
|
||||||
|
Close(fd2)
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
defer closedir(d)
|
||||||
|
|
||||||
|
var cnt int64
|
||||||
|
for {
|
||||||
|
var entry Dirent
|
||||||
|
var entryp *Dirent
|
||||||
|
e := readdir_r(d, &entry, &entryp)
|
||||||
|
if e != 0 {
|
||||||
|
return n, errnoErr(e)
|
||||||
|
}
|
||||||
|
if entryp == nil {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
if skip > 0 {
|
||||||
|
skip--
|
||||||
|
cnt++
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
reclen := int(entry.Reclen)
|
||||||
|
if reclen > len(buf) {
|
||||||
|
// Not enough room. Return for now.
|
||||||
|
// The counter will let us know where we should start up again.
|
||||||
|
// Note: this strategy for suspending in the middle and
|
||||||
|
// restarting is O(n^2) in the length of the directory. Oh well.
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
// Copy entry into return buffer.
|
||||||
|
s := unsafe.Slice((*byte)(unsafe.Pointer(&entry)), reclen)
|
||||||
|
copy(buf, s)
|
||||||
|
|
||||||
|
buf = buf[reclen:]
|
||||||
|
n += reclen
|
||||||
|
cnt++
|
||||||
|
}
|
||||||
|
// Set the seek offset of the input fd to record
|
||||||
|
// how many files we've already returned.
|
||||||
|
_, err = Seek(fd, cnt, 0 /* SEEK_SET */)
|
||||||
|
if err != nil {
|
||||||
|
return n, err
|
||||||
|
}
|
||||||
|
|
||||||
|
return n, nil
|
||||||
|
}
|
||||||
|
|
||||||
// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
|
// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
|
||||||
type SockaddrDatalink struct {
|
type SockaddrDatalink struct {
|
||||||
Len uint8
|
Len uint8
|
||||||
|
1
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
1
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
@ -255,6 +255,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)
|
||||||
|
1
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
1
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
@ -319,6 +319,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)
|
||||||
|
2
vendor/golang.org/x/sys/unix/syscall_freebsd_386.go
generated
vendored
2
vendor/golang.org/x/sys/unix/syscall_freebsd_386.go
generated
vendored
@ -61,7 +61,7 @@ func PtraceGetFsBase(pid int, fsbase *int64) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
||||||
ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint32(countin)}
|
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)
|
err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
||||||
return int(ioDesc.Len), err
|
return int(ioDesc.Len), err
|
||||||
}
|
}
|
||||||
|
2
vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
generated
vendored
2
vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
generated
vendored
@ -61,7 +61,7 @@ func PtraceGetFsBase(pid int, fsbase *int64) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
||||||
ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint64(countin)}
|
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)
|
err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
||||||
return int(ioDesc.Len), err
|
return int(ioDesc.Len), err
|
||||||
}
|
}
|
||||||
|
2
vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
generated
vendored
2
vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
generated
vendored
@ -57,7 +57,7 @@ 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) {
|
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
||||||
ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint32(countin)}
|
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)
|
err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
||||||
return int(ioDesc.Len), err
|
return int(ioDesc.Len), err
|
||||||
}
|
}
|
||||||
|
2
vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
generated
vendored
2
vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
generated
vendored
@ -57,7 +57,7 @@ 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) {
|
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
||||||
ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint64(countin)}
|
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)
|
err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
||||||
return int(ioDesc.Len), err
|
return int(ioDesc.Len), err
|
||||||
}
|
}
|
||||||
|
2
vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go
generated
vendored
2
vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go
generated
vendored
@ -57,7 +57,7 @@ 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) {
|
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
||||||
ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint64(countin)}
|
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)
|
err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
||||||
return int(ioDesc.Len), err
|
return int(ioDesc.Len), err
|
||||||
}
|
}
|
||||||
|
22
vendor/golang.org/x/sys/unix/syscall_hurd.go
generated
vendored
Normal file
22
vendor/golang.org/x/sys/unix/syscall_hurd.go
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
// 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
|
||||||
|
}
|
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
|
||||||
|
}
|
106
vendor/golang.org/x/sys/unix/syscall_illumos.go
generated
vendored
106
vendor/golang.org/x/sys/unix/syscall_illumos.go
generated
vendored
@ -10,8 +10,6 @@
|
|||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"runtime"
|
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -79,107 +77,3 @@ func Accept4(fd int, flags int) (nfd int, sa Sockaddr, err error) {
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//sys putmsg(fd int, clptr *strbuf, dataptr *strbuf, flags int) (err error)
|
|
||||||
|
|
||||||
func Putmsg(fd int, cl []byte, data []byte, flags int) (err error) {
|
|
||||||
var clp, datap *strbuf
|
|
||||||
if len(cl) > 0 {
|
|
||||||
clp = &strbuf{
|
|
||||||
Len: int32(len(cl)),
|
|
||||||
Buf: (*int8)(unsafe.Pointer(&cl[0])),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if len(data) > 0 {
|
|
||||||
datap = &strbuf{
|
|
||||||
Len: int32(len(data)),
|
|
||||||
Buf: (*int8)(unsafe.Pointer(&data[0])),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return putmsg(fd, clp, datap, flags)
|
|
||||||
}
|
|
||||||
|
|
||||||
//sys getmsg(fd int, clptr *strbuf, dataptr *strbuf, flags *int) (err error)
|
|
||||||
|
|
||||||
func Getmsg(fd int, cl []byte, data []byte) (retCl []byte, retData []byte, flags int, err error) {
|
|
||||||
var clp, datap *strbuf
|
|
||||||
if len(cl) > 0 {
|
|
||||||
clp = &strbuf{
|
|
||||||
Maxlen: int32(len(cl)),
|
|
||||||
Buf: (*int8)(unsafe.Pointer(&cl[0])),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if len(data) > 0 {
|
|
||||||
datap = &strbuf{
|
|
||||||
Maxlen: int32(len(data)),
|
|
||||||
Buf: (*int8)(unsafe.Pointer(&data[0])),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if err = getmsg(fd, clp, datap, &flags); err != nil {
|
|
||||||
return nil, nil, 0, err
|
|
||||||
}
|
|
||||||
|
|
||||||
if len(cl) > 0 {
|
|
||||||
retCl = cl[:clp.Len]
|
|
||||||
}
|
|
||||||
if len(data) > 0 {
|
|
||||||
retData = data[:datap.Len]
|
|
||||||
}
|
|
||||||
return retCl, retData, flags, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlSetIntRetInt(fd int, req uint, arg int) (int, error) {
|
|
||||||
return ioctlRet(fd, req, uintptr(arg))
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlSetString(fd int, req uint, val string) error {
|
|
||||||
bs := make([]byte, len(val)+1)
|
|
||||||
copy(bs[:len(bs)-1], val)
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&bs[0])))
|
|
||||||
runtime.KeepAlive(&bs[0])
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Lifreq Helpers
|
|
||||||
|
|
||||||
func (l *Lifreq) SetName(name string) error {
|
|
||||||
if len(name) >= len(l.Name) {
|
|
||||||
return fmt.Errorf("name cannot be more than %d characters", len(l.Name)-1)
|
|
||||||
}
|
|
||||||
for i := range name {
|
|
||||||
l.Name[i] = int8(name[i])
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (l *Lifreq) SetLifruInt(d int) {
|
|
||||||
*(*int)(unsafe.Pointer(&l.Lifru[0])) = d
|
|
||||||
}
|
|
||||||
|
|
||||||
func (l *Lifreq) GetLifruInt() int {
|
|
||||||
return *(*int)(unsafe.Pointer(&l.Lifru[0]))
|
|
||||||
}
|
|
||||||
|
|
||||||
func (l *Lifreq) SetLifruUint(d uint) {
|
|
||||||
*(*uint)(unsafe.Pointer(&l.Lifru[0])) = d
|
|
||||||
}
|
|
||||||
|
|
||||||
func (l *Lifreq) GetLifruUint() uint {
|
|
||||||
return *(*uint)(unsafe.Pointer(&l.Lifru[0]))
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlLifreq(fd int, req uint, l *Lifreq) error {
|
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(l)))
|
|
||||||
}
|
|
||||||
|
|
||||||
// Strioctl Helpers
|
|
||||||
|
|
||||||
func (s *Strioctl) SetInt(i int) {
|
|
||||||
s.Len = int32(unsafe.Sizeof(i))
|
|
||||||
s.Dp = (*int8)(unsafe.Pointer(&i))
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlSetStrioctlRetInt(fd int, req uint, s *Strioctl) (int, error) {
|
|
||||||
return ioctlRet(fd, req, uintptr(unsafe.Pointer(s)))
|
|
||||||
}
|
|
||||||
|
96
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
96
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
@ -13,6 +13,7 @@ package unix
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
|
"strconv"
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
@ -233,7 +234,7 @@ func Futimesat(dirfd int, path string, tv []Timeval) error {
|
|||||||
func Futimes(fd int, tv []Timeval) (err error) {
|
func Futimes(fd int, tv []Timeval) (err error) {
|
||||||
// Believe it or not, this is the best we can do on Linux
|
// Believe it or not, this is the best we can do on Linux
|
||||||
// (and is what glibc does).
|
// (and is what glibc does).
|
||||||
return Utimes("/proc/self/fd/"+itoa(fd), tv)
|
return Utimes("/proc/self/fd/"+strconv.Itoa(fd), tv)
|
||||||
}
|
}
|
||||||
|
|
||||||
const ImplementsGetwd = true
|
const ImplementsGetwd = true
|
||||||
@ -1541,7 +1542,7 @@ func sendmsgN(fd int, iov []Iovec, oob []byte, ptr unsafe.Pointer, salen _Sockle
|
|||||||
var dummy byte
|
var dummy byte
|
||||||
var empty bool
|
var empty bool
|
||||||
if len(oob) > 0 {
|
if len(oob) > 0 {
|
||||||
empty := emptyIovecs(iov)
|
empty = emptyIovecs(iov)
|
||||||
if empty {
|
if empty {
|
||||||
var sockType int
|
var sockType int
|
||||||
sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE)
|
sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE)
|
||||||
@ -1553,6 +1554,7 @@ func sendmsgN(fd int, iov []Iovec, oob []byte, ptr unsafe.Pointer, salen _Sockle
|
|||||||
var iova [1]Iovec
|
var iova [1]Iovec
|
||||||
iova[0].Base = &dummy
|
iova[0].Base = &dummy
|
||||||
iova[0].SetLen(1)
|
iova[0].SetLen(1)
|
||||||
|
iov = iova[:]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
msg.Control = &oob[0]
|
msg.Control = &oob[0]
|
||||||
@ -1891,17 +1893,28 @@ func PrctlRetInt(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uint
|
|||||||
return int(ret), nil
|
return int(ret), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// issue 1435.
|
|
||||||
// On linux Setuid and Setgid only affects the current thread, not the process.
|
|
||||||
// This does not match what most callers expect so we must return an error
|
|
||||||
// here rather than letting the caller think that the call succeeded.
|
|
||||||
|
|
||||||
func Setuid(uid int) (err error) {
|
func Setuid(uid int) (err error) {
|
||||||
return EOPNOTSUPP
|
return syscall.Setuid(uid)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Setgid(uid int) (err error) {
|
func Setgid(gid int) (err error) {
|
||||||
return EOPNOTSUPP
|
return syscall.Setgid(gid)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Setreuid(ruid, euid int) (err error) {
|
||||||
|
return syscall.Setreuid(ruid, euid)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Setregid(rgid, egid int) (err error) {
|
||||||
|
return syscall.Setregid(rgid, egid)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Setresuid(ruid, euid, suid int) (err error) {
|
||||||
|
return syscall.Setresuid(ruid, euid, suid)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Setresgid(rgid, egid, sgid int) (err error) {
|
||||||
|
return syscall.Setresgid(rgid, egid, sgid)
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetfsgidRetGid sets fsgid for current thread and returns previous fsgid set.
|
// SetfsgidRetGid sets fsgid for current thread and returns previous fsgid set.
|
||||||
@ -1960,36 +1973,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)
|
||||||
}
|
}
|
||||||
|
|
||||||
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)
|
||||||
@ -1997,7 +2020,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)
|
||||||
@ -2024,7 +2048,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))
|
||||||
}
|
}
|
||||||
@ -2034,7 +2059,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))
|
||||||
}
|
}
|
||||||
@ -2045,7 +2071,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))
|
||||||
}
|
}
|
||||||
@ -2240,7 +2267,7 @@ func (fh *FileHandle) Bytes() []byte {
|
|||||||
if n == 0 {
|
if n == 0 {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return (*[1 << 30]byte)(unsafe.Pointer(uintptr(unsafe.Pointer(&fh.fileHandle.Type)) + 4))[:n:n]
|
return unsafe.Slice((*byte)(unsafe.Pointer(uintptr(unsafe.Pointer(&fh.fileHandle.Type))+4)), n)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NameToHandleAt wraps the name_to_handle_at system call; it obtains
|
// NameToHandleAt wraps the name_to_handle_at system call; it obtains
|
||||||
@ -2356,6 +2383,16 @@ func Setitimer(which ItimerWhich, it Itimerval) (Itimerval, error) {
|
|||||||
return prev, nil
|
return prev, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sysnb rtSigprocmask(how int, set *Sigset_t, oldset *Sigset_t, sigsetsize uintptr) (err error) = SYS_RT_SIGPROCMASK
|
||||||
|
|
||||||
|
func PthreadSigmask(how int, set, oldset *Sigset_t) error {
|
||||||
|
if oldset != nil {
|
||||||
|
// Explicitly clear in case Sigset_t is larger than _C__NSIG.
|
||||||
|
*oldset = Sigset_t{}
|
||||||
|
}
|
||||||
|
return rtSigprocmask(how, set, oldset, _C__NSIG/8)
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unimplemented
|
* Unimplemented
|
||||||
*/
|
*/
|
||||||
@ -2414,7 +2451,6 @@ func Setitimer(which ItimerWhich, it Itimerval) (Itimerval, error) {
|
|||||||
// RestartSyscall
|
// RestartSyscall
|
||||||
// RtSigaction
|
// RtSigaction
|
||||||
// RtSigpending
|
// RtSigpending
|
||||||
// RtSigprocmask
|
|
||||||
// RtSigqueueinfo
|
// RtSigqueueinfo
|
||||||
// RtSigreturn
|
// RtSigreturn
|
||||||
// RtSigsuspend
|
// RtSigsuspend
|
||||||
|
4
vendor/golang.org/x/sys/unix/syscall_linux_386.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_linux_386.go
generated
vendored
@ -41,10 +41,6 @@ func setTimeval(sec, usec int64) Timeval {
|
|||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
||||||
//sys setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32
|
//sys setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32
|
||||||
//sys setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32
|
//sys setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32
|
||||||
//sysnb Setregid(rgid int, egid int) (err error) = SYS_SETREGID32
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID32
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error) = SYS_SETRESUID32
|
|
||||||
//sysnb Setreuid(ruid int, euid int) (err error) = SYS_SETREUID32
|
|
||||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
|
||||||
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
||||||
//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
|
//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
|
||||||
|
4
vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
generated
vendored
@ -46,11 +46,7 @@ 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 Setregid(rgid int, egid int) (err error)
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
|
||||||
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
||||||
//sysnb Setreuid(ruid int, euid int) (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)
|
||||||
|
|
||||||
|
4
vendor/golang.org/x/sys/unix/syscall_linux_arm.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_linux_arm.go
generated
vendored
@ -62,10 +62,6 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
|||||||
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
|
||||||
//sys setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32
|
//sys setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32
|
||||||
//sys setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32
|
//sys setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32
|
||||||
//sysnb Setregid(rgid int, egid int) (err error) = SYS_SETREGID32
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID32
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error) = SYS_SETRESUID32
|
|
||||||
//sysnb Setreuid(ruid int, euid int) (err error) = SYS_SETREUID32
|
|
||||||
//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 int, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
|
||||||
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
||||||
|
4
vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
generated
vendored
@ -39,11 +39,7 @@ 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 Setregid(rgid int, egid int) (err error)
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
|
||||||
//sysnb setrlimit(resource int, rlim *Rlimit) (err error)
|
//sysnb setrlimit(resource int, rlim *Rlimit) (err error)
|
||||||
//sysnb Setreuid(ruid int, euid int) (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)
|
||||||
|
|
||||||
|
4
vendor/golang.org/x/sys/unix/syscall_linux_loong64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_linux_loong64.go
generated
vendored
@ -34,10 +34,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 Setregid(rgid int, egid int) (err error)
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
|
||||||
//sysnb Setreuid(ruid int, euid int) (err error)
|
|
||||||
//sys Shutdown(fd int, how int) (err error)
|
//sys 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)
|
||||||
|
|
||||||
|
4
vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
generated
vendored
@ -37,11 +37,7 @@ 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 Setregid(rgid int, egid int) (err error)
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
|
||||||
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
||||||
//sysnb Setreuid(ruid int, euid int) (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)
|
||||||
|
4
vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
generated
vendored
@ -32,10 +32,6 @@ func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr,
|
|||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
||||||
//sys setfsgid(gid int) (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 Setregid(rgid int, egid int) (err error)
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
|
||||||
//sysnb Setreuid(ruid int, euid int) (err error)
|
|
||||||
//sys Shutdown(fd int, how int) (err error)
|
//sys Shutdown(fd int, how int) (err error)
|
||||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
|
||||||
//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
|
//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
|
||||||
|
4
vendor/golang.org/x/sys/unix/syscall_linux_ppc.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_linux_ppc.go
generated
vendored
@ -34,10 +34,6 @@ import (
|
|||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
||||||
//sys setfsgid(gid int) (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 Setregid(rgid int, egid int) (err error)
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
|
||||||
//sysnb Setreuid(ruid int, euid int) (err error)
|
|
||||||
//sys Shutdown(fd int, how int) (err error)
|
//sys Shutdown(fd int, how int) (err error)
|
||||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
|
||||||
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
||||||
|
4
vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
generated
vendored
@ -34,11 +34,7 @@ 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 Setregid(rgid int, egid int) (err error)
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
|
||||||
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
||||||
//sysnb Setreuid(ruid int, euid int) (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)
|
||||||
|
4
vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
generated
vendored
@ -38,11 +38,7 @@ 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 Setregid(rgid int, egid int) (err error)
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
|
||||||
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
||||||
//sysnb Setreuid(ruid int, euid int) (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)
|
||||||
|
|
||||||
|
4
vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
generated
vendored
@ -34,11 +34,7 @@ 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 Setregid(rgid int, egid int) (err error)
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
|
||||||
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
||||||
//sysnb Setreuid(ruid int, euid 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)
|
||||||
//sys Statfs(path string, buf *Statfs_t) (err error)
|
//sys Statfs(path string, buf *Statfs_t) (err error)
|
||||||
|
4
vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
generated
vendored
@ -31,11 +31,7 @@ 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 Setregid(rgid int, egid int) (err error)
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
|
||||||
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
||||||
//sysnb Setreuid(ruid int, euid int) (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)
|
||||||
|
15
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
15
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
@ -110,6 +110,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)
|
||||||
}
|
}
|
||||||
@ -245,6 +259,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)
|
||||||
|
1
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
1
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
@ -220,6 +220,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)
|
||||||
|
27
vendor/golang.org/x/sys/unix/syscall_openbsd_libc.go
generated
vendored
Normal file
27
vendor/golang.org/x/sys/unix/syscall_openbsd_libc.go
generated
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
// 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 openbsd
|
||||||
|
// +build openbsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import _ "unsafe"
|
||||||
|
|
||||||
|
// Implemented in the runtime package (runtime/sys_openbsd3.go)
|
||||||
|
func syscall_syscall(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
|
||||||
|
func syscall_syscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
|
||||||
|
func syscall_syscall10(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 uintptr) (r1, r2 uintptr, err Errno)
|
||||||
|
func syscall_rawSyscall(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
|
||||||
|
func syscall_rawSyscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
|
||||||
|
|
||||||
|
//go:linkname syscall_syscall syscall.syscall
|
||||||
|
//go:linkname syscall_syscall6 syscall.syscall6
|
||||||
|
//go:linkname syscall_syscall10 syscall.syscall10
|
||||||
|
//go:linkname syscall_rawSyscall syscall.rawSyscall
|
||||||
|
//go:linkname syscall_rawSyscall6 syscall.rawSyscall6
|
||||||
|
|
||||||
|
func syscall_syscall9(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno) {
|
||||||
|
return syscall_syscall10(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9, 0)
|
||||||
|
}
|
42
vendor/golang.org/x/sys/unix/syscall_openbsd_ppc64.go
generated
vendored
Normal file
42
vendor/golang.org/x/sys/unix/syscall_openbsd_ppc64.go
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build ppc64 && openbsd
|
||||||
|
// +build ppc64,openbsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
|
return Timespec{Sec: sec, Nsec: nsec}
|
||||||
|
}
|
||||||
|
|
||||||
|
func setTimeval(sec, usec int64) Timeval {
|
||||||
|
return Timeval{Sec: sec, Usec: usec}
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetKevent(k *Kevent_t, fd, mode, flags int) {
|
||||||
|
k.Ident = uint64(fd)
|
||||||
|
k.Filter = int16(mode)
|
||||||
|
k.Flags = uint16(flags)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (iov *Iovec) SetLen(length int) {
|
||||||
|
iov.Len = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
|
msghdr.Controllen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
|
cmsg.Len = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
||||||
|
// of openbsd/ppc64 the syscall is called sysctl instead of __sysctl.
|
||||||
|
const SYS___SYSCTL = SYS_SYSCTL
|
42
vendor/golang.org/x/sys/unix/syscall_openbsd_riscv64.go
generated
vendored
Normal file
42
vendor/golang.org/x/sys/unix/syscall_openbsd_riscv64.go
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build riscv64 && openbsd
|
||||||
|
// +build riscv64,openbsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
|
return Timespec{Sec: sec, Nsec: nsec}
|
||||||
|
}
|
||||||
|
|
||||||
|
func setTimeval(sec, usec int64) Timeval {
|
||||||
|
return Timeval{Sec: sec, Usec: usec}
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetKevent(k *Kevent_t, fd, mode, flags int) {
|
||||||
|
k.Ident = uint64(fd)
|
||||||
|
k.Filter = int16(mode)
|
||||||
|
k.Flags = uint16(flags)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (iov *Iovec) SetLen(length int) {
|
||||||
|
iov.Len = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
|
msghdr.Controllen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
|
cmsg.Len = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
||||||
|
// of openbsd/riscv64 the syscall is called sysctl instead of __sysctl.
|
||||||
|
const SYS___SYSCTL = SYS_SYSCTL
|
206
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
206
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
@ -590,6 +590,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)
|
||||||
@ -750,8 +751,8 @@ type EventPort struct {
|
|||||||
// we should handle things gracefully. To do so, we need to keep an extra
|
// we should handle things gracefully. To do so, we need to keep an extra
|
||||||
// reference to the cookie around until the event is processed
|
// reference to the cookie around until the event is processed
|
||||||
// thus the otherwise seemingly extraneous "cookies" map
|
// thus the otherwise seemingly extraneous "cookies" map
|
||||||
// The key of this map is a pointer to the corresponding &fCookie.cookie
|
// The key of this map is a pointer to the corresponding fCookie
|
||||||
cookies map[*interface{}]*fileObjCookie
|
cookies map[*fileObjCookie]struct{}
|
||||||
}
|
}
|
||||||
|
|
||||||
// PortEvent is an abstraction of the port_event C struct.
|
// PortEvent is an abstraction of the port_event C struct.
|
||||||
@ -778,7 +779,7 @@ func NewEventPort() (*EventPort, error) {
|
|||||||
port: port,
|
port: port,
|
||||||
fds: make(map[uintptr]*fileObjCookie),
|
fds: make(map[uintptr]*fileObjCookie),
|
||||||
paths: make(map[string]*fileObjCookie),
|
paths: make(map[string]*fileObjCookie),
|
||||||
cookies: make(map[*interface{}]*fileObjCookie),
|
cookies: make(map[*fileObjCookie]struct{}),
|
||||||
}
|
}
|
||||||
return e, nil
|
return e, nil
|
||||||
}
|
}
|
||||||
@ -799,6 +800,7 @@ func (e *EventPort) Close() error {
|
|||||||
}
|
}
|
||||||
e.fds = nil
|
e.fds = nil
|
||||||
e.paths = nil
|
e.paths = nil
|
||||||
|
e.cookies = nil
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -826,17 +828,16 @@ func (e *EventPort) AssociatePath(path string, stat os.FileInfo, events int, coo
|
|||||||
if _, found := e.paths[path]; found {
|
if _, found := e.paths[path]; found {
|
||||||
return fmt.Errorf("%v is already associated with this Event Port", path)
|
return fmt.Errorf("%v is already associated with this Event Port", path)
|
||||||
}
|
}
|
||||||
fobj, err := createFileObj(path, stat)
|
fCookie, err := createFileObjCookie(path, stat, cookie)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
fCookie := &fileObjCookie{fobj, cookie}
|
_, err = port_associate(e.port, PORT_SOURCE_FILE, uintptr(unsafe.Pointer(fCookie.fobj)), events, (*byte)(unsafe.Pointer(fCookie)))
|
||||||
_, err = port_associate(e.port, PORT_SOURCE_FILE, uintptr(unsafe.Pointer(fobj)), events, (*byte)(unsafe.Pointer(&fCookie.cookie)))
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
e.paths[path] = fCookie
|
e.paths[path] = fCookie
|
||||||
e.cookies[&fCookie.cookie] = fCookie
|
e.cookies[fCookie] = struct{}{}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -858,7 +859,7 @@ func (e *EventPort) DissociatePath(path string) error {
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
// dissociate was successful, safe to delete the cookie
|
// dissociate was successful, safe to delete the cookie
|
||||||
fCookie := e.paths[path]
|
fCookie := e.paths[path]
|
||||||
delete(e.cookies, &fCookie.cookie)
|
delete(e.cookies, fCookie)
|
||||||
}
|
}
|
||||||
delete(e.paths, path)
|
delete(e.paths, path)
|
||||||
return err
|
return err
|
||||||
@ -871,13 +872,16 @@ func (e *EventPort) AssociateFd(fd uintptr, events int, cookie interface{}) erro
|
|||||||
if _, found := e.fds[fd]; found {
|
if _, found := e.fds[fd]; found {
|
||||||
return fmt.Errorf("%v is already associated with this Event Port", fd)
|
return fmt.Errorf("%v is already associated with this Event Port", fd)
|
||||||
}
|
}
|
||||||
fCookie := &fileObjCookie{nil, cookie}
|
fCookie, err := createFileObjCookie("", nil, cookie)
|
||||||
_, err := port_associate(e.port, PORT_SOURCE_FD, fd, events, (*byte)(unsafe.Pointer(&fCookie.cookie)))
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
_, err = port_associate(e.port, PORT_SOURCE_FD, fd, events, (*byte)(unsafe.Pointer(fCookie)))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
e.fds[fd] = fCookie
|
e.fds[fd] = fCookie
|
||||||
e.cookies[&fCookie.cookie] = fCookie
|
e.cookies[fCookie] = struct{}{}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -896,27 +900,31 @@ func (e *EventPort) DissociateFd(fd uintptr) error {
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
// dissociate was successful, safe to delete the cookie
|
// dissociate was successful, safe to delete the cookie
|
||||||
fCookie := e.fds[fd]
|
fCookie := e.fds[fd]
|
||||||
delete(e.cookies, &fCookie.cookie)
|
delete(e.cookies, fCookie)
|
||||||
}
|
}
|
||||||
delete(e.fds, fd)
|
delete(e.fds, fd)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func createFileObj(name string, stat os.FileInfo) (*fileObj, error) {
|
func createFileObjCookie(name string, stat os.FileInfo, cookie interface{}) (*fileObjCookie, error) {
|
||||||
fobj := new(fileObj)
|
fCookie := new(fileObjCookie)
|
||||||
|
fCookie.cookie = cookie
|
||||||
|
if name != "" && stat != nil {
|
||||||
|
fCookie.fobj = new(fileObj)
|
||||||
bs, err := ByteSliceFromString(name)
|
bs, err := ByteSliceFromString(name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
fobj.Name = (*int8)(unsafe.Pointer(&bs[0]))
|
fCookie.fobj.Name = (*int8)(unsafe.Pointer(&bs[0]))
|
||||||
s := stat.Sys().(*syscall.Stat_t)
|
s := stat.Sys().(*syscall.Stat_t)
|
||||||
fobj.Atim.Sec = s.Atim.Sec
|
fCookie.fobj.Atim.Sec = s.Atim.Sec
|
||||||
fobj.Atim.Nsec = s.Atim.Nsec
|
fCookie.fobj.Atim.Nsec = s.Atim.Nsec
|
||||||
fobj.Mtim.Sec = s.Mtim.Sec
|
fCookie.fobj.Mtim.Sec = s.Mtim.Sec
|
||||||
fobj.Mtim.Nsec = s.Mtim.Nsec
|
fCookie.fobj.Mtim.Nsec = s.Mtim.Nsec
|
||||||
fobj.Ctim.Sec = s.Ctim.Sec
|
fCookie.fobj.Ctim.Sec = s.Ctim.Sec
|
||||||
fobj.Ctim.Nsec = s.Ctim.Nsec
|
fCookie.fobj.Ctim.Nsec = s.Ctim.Nsec
|
||||||
return fobj, nil
|
}
|
||||||
|
return fCookie, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetOne wraps port_get(3c) and returns a single PortEvent.
|
// GetOne wraps port_get(3c) and returns a single PortEvent.
|
||||||
@ -929,44 +937,50 @@ func (e *EventPort) GetOne(t *Timespec) (*PortEvent, error) {
|
|||||||
p := new(PortEvent)
|
p := new(PortEvent)
|
||||||
e.mu.Lock()
|
e.mu.Lock()
|
||||||
defer e.mu.Unlock()
|
defer e.mu.Unlock()
|
||||||
e.peIntToExt(pe, p)
|
err = e.peIntToExt(pe, p)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
return p, nil
|
return p, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// peIntToExt converts a cgo portEvent struct into the friendlier PortEvent
|
// peIntToExt converts a cgo portEvent struct into the friendlier PortEvent
|
||||||
// NOTE: Always call this function while holding the e.mu mutex
|
// NOTE: Always call this function while holding the e.mu mutex
|
||||||
func (e *EventPort) peIntToExt(peInt *portEvent, peExt *PortEvent) {
|
func (e *EventPort) peIntToExt(peInt *portEvent, peExt *PortEvent) error {
|
||||||
|
if e.cookies == nil {
|
||||||
|
return fmt.Errorf("this EventPort is already closed")
|
||||||
|
}
|
||||||
peExt.Events = peInt.Events
|
peExt.Events = peInt.Events
|
||||||
peExt.Source = peInt.Source
|
peExt.Source = peInt.Source
|
||||||
cookie := (*interface{})(unsafe.Pointer(peInt.User))
|
fCookie := (*fileObjCookie)(unsafe.Pointer(peInt.User))
|
||||||
peExt.Cookie = *cookie
|
_, found := e.cookies[fCookie]
|
||||||
|
|
||||||
|
if !found {
|
||||||
|
panic("unexpected event port address; may be due to kernel bug; see https://go.dev/issue/54254")
|
||||||
|
}
|
||||||
|
peExt.Cookie = fCookie.cookie
|
||||||
|
delete(e.cookies, fCookie)
|
||||||
|
|
||||||
switch peInt.Source {
|
switch peInt.Source {
|
||||||
case PORT_SOURCE_FD:
|
case PORT_SOURCE_FD:
|
||||||
delete(e.cookies, cookie)
|
|
||||||
peExt.Fd = uintptr(peInt.Object)
|
peExt.Fd = uintptr(peInt.Object)
|
||||||
// Only remove the fds entry if it exists and this cookie matches
|
// Only remove the fds entry if it exists and this cookie matches
|
||||||
if fobj, ok := e.fds[peExt.Fd]; ok {
|
if fobj, ok := e.fds[peExt.Fd]; ok {
|
||||||
if &fobj.cookie == cookie {
|
if fobj == fCookie {
|
||||||
delete(e.fds, peExt.Fd)
|
delete(e.fds, peExt.Fd)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case PORT_SOURCE_FILE:
|
case PORT_SOURCE_FILE:
|
||||||
if fCookie, ok := e.cookies[cookie]; ok && uintptr(unsafe.Pointer(fCookie.fobj)) == uintptr(peInt.Object) {
|
|
||||||
// Use our stashed reference rather than using unsafe on what we got back
|
|
||||||
// the unsafe version would be (*fileObj)(unsafe.Pointer(uintptr(peInt.Object)))
|
|
||||||
peExt.fobj = fCookie.fobj
|
peExt.fobj = fCookie.fobj
|
||||||
} else {
|
|
||||||
panic("mismanaged memory")
|
|
||||||
}
|
|
||||||
delete(e.cookies, cookie)
|
|
||||||
peExt.Path = BytePtrToString((*byte)(unsafe.Pointer(peExt.fobj.Name)))
|
peExt.Path = BytePtrToString((*byte)(unsafe.Pointer(peExt.fobj.Name)))
|
||||||
// Only remove the paths entry if it exists and this cookie matches
|
// Only remove the paths entry if it exists and this cookie matches
|
||||||
if fobj, ok := e.paths[peExt.Path]; ok {
|
if fobj, ok := e.paths[peExt.Path]; ok {
|
||||||
if &fobj.cookie == cookie {
|
if fobj == fCookie {
|
||||||
delete(e.paths, peExt.Path)
|
delete(e.paths, peExt.Path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pending wraps port_getn(3c) and returns how many events are pending.
|
// Pending wraps port_getn(3c) and returns how many events are pending.
|
||||||
@ -990,7 +1004,7 @@ func (e *EventPort) Get(s []PortEvent, min int, timeout *Timespec) (int, error)
|
|||||||
got := uint32(min)
|
got := uint32(min)
|
||||||
max := uint32(len(s))
|
max := uint32(len(s))
|
||||||
var err error
|
var err error
|
||||||
ps := make([]portEvent, max, max)
|
ps := make([]portEvent, max)
|
||||||
_, err = port_getn(e.port, &ps[0], max, &got, timeout)
|
_, err = port_getn(e.port, &ps[0], max, &got, timeout)
|
||||||
// got will be trustworthy with ETIME, but not any other error.
|
// got will be trustworthy with ETIME, but not any other error.
|
||||||
if err != nil && err != ETIME {
|
if err != nil && err != ETIME {
|
||||||
@ -998,8 +1012,122 @@ func (e *EventPort) Get(s []PortEvent, min int, timeout *Timespec) (int, error)
|
|||||||
}
|
}
|
||||||
e.mu.Lock()
|
e.mu.Lock()
|
||||||
defer e.mu.Unlock()
|
defer e.mu.Unlock()
|
||||||
|
valid := 0
|
||||||
for i := 0; i < int(got); i++ {
|
for i := 0; i < int(got); i++ {
|
||||||
e.peIntToExt(&ps[i], &s[i])
|
err2 := e.peIntToExt(&ps[i], &s[i])
|
||||||
|
if err2 != nil {
|
||||||
|
if valid == 0 && err == nil {
|
||||||
|
// If err2 is the only error and there are no valid events
|
||||||
|
// to return, return it to the caller.
|
||||||
|
err = err2
|
||||||
}
|
}
|
||||||
return int(got), err
|
break
|
||||||
|
}
|
||||||
|
valid = i + 1
|
||||||
|
}
|
||||||
|
return valid, err
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys putmsg(fd int, clptr *strbuf, dataptr *strbuf, flags int) (err error)
|
||||||
|
|
||||||
|
func Putmsg(fd int, cl []byte, data []byte, flags int) (err error) {
|
||||||
|
var clp, datap *strbuf
|
||||||
|
if len(cl) > 0 {
|
||||||
|
clp = &strbuf{
|
||||||
|
Len: int32(len(cl)),
|
||||||
|
Buf: (*int8)(unsafe.Pointer(&cl[0])),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if len(data) > 0 {
|
||||||
|
datap = &strbuf{
|
||||||
|
Len: int32(len(data)),
|
||||||
|
Buf: (*int8)(unsafe.Pointer(&data[0])),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return putmsg(fd, clp, datap, flags)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys getmsg(fd int, clptr *strbuf, dataptr *strbuf, flags *int) (err error)
|
||||||
|
|
||||||
|
func Getmsg(fd int, cl []byte, data []byte) (retCl []byte, retData []byte, flags int, err error) {
|
||||||
|
var clp, datap *strbuf
|
||||||
|
if len(cl) > 0 {
|
||||||
|
clp = &strbuf{
|
||||||
|
Maxlen: int32(len(cl)),
|
||||||
|
Buf: (*int8)(unsafe.Pointer(&cl[0])),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if len(data) > 0 {
|
||||||
|
datap = &strbuf{
|
||||||
|
Maxlen: int32(len(data)),
|
||||||
|
Buf: (*int8)(unsafe.Pointer(&data[0])),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if err = getmsg(fd, clp, datap, &flags); err != nil {
|
||||||
|
return nil, nil, 0, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if len(cl) > 0 {
|
||||||
|
retCl = cl[:clp.Len]
|
||||||
|
}
|
||||||
|
if len(data) > 0 {
|
||||||
|
retData = data[:datap.Len]
|
||||||
|
}
|
||||||
|
return retCl, retData, flags, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlSetIntRetInt(fd int, req uint, arg int) (int, error) {
|
||||||
|
return ioctlRet(fd, req, uintptr(arg))
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlSetString(fd int, req uint, val string) error {
|
||||||
|
bs := make([]byte, len(val)+1)
|
||||||
|
copy(bs[:len(bs)-1], val)
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&bs[0])))
|
||||||
|
runtime.KeepAlive(&bs[0])
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
// Lifreq Helpers
|
||||||
|
|
||||||
|
func (l *Lifreq) SetName(name string) error {
|
||||||
|
if len(name) >= len(l.Name) {
|
||||||
|
return fmt.Errorf("name cannot be more than %d characters", len(l.Name)-1)
|
||||||
|
}
|
||||||
|
for i := range name {
|
||||||
|
l.Name[i] = int8(name[i])
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (l *Lifreq) SetLifruInt(d int) {
|
||||||
|
*(*int)(unsafe.Pointer(&l.Lifru[0])) = d
|
||||||
|
}
|
||||||
|
|
||||||
|
func (l *Lifreq) GetLifruInt() int {
|
||||||
|
return *(*int)(unsafe.Pointer(&l.Lifru[0]))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (l *Lifreq) SetLifruUint(d uint) {
|
||||||
|
*(*uint)(unsafe.Pointer(&l.Lifru[0])) = d
|
||||||
|
}
|
||||||
|
|
||||||
|
func (l *Lifreq) GetLifruUint() uint {
|
||||||
|
return *(*uint)(unsafe.Pointer(&l.Lifru[0]))
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlLifreq(fd int, req uint, l *Lifreq) error {
|
||||||
|
return ioctl(fd, req, uintptr(unsafe.Pointer(l)))
|
||||||
|
}
|
||||||
|
|
||||||
|
// Strioctl Helpers
|
||||||
|
|
||||||
|
func (s *Strioctl) SetInt(i int) {
|
||||||
|
s.Len = int32(unsafe.Sizeof(i))
|
||||||
|
s.Dp = (*int8)(unsafe.Pointer(&i))
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlSetStrioctlRetInt(fd int, req uint, s *Strioctl) (int, error) {
|
||||||
|
return ioctlRet(fd, req, uintptr(unsafe.Pointer(s)))
|
||||||
}
|
}
|
||||||
|
71
vendor/golang.org/x/sys/unix/syscall_unix.go
generated
vendored
71
vendor/golang.org/x/sys/unix/syscall_unix.go
generated
vendored
@ -13,8 +13,6 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
"golang.org/x/sys/internal/unsafeheader"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -117,11 +115,7 @@ func (m *mmapper) Mmap(fd int, offset int64, length int, prot int, flags int) (d
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Use unsafe to convert addr into a []byte.
|
// Use unsafe to convert addr into a []byte.
|
||||||
var b []byte
|
b := unsafe.Slice((*byte)(unsafe.Pointer(addr)), length)
|
||||||
hdr := (*unsafeheader.Slice)(unsafe.Pointer(&b))
|
|
||||||
hdr.Data = unsafe.Pointer(addr)
|
|
||||||
hdr.Cap = length
|
|
||||||
hdr.Len = length
|
|
||||||
|
|
||||||
// Register mapping in m and return it.
|
// Register mapping in m and return it.
|
||||||
p := &b[cap(b)-1]
|
p := &b[cap(b)-1]
|
||||||
@ -337,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 {
|
||||||
@ -352,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 {
|
||||||
@ -377,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 {
|
||||||
@ -400,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 {
|
||||||
@ -429,11 +458,15 @@ func Send(s int, buf []byte, flags int) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Sendto(fd int, p []byte, flags int, to Sockaddr) (err error) {
|
func Sendto(fd int, p []byte, flags int, to Sockaddr) (err error) {
|
||||||
ptr, n, err := to.sockaddr()
|
var ptr unsafe.Pointer
|
||||||
|
var salen _Socklen
|
||||||
|
if to != nil {
|
||||||
|
ptr, salen, err = to.sockaddr()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return sendto(fd, p, flags, ptr, n)
|
}
|
||||||
|
return sendto(fd, p, flags, ptr, salen)
|
||||||
}
|
}
|
||||||
|
|
||||||
func SetsockoptByte(fd, level, opt int, value byte) (err error) {
|
func SetsockoptByte(fd, level, opt int, value byte) (err error) {
|
||||||
|
6
vendor/golang.org/x/sys/unix/syscall_unix_gc.go
generated
vendored
6
vendor/golang.org/x/sys/unix/syscall_unix_gc.go
generated
vendored
@ -2,11 +2,9 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build (darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris) && gc && !ppc64le && !ppc64
|
//go:build (darwin || dragonfly || freebsd || (linux && !ppc64 && !ppc64le) || netbsd || openbsd || solaris) && gc
|
||||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
// +build darwin dragonfly freebsd linux,!ppc64,!ppc64le netbsd openbsd solaris
|
||||||
// +build gc
|
// +build gc
|
||||||
// +build !ppc64le
|
|
||||||
// +build !ppc64
|
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
173
vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
generated
vendored
173
vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
generated
vendored
@ -9,8 +9,10 @@ package unix
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"fmt"
|
||||||
"runtime"
|
"runtime"
|
||||||
"sort"
|
"sort"
|
||||||
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
@ -55,7 +57,13 @@ func (d *Dirent) NameString() string {
|
|||||||
if d == nil {
|
if d == nil {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
return string(d.Name[:d.Namlen])
|
s := string(d.Name[:])
|
||||||
|
idx := strings.IndexByte(s, 0)
|
||||||
|
if idx == -1 {
|
||||||
|
return s
|
||||||
|
} else {
|
||||||
|
return s[:idx]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||||
@ -1230,6 +1238,14 @@ func Readdir(dir uintptr) (*Dirent, error) {
|
|||||||
return &ent, err
|
return &ent, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func readdir_r(dirp uintptr, entry *direntLE, result **direntLE) (err error) {
|
||||||
|
r0, _, e1 := syscall_syscall(SYS___READDIR_R_A, dirp, uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
|
||||||
|
if int64(r0) == -1 {
|
||||||
|
err = errnoErr(Errno(e1))
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
func Closedir(dir uintptr) error {
|
func Closedir(dir uintptr) error {
|
||||||
_, _, e := syscall_syscall(SYS_CLOSEDIR, dir, 0, 0)
|
_, _, e := syscall_syscall(SYS_CLOSEDIR, dir, 0, 0)
|
||||||
if e != 0 {
|
if e != 0 {
|
||||||
@ -1821,3 +1837,158 @@ func Unmount(name string, mtm int) (err error) {
|
|||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func fdToPath(dirfd int) (path string, err error) {
|
||||||
|
var buffer [1024]byte
|
||||||
|
// w_ctrl()
|
||||||
|
ret := runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS_W_IOCTL<<4,
|
||||||
|
[]uintptr{uintptr(dirfd), 17, 1024, uintptr(unsafe.Pointer(&buffer[0]))})
|
||||||
|
if ret == 0 {
|
||||||
|
zb := bytes.IndexByte(buffer[:], 0)
|
||||||
|
if zb == -1 {
|
||||||
|
zb = len(buffer)
|
||||||
|
}
|
||||||
|
// __e2a_l()
|
||||||
|
runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___E2A_L<<4,
|
||||||
|
[]uintptr{uintptr(unsafe.Pointer(&buffer[0])), uintptr(zb)})
|
||||||
|
return string(buffer[:zb]), nil
|
||||||
|
}
|
||||||
|
// __errno()
|
||||||
|
errno := int(*(*int32)(unsafe.Pointer(runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___ERRNO<<4,
|
||||||
|
[]uintptr{}))))
|
||||||
|
// __errno2()
|
||||||
|
errno2 := int(runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___ERRNO2<<4,
|
||||||
|
[]uintptr{}))
|
||||||
|
// strerror_r()
|
||||||
|
ret = runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS_STRERROR_R<<4,
|
||||||
|
[]uintptr{uintptr(errno), uintptr(unsafe.Pointer(&buffer[0])), 1024})
|
||||||
|
if ret == 0 {
|
||||||
|
zb := bytes.IndexByte(buffer[:], 0)
|
||||||
|
if zb == -1 {
|
||||||
|
zb = len(buffer)
|
||||||
|
}
|
||||||
|
return "", fmt.Errorf("%s (errno2=0x%x)", buffer[:zb], errno2)
|
||||||
|
} else {
|
||||||
|
return "", fmt.Errorf("fdToPath errno %d (errno2=0x%x)", errno, errno2)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntLeToDirentUnix(dirent *direntLE, dir uintptr, path string) (Dirent, error) {
|
||||||
|
var d Dirent
|
||||||
|
|
||||||
|
d.Ino = uint64(dirent.Ino)
|
||||||
|
offset, err := Telldir(dir)
|
||||||
|
if err != nil {
|
||||||
|
return d, err
|
||||||
|
}
|
||||||
|
|
||||||
|
d.Off = int64(offset)
|
||||||
|
s := string(bytes.Split(dirent.Name[:], []byte{0})[0])
|
||||||
|
copy(d.Name[:], s)
|
||||||
|
|
||||||
|
d.Reclen = uint16(24 + len(d.NameString()))
|
||||||
|
var st Stat_t
|
||||||
|
path = path + "/" + s
|
||||||
|
err = Lstat(path, &st)
|
||||||
|
if err != nil {
|
||||||
|
return d, err
|
||||||
|
}
|
||||||
|
|
||||||
|
d.Type = uint8(st.Mode >> 24)
|
||||||
|
return d, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
|
// Simulation of Getdirentries port from the Darwin implementation.
|
||||||
|
// COMMENTS FROM DARWIN:
|
||||||
|
// It's not the full required semantics, but should handle the case
|
||||||
|
// of calling Getdirentries or ReadDirent repeatedly.
|
||||||
|
// It won't handle assigning the results of lseek to *basep, or handle
|
||||||
|
// the directory being edited underfoot.
|
||||||
|
|
||||||
|
skip, err := Seek(fd, 0, 1 /* SEEK_CUR */)
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get path from fd to avoid unavailable call (fdopendir)
|
||||||
|
path, err := fdToPath(fd)
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
d, err := Opendir(path)
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
defer Closedir(d)
|
||||||
|
|
||||||
|
var cnt int64
|
||||||
|
for {
|
||||||
|
var entryLE direntLE
|
||||||
|
var entrypLE *direntLE
|
||||||
|
e := readdir_r(d, &entryLE, &entrypLE)
|
||||||
|
if e != nil {
|
||||||
|
return n, e
|
||||||
|
}
|
||||||
|
if entrypLE == nil {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
if skip > 0 {
|
||||||
|
skip--
|
||||||
|
cnt++
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dirent on zos has a different structure
|
||||||
|
entry, e := direntLeToDirentUnix(&entryLE, d, path)
|
||||||
|
if e != nil {
|
||||||
|
return n, e
|
||||||
|
}
|
||||||
|
|
||||||
|
reclen := int(entry.Reclen)
|
||||||
|
if reclen > len(buf) {
|
||||||
|
// Not enough room. Return for now.
|
||||||
|
// The counter will let us know where we should start up again.
|
||||||
|
// Note: this strategy for suspending in the middle and
|
||||||
|
// restarting is O(n^2) in the length of the directory. Oh well.
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
// Copy entry into return buffer.
|
||||||
|
s := unsafe.Slice((*byte)(unsafe.Pointer(&entry)), reclen)
|
||||||
|
copy(buf, s)
|
||||||
|
|
||||||
|
buf = buf[reclen:]
|
||||||
|
n += reclen
|
||||||
|
cnt++
|
||||||
|
}
|
||||||
|
// Set the seek offset of the input fd to record
|
||||||
|
// how many files we've already returned.
|
||||||
|
_, err = Seek(fd, cnt, 0 /* SEEK_SET */)
|
||||||
|
if err != nil {
|
||||||
|
return n, err
|
||||||
|
}
|
||||||
|
|
||||||
|
return n, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func ReadDirent(fd int, buf []byte) (n int, err error) {
|
||||||
|
var base = (*uintptr)(unsafe.Pointer(new(uint64)))
|
||||||
|
return Getdirentries(fd, buf, base)
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
|
reclen, ok := direntReclen(buf)
|
||||||
|
if !ok {
|
||||||
|
return 0, false
|
||||||
|
}
|
||||||
|
return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true
|
||||||
|
}
|
||||||
|
13
vendor/golang.org/x/sys/unix/sysvshm_unix.go
generated
vendored
13
vendor/golang.org/x/sys/unix/sysvshm_unix.go
generated
vendored
@ -7,11 +7,7 @@
|
|||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import "unsafe"
|
||||||
"unsafe"
|
|
||||||
|
|
||||||
"golang.org/x/sys/internal/unsafeheader"
|
|
||||||
)
|
|
||||||
|
|
||||||
// SysvShmAttach attaches the Sysv shared memory segment associated with the
|
// SysvShmAttach attaches the Sysv shared memory segment associated with the
|
||||||
// shared memory identifier id.
|
// shared memory identifier id.
|
||||||
@ -34,12 +30,7 @@ func SysvShmAttach(id int, addr uintptr, flag int) ([]byte, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Use unsafe to convert addr into a []byte.
|
// Use unsafe to convert addr into a []byte.
|
||||||
// TODO: convert to unsafe.Slice once we can assume Go 1.17
|
b := unsafe.Slice((*byte)(unsafe.Pointer(addr)), int(info.Segsz))
|
||||||
var b []byte
|
|
||||||
hdr := (*unsafeheader.Slice)(unsafe.Pointer(&b))
|
|
||||||
hdr.Data = unsafe.Pointer(addr)
|
|
||||||
hdr.Cap = int(info.Segsz)
|
|
||||||
hdr.Len = int(info.Segsz)
|
|
||||||
return b, nil
|
return b, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
89
vendor/golang.org/x/sys/unix/xattr_bsd.go
generated
vendored
89
vendor/golang.org/x/sys/unix/xattr_bsd.go
generated
vendored
@ -160,13 +160,12 @@ func Lremovexattr(link string, attr string) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Listxattr(file string, dest []byte) (sz int, err error) {
|
func Listxattr(file string, dest []byte) (sz int, err error) {
|
||||||
d := initxattrdest(dest, 0)
|
|
||||||
destsiz := len(dest)
|
destsiz := len(dest)
|
||||||
|
|
||||||
// FreeBSD won't allow you to list xattrs from multiple namespaces
|
// FreeBSD won't allow you to list xattrs from multiple namespaces
|
||||||
s := 0
|
s, pos := 0, 0
|
||||||
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
||||||
stmp, e := ExtattrListFile(file, nsid, uintptr(d), destsiz)
|
stmp, e := ListxattrNS(file, nsid, dest[pos:])
|
||||||
|
|
||||||
/* Errors accessing system attrs are ignored so that
|
/* Errors accessing system attrs are ignored so that
|
||||||
* we can implement the Linux-like behavior of omitting errors that
|
* we can implement the Linux-like behavior of omitting errors that
|
||||||
@ -175,66 +174,102 @@ func Listxattr(file string, dest []byte) (sz int, err error) {
|
|||||||
* Linux will still error if we ask for user attributes on a file that
|
* Linux will still error if we ask for user attributes on a file that
|
||||||
* we don't have read permissions on, so don't ignore those errors
|
* we don't have read permissions on, so don't ignore those errors
|
||||||
*/
|
*/
|
||||||
if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
if e != nil {
|
||||||
|
if e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
||||||
continue
|
continue
|
||||||
} else if e != nil {
|
}
|
||||||
return s, e
|
return s, e
|
||||||
}
|
}
|
||||||
|
|
||||||
s += stmp
|
s += stmp
|
||||||
destsiz -= s
|
pos = s
|
||||||
if destsiz < 0 {
|
if pos > destsiz {
|
||||||
destsiz = 0
|
pos = destsiz
|
||||||
}
|
}
|
||||||
d = initxattrdest(dest, s)
|
}
|
||||||
|
|
||||||
|
return s, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func ListxattrNS(file string, nsid int, dest []byte) (sz int, err error) {
|
||||||
|
d := initxattrdest(dest, 0)
|
||||||
|
destsiz := len(dest)
|
||||||
|
|
||||||
|
s, e := ExtattrListFile(file, nsid, uintptr(d), destsiz)
|
||||||
|
if e != nil {
|
||||||
|
return 0, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return s, nil
|
return s, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
||||||
d := initxattrdest(dest, 0)
|
|
||||||
destsiz := len(dest)
|
destsiz := len(dest)
|
||||||
|
|
||||||
s := 0
|
s, pos := 0, 0
|
||||||
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
||||||
stmp, e := ExtattrListFd(fd, nsid, uintptr(d), destsiz)
|
stmp, e := FlistxattrNS(fd, nsid, dest[pos:])
|
||||||
if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
|
||||||
|
if e != nil {
|
||||||
|
if e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
||||||
continue
|
continue
|
||||||
} else if e != nil {
|
}
|
||||||
return s, e
|
return s, e
|
||||||
}
|
}
|
||||||
|
|
||||||
s += stmp
|
s += stmp
|
||||||
destsiz -= s
|
pos = s
|
||||||
if destsiz < 0 {
|
if pos > destsiz {
|
||||||
destsiz = 0
|
pos = destsiz
|
||||||
}
|
}
|
||||||
d = initxattrdest(dest, s)
|
}
|
||||||
|
|
||||||
|
return s, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func FlistxattrNS(fd int, nsid int, dest []byte) (sz int, err error) {
|
||||||
|
d := initxattrdest(dest, 0)
|
||||||
|
destsiz := len(dest)
|
||||||
|
|
||||||
|
s, e := ExtattrListFd(fd, nsid, uintptr(d), destsiz)
|
||||||
|
if e != nil {
|
||||||
|
return 0, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return s, nil
|
return s, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func Llistxattr(link string, dest []byte) (sz int, err error) {
|
func Llistxattr(link string, dest []byte) (sz int, err error) {
|
||||||
d := initxattrdest(dest, 0)
|
|
||||||
destsiz := len(dest)
|
destsiz := len(dest)
|
||||||
|
|
||||||
s := 0
|
s, pos := 0, 0
|
||||||
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
||||||
stmp, e := ExtattrListLink(link, nsid, uintptr(d), destsiz)
|
stmp, e := LlistxattrNS(link, nsid, dest[pos:])
|
||||||
if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
|
||||||
|
if e != nil {
|
||||||
|
if e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
||||||
continue
|
continue
|
||||||
} else if e != nil {
|
}
|
||||||
return s, e
|
return s, e
|
||||||
}
|
}
|
||||||
|
|
||||||
s += stmp
|
s += stmp
|
||||||
destsiz -= s
|
pos = s
|
||||||
if destsiz < 0 {
|
if pos > destsiz {
|
||||||
destsiz = 0
|
pos = destsiz
|
||||||
}
|
}
|
||||||
d = initxattrdest(dest, s)
|
}
|
||||||
|
|
||||||
|
return s, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func LlistxattrNS(link string, nsid int, dest []byte) (sz int, err error) {
|
||||||
|
d := initxattrdest(dest, 0)
|
||||||
|
destsiz := len(dest)
|
||||||
|
|
||||||
|
s, e := ExtattrListLink(link, nsid, uintptr(d), destsiz)
|
||||||
|
if e != nil {
|
||||||
|
return 0, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return s, nil
|
return s, nil
|
||||||
|
4
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
4
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
@ -1,11 +1,11 @@
|
|||||||
// mkerrors.sh -Wall -Werror -static -I/tmp/include -m32
|
// mkerrors.sh -Wall -Werror -static -I/tmp/386/include -m32
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
//go:build 386 && linux
|
//go:build 386 && linux
|
||||||
// +build 386,linux
|
// +build 386,linux
|
||||||
|
|
||||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m32 _const.go
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/386/include -m32 _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
4
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
@ -1,11 +1,11 @@
|
|||||||
// mkerrors.sh -Wall -Werror -static -I/tmp/include -m64
|
// mkerrors.sh -Wall -Werror -static -I/tmp/amd64/include -m64
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
//go:build amd64 && linux
|
//go:build amd64 && linux
|
||||||
// +build amd64,linux
|
// +build amd64,linux
|
||||||
|
|
||||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m64 _const.go
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/amd64/include -m64 _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
4
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
4
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
@ -1,11 +1,11 @@
|
|||||||
// mkerrors.sh -Wall -Werror -static -I/tmp/include
|
// mkerrors.sh -Wall -Werror -static -I/tmp/arm/include
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
//go:build arm && linux
|
//go:build arm && linux
|
||||||
// +build arm,linux
|
// +build arm,linux
|
||||||
|
|
||||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/arm/include _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
4
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
@ -1,11 +1,11 @@
|
|||||||
// mkerrors.sh -Wall -Werror -static -I/tmp/include -fsigned-char
|
// mkerrors.sh -Wall -Werror -static -I/tmp/arm64/include -fsigned-char
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
//go:build arm64 && linux
|
//go:build arm64 && linux
|
||||||
// +build arm64,linux
|
// +build arm64,linux
|
||||||
|
|
||||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char _const.go
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/arm64/include -fsigned-char _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
4
vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go
generated
vendored
@ -1,11 +1,11 @@
|
|||||||
// mkerrors.sh -Wall -Werror -static -I/tmp/include
|
// mkerrors.sh -Wall -Werror -static -I/tmp/loong64/include
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
//go:build loong64 && linux
|
//go:build loong64 && linux
|
||||||
// +build loong64,linux
|
// +build loong64,linux
|
||||||
|
|
||||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/loong64/include _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
4
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
4
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
@ -1,11 +1,11 @@
|
|||||||
// mkerrors.sh -Wall -Werror -static -I/tmp/include
|
// mkerrors.sh -Wall -Werror -static -I/tmp/mips/include
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
//go:build mips && linux
|
//go:build mips && linux
|
||||||
// +build mips,linux
|
// +build mips,linux
|
||||||
|
|
||||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/mips/include _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
4
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
@ -1,11 +1,11 @@
|
|||||||
// mkerrors.sh -Wall -Werror -static -I/tmp/include
|
// mkerrors.sh -Wall -Werror -static -I/tmp/mips64/include
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
//go:build mips64 && linux
|
//go:build mips64 && linux
|
||||||
// +build mips64,linux
|
// +build mips64,linux
|
||||||
|
|
||||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/mips64/include _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
4
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
4
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
@ -1,11 +1,11 @@
|
|||||||
// mkerrors.sh -Wall -Werror -static -I/tmp/include
|
// mkerrors.sh -Wall -Werror -static -I/tmp/mips64le/include
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
//go:build mips64le && linux
|
//go:build mips64le && linux
|
||||||
// +build mips64le,linux
|
// +build mips64le,linux
|
||||||
|
|
||||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/mips64le/include _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
4
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
4
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
@ -1,11 +1,11 @@
|
|||||||
// mkerrors.sh -Wall -Werror -static -I/tmp/include
|
// mkerrors.sh -Wall -Werror -static -I/tmp/mipsle/include
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
//go:build mipsle && linux
|
//go:build mipsle && linux
|
||||||
// +build mipsle,linux
|
// +build mipsle,linux
|
||||||
|
|
||||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/mipsle/include _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
4
vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go
generated
vendored
4
vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go
generated
vendored
@ -1,11 +1,11 @@
|
|||||||
// mkerrors.sh -Wall -Werror -static -I/tmp/include
|
// mkerrors.sh -Wall -Werror -static -I/tmp/ppc/include
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
//go:build ppc && linux
|
//go:build ppc && linux
|
||||||
// +build ppc,linux
|
// +build ppc,linux
|
||||||
|
|
||||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/ppc/include _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
4
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
@ -1,11 +1,11 @@
|
|||||||
// mkerrors.sh -Wall -Werror -static -I/tmp/include
|
// mkerrors.sh -Wall -Werror -static -I/tmp/ppc64/include
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
//go:build ppc64 && linux
|
//go:build ppc64 && linux
|
||||||
// +build ppc64,linux
|
// +build ppc64,linux
|
||||||
|
|
||||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/ppc64/include _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
4
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
4
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
@ -1,11 +1,11 @@
|
|||||||
// mkerrors.sh -Wall -Werror -static -I/tmp/include
|
// mkerrors.sh -Wall -Werror -static -I/tmp/ppc64le/include
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
//go:build ppc64le && linux
|
//go:build ppc64le && linux
|
||||||
// +build ppc64le,linux
|
// +build ppc64le,linux
|
||||||
|
|
||||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/ppc64le/include _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
4
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
generated
vendored
@ -1,11 +1,11 @@
|
|||||||
// mkerrors.sh -Wall -Werror -static -I/tmp/include
|
// mkerrors.sh -Wall -Werror -static -I/tmp/riscv64/include
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
//go:build riscv64 && linux
|
//go:build riscv64 && linux
|
||||||
// +build riscv64,linux
|
// +build riscv64,linux
|
||||||
|
|
||||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/riscv64/include _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
4
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
4
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
@ -1,11 +1,11 @@
|
|||||||
// mkerrors.sh -Wall -Werror -static -I/tmp/include -fsigned-char
|
// mkerrors.sh -Wall -Werror -static -I/tmp/s390x/include -fsigned-char
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
//go:build s390x && linux
|
//go:build s390x && linux
|
||||||
// +build s390x,linux
|
// +build s390x,linux
|
||||||
|
|
||||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char _const.go
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/s390x/include -fsigned-char _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
4
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
generated
vendored
@ -1,11 +1,11 @@
|
|||||||
// mkerrors.sh -Wall -Werror -static -I/tmp/include
|
// mkerrors.sh -Wall -Werror -static -I/tmp/sparc64/include
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
//go:build sparc64 && linux
|
//go:build sparc64 && linux
|
||||||
// +build sparc64,linux
|
// +build sparc64,linux
|
||||||
|
|
||||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/sparc64/include _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
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"},
|
||||||
}
|
}
|
||||||
|
1905
vendor/golang.org/x/sys/unix/zerrors_openbsd_ppc64.go
generated
vendored
Normal file
1905
vendor/golang.org/x/sys/unix/zerrors_openbsd_ppc64.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1904
vendor/golang.org/x/sys/unix/zerrors_openbsd_riscv64.go
generated
vendored
Normal file
1904
vendor/golang.org/x/sys/unix/zerrors_openbsd_riscv64.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
40
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.go
generated
vendored
40
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.go
generated
vendored
@ -1,40 +0,0 @@
|
|||||||
// go run mksyscall.go -tags darwin,amd64,go1.13 syscall_darwin.1_13.go
|
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
||||||
|
|
||||||
//go:build darwin && amd64 && go1.13
|
|
||||||
// +build darwin,amd64,go1.13
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
import (
|
|
||||||
"syscall"
|
|
||||||
"unsafe"
|
|
||||||
)
|
|
||||||
|
|
||||||
var _ syscall.Errno
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func closedir(dir uintptr) (err error) {
|
|
||||||
_, _, e1 := syscall_syscall(libc_closedir_trampoline_addr, uintptr(dir), 0, 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
var libc_closedir_trampoline_addr uintptr
|
|
||||||
|
|
||||||
//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
|
|
||||||
r0, _, _ := syscall_syscall(libc_readdir_r_trampoline_addr, uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
|
|
||||||
res = Errno(r0)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
var libc_readdir_r_trampoline_addr uintptr
|
|
||||||
|
|
||||||
//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"
|
|
25
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.s
generated
vendored
25
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.s
generated
vendored
@ -1,25 +0,0 @@
|
|||||||
// go run mkasm_darwin.go amd64
|
|
||||||
// Code generated by the command above; DO NOT EDIT.
|
|
||||||
|
|
||||||
//go:build go1.13
|
|
||||||
// +build go1.13
|
|
||||||
|
|
||||||
#include "textflag.h"
|
|
||||||
|
|
||||||
TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0
|
|
||||||
JMP libc_fdopendir(SB)
|
|
||||||
|
|
||||||
GLOBL ·libc_fdopendir_trampoline_addr(SB), RODATA, $8
|
|
||||||
DATA ·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB)
|
|
||||||
|
|
||||||
TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0
|
|
||||||
JMP libc_closedir(SB)
|
|
||||||
|
|
||||||
GLOBL ·libc_closedir_trampoline_addr(SB), RODATA, $8
|
|
||||||
DATA ·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB)
|
|
||||||
|
|
||||||
TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0
|
|
||||||
JMP libc_readdir_r(SB)
|
|
||||||
|
|
||||||
GLOBL ·libc_readdir_r_trampoline_addr(SB), RODATA, $8
|
|
||||||
DATA ·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB)
|
|
32
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
generated
vendored
32
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
generated
vendored
@ -1,8 +1,8 @@
|
|||||||
// go run mksyscall.go -tags darwin,amd64,go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go
|
// go run mksyscall.go -tags darwin,amd64 syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
//go:build darwin && amd64 && go1.12
|
//go:build darwin && amd64
|
||||||
// +build darwin,amd64,go1.12
|
// +build darwin,amd64
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
@ -463,6 +463,32 @@ var libc_munlockall_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 closedir(dir uintptr) (err error) {
|
||||||
|
_, _, e1 := syscall_syscall(libc_closedir_trampoline_addr, uintptr(dir), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_closedir_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
|
||||||
|
r0, _, _ := syscall_syscall(libc_readdir_r_trampoline_addr, uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
|
||||||
|
res = Errno(r0)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_readdir_r_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func pipe(p *[2]int32) (err error) {
|
func pipe(p *[2]int32) (err error) {
|
||||||
_, _, e1 := syscall_rawSyscall(libc_pipe_trampoline_addr, uintptr(unsafe.Pointer(p)), 0, 0)
|
_, _, e1 := syscall_rawSyscall(libc_pipe_trampoline_addr, uintptr(unsafe.Pointer(p)), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
23
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
generated
vendored
23
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
generated
vendored
@ -1,11 +1,14 @@
|
|||||||
// go run mkasm_darwin.go amd64
|
// go run mkasm.go darwin amd64
|
||||||
// Code generated by the command above; DO NOT EDIT.
|
// Code generated by the command above; DO NOT EDIT.
|
||||||
|
|
||||||
//go:build go1.12
|
|
||||||
// +build go1.12
|
|
||||||
|
|
||||||
#include "textflag.h"
|
#include "textflag.h"
|
||||||
|
|
||||||
|
TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fdopendir(SB)
|
||||||
|
|
||||||
|
GLOBL ·libc_fdopendir_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB)
|
||||||
|
|
||||||
TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0
|
TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
JMP libc_getgroups(SB)
|
JMP libc_getgroups(SB)
|
||||||
|
|
||||||
@ -174,6 +177,18 @@ TEXT libc_munlockall_trampoline<>(SB),NOSPLIT,$0-0
|
|||||||
GLOBL ·libc_munlockall_trampoline_addr(SB), RODATA, $8
|
GLOBL ·libc_munlockall_trampoline_addr(SB), RODATA, $8
|
||||||
DATA ·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB)
|
DATA ·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_closedir(SB)
|
||||||
|
|
||||||
|
GLOBL ·libc_closedir_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_readdir_r(SB)
|
||||||
|
|
||||||
|
GLOBL ·libc_readdir_r_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB)
|
||||||
|
|
||||||
TEXT libc_pipe_trampoline<>(SB),NOSPLIT,$0-0
|
TEXT libc_pipe_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
JMP libc_pipe(SB)
|
JMP libc_pipe(SB)
|
||||||
|
|
||||||
|
40
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.go
generated
vendored
40
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.go
generated
vendored
@ -1,40 +0,0 @@
|
|||||||
// go run mksyscall.go -tags darwin,arm64,go1.13 syscall_darwin.1_13.go
|
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
||||||
|
|
||||||
//go:build darwin && arm64 && go1.13
|
|
||||||
// +build darwin,arm64,go1.13
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
import (
|
|
||||||
"syscall"
|
|
||||||
"unsafe"
|
|
||||||
)
|
|
||||||
|
|
||||||
var _ syscall.Errno
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func closedir(dir uintptr) (err error) {
|
|
||||||
_, _, e1 := syscall_syscall(libc_closedir_trampoline_addr, uintptr(dir), 0, 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
var libc_closedir_trampoline_addr uintptr
|
|
||||||
|
|
||||||
//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
|
|
||||||
r0, _, _ := syscall_syscall(libc_readdir_r_trampoline_addr, uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
|
|
||||||
res = Errno(r0)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
var libc_readdir_r_trampoline_addr uintptr
|
|
||||||
|
|
||||||
//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"
|
|
25
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.s
generated
vendored
25
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.s
generated
vendored
@ -1,25 +0,0 @@
|
|||||||
// go run mkasm_darwin.go arm64
|
|
||||||
// Code generated by the command above; DO NOT EDIT.
|
|
||||||
|
|
||||||
//go:build go1.13
|
|
||||||
// +build go1.13
|
|
||||||
|
|
||||||
#include "textflag.h"
|
|
||||||
|
|
||||||
TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0
|
|
||||||
JMP libc_fdopendir(SB)
|
|
||||||
|
|
||||||
GLOBL ·libc_fdopendir_trampoline_addr(SB), RODATA, $8
|
|
||||||
DATA ·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB)
|
|
||||||
|
|
||||||
TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0
|
|
||||||
JMP libc_closedir(SB)
|
|
||||||
|
|
||||||
GLOBL ·libc_closedir_trampoline_addr(SB), RODATA, $8
|
|
||||||
DATA ·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB)
|
|
||||||
|
|
||||||
TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0
|
|
||||||
JMP libc_readdir_r(SB)
|
|
||||||
|
|
||||||
GLOBL ·libc_readdir_r_trampoline_addr(SB), RODATA, $8
|
|
||||||
DATA ·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB)
|
|
32
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
generated
vendored
32
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
generated
vendored
@ -1,8 +1,8 @@
|
|||||||
// go run mksyscall.go -tags darwin,arm64,go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.go
|
// go run mksyscall.go -tags darwin,arm64 syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.go
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
//go:build darwin && arm64 && go1.12
|
//go:build darwin && arm64
|
||||||
// +build darwin,arm64,go1.12
|
// +build darwin,arm64
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
@ -463,6 +463,32 @@ var libc_munlockall_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 closedir(dir uintptr) (err error) {
|
||||||
|
_, _, e1 := syscall_syscall(libc_closedir_trampoline_addr, uintptr(dir), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_closedir_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
|
||||||
|
r0, _, _ := syscall_syscall(libc_readdir_r_trampoline_addr, uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
|
||||||
|
res = Errno(r0)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_readdir_r_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func pipe(p *[2]int32) (err error) {
|
func pipe(p *[2]int32) (err error) {
|
||||||
_, _, e1 := syscall_rawSyscall(libc_pipe_trampoline_addr, uintptr(unsafe.Pointer(p)), 0, 0)
|
_, _, e1 := syscall_rawSyscall(libc_pipe_trampoline_addr, uintptr(unsafe.Pointer(p)), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
23
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
generated
vendored
23
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
generated
vendored
@ -1,11 +1,14 @@
|
|||||||
// go run mkasm_darwin.go arm64
|
// go run mkasm.go darwin arm64
|
||||||
// Code generated by the command above; DO NOT EDIT.
|
// Code generated by the command above; DO NOT EDIT.
|
||||||
|
|
||||||
//go:build go1.12
|
|
||||||
// +build go1.12
|
|
||||||
|
|
||||||
#include "textflag.h"
|
#include "textflag.h"
|
||||||
|
|
||||||
|
TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fdopendir(SB)
|
||||||
|
|
||||||
|
GLOBL ·libc_fdopendir_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB)
|
||||||
|
|
||||||
TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0
|
TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
JMP libc_getgroups(SB)
|
JMP libc_getgroups(SB)
|
||||||
|
|
||||||
@ -174,6 +177,18 @@ TEXT libc_munlockall_trampoline<>(SB),NOSPLIT,$0-0
|
|||||||
GLOBL ·libc_munlockall_trampoline_addr(SB), RODATA, $8
|
GLOBL ·libc_munlockall_trampoline_addr(SB), RODATA, $8
|
||||||
DATA ·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB)
|
DATA ·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_closedir(SB)
|
||||||
|
|
||||||
|
GLOBL ·libc_closedir_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_readdir_r(SB)
|
||||||
|
|
||||||
|
GLOBL ·libc_readdir_r_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB)
|
||||||
|
|
||||||
TEXT libc_pipe_trampoline<>(SB),NOSPLIT,$0-0
|
TEXT libc_pipe_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
JMP libc_pipe(SB)
|
JMP libc_pipe(SB)
|
||||||
|
|
||||||
|
10
vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
generated
vendored
10
vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
generated
vendored
@ -552,6 +552,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 {
|
||||||
|
10
vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
generated
vendored
10
vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
generated
vendored
@ -544,6 +544,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 {
|
||||||
|
10
vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
generated
vendored
10
vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
generated
vendored
@ -544,6 +544,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 {
|
||||||
|
10
vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
generated
vendored
10
vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
generated
vendored
@ -544,6 +544,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 {
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user