Procházet zdrojové kódy

upgrade other x dependencies

tags/v2.12.0-rc1
Shivaram Lingamneni před 1 rokem
rodič
revize
eb84103865
100 změnil soubory, kde provedl 6242 přidání a 1010 odebrání
  1. 3
    3
      go.mod
  2. 6
    0
      go.sum
  3. 0
    3
      vendor/golang.org/x/crypto/AUTHORS
  4. 0
    3
      vendor/golang.org/x/crypto/CONTRIBUTORS
  5. 10
    1
      vendor/golang.org/x/crypto/bcrypt/bcrypt.go
  6. 98
    96
      vendor/golang.org/x/crypto/sha3/keccakf.go
  7. 6
    6
      vendor/golang.org/x/sys/cpu/cpu_arm64.go
  8. 42
    2
      vendor/golang.org/x/sys/cpu/cpu_linux_arm64.go
  9. 65
    0
      vendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.go
  10. 11
    0
      vendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.s
  11. 2
    2
      vendor/golang.org/x/sys/cpu/cpu_other_arm64.go
  12. 15
    0
      vendor/golang.org/x/sys/cpu/cpu_other_ppc64x.go
  13. 43
    0
      vendor/golang.org/x/sys/cpu/parse.go
  14. 54
    0
      vendor/golang.org/x/sys/cpu/proc_cpuinfo_linux.go
  15. 2
    2
      vendor/golang.org/x/sys/plan9/mkerrors.sh
  16. 1
    9
      vendor/golang.org/x/sys/plan9/syscall.go
  17. 31
    0
      vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s
  18. 2
    2
      vendor/golang.org/x/sys/unix/dirent.go
  19. 2
    2
      vendor/golang.org/x/sys/unix/gccgo.go
  20. 2
    2
      vendor/golang.org/x/sys/unix/gccgo_c.c
  21. 2
    2
      vendor/golang.org/x/sys/unix/ioctl.go
  22. 17
    3
      vendor/golang.org/x/sys/unix/ioctl_linux.go
  23. 31
    18
      vendor/golang.org/x/sys/unix/mkall.sh
  24. 2
    2
      vendor/golang.org/x/sys/unix/mkerrors.sh
  25. 14
    0
      vendor/golang.org/x/sys/unix/sockcmsg_unix.go
  26. 0
    27
      vendor/golang.org/x/sys/unix/str.go
  27. 1
    9
      vendor/golang.org/x/sys/unix/syscall.go
  28. 53
    4
      vendor/golang.org/x/sys/unix/syscall_aix.go
  29. 1
    1
      vendor/golang.org/x/sys/unix/syscall_bsd.go
  30. 0
    32
      vendor/golang.org/x/sys/unix/syscall_darwin.1_12.go
  31. 0
    108
      vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go
  32. 90
    0
      vendor/golang.org/x/sys/unix/syscall_darwin.go
  33. 1
    0
      vendor/golang.org/x/sys/unix/syscall_dragonfly.go
  34. 1
    0
      vendor/golang.org/x/sys/unix/syscall_freebsd.go
  35. 1
    1
      vendor/golang.org/x/sys/unix/syscall_freebsd_386.go
  36. 1
    1
      vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
  37. 1
    1
      vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
  38. 1
    1
      vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
  39. 1
    1
      vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go
  40. 22
    0
      vendor/golang.org/x/sys/unix/syscall_hurd.go
  41. 29
    0
      vendor/golang.org/x/sys/unix/syscall_hurd_386.go
  42. 0
    106
      vendor/golang.org/x/sys/unix/syscall_illumos.go
  43. 66
    30
      vendor/golang.org/x/sys/unix/syscall_linux.go
  44. 0
    4
      vendor/golang.org/x/sys/unix/syscall_linux_386.go
  45. 0
    4
      vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
  46. 0
    4
      vendor/golang.org/x/sys/unix/syscall_linux_arm.go
  47. 0
    4
      vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
  48. 0
    4
      vendor/golang.org/x/sys/unix/syscall_linux_loong64.go
  49. 0
    4
      vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
  50. 0
    4
      vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
  51. 0
    4
      vendor/golang.org/x/sys/unix/syscall_linux_ppc.go
  52. 0
    4
      vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
  53. 0
    4
      vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
  54. 0
    4
      vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
  55. 0
    4
      vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
  56. 15
    0
      vendor/golang.org/x/sys/unix/syscall_netbsd.go
  57. 1
    0
      vendor/golang.org/x/sys/unix/syscall_openbsd.go
  58. 27
    0
      vendor/golang.org/x/sys/unix/syscall_openbsd_libc.go
  59. 42
    0
      vendor/golang.org/x/sys/unix/syscall_openbsd_ppc64.go
  60. 42
    0
      vendor/golang.org/x/sys/unix/syscall_openbsd_riscv64.go
  61. 173
    45
      vendor/golang.org/x/sys/unix/syscall_solaris.go
  62. 54
    21
      vendor/golang.org/x/sys/unix/syscall_unix.go
  63. 2
    4
      vendor/golang.org/x/sys/unix/syscall_unix_gc.go
  64. 172
    1
      vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
  65. 2
    11
      vendor/golang.org/x/sys/unix/sysvshm_unix.go
  66. 65
    30
      vendor/golang.org/x/sys/unix/xattr_bsd.go
  67. 2
    2
      vendor/golang.org/x/sys/unix/zerrors_linux_386.go
  68. 2
    2
      vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
  69. 2
    2
      vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
  70. 2
    2
      vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
  71. 2
    2
      vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go
  72. 2
    2
      vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
  73. 2
    2
      vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
  74. 2
    2
      vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
  75. 2
    2
      vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
  76. 2
    2
      vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go
  77. 2
    2
      vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
  78. 2
    2
      vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
  79. 2
    2
      vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
  80. 2
    2
      vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
  81. 2
    2
      vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
  82. 297
    59
      vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
  83. 160
    29
      vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go
  84. 292
    56
      vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go
  85. 134
    26
      vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go
  86. 69
    26
      vendor/golang.org/x/sys/unix/zerrors_openbsd_mips64.go
  87. 1905
    0
      vendor/golang.org/x/sys/unix/zerrors_openbsd_ppc64.go
  88. 1904
    0
      vendor/golang.org/x/sys/unix/zerrors_openbsd_riscv64.go
  89. 0
    40
      vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.go
  90. 0
    25
      vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.s
  91. 29
    3
      vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
  92. 19
    4
      vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
  93. 0
    40
      vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.go
  94. 0
    25
      vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.s
  95. 29
    3
      vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
  96. 19
    4
      vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
  97. 10
    0
      vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
  98. 10
    0
      vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
  99. 10
    0
      vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
  100. 0
    0
      vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go

+ 3
- 3
go.mod Zobrazit soubor

20
 	github.com/tidwall/buntdb v1.2.10
20
 	github.com/tidwall/buntdb v1.2.10
21
 	github.com/toorop/go-dkim v0.0.0-20201103131630-e1cd1a0a5208
21
 	github.com/toorop/go-dkim v0.0.0-20201103131630-e1cd1a0a5208
22
 	github.com/xdg-go/scram v1.0.2
22
 	github.com/xdg-go/scram v1.0.2
23
-	golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e
23
+	golang.org/x/crypto v0.5.0
24
 	golang.org/x/text v0.6.0
24
 	golang.org/x/text v0.6.0
25
 	gopkg.in/yaml.v2 v2.4.0
25
 	gopkg.in/yaml.v2 v2.4.0
26
 )
26
 )
36
 	github.com/tidwall/rtred v0.1.2 // indirect
36
 	github.com/tidwall/rtred v0.1.2 // indirect
37
 	github.com/tidwall/tinyqueue v0.1.1 // indirect
37
 	github.com/tidwall/tinyqueue v0.1.1 // indirect
38
 	github.com/xdg-go/pbkdf2 v1.0.0 // indirect
38
 	github.com/xdg-go/pbkdf2 v1.0.0 // indirect
39
-	golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect
40
-	golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect
39
+	golang.org/x/sys v0.4.0 // indirect
40
+	golang.org/x/term v0.4.0 // indirect
41
 )
41
 )
42
 
42
 
43
 replace github.com/gorilla/websocket => github.com/ergochat/websocket v1.4.2-oragono1
43
 replace github.com/gorilla/websocket => github.com/ergochat/websocket v1.4.2-oragono1

+ 6
- 0
go.sum Zobrazit soubor

89
 golang.org/x/crypto v0.0.0-20211115234514-b4de73f9ece8/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
89
 golang.org/x/crypto v0.0.0-20211115234514-b4de73f9ece8/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
90
 golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e h1:T8NU3HyQ8ClP4SEE+KbFlg6n0NhuTsN4MyznaarGsZM=
90
 golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e h1:T8NU3HyQ8ClP4SEE+KbFlg6n0NhuTsN4MyznaarGsZM=
91
 golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
91
 golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
92
+golang.org/x/crypto v0.5.0 h1:U/0M97KRkSFvyD/3FSmdP5W5swImpNgle/EHFhOsQPE=
93
+golang.org/x/crypto v0.5.0/go.mod h1:NK/OQwhpMQP3MwtdjgLlYHnH9ebylxKWv3e0fK+mkQU=
92
 golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
94
 golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
93
 golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 h1:qWPm9rbaAMKs8Bq/9LRpbMqxWRVUAQwMI9fVrssnTfw=
95
 golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 h1:qWPm9rbaAMKs8Bq/9LRpbMqxWRVUAQwMI9fVrssnTfw=
94
 golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
96
 golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
101
 golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
103
 golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
102
 golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f h1:v4INt8xihDGvnrfjMDVXGxw9wrfxYyCjk0KbXjhR55s=
104
 golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f h1:v4INt8xihDGvnrfjMDVXGxw9wrfxYyCjk0KbXjhR55s=
103
 golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
105
 golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
106
+golang.org/x/sys v0.4.0 h1:Zr2JFtRQNX3BCZ8YtxRE9hNJYC8J6I1MVbMg6owUp18=
107
+golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
104
 golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E=
108
 golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E=
105
 golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
109
 golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
110
+golang.org/x/term v0.4.0 h1:O7UWfv5+A2qiuulQk30kVinPoMtoIPeVaKLEgLpVkvg=
111
+golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ=
106
 golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
112
 golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
107
 golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
113
 golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
108
 golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
114
 golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=

+ 0
- 3
vendor/golang.org/x/crypto/AUTHORS Zobrazit soubor

1
-# This source code refers to The Go Authors for copyright purposes.
2
-# The master list of authors is in the main Go distribution,
3
-# visible at https://tip.golang.org/AUTHORS.

+ 0
- 3
vendor/golang.org/x/crypto/CONTRIBUTORS Zobrazit soubor

1
-# This source code was written by the Go contributors.
2
-# The master list of contributors is in the main Go distribution,
3
-# visible at https://tip.golang.org/CONTRIBUTORS.

+ 10
- 1
vendor/golang.org/x/crypto/bcrypt/bcrypt.go Zobrazit soubor

50
 type InvalidCostError int
50
 type InvalidCostError int
51
 
51
 
52
 func (ic InvalidCostError) Error() string {
52
 func (ic InvalidCostError) Error() string {
53
-	return fmt.Sprintf("crypto/bcrypt: cost %d is outside allowed range (%d,%d)", int(ic), int(MinCost), int(MaxCost))
53
+	return fmt.Sprintf("crypto/bcrypt: cost %d is outside allowed range (%d,%d)", int(ic), MinCost, MaxCost)
54
 }
54
 }
55
 
55
 
56
 const (
56
 const (
82
 	minor byte
82
 	minor byte
83
 }
83
 }
84
 
84
 
85
+// ErrPasswordTooLong is returned when the password passed to
86
+// GenerateFromPassword is too long (i.e. > 72 bytes).
87
+var ErrPasswordTooLong = errors.New("bcrypt: password length exceeds 72 bytes")
88
+
85
 // GenerateFromPassword returns the bcrypt hash of the password at the given
89
 // GenerateFromPassword returns the bcrypt hash of the password at the given
86
 // cost. If the cost given is less than MinCost, the cost will be set to
90
 // cost. If the cost given is less than MinCost, the cost will be set to
87
 // DefaultCost, instead. Use CompareHashAndPassword, as defined in this package,
91
 // DefaultCost, instead. Use CompareHashAndPassword, as defined in this package,
88
 // to compare the returned hashed password with its cleartext version.
92
 // to compare the returned hashed password with its cleartext version.
93
+// GenerateFromPassword does not accept passwords longer than 72 bytes, which
94
+// is the longest password bcrypt will operate on.
89
 func GenerateFromPassword(password []byte, cost int) ([]byte, error) {
95
 func GenerateFromPassword(password []byte, cost int) ([]byte, error) {
96
+	if len(password) > 72 {
97
+		return nil, ErrPasswordTooLong
98
+	}
90
 	p, err := newFromPassword(password, cost)
99
 	p, err := newFromPassword(password, cost)
91
 	if err != nil {
100
 	if err != nil {
92
 		return nil, err
101
 		return nil, err

+ 98
- 96
vendor/golang.org/x/crypto/sha3/keccakf.go Zobrazit soubor

7
 
7
 
8
 package sha3
8
 package sha3
9
 
9
 
10
+import "math/bits"
11
+
10
 // rc stores the round constants for use in the ι step.
12
 // rc stores the round constants for use in the ι step.
11
 var rc = [24]uint64{
13
 var rc = [24]uint64{
12
 	0x0000000000000001,
14
 	0x0000000000000001,
60
 
62
 
61
 		bc0 = a[0] ^ d0
63
 		bc0 = a[0] ^ d0
62
 		t = a[6] ^ d1
64
 		t = a[6] ^ d1
63
-		bc1 = t<<44 | t>>(64-44)
65
+		bc1 = bits.RotateLeft64(t, 44)
64
 		t = a[12] ^ d2
66
 		t = a[12] ^ d2
65
-		bc2 = t<<43 | t>>(64-43)
67
+		bc2 = bits.RotateLeft64(t, 43)
66
 		t = a[18] ^ d3
68
 		t = a[18] ^ d3
67
-		bc3 = t<<21 | t>>(64-21)
69
+		bc3 = bits.RotateLeft64(t, 21)
68
 		t = a[24] ^ d4
70
 		t = a[24] ^ d4
69
-		bc4 = t<<14 | t>>(64-14)
71
+		bc4 = bits.RotateLeft64(t, 14)
70
 		a[0] = bc0 ^ (bc2 &^ bc1) ^ rc[i]
72
 		a[0] = bc0 ^ (bc2 &^ bc1) ^ rc[i]
71
 		a[6] = bc1 ^ (bc3 &^ bc2)
73
 		a[6] = bc1 ^ (bc3 &^ bc2)
72
 		a[12] = bc2 ^ (bc4 &^ bc3)
74
 		a[12] = bc2 ^ (bc4 &^ bc3)
74
 		a[24] = bc4 ^ (bc1 &^ bc0)
76
 		a[24] = bc4 ^ (bc1 &^ bc0)
75
 
77
 
76
 		t = a[10] ^ d0
78
 		t = a[10] ^ d0
77
-		bc2 = t<<3 | t>>(64-3)
79
+		bc2 = bits.RotateLeft64(t, 3)
78
 		t = a[16] ^ d1
80
 		t = a[16] ^ d1
79
-		bc3 = t<<45 | t>>(64-45)
81
+		bc3 = bits.RotateLeft64(t, 45)
80
 		t = a[22] ^ d2
82
 		t = a[22] ^ d2
81
-		bc4 = t<<61 | t>>(64-61)
83
+		bc4 = bits.RotateLeft64(t, 61)
82
 		t = a[3] ^ d3
84
 		t = a[3] ^ d3
83
-		bc0 = t<<28 | t>>(64-28)
85
+		bc0 = bits.RotateLeft64(t, 28)
84
 		t = a[9] ^ d4
86
 		t = a[9] ^ d4
85
-		bc1 = t<<20 | t>>(64-20)
87
+		bc1 = bits.RotateLeft64(t, 20)
86
 		a[10] = bc0 ^ (bc2 &^ bc1)
88
 		a[10] = bc0 ^ (bc2 &^ bc1)
87
 		a[16] = bc1 ^ (bc3 &^ bc2)
89
 		a[16] = bc1 ^ (bc3 &^ bc2)
88
 		a[22] = bc2 ^ (bc4 &^ bc3)
90
 		a[22] = bc2 ^ (bc4 &^ bc3)
90
 		a[9] = bc4 ^ (bc1 &^ bc0)
92
 		a[9] = bc4 ^ (bc1 &^ bc0)
91
 
93
 
92
 		t = a[20] ^ d0
94
 		t = a[20] ^ d0
93
-		bc4 = t<<18 | t>>(64-18)
95
+		bc4 = bits.RotateLeft64(t, 18)
94
 		t = a[1] ^ d1
96
 		t = a[1] ^ d1
95
-		bc0 = t<<1 | t>>(64-1)
97
+		bc0 = bits.RotateLeft64(t, 1)
96
 		t = a[7] ^ d2
98
 		t = a[7] ^ d2
97
-		bc1 = t<<6 | t>>(64-6)
99
+		bc1 = bits.RotateLeft64(t, 6)
98
 		t = a[13] ^ d3
100
 		t = a[13] ^ d3
99
-		bc2 = t<<25 | t>>(64-25)
101
+		bc2 = bits.RotateLeft64(t, 25)
100
 		t = a[19] ^ d4
102
 		t = a[19] ^ d4
101
-		bc3 = t<<8 | t>>(64-8)
103
+		bc3 = bits.RotateLeft64(t, 8)
102
 		a[20] = bc0 ^ (bc2 &^ bc1)
104
 		a[20] = bc0 ^ (bc2 &^ bc1)
103
 		a[1] = bc1 ^ (bc3 &^ bc2)
105
 		a[1] = bc1 ^ (bc3 &^ bc2)
104
 		a[7] = bc2 ^ (bc4 &^ bc3)
106
 		a[7] = bc2 ^ (bc4 &^ bc3)
106
 		a[19] = bc4 ^ (bc1 &^ bc0)
108
 		a[19] = bc4 ^ (bc1 &^ bc0)
107
 
109
 
108
 		t = a[5] ^ d0
110
 		t = a[5] ^ d0
109
-		bc1 = t<<36 | t>>(64-36)
111
+		bc1 = bits.RotateLeft64(t, 36)
110
 		t = a[11] ^ d1
112
 		t = a[11] ^ d1
111
-		bc2 = t<<10 | t>>(64-10)
113
+		bc2 = bits.RotateLeft64(t, 10)
112
 		t = a[17] ^ d2
114
 		t = a[17] ^ d2
113
-		bc3 = t<<15 | t>>(64-15)
115
+		bc3 = bits.RotateLeft64(t, 15)
114
 		t = a[23] ^ d3
116
 		t = a[23] ^ d3
115
-		bc4 = t<<56 | t>>(64-56)
117
+		bc4 = bits.RotateLeft64(t, 56)
116
 		t = a[4] ^ d4
118
 		t = a[4] ^ d4
117
-		bc0 = t<<27 | t>>(64-27)
119
+		bc0 = bits.RotateLeft64(t, 27)
118
 		a[5] = bc0 ^ (bc2 &^ bc1)
120
 		a[5] = bc0 ^ (bc2 &^ bc1)
119
 		a[11] = bc1 ^ (bc3 &^ bc2)
121
 		a[11] = bc1 ^ (bc3 &^ bc2)
120
 		a[17] = bc2 ^ (bc4 &^ bc3)
122
 		a[17] = bc2 ^ (bc4 &^ bc3)
122
 		a[4] = bc4 ^ (bc1 &^ bc0)
124
 		a[4] = bc4 ^ (bc1 &^ bc0)
123
 
125
 
124
 		t = a[15] ^ d0
126
 		t = a[15] ^ d0
125
-		bc3 = t<<41 | t>>(64-41)
127
+		bc3 = bits.RotateLeft64(t, 41)
126
 		t = a[21] ^ d1
128
 		t = a[21] ^ d1
127
-		bc4 = t<<2 | t>>(64-2)
129
+		bc4 = bits.RotateLeft64(t, 2)
128
 		t = a[2] ^ d2
130
 		t = a[2] ^ d2
129
-		bc0 = t<<62 | t>>(64-62)
131
+		bc0 = bits.RotateLeft64(t, 62)
130
 		t = a[8] ^ d3
132
 		t = a[8] ^ d3
131
-		bc1 = t<<55 | t>>(64-55)
133
+		bc1 = bits.RotateLeft64(t, 55)
132
 		t = a[14] ^ d4
134
 		t = a[14] ^ d4
133
-		bc2 = t<<39 | t>>(64-39)
135
+		bc2 = bits.RotateLeft64(t, 39)
134
 		a[15] = bc0 ^ (bc2 &^ bc1)
136
 		a[15] = bc0 ^ (bc2 &^ bc1)
135
 		a[21] = bc1 ^ (bc3 &^ bc2)
137
 		a[21] = bc1 ^ (bc3 &^ bc2)
136
 		a[2] = bc2 ^ (bc4 &^ bc3)
138
 		a[2] = bc2 ^ (bc4 &^ bc3)
151
 
153
 
152
 		bc0 = a[0] ^ d0
154
 		bc0 = a[0] ^ d0
153
 		t = a[16] ^ d1
155
 		t = a[16] ^ d1
154
-		bc1 = t<<44 | t>>(64-44)
156
+		bc1 = bits.RotateLeft64(t, 44)
155
 		t = a[7] ^ d2
157
 		t = a[7] ^ d2
156
-		bc2 = t<<43 | t>>(64-43)
158
+		bc2 = bits.RotateLeft64(t, 43)
157
 		t = a[23] ^ d3
159
 		t = a[23] ^ d3
158
-		bc3 = t<<21 | t>>(64-21)
160
+		bc3 = bits.RotateLeft64(t, 21)
159
 		t = a[14] ^ d4
161
 		t = a[14] ^ d4
160
-		bc4 = t<<14 | t>>(64-14)
162
+		bc4 = bits.RotateLeft64(t, 14)
161
 		a[0] = bc0 ^ (bc2 &^ bc1) ^ rc[i+1]
163
 		a[0] = bc0 ^ (bc2 &^ bc1) ^ rc[i+1]
162
 		a[16] = bc1 ^ (bc3 &^ bc2)
164
 		a[16] = bc1 ^ (bc3 &^ bc2)
163
 		a[7] = bc2 ^ (bc4 &^ bc3)
165
 		a[7] = bc2 ^ (bc4 &^ bc3)
165
 		a[14] = bc4 ^ (bc1 &^ bc0)
167
 		a[14] = bc4 ^ (bc1 &^ bc0)
166
 
168
 
167
 		t = a[20] ^ d0
169
 		t = a[20] ^ d0
168
-		bc2 = t<<3 | t>>(64-3)
170
+		bc2 = bits.RotateLeft64(t, 3)
169
 		t = a[11] ^ d1
171
 		t = a[11] ^ d1
170
-		bc3 = t<<45 | t>>(64-45)
172
+		bc3 = bits.RotateLeft64(t, 45)
171
 		t = a[2] ^ d2
173
 		t = a[2] ^ d2
172
-		bc4 = t<<61 | t>>(64-61)
174
+		bc4 = bits.RotateLeft64(t, 61)
173
 		t = a[18] ^ d3
175
 		t = a[18] ^ d3
174
-		bc0 = t<<28 | t>>(64-28)
176
+		bc0 = bits.RotateLeft64(t, 28)
175
 		t = a[9] ^ d4
177
 		t = a[9] ^ d4
176
-		bc1 = t<<20 | t>>(64-20)
178
+		bc1 = bits.RotateLeft64(t, 20)
177
 		a[20] = bc0 ^ (bc2 &^ bc1)
179
 		a[20] = bc0 ^ (bc2 &^ bc1)
178
 		a[11] = bc1 ^ (bc3 &^ bc2)
180
 		a[11] = bc1 ^ (bc3 &^ bc2)
179
 		a[2] = bc2 ^ (bc4 &^ bc3)
181
 		a[2] = bc2 ^ (bc4 &^ bc3)
181
 		a[9] = bc4 ^ (bc1 &^ bc0)
183
 		a[9] = bc4 ^ (bc1 &^ bc0)
182
 
184
 
183
 		t = a[15] ^ d0
185
 		t = a[15] ^ d0
184
-		bc4 = t<<18 | t>>(64-18)
186
+		bc4 = bits.RotateLeft64(t, 18)
185
 		t = a[6] ^ d1
187
 		t = a[6] ^ d1
186
-		bc0 = t<<1 | t>>(64-1)
188
+		bc0 = bits.RotateLeft64(t, 1)
187
 		t = a[22] ^ d2
189
 		t = a[22] ^ d2
188
-		bc1 = t<<6 | t>>(64-6)
190
+		bc1 = bits.RotateLeft64(t, 6)
189
 		t = a[13] ^ d3
191
 		t = a[13] ^ d3
190
-		bc2 = t<<25 | t>>(64-25)
192
+		bc2 = bits.RotateLeft64(t, 25)
191
 		t = a[4] ^ d4
193
 		t = a[4] ^ d4
192
-		bc3 = t<<8 | t>>(64-8)
194
+		bc3 = bits.RotateLeft64(t, 8)
193
 		a[15] = bc0 ^ (bc2 &^ bc1)
195
 		a[15] = bc0 ^ (bc2 &^ bc1)
194
 		a[6] = bc1 ^ (bc3 &^ bc2)
196
 		a[6] = bc1 ^ (bc3 &^ bc2)
195
 		a[22] = bc2 ^ (bc4 &^ bc3)
197
 		a[22] = bc2 ^ (bc4 &^ bc3)
197
 		a[4] = bc4 ^ (bc1 &^ bc0)
199
 		a[4] = bc4 ^ (bc1 &^ bc0)
198
 
200
 
199
 		t = a[10] ^ d0
201
 		t = a[10] ^ d0
200
-		bc1 = t<<36 | t>>(64-36)
202
+		bc1 = bits.RotateLeft64(t, 36)
201
 		t = a[1] ^ d1
203
 		t = a[1] ^ d1
202
-		bc2 = t<<10 | t>>(64-10)
204
+		bc2 = bits.RotateLeft64(t, 10)
203
 		t = a[17] ^ d2
205
 		t = a[17] ^ d2
204
-		bc3 = t<<15 | t>>(64-15)
206
+		bc3 = bits.RotateLeft64(t, 15)
205
 		t = a[8] ^ d3
207
 		t = a[8] ^ d3
206
-		bc4 = t<<56 | t>>(64-56)
208
+		bc4 = bits.RotateLeft64(t, 56)
207
 		t = a[24] ^ d4
209
 		t = a[24] ^ d4
208
-		bc0 = t<<27 | t>>(64-27)
210
+		bc0 = bits.RotateLeft64(t, 27)
209
 		a[10] = bc0 ^ (bc2 &^ bc1)
211
 		a[10] = bc0 ^ (bc2 &^ bc1)
210
 		a[1] = bc1 ^ (bc3 &^ bc2)
212
 		a[1] = bc1 ^ (bc3 &^ bc2)
211
 		a[17] = bc2 ^ (bc4 &^ bc3)
213
 		a[17] = bc2 ^ (bc4 &^ bc3)
213
 		a[24] = bc4 ^ (bc1 &^ bc0)
215
 		a[24] = bc4 ^ (bc1 &^ bc0)
214
 
216
 
215
 		t = a[5] ^ d0
217
 		t = a[5] ^ d0
216
-		bc3 = t<<41 | t>>(64-41)
218
+		bc3 = bits.RotateLeft64(t, 41)
217
 		t = a[21] ^ d1
219
 		t = a[21] ^ d1
218
-		bc4 = t<<2 | t>>(64-2)
220
+		bc4 = bits.RotateLeft64(t, 2)
219
 		t = a[12] ^ d2
221
 		t = a[12] ^ d2
220
-		bc0 = t<<62 | t>>(64-62)
222
+		bc0 = bits.RotateLeft64(t, 62)
221
 		t = a[3] ^ d3
223
 		t = a[3] ^ d3
222
-		bc1 = t<<55 | t>>(64-55)
224
+		bc1 = bits.RotateLeft64(t, 55)
223
 		t = a[19] ^ d4
225
 		t = a[19] ^ d4
224
-		bc2 = t<<39 | t>>(64-39)
226
+		bc2 = bits.RotateLeft64(t, 39)
225
 		a[5] = bc0 ^ (bc2 &^ bc1)
227
 		a[5] = bc0 ^ (bc2 &^ bc1)
226
 		a[21] = bc1 ^ (bc3 &^ bc2)
228
 		a[21] = bc1 ^ (bc3 &^ bc2)
227
 		a[12] = bc2 ^ (bc4 &^ bc3)
229
 		a[12] = bc2 ^ (bc4 &^ bc3)
242
 
244
 
243
 		bc0 = a[0] ^ d0
245
 		bc0 = a[0] ^ d0
244
 		t = a[11] ^ d1
246
 		t = a[11] ^ d1
245
-		bc1 = t<<44 | t>>(64-44)
247
+		bc1 = bits.RotateLeft64(t, 44)
246
 		t = a[22] ^ d2
248
 		t = a[22] ^ d2
247
-		bc2 = t<<43 | t>>(64-43)
249
+		bc2 = bits.RotateLeft64(t, 43)
248
 		t = a[8] ^ d3
250
 		t = a[8] ^ d3
249
-		bc3 = t<<21 | t>>(64-21)
251
+		bc3 = bits.RotateLeft64(t, 21)
250
 		t = a[19] ^ d4
252
 		t = a[19] ^ d4
251
-		bc4 = t<<14 | t>>(64-14)
253
+		bc4 = bits.RotateLeft64(t, 14)
252
 		a[0] = bc0 ^ (bc2 &^ bc1) ^ rc[i+2]
254
 		a[0] = bc0 ^ (bc2 &^ bc1) ^ rc[i+2]
253
 		a[11] = bc1 ^ (bc3 &^ bc2)
255
 		a[11] = bc1 ^ (bc3 &^ bc2)
254
 		a[22] = bc2 ^ (bc4 &^ bc3)
256
 		a[22] = bc2 ^ (bc4 &^ bc3)
256
 		a[19] = bc4 ^ (bc1 &^ bc0)
258
 		a[19] = bc4 ^ (bc1 &^ bc0)
257
 
259
 
258
 		t = a[15] ^ d0
260
 		t = a[15] ^ d0
259
-		bc2 = t<<3 | t>>(64-3)
261
+		bc2 = bits.RotateLeft64(t, 3)
260
 		t = a[1] ^ d1
262
 		t = a[1] ^ d1
261
-		bc3 = t<<45 | t>>(64-45)
263
+		bc3 = bits.RotateLeft64(t, 45)
262
 		t = a[12] ^ d2
264
 		t = a[12] ^ d2
263
-		bc4 = t<<61 | t>>(64-61)
265
+		bc4 = bits.RotateLeft64(t, 61)
264
 		t = a[23] ^ d3
266
 		t = a[23] ^ d3
265
-		bc0 = t<<28 | t>>(64-28)
267
+		bc0 = bits.RotateLeft64(t, 28)
266
 		t = a[9] ^ d4
268
 		t = a[9] ^ d4
267
-		bc1 = t<<20 | t>>(64-20)
269
+		bc1 = bits.RotateLeft64(t, 20)
268
 		a[15] = bc0 ^ (bc2 &^ bc1)
270
 		a[15] = bc0 ^ (bc2 &^ bc1)
269
 		a[1] = bc1 ^ (bc3 &^ bc2)
271
 		a[1] = bc1 ^ (bc3 &^ bc2)
270
 		a[12] = bc2 ^ (bc4 &^ bc3)
272
 		a[12] = bc2 ^ (bc4 &^ bc3)
272
 		a[9] = bc4 ^ (bc1 &^ bc0)
274
 		a[9] = bc4 ^ (bc1 &^ bc0)
273
 
275
 
274
 		t = a[5] ^ d0
276
 		t = a[5] ^ d0
275
-		bc4 = t<<18 | t>>(64-18)
277
+		bc4 = bits.RotateLeft64(t, 18)
276
 		t = a[16] ^ d1
278
 		t = a[16] ^ d1
277
-		bc0 = t<<1 | t>>(64-1)
279
+		bc0 = bits.RotateLeft64(t, 1)
278
 		t = a[2] ^ d2
280
 		t = a[2] ^ d2
279
-		bc1 = t<<6 | t>>(64-6)
281
+		bc1 = bits.RotateLeft64(t, 6)
280
 		t = a[13] ^ d3
282
 		t = a[13] ^ d3
281
-		bc2 = t<<25 | t>>(64-25)
283
+		bc2 = bits.RotateLeft64(t, 25)
282
 		t = a[24] ^ d4
284
 		t = a[24] ^ d4
283
-		bc3 = t<<8 | t>>(64-8)
285
+		bc3 = bits.RotateLeft64(t, 8)
284
 		a[5] = bc0 ^ (bc2 &^ bc1)
286
 		a[5] = bc0 ^ (bc2 &^ bc1)
285
 		a[16] = bc1 ^ (bc3 &^ bc2)
287
 		a[16] = bc1 ^ (bc3 &^ bc2)
286
 		a[2] = bc2 ^ (bc4 &^ bc3)
288
 		a[2] = bc2 ^ (bc4 &^ bc3)
288
 		a[24] = bc4 ^ (bc1 &^ bc0)
290
 		a[24] = bc4 ^ (bc1 &^ bc0)
289
 
291
 
290
 		t = a[20] ^ d0
292
 		t = a[20] ^ d0
291
-		bc1 = t<<36 | t>>(64-36)
293
+		bc1 = bits.RotateLeft64(t, 36)
292
 		t = a[6] ^ d1
294
 		t = a[6] ^ d1
293
-		bc2 = t<<10 | t>>(64-10)
295
+		bc2 = bits.RotateLeft64(t, 10)
294
 		t = a[17] ^ d2
296
 		t = a[17] ^ d2
295
-		bc3 = t<<15 | t>>(64-15)
297
+		bc3 = bits.RotateLeft64(t, 15)
296
 		t = a[3] ^ d3
298
 		t = a[3] ^ d3
297
-		bc4 = t<<56 | t>>(64-56)
299
+		bc4 = bits.RotateLeft64(t, 56)
298
 		t = a[14] ^ d4
300
 		t = a[14] ^ d4
299
-		bc0 = t<<27 | t>>(64-27)
301
+		bc0 = bits.RotateLeft64(t, 27)
300
 		a[20] = bc0 ^ (bc2 &^ bc1)
302
 		a[20] = bc0 ^ (bc2 &^ bc1)
301
 		a[6] = bc1 ^ (bc3 &^ bc2)
303
 		a[6] = bc1 ^ (bc3 &^ bc2)
302
 		a[17] = bc2 ^ (bc4 &^ bc3)
304
 		a[17] = bc2 ^ (bc4 &^ bc3)
304
 		a[14] = bc4 ^ (bc1 &^ bc0)
306
 		a[14] = bc4 ^ (bc1 &^ bc0)
305
 
307
 
306
 		t = a[10] ^ d0
308
 		t = a[10] ^ d0
307
-		bc3 = t<<41 | t>>(64-41)
309
+		bc3 = bits.RotateLeft64(t, 41)
308
 		t = a[21] ^ d1
310
 		t = a[21] ^ d1
309
-		bc4 = t<<2 | t>>(64-2)
311
+		bc4 = bits.RotateLeft64(t, 2)
310
 		t = a[7] ^ d2
312
 		t = a[7] ^ d2
311
-		bc0 = t<<62 | t>>(64-62)
313
+		bc0 = bits.RotateLeft64(t, 62)
312
 		t = a[18] ^ d3
314
 		t = a[18] ^ d3
313
-		bc1 = t<<55 | t>>(64-55)
315
+		bc1 = bits.RotateLeft64(t, 55)
314
 		t = a[4] ^ d4
316
 		t = a[4] ^ d4
315
-		bc2 = t<<39 | t>>(64-39)
317
+		bc2 = bits.RotateLeft64(t, 39)
316
 		a[10] = bc0 ^ (bc2 &^ bc1)
318
 		a[10] = bc0 ^ (bc2 &^ bc1)
317
 		a[21] = bc1 ^ (bc3 &^ bc2)
319
 		a[21] = bc1 ^ (bc3 &^ bc2)
318
 		a[7] = bc2 ^ (bc4 &^ bc3)
320
 		a[7] = bc2 ^ (bc4 &^ bc3)
333
 
335
 
334
 		bc0 = a[0] ^ d0
336
 		bc0 = a[0] ^ d0
335
 		t = a[1] ^ d1
337
 		t = a[1] ^ d1
336
-		bc1 = t<<44 | t>>(64-44)
338
+		bc1 = bits.RotateLeft64(t, 44)
337
 		t = a[2] ^ d2
339
 		t = a[2] ^ d2
338
-		bc2 = t<<43 | t>>(64-43)
340
+		bc2 = bits.RotateLeft64(t, 43)
339
 		t = a[3] ^ d3
341
 		t = a[3] ^ d3
340
-		bc3 = t<<21 | t>>(64-21)
342
+		bc3 = bits.RotateLeft64(t, 21)
341
 		t = a[4] ^ d4
343
 		t = a[4] ^ d4
342
-		bc4 = t<<14 | t>>(64-14)
344
+		bc4 = bits.RotateLeft64(t, 14)
343
 		a[0] = bc0 ^ (bc2 &^ bc1) ^ rc[i+3]
345
 		a[0] = bc0 ^ (bc2 &^ bc1) ^ rc[i+3]
344
 		a[1] = bc1 ^ (bc3 &^ bc2)
346
 		a[1] = bc1 ^ (bc3 &^ bc2)
345
 		a[2] = bc2 ^ (bc4 &^ bc3)
347
 		a[2] = bc2 ^ (bc4 &^ bc3)
347
 		a[4] = bc4 ^ (bc1 &^ bc0)
349
 		a[4] = bc4 ^ (bc1 &^ bc0)
348
 
350
 
349
 		t = a[5] ^ d0
351
 		t = a[5] ^ d0
350
-		bc2 = t<<3 | t>>(64-3)
352
+		bc2 = bits.RotateLeft64(t, 3)
351
 		t = a[6] ^ d1
353
 		t = a[6] ^ d1
352
-		bc3 = t<<45 | t>>(64-45)
354
+		bc3 = bits.RotateLeft64(t, 45)
353
 		t = a[7] ^ d2
355
 		t = a[7] ^ d2
354
-		bc4 = t<<61 | t>>(64-61)
356
+		bc4 = bits.RotateLeft64(t, 61)
355
 		t = a[8] ^ d3
357
 		t = a[8] ^ d3
356
-		bc0 = t<<28 | t>>(64-28)
358
+		bc0 = bits.RotateLeft64(t, 28)
357
 		t = a[9] ^ d4
359
 		t = a[9] ^ d4
358
-		bc1 = t<<20 | t>>(64-20)
360
+		bc1 = bits.RotateLeft64(t, 20)
359
 		a[5] = bc0 ^ (bc2 &^ bc1)
361
 		a[5] = bc0 ^ (bc2 &^ bc1)
360
 		a[6] = bc1 ^ (bc3 &^ bc2)
362
 		a[6] = bc1 ^ (bc3 &^ bc2)
361
 		a[7] = bc2 ^ (bc4 &^ bc3)
363
 		a[7] = bc2 ^ (bc4 &^ bc3)
363
 		a[9] = bc4 ^ (bc1 &^ bc0)
365
 		a[9] = bc4 ^ (bc1 &^ bc0)
364
 
366
 
365
 		t = a[10] ^ d0
367
 		t = a[10] ^ d0
366
-		bc4 = t<<18 | t>>(64-18)
368
+		bc4 = bits.RotateLeft64(t, 18)
367
 		t = a[11] ^ d1
369
 		t = a[11] ^ d1
368
-		bc0 = t<<1 | t>>(64-1)
370
+		bc0 = bits.RotateLeft64(t, 1)
369
 		t = a[12] ^ d2
371
 		t = a[12] ^ d2
370
-		bc1 = t<<6 | t>>(64-6)
372
+		bc1 = bits.RotateLeft64(t, 6)
371
 		t = a[13] ^ d3
373
 		t = a[13] ^ d3
372
-		bc2 = t<<25 | t>>(64-25)
374
+		bc2 = bits.RotateLeft64(t, 25)
373
 		t = a[14] ^ d4
375
 		t = a[14] ^ d4
374
-		bc3 = t<<8 | t>>(64-8)
376
+		bc3 = bits.RotateLeft64(t, 8)
375
 		a[10] = bc0 ^ (bc2 &^ bc1)
377
 		a[10] = bc0 ^ (bc2 &^ bc1)
376
 		a[11] = bc1 ^ (bc3 &^ bc2)
378
 		a[11] = bc1 ^ (bc3 &^ bc2)
377
 		a[12] = bc2 ^ (bc4 &^ bc3)
379
 		a[12] = bc2 ^ (bc4 &^ bc3)
379
 		a[14] = bc4 ^ (bc1 &^ bc0)
381
 		a[14] = bc4 ^ (bc1 &^ bc0)
380
 
382
 
381
 		t = a[15] ^ d0
383
 		t = a[15] ^ d0
382
-		bc1 = t<<36 | t>>(64-36)
384
+		bc1 = bits.RotateLeft64(t, 36)
383
 		t = a[16] ^ d1
385
 		t = a[16] ^ d1
384
-		bc2 = t<<10 | t>>(64-10)
386
+		bc2 = bits.RotateLeft64(t, 10)
385
 		t = a[17] ^ d2
387
 		t = a[17] ^ d2
386
-		bc3 = t<<15 | t>>(64-15)
388
+		bc3 = bits.RotateLeft64(t, 15)
387
 		t = a[18] ^ d3
389
 		t = a[18] ^ d3
388
-		bc4 = t<<56 | t>>(64-56)
390
+		bc4 = bits.RotateLeft64(t, 56)
389
 		t = a[19] ^ d4
391
 		t = a[19] ^ d4
390
-		bc0 = t<<27 | t>>(64-27)
392
+		bc0 = bits.RotateLeft64(t, 27)
391
 		a[15] = bc0 ^ (bc2 &^ bc1)
393
 		a[15] = bc0 ^ (bc2 &^ bc1)
392
 		a[16] = bc1 ^ (bc3 &^ bc2)
394
 		a[16] = bc1 ^ (bc3 &^ bc2)
393
 		a[17] = bc2 ^ (bc4 &^ bc3)
395
 		a[17] = bc2 ^ (bc4 &^ bc3)
395
 		a[19] = bc4 ^ (bc1 &^ bc0)
397
 		a[19] = bc4 ^ (bc1 &^ bc0)
396
 
398
 
397
 		t = a[20] ^ d0
399
 		t = a[20] ^ d0
398
-		bc3 = t<<41 | t>>(64-41)
400
+		bc3 = bits.RotateLeft64(t, 41)
399
 		t = a[21] ^ d1
401
 		t = a[21] ^ d1
400
-		bc4 = t<<2 | t>>(64-2)
402
+		bc4 = bits.RotateLeft64(t, 2)
401
 		t = a[22] ^ d2
403
 		t = a[22] ^ d2
402
-		bc0 = t<<62 | t>>(64-62)
404
+		bc0 = bits.RotateLeft64(t, 62)
403
 		t = a[23] ^ d3
405
 		t = a[23] ^ d3
404
-		bc1 = t<<55 | t>>(64-55)
406
+		bc1 = bits.RotateLeft64(t, 55)
405
 		t = a[24] ^ d4
407
 		t = a[24] ^ d4
406
-		bc2 = t<<39 | t>>(64-39)
408
+		bc2 = bits.RotateLeft64(t, 39)
407
 		a[20] = bc0 ^ (bc2 &^ bc1)
409
 		a[20] = bc0 ^ (bc2 &^ bc1)
408
 		a[21] = bc1 ^ (bc3 &^ bc2)
410
 		a[21] = bc1 ^ (bc3 &^ bc2)
409
 		a[22] = bc2 ^ (bc4 &^ bc3)
411
 		a[22] = bc2 ^ (bc4 &^ bc3)

+ 6
- 6
vendor/golang.org/x/sys/cpu/cpu_arm64.go Zobrazit soubor

6
 
6
 
7
 import "runtime"
7
 import "runtime"
8
 
8
 
9
-const cacheLineSize = 64
9
+// cacheLineSize is used to prevent false sharing of cache lines.
10
+// We choose 128 because Apple Silicon, a.k.a. M1, has 128-byte cache line size.
11
+// It doesn't cost much and is much more future-proof.
12
+const cacheLineSize = 128
10
 
13
 
11
 func initOptions() {
14
 func initOptions() {
12
 	options = []option{
15
 	options = []option{
41
 	switch runtime.GOOS {
44
 	switch runtime.GOOS {
42
 	case "freebsd":
45
 	case "freebsd":
43
 		readARM64Registers()
46
 		readARM64Registers()
44
-	case "linux", "netbsd":
47
+	case "linux", "netbsd", "openbsd":
45
 		doinit()
48
 		doinit()
46
 	default:
49
 	default:
47
-		// Most platforms don't seem to allow reading these registers.
48
-		//
49
-		// OpenBSD:
50
-		// See https://golang.org/issue/31746
50
+		// Many platforms don't seem to allow reading these registers.
51
 		setMinimalFeatures()
51
 		setMinimalFeatures()
52
 	}
52
 	}
53
 }
53
 }

+ 42
- 2
vendor/golang.org/x/sys/cpu/cpu_linux_arm64.go Zobrazit soubor

4
 
4
 
5
 package cpu
5
 package cpu
6
 
6
 
7
+import (
8
+	"strings"
9
+	"syscall"
10
+)
11
+
7
 // HWCAP/HWCAP2 bits. These are exposed by Linux.
12
 // HWCAP/HWCAP2 bits. These are exposed by Linux.
8
 const (
13
 const (
9
 	hwcap_FP       = 1 << 0
14
 	hwcap_FP       = 1 << 0
32
 	hwcap_ASIMDFHM = 1 << 23
37
 	hwcap_ASIMDFHM = 1 << 23
33
 )
38
 )
34
 
39
 
40
+// linuxKernelCanEmulateCPUID reports whether we're running
41
+// on Linux 4.11+. Ideally we'd like to ask the question about
42
+// whether the current kernel contains
43
+// https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=77c97b4ee21290f5f083173d957843b615abbff2
44
+// but the version number will have to do.
45
+func linuxKernelCanEmulateCPUID() bool {
46
+	var un syscall.Utsname
47
+	syscall.Uname(&un)
48
+	var sb strings.Builder
49
+	for _, b := range un.Release[:] {
50
+		if b == 0 {
51
+			break
52
+		}
53
+		sb.WriteByte(byte(b))
54
+	}
55
+	major, minor, _, ok := parseRelease(sb.String())
56
+	return ok && (major > 4 || major == 4 && minor >= 11)
57
+}
58
+
35
 func doinit() {
59
 func doinit() {
36
 	if err := readHWCAP(); err != nil {
60
 	if err := readHWCAP(); err != nil {
37
-		// failed to read /proc/self/auxv, try reading registers directly
38
-		readARM64Registers()
61
+		// We failed to read /proc/self/auxv. This can happen if the binary has
62
+		// been given extra capabilities(7) with /bin/setcap.
63
+		//
64
+		// When this happens, we have two options. If the Linux kernel is new
65
+		// enough (4.11+), we can read the arm64 registers directly which'll
66
+		// trap into the kernel and then return back to userspace.
67
+		//
68
+		// But on older kernels, such as Linux 4.4.180 as used on many Synology
69
+		// devices, calling readARM64Registers (specifically getisar0) will
70
+		// cause a SIGILL and we'll die. So for older kernels, parse /proc/cpuinfo
71
+		// instead.
72
+		//
73
+		// See golang/go#57336.
74
+		if linuxKernelCanEmulateCPUID() {
75
+			readARM64Registers()
76
+		} else {
77
+			readLinuxProcCPUInfo()
78
+		}
39
 		return
79
 		return
40
 	}
80
 	}
41
 
81
 

+ 65
- 0
vendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.go Zobrazit soubor

1
+// Copyright 2022 The Go Authors. All rights reserved.
2
+// Use of this source code is governed by a BSD-style
3
+// license that can be found in the LICENSE file.
4
+
5
+package cpu
6
+
7
+import (
8
+	"syscall"
9
+	"unsafe"
10
+)
11
+
12
+// Minimal copy of functionality from x/sys/unix so the cpu package can call
13
+// sysctl without depending on x/sys/unix.
14
+
15
+const (
16
+	// From OpenBSD's sys/sysctl.h.
17
+	_CTL_MACHDEP = 7
18
+
19
+	// From OpenBSD's machine/cpu.h.
20
+	_CPU_ID_AA64ISAR0 = 2
21
+	_CPU_ID_AA64ISAR1 = 3
22
+)
23
+
24
+// Implemented in the runtime package (runtime/sys_openbsd3.go)
25
+func syscall_syscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
26
+
27
+//go:linkname syscall_syscall6 syscall.syscall6
28
+
29
+func sysctl(mib []uint32, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
30
+	_, _, 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))
31
+	if errno != 0 {
32
+		return errno
33
+	}
34
+	return nil
35
+}
36
+
37
+var libc_sysctl_trampoline_addr uintptr
38
+
39
+//go:cgo_import_dynamic libc_sysctl sysctl "libc.so"
40
+
41
+func sysctlUint64(mib []uint32) (uint64, bool) {
42
+	var out uint64
43
+	nout := unsafe.Sizeof(out)
44
+	if err := sysctl(mib, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0); err != nil {
45
+		return 0, false
46
+	}
47
+	return out, true
48
+}
49
+
50
+func doinit() {
51
+	setMinimalFeatures()
52
+
53
+	// Get ID_AA64ISAR0 and ID_AA64ISAR1 from sysctl.
54
+	isar0, ok := sysctlUint64([]uint32{_CTL_MACHDEP, _CPU_ID_AA64ISAR0})
55
+	if !ok {
56
+		return
57
+	}
58
+	isar1, ok := sysctlUint64([]uint32{_CTL_MACHDEP, _CPU_ID_AA64ISAR1})
59
+	if !ok {
60
+		return
61
+	}
62
+	parseARM64SystemRegisters(isar0, isar1, 0)
63
+
64
+	Initialized = true
65
+}

+ 11
- 0
vendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.s Zobrazit soubor

1
+// Copyright 2022 The Go Authors. All rights reserved.
2
+// Use of this source code is governed by a BSD-style
3
+// license that can be found in the LICENSE file.
4
+
5
+#include "textflag.h"
6
+
7
+TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0
8
+	JMP	libc_sysctl(SB)
9
+
10
+GLOBL	·libc_sysctl_trampoline_addr(SB), RODATA, $8
11
+DATA	·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB)

+ 2
- 2
vendor/golang.org/x/sys/cpu/cpu_other_arm64.go Zobrazit soubor

2
 // Use of this source code is governed by a BSD-style
2
 // Use of this source code is governed by a BSD-style
3
 // license that can be found in the LICENSE file.
3
 // license that can be found in the LICENSE file.
4
 
4
 
5
-//go:build !linux && !netbsd && arm64
6
-// +build !linux,!netbsd,arm64
5
+//go:build !linux && !netbsd && !openbsd && arm64
6
+// +build !linux,!netbsd,!openbsd,arm64
7
 
7
 
8
 package cpu
8
 package cpu
9
 
9
 

+ 15
- 0
vendor/golang.org/x/sys/cpu/cpu_other_ppc64x.go Zobrazit soubor

1
+// Copyright 2022 The Go Authors. All rights reserved.
2
+// Use of this source code is governed by a BSD-style
3
+// license that can be found in the LICENSE file.
4
+
5
+//go:build !aix && !linux && (ppc64 || ppc64le)
6
+// +build !aix
7
+// +build !linux
8
+// +build ppc64 ppc64le
9
+
10
+package cpu
11
+
12
+func archInit() {
13
+	PPC64.IsPOWER8 = true
14
+	Initialized = true
15
+}

+ 43
- 0
vendor/golang.org/x/sys/cpu/parse.go Zobrazit soubor

1
+// Copyright 2022 The Go Authors. All rights reserved.
2
+// Use of this source code is governed by a BSD-style
3
+// license that can be found in the LICENSE file.
4
+
5
+package cpu
6
+
7
+import "strconv"
8
+
9
+// parseRelease parses a dot-separated version number. It follows the semver
10
+// syntax, but allows the minor and patch versions to be elided.
11
+//
12
+// This is a copy of the Go runtime's parseRelease from
13
+// https://golang.org/cl/209597.
14
+func parseRelease(rel string) (major, minor, patch int, ok bool) {
15
+	// Strip anything after a dash or plus.
16
+	for i := 0; i < len(rel); i++ {
17
+		if rel[i] == '-' || rel[i] == '+' {
18
+			rel = rel[:i]
19
+			break
20
+		}
21
+	}
22
+
23
+	next := func() (int, bool) {
24
+		for i := 0; i < len(rel); i++ {
25
+			if rel[i] == '.' {
26
+				ver, err := strconv.Atoi(rel[:i])
27
+				rel = rel[i+1:]
28
+				return ver, err == nil
29
+			}
30
+		}
31
+		ver, err := strconv.Atoi(rel)
32
+		rel = ""
33
+		return ver, err == nil
34
+	}
35
+	if major, ok = next(); !ok || rel == "" {
36
+		return
37
+	}
38
+	if minor, ok = next(); !ok || rel == "" {
39
+		return
40
+	}
41
+	patch, ok = next()
42
+	return
43
+}

+ 54
- 0
vendor/golang.org/x/sys/cpu/proc_cpuinfo_linux.go Zobrazit soubor

1
+// Copyright 2022 The Go Authors. All rights reserved.
2
+// Use of this source code is governed by a BSD-style
3
+// license that can be found in the LICENSE file.
4
+
5
+//go:build linux && arm64
6
+// +build linux,arm64
7
+
8
+package cpu
9
+
10
+import (
11
+	"errors"
12
+	"io"
13
+	"os"
14
+	"strings"
15
+)
16
+
17
+func readLinuxProcCPUInfo() error {
18
+	f, err := os.Open("/proc/cpuinfo")
19
+	if err != nil {
20
+		return err
21
+	}
22
+	defer f.Close()
23
+
24
+	var buf [1 << 10]byte // enough for first CPU
25
+	n, err := io.ReadFull(f, buf[:])
26
+	if err != nil && err != io.ErrUnexpectedEOF {
27
+		return err
28
+	}
29
+	in := string(buf[:n])
30
+	const features = "\nFeatures	: "
31
+	i := strings.Index(in, features)
32
+	if i == -1 {
33
+		return errors.New("no CPU features found")
34
+	}
35
+	in = in[i+len(features):]
36
+	if i := strings.Index(in, "\n"); i != -1 {
37
+		in = in[:i]
38
+	}
39
+	m := map[string]*bool{}
40
+
41
+	initOptions() // need it early here; it's harmless to call twice
42
+	for _, o := range options {
43
+		m[o.Name] = o.Feature
44
+	}
45
+	// The EVTSTRM field has alias "evstrm" in Go, but Linux calls it "evtstrm".
46
+	m["evtstrm"] = &ARM64.HasEVTSTRM
47
+
48
+	for _, f := range strings.Fields(in) {
49
+		if p, ok := m[f]; ok {
50
+			*p = true
51
+		}
52
+	}
53
+	return nil
54
+}

+ 2
- 2
vendor/golang.org/x/sys/plan9/mkerrors.sh Zobrazit soubor

126
 signals=$(
126
 signals=$(
127
 	echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
127
 	echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
128
 	awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' |
128
 	awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' |
129
-	egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT)' |
129
+	grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT' |
130
 	sort
130
 	sort
131
 )
131
 )
132
 
132
 
136
 	sort >_error.grep
136
 	sort >_error.grep
137
 echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
137
 echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
138
 	awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' |
138
 	awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' |
139
-	egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT)' |
139
+	grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT' |
140
 	sort >_signal.grep
140
 	sort >_signal.grep
141
 
141
 
142
 echo '// mkerrors.sh' "$@"
142
 echo '// mkerrors.sh' "$@"

+ 1
- 9
vendor/golang.org/x/sys/plan9/syscall.go Zobrazit soubor

29
 	"bytes"
29
 	"bytes"
30
 	"strings"
30
 	"strings"
31
 	"unsafe"
31
 	"unsafe"
32
-
33
-	"golang.org/x/sys/internal/unsafeheader"
34
 )
32
 )
35
 
33
 
36
 // ByteSliceFromString returns a NUL-terminated slice of bytes
34
 // ByteSliceFromString returns a NUL-terminated slice of bytes
82
 		ptr = unsafe.Pointer(uintptr(ptr) + 1)
80
 		ptr = unsafe.Pointer(uintptr(ptr) + 1)
83
 	}
81
 	}
84
 
82
 
85
-	var s []byte
86
-	h := (*unsafeheader.Slice)(unsafe.Pointer(&s))
87
-	h.Data = unsafe.Pointer(p)
88
-	h.Len = n
89
-	h.Cap = n
90
-
91
-	return string(s)
83
+	return string(unsafe.Slice(p, n))
92
 }
84
 }
93
 
85
 
94
 // Single-word zero for use when we need a valid pointer to 0 bytes.
86
 // Single-word zero for use when we need a valid pointer to 0 bytes.

+ 31
- 0
vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s Zobrazit soubor

1
+// Copyright 2022 The Go Authors. All rights reserved.
2
+// Use of this source code is governed by a BSD-style
3
+// license that can be found in the LICENSE file.
4
+
5
+//go:build (darwin || freebsd || netbsd || openbsd) && gc
6
+// +build darwin freebsd netbsd openbsd
7
+// +build gc
8
+
9
+#include "textflag.h"
10
+
11
+//
12
+// System call support for ppc64, BSD
13
+//
14
+
15
+// Just jump to package syscall's implementation for all these functions.
16
+// The runtime may know about them.
17
+
18
+TEXT	·Syscall(SB),NOSPLIT,$0-56
19
+	JMP	syscall·Syscall(SB)
20
+
21
+TEXT	·Syscall6(SB),NOSPLIT,$0-80
22
+	JMP	syscall·Syscall6(SB)
23
+
24
+TEXT	·Syscall9(SB),NOSPLIT,$0-104
25
+	JMP	syscall·Syscall9(SB)
26
+
27
+TEXT	·RawSyscall(SB),NOSPLIT,$0-56
28
+	JMP	syscall·RawSyscall(SB)
29
+
30
+TEXT	·RawSyscall6(SB),NOSPLIT,$0-80
31
+	JMP	syscall·RawSyscall6(SB)

+ 2
- 2
vendor/golang.org/x/sys/unix/dirent.go Zobrazit soubor

2
 // Use of this source code is governed by a BSD-style
2
 // Use of this source code is governed by a BSD-style
3
 // license that can be found in the LICENSE file.
3
 // license that can be found in the LICENSE file.
4
 
4
 
5
-//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
6
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
5
+//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
6
+// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
7
 
7
 
8
 package unix
8
 package unix
9
 
9
 

+ 2
- 2
vendor/golang.org/x/sys/unix/gccgo.go Zobrazit soubor

2
 // Use of this source code is governed by a BSD-style
2
 // Use of this source code is governed by a BSD-style
3
 // license that can be found in the LICENSE file.
3
 // license that can be found in the LICENSE file.
4
 
4
 
5
-//go:build gccgo && !aix
6
-// +build gccgo,!aix
5
+//go:build gccgo && !aix && !hurd
6
+// +build gccgo,!aix,!hurd
7
 
7
 
8
 package unix
8
 package unix
9
 
9
 

+ 2
- 2
vendor/golang.org/x/sys/unix/gccgo_c.c Zobrazit soubor

2
 // Use of this source code is governed by a BSD-style
2
 // Use of this source code is governed by a BSD-style
3
 // license that can be found in the LICENSE file.
3
 // license that can be found in the LICENSE file.
4
 
4
 
5
-// +build gccgo
6
-// +build !aix
5
+// +build gccgo,!hurd
6
+// +build !aix,!hurd
7
 
7
 
8
 #include <errno.h>
8
 #include <errno.h>
9
 #include <stdint.h>
9
 #include <stdint.h>

+ 2
- 2
vendor/golang.org/x/sys/unix/ioctl.go Zobrazit soubor

2
 // Use of this source code is governed by a BSD-style
2
 // Use of this source code is governed by a BSD-style
3
 // license that can be found in the LICENSE file.
3
 // license that can be found in the LICENSE file.
4
 
4
 
5
-//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
6
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
5
+//go:build aix || darwin || dragonfly || freebsd || hurd || linux || netbsd || openbsd || solaris
6
+// +build aix darwin dragonfly freebsd hurd linux netbsd openbsd solaris
7
 
7
 
8
 package unix
8
 package unix
9
 
9
 

+ 17
- 3
vendor/golang.org/x/sys/unix/ioctl_linux.go Zobrazit soubor

4
 
4
 
5
 package unix
5
 package unix
6
 
6
 
7
-import (
8
-	"unsafe"
9
-)
7
+import "unsafe"
10
 
8
 
11
 // IoctlRetInt performs an ioctl operation specified by req on a device
9
 // IoctlRetInt performs an ioctl operation specified by req on a device
12
 // associated with opened file descriptor fd, and returns a non-negative
10
 // associated with opened file descriptor fd, and returns a non-negative
217
 func IoctlKCMUnattach(fd int, info KCMUnattach) error {
215
 func IoctlKCMUnattach(fd int, info KCMUnattach) error {
218
 	return ioctlPtr(fd, SIOCKCMUNATTACH, unsafe.Pointer(&info))
216
 	return ioctlPtr(fd, SIOCKCMUNATTACH, unsafe.Pointer(&info))
219
 }
217
 }
218
+
219
+// IoctlLoopGetStatus64 gets the status of the loop device associated with the
220
+// file descriptor fd using the LOOP_GET_STATUS64 operation.
221
+func IoctlLoopGetStatus64(fd int) (*LoopInfo64, error) {
222
+	var value LoopInfo64
223
+	if err := ioctlPtr(fd, LOOP_GET_STATUS64, unsafe.Pointer(&value)); err != nil {
224
+		return nil, err
225
+	}
226
+	return &value, nil
227
+}
228
+
229
+// IoctlLoopSetStatus64 sets the status of the loop device associated with the
230
+// file descriptor fd using the LOOP_SET_STATUS64 operation.
231
+func IoctlLoopSetStatus64(fd int, value *LoopInfo64) error {
232
+	return ioctlPtr(fd, LOOP_SET_STATUS64, unsafe.Pointer(value))
233
+}

+ 31
- 18
vendor/golang.org/x/sys/unix/mkall.sh Zobrazit soubor

73
 darwin_amd64)
73
 darwin_amd64)
74
 	mkerrors="$mkerrors -m64"
74
 	mkerrors="$mkerrors -m64"
75
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
75
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
76
-	mkasm="go run mkasm_darwin.go"
76
+	mkasm="go run mkasm.go"
77
 	;;
77
 	;;
78
 darwin_arm64)
78
 darwin_arm64)
79
 	mkerrors="$mkerrors -m64"
79
 	mkerrors="$mkerrors -m64"
80
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
80
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
81
-	mkasm="go run mkasm_darwin.go"
81
+	mkasm="go run mkasm.go"
82
 	;;
82
 	;;
83
 dragonfly_amd64)
83
 dragonfly_amd64)
84
 	mkerrors="$mkerrors -m64"
84
 	mkerrors="$mkerrors -m64"
142
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
142
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
143
 	;;
143
 	;;
144
 openbsd_386)
144
 openbsd_386)
145
+	mkasm="go run mkasm.go"
145
 	mkerrors="$mkerrors -m32"
146
 	mkerrors="$mkerrors -m32"
146
-	mksyscall="go run mksyscall.go -l32 -openbsd"
147
+	mksyscall="go run mksyscall.go -l32 -openbsd -libc"
147
 	mksysctl="go run mksysctl_openbsd.go"
148
 	mksysctl="go run mksysctl_openbsd.go"
148
-	mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'"
149
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
149
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
150
 	;;
150
 	;;
151
 openbsd_amd64)
151
 openbsd_amd64)
152
+	mkasm="go run mkasm.go"
152
 	mkerrors="$mkerrors -m64"
153
 	mkerrors="$mkerrors -m64"
153
-	mksyscall="go run mksyscall.go -openbsd"
154
+	mksyscall="go run mksyscall.go -openbsd -libc"
154
 	mksysctl="go run mksysctl_openbsd.go"
155
 	mksysctl="go run mksysctl_openbsd.go"
155
-	mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'"
156
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
156
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
157
 	;;
157
 	;;
158
 openbsd_arm)
158
 openbsd_arm)
159
+	mkasm="go run mkasm.go"
159
 	mkerrors="$mkerrors"
160
 	mkerrors="$mkerrors"
160
-	mksyscall="go run mksyscall.go -l32 -openbsd -arm"
161
+	mksyscall="go run mksyscall.go -l32 -openbsd -arm -libc"
161
 	mksysctl="go run mksysctl_openbsd.go"
162
 	mksysctl="go run mksysctl_openbsd.go"
162
-	mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'"
163
 	# Let the type of C char be signed for making the bare syscall
163
 	# Let the type of C char be signed for making the bare syscall
164
 	# API consistent across platforms.
164
 	# API consistent across platforms.
165
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
165
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
166
 	;;
166
 	;;
167
 openbsd_arm64)
167
 openbsd_arm64)
168
+	mkasm="go run mkasm.go"
168
 	mkerrors="$mkerrors -m64"
169
 	mkerrors="$mkerrors -m64"
169
-	mksyscall="go run mksyscall.go -openbsd"
170
+	mksyscall="go run mksyscall.go -openbsd -libc"
170
 	mksysctl="go run mksysctl_openbsd.go"
171
 	mksysctl="go run mksysctl_openbsd.go"
171
-	mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'"
172
 	# Let the type of C char be signed for making the bare syscall
172
 	# Let the type of C char be signed for making the bare syscall
173
 	# API consistent across platforms.
173
 	# API consistent across platforms.
174
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
174
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
175
 	;;
175
 	;;
176
 openbsd_mips64)
176
 openbsd_mips64)
177
+	mkasm="go run mkasm.go"
177
 	mkerrors="$mkerrors -m64"
178
 	mkerrors="$mkerrors -m64"
178
-	mksyscall="go run mksyscall.go -openbsd"
179
+	mksyscall="go run mksyscall.go -openbsd -libc"
180
+	mksysctl="go run mksysctl_openbsd.go"
181
+	# Let the type of C char be signed for making the bare syscall
182
+	# API consistent across platforms.
183
+	mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
184
+	;;
185
+openbsd_ppc64)
186
+	mkasm="go run mkasm.go"
187
+	mkerrors="$mkerrors -m64"
188
+	mksyscall="go run mksyscall.go -openbsd -libc"
189
+	mksysctl="go run mksysctl_openbsd.go"
190
+	# Let the type of C char be signed for making the bare syscall
191
+	# API consistent across platforms.
192
+	mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
193
+	;;
194
+openbsd_riscv64)
195
+	mkasm="go run mkasm.go"
196
+	mkerrors="$mkerrors -m64"
197
+	mksyscall="go run mksyscall.go -openbsd -libc"
179
 	mksysctl="go run mksysctl_openbsd.go"
198
 	mksysctl="go run mksysctl_openbsd.go"
180
-	mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'"
181
 	# Let the type of C char be signed for making the bare syscall
199
 	# Let the type of C char be signed for making the bare syscall
182
 	# API consistent across platforms.
200
 	# API consistent across platforms.
183
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
201
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
214
 			if [ "$GOOSARCH" == "aix_ppc64" ]; then
232
 			if [ "$GOOSARCH" == "aix_ppc64" ]; then
215
 				# aix/ppc64 script generates files instead of writing to stdin.
233
 				# aix/ppc64 script generates files instead of writing to stdin.
216
 				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 " ;
234
 				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 " ;
217
-			elif [ "$GOOS" == "darwin" ]; then
218
-			        # 1.12 and later, syscalls via libSystem
219
-				echo "$mksyscall -tags $GOOS,$GOARCH,go1.12 $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go";
220
-				# 1.13 and later, syscalls via libSystem (including syscallPtr)
221
-				echo "$mksyscall -tags $GOOS,$GOARCH,go1.13 syscall_darwin.1_13.go |gofmt >zsyscall_$GOOSARCH.1_13.go";
222
 			elif [ "$GOOS" == "illumos" ]; then
235
 			elif [ "$GOOS" == "illumos" ]; then
223
 			        # illumos code generation requires a --illumos switch
236
 			        # illumos code generation requires a --illumos switch
224
 			        echo "$mksyscall -illumos -tags illumos,$GOARCH syscall_illumos.go |gofmt > zsyscall_illumos_$GOARCH.go";
237
 			        echo "$mksyscall -illumos -tags illumos,$GOARCH syscall_illumos.go |gofmt > zsyscall_illumos_$GOARCH.go";
232
 	if [ -n "$mksysctl" ]; then echo "$mksysctl |gofmt >$zsysctl"; fi
245
 	if [ -n "$mksysctl" ]; then echo "$mksysctl |gofmt >$zsysctl"; fi
233
 	if [ -n "$mksysnum" ]; then echo "$mksysnum |gofmt >zsysnum_$GOOSARCH.go"; fi
246
 	if [ -n "$mksysnum" ]; then echo "$mksysnum |gofmt >zsysnum_$GOOSARCH.go"; fi
234
 	if [ -n "$mktypes" ]; then echo "$mktypes types_$GOOS.go | go run mkpost.go > ztypes_$GOOSARCH.go"; fi
247
 	if [ -n "$mktypes" ]; then echo "$mktypes types_$GOOS.go | go run mkpost.go > ztypes_$GOOSARCH.go"; fi
235
-	if [ -n "$mkasm" ]; then echo "$mkasm $GOARCH"; fi
248
+	if [ -n "$mkasm" ]; then echo "$mkasm $GOOS $GOARCH"; fi
236
 ) | $run
249
 ) | $run

+ 2
- 2
vendor/golang.org/x/sys/unix/mkerrors.sh Zobrazit soubor

642
 signals=$(
642
 signals=$(
643
 	echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
643
 	echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
644
 	awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' |
644
 	awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' |
645
-	egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' |
645
+	grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT\|SIGMAX64' |
646
 	sort
646
 	sort
647
 )
647
 )
648
 
648
 
652
 	sort >_error.grep
652
 	sort >_error.grep
653
 echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
653
 echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
654
 	awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' |
654
 	awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' |
655
-	egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' |
655
+	grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT\|SIGMAX64' |
656
 	sort >_signal.grep
656
 	sort >_signal.grep
657
 
657
 
658
 echo '// mkerrors.sh' "$@"
658
 echo '// mkerrors.sh' "$@"

+ 14
- 0
vendor/golang.org/x/sys/unix/sockcmsg_unix.go Zobrazit soubor

52
 	return msgs, nil
52
 	return msgs, nil
53
 }
53
 }
54
 
54
 
55
+// ParseOneSocketControlMessage parses a single socket control message from b, returning the message header,
56
+// message data (a slice of b), and the remainder of b after that single message.
57
+// When there are no remaining messages, len(remainder) == 0.
58
+func ParseOneSocketControlMessage(b []byte) (hdr Cmsghdr, data []byte, remainder []byte, err error) {
59
+	h, dbuf, err := socketControlMessageHeaderAndData(b)
60
+	if err != nil {
61
+		return Cmsghdr{}, nil, nil, err
62
+	}
63
+	if i := cmsgAlignOf(int(h.Len)); i < len(b) {
64
+		remainder = b[i:]
65
+	}
66
+	return *h, dbuf, remainder, nil
67
+}
68
+
55
 func socketControlMessageHeaderAndData(b []byte) (*Cmsghdr, []byte, error) {
69
 func socketControlMessageHeaderAndData(b []byte) (*Cmsghdr, []byte, error) {
56
 	h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
70
 	h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
57
 	if h.Len < SizeofCmsghdr || uint64(h.Len) > uint64(len(b)) {
71
 	if h.Len < SizeofCmsghdr || uint64(h.Len) > uint64(len(b)) {

+ 0
- 27
vendor/golang.org/x/sys/unix/str.go Zobrazit soubor

1
-// Copyright 2009 The Go Authors. All rights reserved.
2
-// Use of this source code is governed by a BSD-style
3
-// license that can be found in the LICENSE file.
4
-
5
-//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
6
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
7
-
8
-package unix
9
-
10
-func itoa(val int) string { // do it here rather than with fmt to avoid dependency
11
-	if val < 0 {
12
-		return "-" + uitoa(uint(-val))
13
-	}
14
-	return uitoa(uint(val))
15
-}
16
-
17
-func uitoa(val uint) string {
18
-	var buf [32]byte // big enough for int64
19
-	i := len(buf) - 1
20
-	for val >= 10 {
21
-		buf[i] = byte(val%10 + '0')
22
-		i--
23
-		val /= 10
24
-	}
25
-	buf[i] = byte(val + '0')
26
-	return string(buf[i:])
27
-}

+ 1
- 9
vendor/golang.org/x/sys/unix/syscall.go Zobrazit soubor

29
 	"bytes"
29
 	"bytes"
30
 	"strings"
30
 	"strings"
31
 	"unsafe"
31
 	"unsafe"
32
-
33
-	"golang.org/x/sys/internal/unsafeheader"
34
 )
32
 )
35
 
33
 
36
 // ByteSliceFromString returns a NUL-terminated slice of bytes
34
 // ByteSliceFromString returns a NUL-terminated slice of bytes
82
 		ptr = unsafe.Pointer(uintptr(ptr) + 1)
80
 		ptr = unsafe.Pointer(uintptr(ptr) + 1)
83
 	}
81
 	}
84
 
82
 
85
-	var s []byte
86
-	h := (*unsafeheader.Slice)(unsafe.Pointer(&s))
87
-	h.Data = unsafe.Pointer(p)
88
-	h.Len = n
89
-	h.Cap = n
90
-
91
-	return string(s)
83
+	return string(unsafe.Slice(p, n))
92
 }
84
 }
93
 
85
 
94
 // Single-word zero for use when we need a valid pointer to 0 bytes.
86
 // Single-word zero for use when we need a valid pointer to 0 bytes.

+ 53
- 4
vendor/golang.org/x/sys/unix/syscall_aix.go Zobrazit soubor

218
 }
218
 }
219
 
219
 
220
 func recvmsgRaw(fd int, iov []Iovec, oob []byte, flags int, rsa *RawSockaddrAny) (n, oobn int, recvflags int, err error) {
220
 func recvmsgRaw(fd int, iov []Iovec, oob []byte, flags int, rsa *RawSockaddrAny) (n, oobn int, recvflags int, err error) {
221
-	// Recvmsg not implemented on AIX
222
-	return -1, -1, -1, ENOSYS
221
+	var msg Msghdr
222
+	msg.Name = (*byte)(unsafe.Pointer(rsa))
223
+	msg.Namelen = uint32(SizeofSockaddrAny)
224
+	var dummy byte
225
+	if len(oob) > 0 {
226
+		// receive at least one normal byte
227
+		if emptyIovecs(iov) {
228
+			var iova [1]Iovec
229
+			iova[0].Base = &dummy
230
+			iova[0].SetLen(1)
231
+			iov = iova[:]
232
+		}
233
+		msg.Control = (*byte)(unsafe.Pointer(&oob[0]))
234
+		msg.SetControllen(len(oob))
235
+	}
236
+	if len(iov) > 0 {
237
+		msg.Iov = &iov[0]
238
+		msg.SetIovlen(len(iov))
239
+	}
240
+	if n, err = recvmsg(fd, &msg, flags); n == -1 {
241
+		return
242
+	}
243
+	oobn = int(msg.Controllen)
244
+	recvflags = int(msg.Flags)
245
+	return
223
 }
246
 }
224
 
247
 
225
 func sendmsgN(fd int, iov []Iovec, oob []byte, ptr unsafe.Pointer, salen _Socklen, flags int) (n int, err error) {
248
 func sendmsgN(fd int, iov []Iovec, oob []byte, ptr unsafe.Pointer, salen _Socklen, flags int) (n int, err error) {
226
-	// SendmsgN not implemented on AIX
227
-	return -1, ENOSYS
249
+	var msg Msghdr
250
+	msg.Name = (*byte)(unsafe.Pointer(ptr))
251
+	msg.Namelen = uint32(salen)
252
+	var dummy byte
253
+	var empty bool
254
+	if len(oob) > 0 {
255
+		// send at least one normal byte
256
+		empty = emptyIovecs(iov)
257
+		if empty {
258
+			var iova [1]Iovec
259
+			iova[0].Base = &dummy
260
+			iova[0].SetLen(1)
261
+			iov = iova[:]
262
+		}
263
+		msg.Control = (*byte)(unsafe.Pointer(&oob[0]))
264
+		msg.SetControllen(len(oob))
265
+	}
266
+	if len(iov) > 0 {
267
+		msg.Iov = &iov[0]
268
+		msg.SetIovlen(len(iov))
269
+	}
270
+	if n, err = sendmsg(fd, &msg, flags); err != nil {
271
+		return 0, err
272
+	}
273
+	if len(oob) > 0 && empty {
274
+		n = 0
275
+	}
276
+	return n, nil
228
 }
277
 }
229
 
278
 
230
 func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
279
 func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {

+ 1
- 1
vendor/golang.org/x/sys/unix/syscall_bsd.go Zobrazit soubor

363
 	var empty bool
363
 	var empty bool
364
 	if len(oob) > 0 {
364
 	if len(oob) > 0 {
365
 		// send at least one normal byte
365
 		// send at least one normal byte
366
-		empty := emptyIovecs(iov)
366
+		empty = emptyIovecs(iov)
367
 		if empty {
367
 		if empty {
368
 			var iova [1]Iovec
368
 			var iova [1]Iovec
369
 			iova[0].Base = &dummy
369
 			iova[0].Base = &dummy

+ 0
- 32
vendor/golang.org/x/sys/unix/syscall_darwin.1_12.go Zobrazit soubor

1
-// Copyright 2019 The Go Authors. All rights reserved.
2
-// Use of this source code is governed by a BSD-style
3
-// license that can be found in the LICENSE file.
4
-
5
-//go:build darwin && go1.12 && !go1.13
6
-// +build darwin,go1.12,!go1.13
7
-
8
-package unix
9
-
10
-import (
11
-	"unsafe"
12
-)
13
-
14
-const _SYS_GETDIRENTRIES64 = 344
15
-
16
-func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
17
-	// To implement this using libSystem we'd need syscall_syscallPtr for
18
-	// fdopendir. However, syscallPtr was only added in Go 1.13, so we fall
19
-	// back to raw syscalls for this func on Go 1.12.
20
-	var p unsafe.Pointer
21
-	if len(buf) > 0 {
22
-		p = unsafe.Pointer(&buf[0])
23
-	} else {
24
-		p = unsafe.Pointer(&_zero)
25
-	}
26
-	r0, _, e1 := Syscall6(_SYS_GETDIRENTRIES64, uintptr(fd), uintptr(p), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
27
-	n = int(r0)
28
-	if e1 != 0 {
29
-		return n, errnoErr(e1)
30
-	}
31
-	return n, nil
32
-}

+ 0
- 108
vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go Zobrazit soubor

1
-// Copyright 2019 The Go Authors. All rights reserved.
2
-// Use of this source code is governed by a BSD-style
3
-// license that can be found in the LICENSE file.
4
-
5
-//go:build darwin && go1.13
6
-// +build darwin,go1.13
7
-
8
-package unix
9
-
10
-import (
11
-	"unsafe"
12
-
13
-	"golang.org/x/sys/internal/unsafeheader"
14
-)
15
-
16
-//sys	closedir(dir uintptr) (err error)
17
-//sys	readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno)
18
-
19
-func fdopendir(fd int) (dir uintptr, err error) {
20
-	r0, _, e1 := syscall_syscallPtr(libc_fdopendir_trampoline_addr, uintptr(fd), 0, 0)
21
-	dir = uintptr(r0)
22
-	if e1 != 0 {
23
-		err = errnoErr(e1)
24
-	}
25
-	return
26
-}
27
-
28
-var libc_fdopendir_trampoline_addr uintptr
29
-
30
-//go:cgo_import_dynamic libc_fdopendir fdopendir "/usr/lib/libSystem.B.dylib"
31
-
32
-func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
33
-	// Simulate Getdirentries using fdopendir/readdir_r/closedir.
34
-	// We store the number of entries to skip in the seek
35
-	// offset of fd. See issue #31368.
36
-	// It's not the full required semantics, but should handle the case
37
-	// of calling Getdirentries or ReadDirent repeatedly.
38
-	// It won't handle assigning the results of lseek to *basep, or handle
39
-	// the directory being edited underfoot.
40
-	skip, err := Seek(fd, 0, 1 /* SEEK_CUR */)
41
-	if err != nil {
42
-		return 0, err
43
-	}
44
-
45
-	// We need to duplicate the incoming file descriptor
46
-	// because the caller expects to retain control of it, but
47
-	// fdopendir expects to take control of its argument.
48
-	// Just Dup'ing the file descriptor is not enough, as the
49
-	// result shares underlying state. Use Openat to make a really
50
-	// new file descriptor referring to the same directory.
51
-	fd2, err := Openat(fd, ".", O_RDONLY, 0)
52
-	if err != nil {
53
-		return 0, err
54
-	}
55
-	d, err := fdopendir(fd2)
56
-	if err != nil {
57
-		Close(fd2)
58
-		return 0, err
59
-	}
60
-	defer closedir(d)
61
-
62
-	var cnt int64
63
-	for {
64
-		var entry Dirent
65
-		var entryp *Dirent
66
-		e := readdir_r(d, &entry, &entryp)
67
-		if e != 0 {
68
-			return n, errnoErr(e)
69
-		}
70
-		if entryp == nil {
71
-			break
72
-		}
73
-		if skip > 0 {
74
-			skip--
75
-			cnt++
76
-			continue
77
-		}
78
-
79
-		reclen := int(entry.Reclen)
80
-		if reclen > len(buf) {
81
-			// Not enough room. Return for now.
82
-			// The counter will let us know where we should start up again.
83
-			// Note: this strategy for suspending in the middle and
84
-			// restarting is O(n^2) in the length of the directory. Oh well.
85
-			break
86
-		}
87
-
88
-		// Copy entry into return buffer.
89
-		var s []byte
90
-		hdr := (*unsafeheader.Slice)(unsafe.Pointer(&s))
91
-		hdr.Data = unsafe.Pointer(&entry)
92
-		hdr.Cap = reclen
93
-		hdr.Len = reclen
94
-		copy(buf, s)
95
-
96
-		buf = buf[reclen:]
97
-		n += reclen
98
-		cnt++
99
-	}
100
-	// Set the seek offset of the input fd to record
101
-	// how many files we've already returned.
102
-	_, err = Seek(fd, cnt, 0 /* SEEK_SET */)
103
-	if err != nil {
104
-		return n, err
105
-	}
106
-
107
-	return n, nil
108
-}

+ 90
- 0
vendor/golang.org/x/sys/unix/syscall_darwin.go Zobrazit soubor

19
 	"unsafe"
19
 	"unsafe"
20
 )
20
 )
21
 
21
 
22
+//sys	closedir(dir uintptr) (err error)
23
+//sys	readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno)
24
+
25
+func fdopendir(fd int) (dir uintptr, err error) {
26
+	r0, _, e1 := syscall_syscallPtr(libc_fdopendir_trampoline_addr, uintptr(fd), 0, 0)
27
+	dir = uintptr(r0)
28
+	if e1 != 0 {
29
+		err = errnoErr(e1)
30
+	}
31
+	return
32
+}
33
+
34
+var libc_fdopendir_trampoline_addr uintptr
35
+
36
+//go:cgo_import_dynamic libc_fdopendir fdopendir "/usr/lib/libSystem.B.dylib"
37
+
38
+func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
39
+	// Simulate Getdirentries using fdopendir/readdir_r/closedir.
40
+	// We store the number of entries to skip in the seek
41
+	// offset of fd. See issue #31368.
42
+	// It's not the full required semantics, but should handle the case
43
+	// of calling Getdirentries or ReadDirent repeatedly.
44
+	// It won't handle assigning the results of lseek to *basep, or handle
45
+	// the directory being edited underfoot.
46
+	skip, err := Seek(fd, 0, 1 /* SEEK_CUR */)
47
+	if err != nil {
48
+		return 0, err
49
+	}
50
+
51
+	// We need to duplicate the incoming file descriptor
52
+	// because the caller expects to retain control of it, but
53
+	// fdopendir expects to take control of its argument.
54
+	// Just Dup'ing the file descriptor is not enough, as the
55
+	// result shares underlying state. Use Openat to make a really
56
+	// new file descriptor referring to the same directory.
57
+	fd2, err := Openat(fd, ".", O_RDONLY, 0)
58
+	if err != nil {
59
+		return 0, err
60
+	}
61
+	d, err := fdopendir(fd2)
62
+	if err != nil {
63
+		Close(fd2)
64
+		return 0, err
65
+	}
66
+	defer closedir(d)
67
+
68
+	var cnt int64
69
+	for {
70
+		var entry Dirent
71
+		var entryp *Dirent
72
+		e := readdir_r(d, &entry, &entryp)
73
+		if e != 0 {
74
+			return n, errnoErr(e)
75
+		}
76
+		if entryp == nil {
77
+			break
78
+		}
79
+		if skip > 0 {
80
+			skip--
81
+			cnt++
82
+			continue
83
+		}
84
+
85
+		reclen := int(entry.Reclen)
86
+		if reclen > len(buf) {
87
+			// Not enough room. Return for now.
88
+			// The counter will let us know where we should start up again.
89
+			// Note: this strategy for suspending in the middle and
90
+			// restarting is O(n^2) in the length of the directory. Oh well.
91
+			break
92
+		}
93
+
94
+		// Copy entry into return buffer.
95
+		s := unsafe.Slice((*byte)(unsafe.Pointer(&entry)), reclen)
96
+		copy(buf, s)
97
+
98
+		buf = buf[reclen:]
99
+		n += reclen
100
+		cnt++
101
+	}
102
+	// Set the seek offset of the input fd to record
103
+	// how many files we've already returned.
104
+	_, err = Seek(fd, cnt, 0 /* SEEK_SET */)
105
+	if err != nil {
106
+		return n, err
107
+	}
108
+
109
+	return n, nil
110
+}
111
+
22
 // SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
112
 // SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
23
 type SockaddrDatalink struct {
113
 type SockaddrDatalink struct {
24
 	Len    uint8
114
 	Len    uint8

+ 1
- 0
vendor/golang.org/x/sys/unix/syscall_dragonfly.go Zobrazit soubor

255
 //sys	Chmod(path string, mode uint32) (err error)
255
 //sys	Chmod(path string, mode uint32) (err error)
256
 //sys	Chown(path string, uid int, gid int) (err error)
256
 //sys	Chown(path string, uid int, gid int) (err error)
257
 //sys	Chroot(path string) (err error)
257
 //sys	Chroot(path string) (err error)
258
+//sys	ClockGettime(clockid int32, time *Timespec) (err error)
258
 //sys	Close(fd int) (err error)
259
 //sys	Close(fd int) (err error)
259
 //sys	Dup(fd int) (nfd int, err error)
260
 //sys	Dup(fd int) (nfd int, err error)
260
 //sys	Dup2(from int, to int) (err error)
261
 //sys	Dup2(from int, to int) (err error)

+ 1
- 0
vendor/golang.org/x/sys/unix/syscall_freebsd.go Zobrazit soubor

319
 //sys	Chmod(path string, mode uint32) (err error)
319
 //sys	Chmod(path string, mode uint32) (err error)
320
 //sys	Chown(path string, uid int, gid int) (err error)
320
 //sys	Chown(path string, uid int, gid int) (err error)
321
 //sys	Chroot(path string) (err error)
321
 //sys	Chroot(path string) (err error)
322
+//sys	ClockGettime(clockid int32, time *Timespec) (err error)
322
 //sys	Close(fd int) (err error)
323
 //sys	Close(fd int) (err error)
323
 //sys	Dup(fd int) (nfd int, err error)
324
 //sys	Dup(fd int) (nfd int, err error)
324
 //sys	Dup2(from int, to int) (err error)
325
 //sys	Dup2(from int, to int) (err error)

+ 1
- 1
vendor/golang.org/x/sys/unix/syscall_freebsd_386.go Zobrazit soubor

61
 }
61
 }
62
 
62
 
63
 func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
63
 func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
64
-	ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint32(countin)}
64
+	ioDesc := PtraceIoDesc{Op: int32(req), Offs: uintptr(unsafe.Pointer(addr)), Addr: uintptr(unsafe.Pointer(&out[0])), Len: uint32(countin)}
65
 	err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
65
 	err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
66
 	return int(ioDesc.Len), err
66
 	return int(ioDesc.Len), err
67
 }
67
 }

+ 1
- 1
vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go Zobrazit soubor

61
 }
61
 }
62
 
62
 
63
 func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
63
 func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
64
-	ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint64(countin)}
64
+	ioDesc := PtraceIoDesc{Op: int32(req), Offs: uintptr(unsafe.Pointer(addr)), Addr: uintptr(unsafe.Pointer(&out[0])), Len: uint64(countin)}
65
 	err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
65
 	err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
66
 	return int(ioDesc.Len), err
66
 	return int(ioDesc.Len), err
67
 }
67
 }

+ 1
- 1
vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go Zobrazit soubor

57
 func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
57
 func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
58
 
58
 
59
 func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
59
 func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
60
-	ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint32(countin)}
60
+	ioDesc := PtraceIoDesc{Op: int32(req), Offs: uintptr(unsafe.Pointer(addr)), Addr: uintptr(unsafe.Pointer(&out[0])), Len: uint32(countin)}
61
 	err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
61
 	err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
62
 	return int(ioDesc.Len), err
62
 	return int(ioDesc.Len), err
63
 }
63
 }

+ 1
- 1
vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go Zobrazit soubor

57
 func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
57
 func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
58
 
58
 
59
 func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
59
 func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
60
-	ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint64(countin)}
60
+	ioDesc := PtraceIoDesc{Op: int32(req), Offs: uintptr(unsafe.Pointer(addr)), Addr: uintptr(unsafe.Pointer(&out[0])), Len: uint64(countin)}
61
 	err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
61
 	err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
62
 	return int(ioDesc.Len), err
62
 	return int(ioDesc.Len), err
63
 }
63
 }

+ 1
- 1
vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go Zobrazit soubor

57
 func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
57
 func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
58
 
58
 
59
 func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
59
 func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
60
-	ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint64(countin)}
60
+	ioDesc := PtraceIoDesc{Op: int32(req), Offs: uintptr(unsafe.Pointer(addr)), Addr: uintptr(unsafe.Pointer(&out[0])), Len: uint64(countin)}
61
 	err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
61
 	err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
62
 	return int(ioDesc.Len), err
62
 	return int(ioDesc.Len), err
63
 }
63
 }

+ 22
- 0
vendor/golang.org/x/sys/unix/syscall_hurd.go Zobrazit soubor

1
+// Copyright 2022 The Go Authors. All rights reserved.
2
+// Use of this source code is governed by a BSD-style
3
+// license that can be found in the LICENSE file.
4
+
5
+//go:build hurd
6
+// +build hurd
7
+
8
+package unix
9
+
10
+/*
11
+#include <stdint.h>
12
+int ioctl(int, unsigned long int, uintptr_t);
13
+*/
14
+import "C"
15
+
16
+func ioctl(fd int, req uint, arg uintptr) (err error) {
17
+	r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(arg))
18
+	if r0 == -1 && er != nil {
19
+		err = er
20
+	}
21
+	return
22
+}

+ 29
- 0
vendor/golang.org/x/sys/unix/syscall_hurd_386.go Zobrazit soubor

1
+// Copyright 2022 The Go Authors. All rights reserved.
2
+// Use of this source code is governed by a BSD-style
3
+// license that can be found in the LICENSE file.
4
+
5
+//go:build 386 && hurd
6
+// +build 386,hurd
7
+
8
+package unix
9
+
10
+const (
11
+	TIOCGETA = 0x62251713
12
+)
13
+
14
+type Winsize struct {
15
+	Row    uint16
16
+	Col    uint16
17
+	Xpixel uint16
18
+	Ypixel uint16
19
+}
20
+
21
+type Termios struct {
22
+	Iflag  uint32
23
+	Oflag  uint32
24
+	Cflag  uint32
25
+	Lflag  uint32
26
+	Cc     [20]uint8
27
+	Ispeed int32
28
+	Ospeed int32
29
+}

+ 0
- 106
vendor/golang.org/x/sys/unix/syscall_illumos.go Zobrazit soubor

10
 package unix
10
 package unix
11
 
11
 
12
 import (
12
 import (
13
-	"fmt"
14
-	"runtime"
15
 	"unsafe"
13
 	"unsafe"
16
 )
14
 )
17
 
15
 
79
 	}
77
 	}
80
 	return
78
 	return
81
 }
79
 }
82
-
83
-//sys	putmsg(fd int, clptr *strbuf, dataptr *strbuf, flags int) (err error)
84
-
85
-func Putmsg(fd int, cl []byte, data []byte, flags int) (err error) {
86
-	var clp, datap *strbuf
87
-	if len(cl) > 0 {
88
-		clp = &strbuf{
89
-			Len: int32(len(cl)),
90
-			Buf: (*int8)(unsafe.Pointer(&cl[0])),
91
-		}
92
-	}
93
-	if len(data) > 0 {
94
-		datap = &strbuf{
95
-			Len: int32(len(data)),
96
-			Buf: (*int8)(unsafe.Pointer(&data[0])),
97
-		}
98
-	}
99
-	return putmsg(fd, clp, datap, flags)
100
-}
101
-
102
-//sys	getmsg(fd int, clptr *strbuf, dataptr *strbuf, flags *int) (err error)
103
-
104
-func Getmsg(fd int, cl []byte, data []byte) (retCl []byte, retData []byte, flags int, err error) {
105
-	var clp, datap *strbuf
106
-	if len(cl) > 0 {
107
-		clp = &strbuf{
108
-			Maxlen: int32(len(cl)),
109
-			Buf:    (*int8)(unsafe.Pointer(&cl[0])),
110
-		}
111
-	}
112
-	if len(data) > 0 {
113
-		datap = &strbuf{
114
-			Maxlen: int32(len(data)),
115
-			Buf:    (*int8)(unsafe.Pointer(&data[0])),
116
-		}
117
-	}
118
-
119
-	if err = getmsg(fd, clp, datap, &flags); err != nil {
120
-		return nil, nil, 0, err
121
-	}
122
-
123
-	if len(cl) > 0 {
124
-		retCl = cl[:clp.Len]
125
-	}
126
-	if len(data) > 0 {
127
-		retData = data[:datap.Len]
128
-	}
129
-	return retCl, retData, flags, nil
130
-}
131
-
132
-func IoctlSetIntRetInt(fd int, req uint, arg int) (int, error) {
133
-	return ioctlRet(fd, req, uintptr(arg))
134
-}
135
-
136
-func IoctlSetString(fd int, req uint, val string) error {
137
-	bs := make([]byte, len(val)+1)
138
-	copy(bs[:len(bs)-1], val)
139
-	err := ioctl(fd, req, uintptr(unsafe.Pointer(&bs[0])))
140
-	runtime.KeepAlive(&bs[0])
141
-	return err
142
-}
143
-
144
-// Lifreq Helpers
145
-
146
-func (l *Lifreq) SetName(name string) error {
147
-	if len(name) >= len(l.Name) {
148
-		return fmt.Errorf("name cannot be more than %d characters", len(l.Name)-1)
149
-	}
150
-	for i := range name {
151
-		l.Name[i] = int8(name[i])
152
-	}
153
-	return nil
154
-}
155
-
156
-func (l *Lifreq) SetLifruInt(d int) {
157
-	*(*int)(unsafe.Pointer(&l.Lifru[0])) = d
158
-}
159
-
160
-func (l *Lifreq) GetLifruInt() int {
161
-	return *(*int)(unsafe.Pointer(&l.Lifru[0]))
162
-}
163
-
164
-func (l *Lifreq) SetLifruUint(d uint) {
165
-	*(*uint)(unsafe.Pointer(&l.Lifru[0])) = d
166
-}
167
-
168
-func (l *Lifreq) GetLifruUint() uint {
169
-	return *(*uint)(unsafe.Pointer(&l.Lifru[0]))
170
-}
171
-
172
-func IoctlLifreq(fd int, req uint, l *Lifreq) error {
173
-	return ioctl(fd, req, uintptr(unsafe.Pointer(l)))
174
-}
175
-
176
-// Strioctl Helpers
177
-
178
-func (s *Strioctl) SetInt(i int) {
179
-	s.Len = int32(unsafe.Sizeof(i))
180
-	s.Dp = (*int8)(unsafe.Pointer(&i))
181
-}
182
-
183
-func IoctlSetStrioctlRetInt(fd int, req uint, s *Strioctl) (int, error) {
184
-	return ioctlRet(fd, req, uintptr(unsafe.Pointer(s)))
185
-}

+ 66
- 30
vendor/golang.org/x/sys/unix/syscall_linux.go Zobrazit soubor

13
 
13
 
14
 import (
14
 import (
15
 	"encoding/binary"
15
 	"encoding/binary"
16
+	"strconv"
16
 	"syscall"
17
 	"syscall"
17
 	"time"
18
 	"time"
18
 	"unsafe"
19
 	"unsafe"
233
 func Futimes(fd int, tv []Timeval) (err error) {
234
 func Futimes(fd int, tv []Timeval) (err error) {
234
 	// Believe it or not, this is the best we can do on Linux
235
 	// Believe it or not, this is the best we can do on Linux
235
 	// (and is what glibc does).
236
 	// (and is what glibc does).
236
-	return Utimes("/proc/self/fd/"+itoa(fd), tv)
237
+	return Utimes("/proc/self/fd/"+strconv.Itoa(fd), tv)
237
 }
238
 }
238
 
239
 
239
 const ImplementsGetwd = true
240
 const ImplementsGetwd = true
1541
 	var dummy byte
1542
 	var dummy byte
1542
 	var empty bool
1543
 	var empty bool
1543
 	if len(oob) > 0 {
1544
 	if len(oob) > 0 {
1544
-		empty := emptyIovecs(iov)
1545
+		empty = emptyIovecs(iov)
1545
 		if empty {
1546
 		if empty {
1546
 			var sockType int
1547
 			var sockType int
1547
 			sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE)
1548
 			sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE)
1553
 				var iova [1]Iovec
1554
 				var iova [1]Iovec
1554
 				iova[0].Base = &dummy
1555
 				iova[0].Base = &dummy
1555
 				iova[0].SetLen(1)
1556
 				iova[0].SetLen(1)
1557
+				iov = iova[:]
1556
 			}
1558
 			}
1557
 		}
1559
 		}
1558
 		msg.Control = &oob[0]
1560
 		msg.Control = &oob[0]
1891
 	return int(ret), nil
1893
 	return int(ret), nil
1892
 }
1894
 }
1893
 
1895
 
1894
-// issue 1435.
1895
-// On linux Setuid and Setgid only affects the current thread, not the process.
1896
-// This does not match what most callers expect so we must return an error
1897
-// here rather than letting the caller think that the call succeeded.
1898
-
1899
 func Setuid(uid int) (err error) {
1896
 func Setuid(uid int) (err error) {
1900
-	return EOPNOTSUPP
1897
+	return syscall.Setuid(uid)
1898
+}
1899
+
1900
+func Setgid(gid int) (err error) {
1901
+	return syscall.Setgid(gid)
1902
+}
1903
+
1904
+func Setreuid(ruid, euid int) (err error) {
1905
+	return syscall.Setreuid(ruid, euid)
1906
+}
1907
+
1908
+func Setregid(rgid, egid int) (err error) {
1909
+	return syscall.Setregid(rgid, egid)
1901
 }
1910
 }
1902
 
1911
 
1903
-func Setgid(uid int) (err error) {
1904
-	return EOPNOTSUPP
1912
+func Setresuid(ruid, euid, suid int) (err error) {
1913
+	return syscall.Setresuid(ruid, euid, suid)
1914
+}
1915
+
1916
+func Setresgid(rgid, egid, sgid int) (err error) {
1917
+	return syscall.Setresgid(rgid, egid, sgid)
1905
 }
1918
 }
1906
 
1919
 
1907
 // SetfsgidRetGid sets fsgid for current thread and returns previous fsgid set.
1920
 // SetfsgidRetGid sets fsgid for current thread and returns previous fsgid set.
1960
 //sys	preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PREADV2
1973
 //sys	preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PREADV2
1961
 //sys	pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PWRITEV2
1974
 //sys	pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PWRITEV2
1962
 
1975
 
1963
-func bytes2iovec(bs [][]byte) []Iovec {
1964
-	iovecs := make([]Iovec, len(bs))
1965
-	for i, b := range bs {
1966
-		iovecs[i].SetLen(len(b))
1976
+// minIovec is the size of the small initial allocation used by
1977
+// Readv, Writev, etc.
1978
+//
1979
+// This small allocation gets stack allocated, which lets the
1980
+// common use case of len(iovs) <= minIovs avoid more expensive
1981
+// heap allocations.
1982
+const minIovec = 8
1983
+
1984
+// appendBytes converts bs to Iovecs and appends them to vecs.
1985
+func appendBytes(vecs []Iovec, bs [][]byte) []Iovec {
1986
+	for _, b := range bs {
1987
+		var v Iovec
1988
+		v.SetLen(len(b))
1967
 		if len(b) > 0 {
1989
 		if len(b) > 0 {
1968
-			iovecs[i].Base = &b[0]
1990
+			v.Base = &b[0]
1969
 		} else {
1991
 		} else {
1970
-			iovecs[i].Base = (*byte)(unsafe.Pointer(&_zero))
1992
+			v.Base = (*byte)(unsafe.Pointer(&_zero))
1971
 		}
1993
 		}
1994
+		vecs = append(vecs, v)
1972
 	}
1995
 	}
1973
-	return iovecs
1996
+	return vecs
1974
 }
1997
 }
1975
 
1998
 
1976
-// offs2lohi splits offs into its lower and upper unsigned long. On 64-bit
1977
-// systems, hi will always be 0. On 32-bit systems, offs will be split in half.
1978
-// preadv/pwritev chose this calling convention so they don't need to add a
1979
-// padding-register for alignment on ARM.
1999
+// offs2lohi splits offs into its low and high order bits.
1980
 func offs2lohi(offs int64) (lo, hi uintptr) {
2000
 func offs2lohi(offs int64) (lo, hi uintptr) {
1981
-	return uintptr(offs), uintptr(uint64(offs) >> SizeofLong)
2001
+	const longBits = SizeofLong * 8
2002
+	return uintptr(offs), uintptr(uint64(offs) >> longBits)
1982
 }
2003
 }
1983
 
2004
 
1984
 func Readv(fd int, iovs [][]byte) (n int, err error) {
2005
 func Readv(fd int, iovs [][]byte) (n int, err error) {
1985
-	iovecs := bytes2iovec(iovs)
2006
+	iovecs := make([]Iovec, 0, minIovec)
2007
+	iovecs = appendBytes(iovecs, iovs)
1986
 	n, err = readv(fd, iovecs)
2008
 	n, err = readv(fd, iovecs)
1987
 	readvRacedetect(iovecs, n, err)
2009
 	readvRacedetect(iovecs, n, err)
1988
 	return n, err
2010
 	return n, err
1989
 }
2011
 }
1990
 
2012
 
1991
 func Preadv(fd int, iovs [][]byte, offset int64) (n int, err error) {
2013
 func Preadv(fd int, iovs [][]byte, offset int64) (n int, err error) {
1992
-	iovecs := bytes2iovec(iovs)
2014
+	iovecs := make([]Iovec, 0, minIovec)
2015
+	iovecs = appendBytes(iovecs, iovs)
1993
 	lo, hi := offs2lohi(offset)
2016
 	lo, hi := offs2lohi(offset)
1994
 	n, err = preadv(fd, iovecs, lo, hi)
2017
 	n, err = preadv(fd, iovecs, lo, hi)
1995
 	readvRacedetect(iovecs, n, err)
2018
 	readvRacedetect(iovecs, n, err)
1997
 }
2020
 }
1998
 
2021
 
1999
 func Preadv2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) {
2022
 func Preadv2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) {
2000
-	iovecs := bytes2iovec(iovs)
2023
+	iovecs := make([]Iovec, 0, minIovec)
2024
+	iovecs = appendBytes(iovecs, iovs)
2001
 	lo, hi := offs2lohi(offset)
2025
 	lo, hi := offs2lohi(offset)
2002
 	n, err = preadv2(fd, iovecs, lo, hi, flags)
2026
 	n, err = preadv2(fd, iovecs, lo, hi, flags)
2003
 	readvRacedetect(iovecs, n, err)
2027
 	readvRacedetect(iovecs, n, err)
2024
 }
2048
 }
2025
 
2049
 
2026
 func Writev(fd int, iovs [][]byte) (n int, err error) {
2050
 func Writev(fd int, iovs [][]byte) (n int, err error) {
2027
-	iovecs := bytes2iovec(iovs)
2051
+	iovecs := make([]Iovec, 0, minIovec)
2052
+	iovecs = appendBytes(iovecs, iovs)
2028
 	if raceenabled {
2053
 	if raceenabled {
2029
 		raceReleaseMerge(unsafe.Pointer(&ioSync))
2054
 		raceReleaseMerge(unsafe.Pointer(&ioSync))
2030
 	}
2055
 	}
2034
 }
2059
 }
2035
 
2060
 
2036
 func Pwritev(fd int, iovs [][]byte, offset int64) (n int, err error) {
2061
 func Pwritev(fd int, iovs [][]byte, offset int64) (n int, err error) {
2037
-	iovecs := bytes2iovec(iovs)
2062
+	iovecs := make([]Iovec, 0, minIovec)
2063
+	iovecs = appendBytes(iovecs, iovs)
2038
 	if raceenabled {
2064
 	if raceenabled {
2039
 		raceReleaseMerge(unsafe.Pointer(&ioSync))
2065
 		raceReleaseMerge(unsafe.Pointer(&ioSync))
2040
 	}
2066
 	}
2045
 }
2071
 }
2046
 
2072
 
2047
 func Pwritev2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) {
2073
 func Pwritev2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) {
2048
-	iovecs := bytes2iovec(iovs)
2074
+	iovecs := make([]Iovec, 0, minIovec)
2075
+	iovecs = appendBytes(iovecs, iovs)
2049
 	if raceenabled {
2076
 	if raceenabled {
2050
 		raceReleaseMerge(unsafe.Pointer(&ioSync))
2077
 		raceReleaseMerge(unsafe.Pointer(&ioSync))
2051
 	}
2078
 	}
2240
 	if n == 0 {
2267
 	if n == 0 {
2241
 		return nil
2268
 		return nil
2242
 	}
2269
 	}
2243
-	return (*[1 << 30]byte)(unsafe.Pointer(uintptr(unsafe.Pointer(&fh.fileHandle.Type)) + 4))[:n:n]
2270
+	return unsafe.Slice((*byte)(unsafe.Pointer(uintptr(unsafe.Pointer(&fh.fileHandle.Type))+4)), n)
2244
 }
2271
 }
2245
 
2272
 
2246
 // NameToHandleAt wraps the name_to_handle_at system call; it obtains
2273
 // NameToHandleAt wraps the name_to_handle_at system call; it obtains
2356
 	return prev, nil
2383
 	return prev, nil
2357
 }
2384
 }
2358
 
2385
 
2386
+//sysnb	rtSigprocmask(how int, set *Sigset_t, oldset *Sigset_t, sigsetsize uintptr) (err error) = SYS_RT_SIGPROCMASK
2387
+
2388
+func PthreadSigmask(how int, set, oldset *Sigset_t) error {
2389
+	if oldset != nil {
2390
+		// Explicitly clear in case Sigset_t is larger than _C__NSIG.
2391
+		*oldset = Sigset_t{}
2392
+	}
2393
+	return rtSigprocmask(how, set, oldset, _C__NSIG/8)
2394
+}
2395
+
2359
 /*
2396
 /*
2360
  * Unimplemented
2397
  * Unimplemented
2361
  */
2398
  */
2414
 // RestartSyscall
2451
 // RestartSyscall
2415
 // RtSigaction
2452
 // RtSigaction
2416
 // RtSigpending
2453
 // RtSigpending
2417
-// RtSigprocmask
2418
 // RtSigqueueinfo
2454
 // RtSigqueueinfo
2419
 // RtSigreturn
2455
 // RtSigreturn
2420
 // RtSigsuspend
2456
 // RtSigsuspend

+ 0
- 4
vendor/golang.org/x/sys/unix/syscall_linux_386.go Zobrazit soubor

41
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
41
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
42
 //sys	setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32
42
 //sys	setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32
43
 //sys	setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32
43
 //sys	setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32
44
-//sysnb	Setregid(rgid int, egid int) (err error) = SYS_SETREGID32
45
-//sysnb	Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID32
46
-//sysnb	Setresuid(ruid int, euid int, suid int) (err error) = SYS_SETRESUID32
47
-//sysnb	Setreuid(ruid int, euid int) (err error) = SYS_SETREUID32
48
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
44
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
49
 //sys	Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
45
 //sys	Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
50
 //sys	SyncFileRange(fd int, off int64, n int64, flags int) (err error)
46
 //sys	SyncFileRange(fd int, off int64, n int64, flags int) (err error)

+ 0
- 4
vendor/golang.org/x/sys/unix/syscall_linux_amd64.go Zobrazit soubor

46
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
46
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
47
 //sys	setfsgid(gid int) (prev int, err error)
47
 //sys	setfsgid(gid int) (prev int, err error)
48
 //sys	setfsuid(uid int) (prev int, err error)
48
 //sys	setfsuid(uid int) (prev int, err error)
49
-//sysnb	Setregid(rgid int, egid int) (err error)
50
-//sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
51
-//sysnb	Setresuid(ruid int, euid int, suid int) (err error)
52
 //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
49
 //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
53
-//sysnb	Setreuid(ruid int, euid int) (err error)
54
 //sys	Shutdown(fd int, how int) (err error)
50
 //sys	Shutdown(fd int, how int) (err error)
55
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
51
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
56
 
52
 

+ 0
- 4
vendor/golang.org/x/sys/unix/syscall_linux_arm.go Zobrazit soubor

62
 //sys	Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
62
 //sys	Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
63
 //sys	setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32
63
 //sys	setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32
64
 //sys	setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32
64
 //sys	setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32
65
-//sysnb	Setregid(rgid int, egid int) (err error) = SYS_SETREGID32
66
-//sysnb	Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID32
67
-//sysnb	Setresuid(ruid int, euid int, suid int) (err error) = SYS_SETRESUID32
68
-//sysnb	Setreuid(ruid int, euid int) (err error) = SYS_SETREUID32
69
 //sys	Shutdown(fd int, how int) (err error)
65
 //sys	Shutdown(fd int, how int) (err error)
70
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
66
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
71
 //sys	Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
67
 //sys	Stat(path string, stat *Stat_t) (err error) = SYS_STAT64

+ 0
- 4
vendor/golang.org/x/sys/unix/syscall_linux_arm64.go Zobrazit soubor

39
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
39
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
40
 //sys	setfsgid(gid int) (prev int, err error)
40
 //sys	setfsgid(gid int) (prev int, err error)
41
 //sys	setfsuid(uid int) (prev int, err error)
41
 //sys	setfsuid(uid int) (prev int, err error)
42
-//sysnb	Setregid(rgid int, egid int) (err error)
43
-//sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
44
-//sysnb	Setresuid(ruid int, euid int, suid int) (err error)
45
 //sysnb	setrlimit(resource int, rlim *Rlimit) (err error)
42
 //sysnb	setrlimit(resource int, rlim *Rlimit) (err error)
46
-//sysnb	Setreuid(ruid int, euid int) (err error)
47
 //sys	Shutdown(fd int, how int) (err error)
43
 //sys	Shutdown(fd int, how int) (err error)
48
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
44
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
49
 
45
 

+ 0
- 4
vendor/golang.org/x/sys/unix/syscall_linux_loong64.go Zobrazit soubor

34
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
34
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
35
 //sys	setfsgid(gid int) (prev int, err error)
35
 //sys	setfsgid(gid int) (prev int, err error)
36
 //sys	setfsuid(uid int) (prev int, err error)
36
 //sys	setfsuid(uid int) (prev int, err error)
37
-//sysnb	Setregid(rgid int, egid int) (err error)
38
-//sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
39
-//sysnb	Setresuid(ruid int, euid int, suid int) (err error)
40
-//sysnb	Setreuid(ruid int, euid int) (err error)
41
 //sys	Shutdown(fd int, how int) (err error)
37
 //sys	Shutdown(fd int, how int) (err error)
42
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
38
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
43
 
39
 

+ 0
- 4
vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go Zobrazit soubor

37
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
37
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
38
 //sys	setfsgid(gid int) (prev int, err error)
38
 //sys	setfsgid(gid int) (prev int, err error)
39
 //sys	setfsuid(uid int) (prev int, err error)
39
 //sys	setfsuid(uid int) (prev int, err error)
40
-//sysnb	Setregid(rgid int, egid int) (err error)
41
-//sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
42
-//sysnb	Setresuid(ruid int, euid int, suid int) (err error)
43
 //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
40
 //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
44
-//sysnb	Setreuid(ruid int, euid int) (err error)
45
 //sys	Shutdown(fd int, how int) (err error)
41
 //sys	Shutdown(fd int, how int) (err error)
46
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
42
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
47
 //sys	Statfs(path string, buf *Statfs_t) (err error)
43
 //sys	Statfs(path string, buf *Statfs_t) (err error)

+ 0
- 4
vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go Zobrazit soubor

32
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
32
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
33
 //sys	setfsgid(gid int) (prev int, err error)
33
 //sys	setfsgid(gid int) (prev int, err error)
34
 //sys	setfsuid(uid int) (prev int, err error)
34
 //sys	setfsuid(uid int) (prev int, err error)
35
-//sysnb	Setregid(rgid int, egid int) (err error)
36
-//sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
37
-//sysnb	Setresuid(ruid int, euid int, suid int) (err error)
38
-//sysnb	Setreuid(ruid int, euid int) (err error)
39
 //sys	Shutdown(fd int, how int) (err error)
35
 //sys	Shutdown(fd int, how int) (err error)
40
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
36
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
41
 //sys	SyncFileRange(fd int, off int64, n int64, flags int) (err error)
37
 //sys	SyncFileRange(fd int, off int64, n int64, flags int) (err error)

+ 0
- 4
vendor/golang.org/x/sys/unix/syscall_linux_ppc.go Zobrazit soubor

34
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
34
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
35
 //sys	setfsgid(gid int) (prev int, err error)
35
 //sys	setfsgid(gid int) (prev int, err error)
36
 //sys	setfsuid(uid int) (prev int, err error)
36
 //sys	setfsuid(uid int) (prev int, err error)
37
-//sysnb	Setregid(rgid int, egid int) (err error)
38
-//sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
39
-//sysnb	Setresuid(ruid int, euid int, suid int) (err error)
40
-//sysnb	Setreuid(ruid int, euid int) (err error)
41
 //sys	Shutdown(fd int, how int) (err error)
37
 //sys	Shutdown(fd int, how int) (err error)
42
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
38
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
43
 //sys	Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
39
 //sys	Stat(path string, stat *Stat_t) (err error) = SYS_STAT64

+ 0
- 4
vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go Zobrazit soubor

34
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
34
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
35
 //sys	setfsgid(gid int) (prev int, err error)
35
 //sys	setfsgid(gid int) (prev int, err error)
36
 //sys	setfsuid(uid int) (prev int, err error)
36
 //sys	setfsuid(uid int) (prev int, err error)
37
-//sysnb	Setregid(rgid int, egid int) (err error)
38
-//sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
39
-//sysnb	Setresuid(ruid int, euid int, suid int) (err error)
40
 //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
37
 //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
41
-//sysnb	Setreuid(ruid int, euid int) (err error)
42
 //sys	Shutdown(fd int, how int) (err error)
38
 //sys	Shutdown(fd int, how int) (err error)
43
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
39
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
44
 //sys	Stat(path string, stat *Stat_t) (err error)
40
 //sys	Stat(path string, stat *Stat_t) (err error)

+ 0
- 4
vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go Zobrazit soubor

38
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
38
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
39
 //sys	setfsgid(gid int) (prev int, err error)
39
 //sys	setfsgid(gid int) (prev int, err error)
40
 //sys	setfsuid(uid int) (prev int, err error)
40
 //sys	setfsuid(uid int) (prev int, err error)
41
-//sysnb	Setregid(rgid int, egid int) (err error)
42
-//sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
43
-//sysnb	Setresuid(ruid int, euid int, suid int) (err error)
44
 //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
41
 //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
45
-//sysnb	Setreuid(ruid int, euid int) (err error)
46
 //sys	Shutdown(fd int, how int) (err error)
42
 //sys	Shutdown(fd int, how int) (err error)
47
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
43
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
48
 
44
 

+ 0
- 4
vendor/golang.org/x/sys/unix/syscall_linux_s390x.go Zobrazit soubor

34
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
34
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
35
 //sys	setfsgid(gid int) (prev int, err error)
35
 //sys	setfsgid(gid int) (prev int, err error)
36
 //sys	setfsuid(uid int) (prev int, err error)
36
 //sys	setfsuid(uid int) (prev int, err error)
37
-//sysnb	Setregid(rgid int, egid int) (err error)
38
-//sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
39
-//sysnb	Setresuid(ruid int, euid int, suid int) (err error)
40
 //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
37
 //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
41
-//sysnb	Setreuid(ruid int, euid int) (err error)
42
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
38
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
43
 //sys	Stat(path string, stat *Stat_t) (err error)
39
 //sys	Stat(path string, stat *Stat_t) (err error)
44
 //sys	Statfs(path string, buf *Statfs_t) (err error)
40
 //sys	Statfs(path string, buf *Statfs_t) (err error)

+ 0
- 4
vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go Zobrazit soubor

31
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
31
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
32
 //sys	setfsgid(gid int) (prev int, err error)
32
 //sys	setfsgid(gid int) (prev int, err error)
33
 //sys	setfsuid(uid int) (prev int, err error)
33
 //sys	setfsuid(uid int) (prev int, err error)
34
-//sysnb	Setregid(rgid int, egid int) (err error)
35
-//sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
36
-//sysnb	Setresuid(ruid int, euid int, suid int) (err error)
37
 //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
34
 //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
38
-//sysnb	Setreuid(ruid int, euid int) (err error)
39
 //sys	Shutdown(fd int, how int) (err error)
35
 //sys	Shutdown(fd int, how int) (err error)
40
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
36
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
41
 //sys	Stat(path string, stat *Stat_t) (err error)
37
 //sys	Stat(path string, stat *Stat_t) (err error)

+ 15
- 0
vendor/golang.org/x/sys/unix/syscall_netbsd.go Zobrazit soubor

110
 	return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
110
 	return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
111
 }
111
 }
112
 
112
 
113
+func SysctlUvmexp(name string) (*Uvmexp, error) {
114
+	mib, err := sysctlmib(name)
115
+	if err != nil {
116
+		return nil, err
117
+	}
118
+
119
+	n := uintptr(SizeofUvmexp)
120
+	var u Uvmexp
121
+	if err := sysctl(mib, (*byte)(unsafe.Pointer(&u)), &n, nil, 0); err != nil {
122
+		return nil, err
123
+	}
124
+	return &u, nil
125
+}
126
+
113
 func Pipe(p []int) (err error) {
127
 func Pipe(p []int) (err error) {
114
 	return Pipe2(p, 0)
128
 	return Pipe2(p, 0)
115
 }
129
 }
245
 //sys	Chmod(path string, mode uint32) (err error)
259
 //sys	Chmod(path string, mode uint32) (err error)
246
 //sys	Chown(path string, uid int, gid int) (err error)
260
 //sys	Chown(path string, uid int, gid int) (err error)
247
 //sys	Chroot(path string) (err error)
261
 //sys	Chroot(path string) (err error)
262
+//sys	ClockGettime(clockid int32, time *Timespec) (err error)
248
 //sys	Close(fd int) (err error)
263
 //sys	Close(fd int) (err error)
249
 //sys	Dup(fd int) (nfd int, err error)
264
 //sys	Dup(fd int) (nfd int, err error)
250
 //sys	Dup2(from int, to int) (err error)
265
 //sys	Dup2(from int, to int) (err error)

+ 1
- 0
vendor/golang.org/x/sys/unix/syscall_openbsd.go Zobrazit soubor

220
 //sys	Chmod(path string, mode uint32) (err error)
220
 //sys	Chmod(path string, mode uint32) (err error)
221
 //sys	Chown(path string, uid int, gid int) (err error)
221
 //sys	Chown(path string, uid int, gid int) (err error)
222
 //sys	Chroot(path string) (err error)
222
 //sys	Chroot(path string) (err error)
223
+//sys	ClockGettime(clockid int32, time *Timespec) (err error)
223
 //sys	Close(fd int) (err error)
224
 //sys	Close(fd int) (err error)
224
 //sys	Dup(fd int) (nfd int, err error)
225
 //sys	Dup(fd int) (nfd int, err error)
225
 //sys	Dup2(from int, to int) (err error)
226
 //sys	Dup2(from int, to int) (err error)

+ 27
- 0
vendor/golang.org/x/sys/unix/syscall_openbsd_libc.go Zobrazit soubor

1
+// Copyright 2022 The Go Authors. All rights reserved.
2
+// Use of this source code is governed by a BSD-style
3
+// license that can be found in the LICENSE file.
4
+
5
+//go:build openbsd
6
+// +build openbsd
7
+
8
+package unix
9
+
10
+import _ "unsafe"
11
+
12
+// Implemented in the runtime package (runtime/sys_openbsd3.go)
13
+func syscall_syscall(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
14
+func syscall_syscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
15
+func syscall_syscall10(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 uintptr) (r1, r2 uintptr, err Errno)
16
+func syscall_rawSyscall(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
17
+func syscall_rawSyscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
18
+
19
+//go:linkname syscall_syscall syscall.syscall
20
+//go:linkname syscall_syscall6 syscall.syscall6
21
+//go:linkname syscall_syscall10 syscall.syscall10
22
+//go:linkname syscall_rawSyscall syscall.rawSyscall
23
+//go:linkname syscall_rawSyscall6 syscall.rawSyscall6
24
+
25
+func syscall_syscall9(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno) {
26
+	return syscall_syscall10(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9, 0)
27
+}

+ 42
- 0
vendor/golang.org/x/sys/unix/syscall_openbsd_ppc64.go Zobrazit soubor

1
+// Copyright 2019 The Go Authors. All rights reserved.
2
+// Use of this source code is governed by a BSD-style
3
+// license that can be found in the LICENSE file.
4
+
5
+//go:build ppc64 && openbsd
6
+// +build ppc64,openbsd
7
+
8
+package unix
9
+
10
+func setTimespec(sec, nsec int64) Timespec {
11
+	return Timespec{Sec: sec, Nsec: nsec}
12
+}
13
+
14
+func setTimeval(sec, usec int64) Timeval {
15
+	return Timeval{Sec: sec, Usec: usec}
16
+}
17
+
18
+func SetKevent(k *Kevent_t, fd, mode, flags int) {
19
+	k.Ident = uint64(fd)
20
+	k.Filter = int16(mode)
21
+	k.Flags = uint16(flags)
22
+}
23
+
24
+func (iov *Iovec) SetLen(length int) {
25
+	iov.Len = uint64(length)
26
+}
27
+
28
+func (msghdr *Msghdr) SetControllen(length int) {
29
+	msghdr.Controllen = uint32(length)
30
+}
31
+
32
+func (msghdr *Msghdr) SetIovlen(length int) {
33
+	msghdr.Iovlen = uint32(length)
34
+}
35
+
36
+func (cmsg *Cmsghdr) SetLen(length int) {
37
+	cmsg.Len = uint32(length)
38
+}
39
+
40
+// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
41
+// of openbsd/ppc64 the syscall is called sysctl instead of __sysctl.
42
+const SYS___SYSCTL = SYS_SYSCTL

+ 42
- 0
vendor/golang.org/x/sys/unix/syscall_openbsd_riscv64.go Zobrazit soubor

1
+// Copyright 2019 The Go Authors. All rights reserved.
2
+// Use of this source code is governed by a BSD-style
3
+// license that can be found in the LICENSE file.
4
+
5
+//go:build riscv64 && openbsd
6
+// +build riscv64,openbsd
7
+
8
+package unix
9
+
10
+func setTimespec(sec, nsec int64) Timespec {
11
+	return Timespec{Sec: sec, Nsec: nsec}
12
+}
13
+
14
+func setTimeval(sec, usec int64) Timeval {
15
+	return Timeval{Sec: sec, Usec: usec}
16
+}
17
+
18
+func SetKevent(k *Kevent_t, fd, mode, flags int) {
19
+	k.Ident = uint64(fd)
20
+	k.Filter = int16(mode)
21
+	k.Flags = uint16(flags)
22
+}
23
+
24
+func (iov *Iovec) SetLen(length int) {
25
+	iov.Len = uint64(length)
26
+}
27
+
28
+func (msghdr *Msghdr) SetControllen(length int) {
29
+	msghdr.Controllen = uint32(length)
30
+}
31
+
32
+func (msghdr *Msghdr) SetIovlen(length int) {
33
+	msghdr.Iovlen = uint32(length)
34
+}
35
+
36
+func (cmsg *Cmsghdr) SetLen(length int) {
37
+	cmsg.Len = uint32(length)
38
+}
39
+
40
+// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
41
+// of openbsd/riscv64 the syscall is called sysctl instead of __sysctl.
42
+const SYS___SYSCTL = SYS_SYSCTL

+ 173
- 45
vendor/golang.org/x/sys/unix/syscall_solaris.go Zobrazit soubor

590
 //sys	Chmod(path string, mode uint32) (err error)
590
 //sys	Chmod(path string, mode uint32) (err error)
591
 //sys	Chown(path string, uid int, gid int) (err error)
591
 //sys	Chown(path string, uid int, gid int) (err error)
592
 //sys	Chroot(path string) (err error)
592
 //sys	Chroot(path string) (err error)
593
+//sys	ClockGettime(clockid int32, time *Timespec) (err error)
593
 //sys	Close(fd int) (err error)
594
 //sys	Close(fd int) (err error)
594
 //sys	Creat(path string, mode uint32) (fd int, err error)
595
 //sys	Creat(path string, mode uint32) (fd int, err error)
595
 //sys	Dup(fd int) (nfd int, err error)
596
 //sys	Dup(fd int) (nfd int, err error)
750
 	// we should handle things gracefully. To do so, we need to keep an extra
751
 	// we should handle things gracefully. To do so, we need to keep an extra
751
 	// reference to the cookie around until the event is processed
752
 	// reference to the cookie around until the event is processed
752
 	// thus the otherwise seemingly extraneous "cookies" map
753
 	// thus the otherwise seemingly extraneous "cookies" map
753
-	// The key of this map is a pointer to the corresponding &fCookie.cookie
754
-	cookies map[*interface{}]*fileObjCookie
754
+	// The key of this map is a pointer to the corresponding fCookie
755
+	cookies map[*fileObjCookie]struct{}
755
 }
756
 }
756
 
757
 
757
 // PortEvent is an abstraction of the port_event C struct.
758
 // PortEvent is an abstraction of the port_event C struct.
778
 		port:    port,
779
 		port:    port,
779
 		fds:     make(map[uintptr]*fileObjCookie),
780
 		fds:     make(map[uintptr]*fileObjCookie),
780
 		paths:   make(map[string]*fileObjCookie),
781
 		paths:   make(map[string]*fileObjCookie),
781
-		cookies: make(map[*interface{}]*fileObjCookie),
782
+		cookies: make(map[*fileObjCookie]struct{}),
782
 	}
783
 	}
783
 	return e, nil
784
 	return e, nil
784
 }
785
 }
799
 	}
800
 	}
800
 	e.fds = nil
801
 	e.fds = nil
801
 	e.paths = nil
802
 	e.paths = nil
803
+	e.cookies = nil
802
 	return nil
804
 	return nil
803
 }
805
 }
804
 
806
 
826
 	if _, found := e.paths[path]; found {
828
 	if _, found := e.paths[path]; found {
827
 		return fmt.Errorf("%v is already associated with this Event Port", path)
829
 		return fmt.Errorf("%v is already associated with this Event Port", path)
828
 	}
830
 	}
829
-	fobj, err := createFileObj(path, stat)
831
+	fCookie, err := createFileObjCookie(path, stat, cookie)
830
 	if err != nil {
832
 	if err != nil {
831
 		return err
833
 		return err
832
 	}
834
 	}
833
-	fCookie := &fileObjCookie{fobj, cookie}
834
-	_, err = port_associate(e.port, PORT_SOURCE_FILE, uintptr(unsafe.Pointer(fobj)), events, (*byte)(unsafe.Pointer(&fCookie.cookie)))
835
+	_, err = port_associate(e.port, PORT_SOURCE_FILE, uintptr(unsafe.Pointer(fCookie.fobj)), events, (*byte)(unsafe.Pointer(fCookie)))
835
 	if err != nil {
836
 	if err != nil {
836
 		return err
837
 		return err
837
 	}
838
 	}
838
 	e.paths[path] = fCookie
839
 	e.paths[path] = fCookie
839
-	e.cookies[&fCookie.cookie] = fCookie
840
+	e.cookies[fCookie] = struct{}{}
840
 	return nil
841
 	return nil
841
 }
842
 }
842
 
843
 
858
 	if err == nil {
859
 	if err == nil {
859
 		// dissociate was successful, safe to delete the cookie
860
 		// dissociate was successful, safe to delete the cookie
860
 		fCookie := e.paths[path]
861
 		fCookie := e.paths[path]
861
-		delete(e.cookies, &fCookie.cookie)
862
+		delete(e.cookies, fCookie)
862
 	}
863
 	}
863
 	delete(e.paths, path)
864
 	delete(e.paths, path)
864
 	return err
865
 	return err
871
 	if _, found := e.fds[fd]; found {
872
 	if _, found := e.fds[fd]; found {
872
 		return fmt.Errorf("%v is already associated with this Event Port", fd)
873
 		return fmt.Errorf("%v is already associated with this Event Port", fd)
873
 	}
874
 	}
874
-	fCookie := &fileObjCookie{nil, cookie}
875
-	_, err := port_associate(e.port, PORT_SOURCE_FD, fd, events, (*byte)(unsafe.Pointer(&fCookie.cookie)))
875
+	fCookie, err := createFileObjCookie("", nil, cookie)
876
+	if err != nil {
877
+		return err
878
+	}
879
+	_, err = port_associate(e.port, PORT_SOURCE_FD, fd, events, (*byte)(unsafe.Pointer(fCookie)))
876
 	if err != nil {
880
 	if err != nil {
877
 		return err
881
 		return err
878
 	}
882
 	}
879
 	e.fds[fd] = fCookie
883
 	e.fds[fd] = fCookie
880
-	e.cookies[&fCookie.cookie] = fCookie
884
+	e.cookies[fCookie] = struct{}{}
881
 	return nil
885
 	return nil
882
 }
886
 }
883
 
887
 
896
 	if err == nil {
900
 	if err == nil {
897
 		// dissociate was successful, safe to delete the cookie
901
 		// dissociate was successful, safe to delete the cookie
898
 		fCookie := e.fds[fd]
902
 		fCookie := e.fds[fd]
899
-		delete(e.cookies, &fCookie.cookie)
903
+		delete(e.cookies, fCookie)
900
 	}
904
 	}
901
 	delete(e.fds, fd)
905
 	delete(e.fds, fd)
902
 	return err
906
 	return err
903
 }
907
 }
904
 
908
 
905
-func createFileObj(name string, stat os.FileInfo) (*fileObj, error) {
906
-	fobj := new(fileObj)
907
-	bs, err := ByteSliceFromString(name)
908
-	if err != nil {
909
-		return nil, err
910
-	}
911
-	fobj.Name = (*int8)(unsafe.Pointer(&bs[0]))
912
-	s := stat.Sys().(*syscall.Stat_t)
913
-	fobj.Atim.Sec = s.Atim.Sec
914
-	fobj.Atim.Nsec = s.Atim.Nsec
915
-	fobj.Mtim.Sec = s.Mtim.Sec
916
-	fobj.Mtim.Nsec = s.Mtim.Nsec
917
-	fobj.Ctim.Sec = s.Ctim.Sec
918
-	fobj.Ctim.Nsec = s.Ctim.Nsec
919
-	return fobj, nil
909
+func createFileObjCookie(name string, stat os.FileInfo, cookie interface{}) (*fileObjCookie, error) {
910
+	fCookie := new(fileObjCookie)
911
+	fCookie.cookie = cookie
912
+	if name != "" && stat != nil {
913
+		fCookie.fobj = new(fileObj)
914
+		bs, err := ByteSliceFromString(name)
915
+		if err != nil {
916
+			return nil, err
917
+		}
918
+		fCookie.fobj.Name = (*int8)(unsafe.Pointer(&bs[0]))
919
+		s := stat.Sys().(*syscall.Stat_t)
920
+		fCookie.fobj.Atim.Sec = s.Atim.Sec
921
+		fCookie.fobj.Atim.Nsec = s.Atim.Nsec
922
+		fCookie.fobj.Mtim.Sec = s.Mtim.Sec
923
+		fCookie.fobj.Mtim.Nsec = s.Mtim.Nsec
924
+		fCookie.fobj.Ctim.Sec = s.Ctim.Sec
925
+		fCookie.fobj.Ctim.Nsec = s.Ctim.Nsec
926
+	}
927
+	return fCookie, nil
920
 }
928
 }
921
 
929
 
922
 // GetOne wraps port_get(3c) and returns a single PortEvent.
930
 // GetOne wraps port_get(3c) and returns a single PortEvent.
929
 	p := new(PortEvent)
937
 	p := new(PortEvent)
930
 	e.mu.Lock()
938
 	e.mu.Lock()
931
 	defer e.mu.Unlock()
939
 	defer e.mu.Unlock()
932
-	e.peIntToExt(pe, p)
940
+	err = e.peIntToExt(pe, p)
941
+	if err != nil {
942
+		return nil, err
943
+	}
933
 	return p, nil
944
 	return p, nil
934
 }
945
 }
935
 
946
 
936
 // peIntToExt converts a cgo portEvent struct into the friendlier PortEvent
947
 // peIntToExt converts a cgo portEvent struct into the friendlier PortEvent
937
 // NOTE: Always call this function while holding the e.mu mutex
948
 // NOTE: Always call this function while holding the e.mu mutex
938
-func (e *EventPort) peIntToExt(peInt *portEvent, peExt *PortEvent) {
949
+func (e *EventPort) peIntToExt(peInt *portEvent, peExt *PortEvent) error {
950
+	if e.cookies == nil {
951
+		return fmt.Errorf("this EventPort is already closed")
952
+	}
939
 	peExt.Events = peInt.Events
953
 	peExt.Events = peInt.Events
940
 	peExt.Source = peInt.Source
954
 	peExt.Source = peInt.Source
941
-	cookie := (*interface{})(unsafe.Pointer(peInt.User))
942
-	peExt.Cookie = *cookie
955
+	fCookie := (*fileObjCookie)(unsafe.Pointer(peInt.User))
956
+	_, found := e.cookies[fCookie]
957
+
958
+	if !found {
959
+		panic("unexpected event port address; may be due to kernel bug; see https://go.dev/issue/54254")
960
+	}
961
+	peExt.Cookie = fCookie.cookie
962
+	delete(e.cookies, fCookie)
963
+
943
 	switch peInt.Source {
964
 	switch peInt.Source {
944
 	case PORT_SOURCE_FD:
965
 	case PORT_SOURCE_FD:
945
-		delete(e.cookies, cookie)
946
 		peExt.Fd = uintptr(peInt.Object)
966
 		peExt.Fd = uintptr(peInt.Object)
947
 		// Only remove the fds entry if it exists and this cookie matches
967
 		// Only remove the fds entry if it exists and this cookie matches
948
 		if fobj, ok := e.fds[peExt.Fd]; ok {
968
 		if fobj, ok := e.fds[peExt.Fd]; ok {
949
-			if &fobj.cookie == cookie {
969
+			if fobj == fCookie {
950
 				delete(e.fds, peExt.Fd)
970
 				delete(e.fds, peExt.Fd)
951
 			}
971
 			}
952
 		}
972
 		}
953
 	case PORT_SOURCE_FILE:
973
 	case PORT_SOURCE_FILE:
954
-		if fCookie, ok := e.cookies[cookie]; ok && uintptr(unsafe.Pointer(fCookie.fobj)) == uintptr(peInt.Object) {
955
-			// Use our stashed reference rather than using unsafe on what we got back
956
-			// the unsafe version would be (*fileObj)(unsafe.Pointer(uintptr(peInt.Object)))
957
-			peExt.fobj = fCookie.fobj
958
-		} else {
959
-			panic("mismanaged memory")
960
-		}
961
-		delete(e.cookies, cookie)
974
+		peExt.fobj = fCookie.fobj
962
 		peExt.Path = BytePtrToString((*byte)(unsafe.Pointer(peExt.fobj.Name)))
975
 		peExt.Path = BytePtrToString((*byte)(unsafe.Pointer(peExt.fobj.Name)))
963
 		// Only remove the paths entry if it exists and this cookie matches
976
 		// Only remove the paths entry if it exists and this cookie matches
964
 		if fobj, ok := e.paths[peExt.Path]; ok {
977
 		if fobj, ok := e.paths[peExt.Path]; ok {
965
-			if &fobj.cookie == cookie {
978
+			if fobj == fCookie {
966
 				delete(e.paths, peExt.Path)
979
 				delete(e.paths, peExt.Path)
967
 			}
980
 			}
968
 		}
981
 		}
969
 	}
982
 	}
983
+	return nil
970
 }
984
 }
971
 
985
 
972
 // Pending wraps port_getn(3c) and returns how many events are pending.
986
 // Pending wraps port_getn(3c) and returns how many events are pending.
990
 	got := uint32(min)
1004
 	got := uint32(min)
991
 	max := uint32(len(s))
1005
 	max := uint32(len(s))
992
 	var err error
1006
 	var err error
993
-	ps := make([]portEvent, max, max)
1007
+	ps := make([]portEvent, max)
994
 	_, err = port_getn(e.port, &ps[0], max, &got, timeout)
1008
 	_, err = port_getn(e.port, &ps[0], max, &got, timeout)
995
 	// got will be trustworthy with ETIME, but not any other error.
1009
 	// got will be trustworthy with ETIME, but not any other error.
996
 	if err != nil && err != ETIME {
1010
 	if err != nil && err != ETIME {
998
 	}
1012
 	}
999
 	e.mu.Lock()
1013
 	e.mu.Lock()
1000
 	defer e.mu.Unlock()
1014
 	defer e.mu.Unlock()
1015
+	valid := 0
1001
 	for i := 0; i < int(got); i++ {
1016
 	for i := 0; i < int(got); i++ {
1002
-		e.peIntToExt(&ps[i], &s[i])
1017
+		err2 := e.peIntToExt(&ps[i], &s[i])
1018
+		if err2 != nil {
1019
+			if valid == 0 && err == nil {
1020
+				// If err2 is the only error and there are no valid events
1021
+				// to return, return it to the caller.
1022
+				err = err2
1023
+			}
1024
+			break
1025
+		}
1026
+		valid = i + 1
1027
+	}
1028
+	return valid, err
1029
+}
1030
+
1031
+//sys	putmsg(fd int, clptr *strbuf, dataptr *strbuf, flags int) (err error)
1032
+
1033
+func Putmsg(fd int, cl []byte, data []byte, flags int) (err error) {
1034
+	var clp, datap *strbuf
1035
+	if len(cl) > 0 {
1036
+		clp = &strbuf{
1037
+			Len: int32(len(cl)),
1038
+			Buf: (*int8)(unsafe.Pointer(&cl[0])),
1039
+		}
1003
 	}
1040
 	}
1004
-	return int(got), err
1041
+	if len(data) > 0 {
1042
+		datap = &strbuf{
1043
+			Len: int32(len(data)),
1044
+			Buf: (*int8)(unsafe.Pointer(&data[0])),
1045
+		}
1046
+	}
1047
+	return putmsg(fd, clp, datap, flags)
1048
+}
1049
+
1050
+//sys	getmsg(fd int, clptr *strbuf, dataptr *strbuf, flags *int) (err error)
1051
+
1052
+func Getmsg(fd int, cl []byte, data []byte) (retCl []byte, retData []byte, flags int, err error) {
1053
+	var clp, datap *strbuf
1054
+	if len(cl) > 0 {
1055
+		clp = &strbuf{
1056
+			Maxlen: int32(len(cl)),
1057
+			Buf:    (*int8)(unsafe.Pointer(&cl[0])),
1058
+		}
1059
+	}
1060
+	if len(data) > 0 {
1061
+		datap = &strbuf{
1062
+			Maxlen: int32(len(data)),
1063
+			Buf:    (*int8)(unsafe.Pointer(&data[0])),
1064
+		}
1065
+	}
1066
+
1067
+	if err = getmsg(fd, clp, datap, &flags); err != nil {
1068
+		return nil, nil, 0, err
1069
+	}
1070
+
1071
+	if len(cl) > 0 {
1072
+		retCl = cl[:clp.Len]
1073
+	}
1074
+	if len(data) > 0 {
1075
+		retData = data[:datap.Len]
1076
+	}
1077
+	return retCl, retData, flags, nil
1078
+}
1079
+
1080
+func IoctlSetIntRetInt(fd int, req uint, arg int) (int, error) {
1081
+	return ioctlRet(fd, req, uintptr(arg))
1082
+}
1083
+
1084
+func IoctlSetString(fd int, req uint, val string) error {
1085
+	bs := make([]byte, len(val)+1)
1086
+	copy(bs[:len(bs)-1], val)
1087
+	err := ioctl(fd, req, uintptr(unsafe.Pointer(&bs[0])))
1088
+	runtime.KeepAlive(&bs[0])
1089
+	return err
1090
+}
1091
+
1092
+// Lifreq Helpers
1093
+
1094
+func (l *Lifreq) SetName(name string) error {
1095
+	if len(name) >= len(l.Name) {
1096
+		return fmt.Errorf("name cannot be more than %d characters", len(l.Name)-1)
1097
+	}
1098
+	for i := range name {
1099
+		l.Name[i] = int8(name[i])
1100
+	}
1101
+	return nil
1102
+}
1103
+
1104
+func (l *Lifreq) SetLifruInt(d int) {
1105
+	*(*int)(unsafe.Pointer(&l.Lifru[0])) = d
1106
+}
1107
+
1108
+func (l *Lifreq) GetLifruInt() int {
1109
+	return *(*int)(unsafe.Pointer(&l.Lifru[0]))
1110
+}
1111
+
1112
+func (l *Lifreq) SetLifruUint(d uint) {
1113
+	*(*uint)(unsafe.Pointer(&l.Lifru[0])) = d
1114
+}
1115
+
1116
+func (l *Lifreq) GetLifruUint() uint {
1117
+	return *(*uint)(unsafe.Pointer(&l.Lifru[0]))
1118
+}
1119
+
1120
+func IoctlLifreq(fd int, req uint, l *Lifreq) error {
1121
+	return ioctl(fd, req, uintptr(unsafe.Pointer(l)))
1122
+}
1123
+
1124
+// Strioctl Helpers
1125
+
1126
+func (s *Strioctl) SetInt(i int) {
1127
+	s.Len = int32(unsafe.Sizeof(i))
1128
+	s.Dp = (*int8)(unsafe.Pointer(&i))
1129
+}
1130
+
1131
+func IoctlSetStrioctlRetInt(fd int, req uint, s *Strioctl) (int, error) {
1132
+	return ioctlRet(fd, req, uintptr(unsafe.Pointer(s)))
1005
 }
1133
 }

+ 54
- 21
vendor/golang.org/x/sys/unix/syscall_unix.go Zobrazit soubor

13
 	"sync"
13
 	"sync"
14
 	"syscall"
14
 	"syscall"
15
 	"unsafe"
15
 	"unsafe"
16
-
17
-	"golang.org/x/sys/internal/unsafeheader"
18
 )
16
 )
19
 
17
 
20
 var (
18
 var (
117
 	}
115
 	}
118
 
116
 
119
 	// Use unsafe to convert addr into a []byte.
117
 	// Use unsafe to convert addr into a []byte.
120
-	var b []byte
121
-	hdr := (*unsafeheader.Slice)(unsafe.Pointer(&b))
122
-	hdr.Data = unsafe.Pointer(addr)
123
-	hdr.Cap = length
124
-	hdr.Len = length
118
+	b := unsafe.Slice((*byte)(unsafe.Pointer(addr)), length)
125
 
119
 
126
 	// Register mapping in m and return it.
120
 	// Register mapping in m and return it.
127
 	p := &b[cap(b)-1]
121
 	p := &b[cap(b)-1]
337
 	return
331
 	return
338
 }
332
 }
339
 
333
 
334
+// Recvmsg receives a message from a socket using the recvmsg system call. The
335
+// received non-control data will be written to p, and any "out of band"
336
+// control data will be written to oob. The flags are passed to recvmsg.
337
+//
338
+// The results are:
339
+//   - n is the number of non-control data bytes read into p
340
+//   - oobn is the number of control data bytes read into oob; this may be interpreted using [ParseSocketControlMessage]
341
+//   - recvflags is flags returned by recvmsg
342
+//   - from is the address of the sender
343
+//
344
+// If the underlying socket type is not SOCK_DGRAM, a received message
345
+// containing oob data and a single '\0' of non-control data is treated as if
346
+// the message contained only control data, i.e. n will be zero on return.
340
 func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
347
 func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
341
 	var iov [1]Iovec
348
 	var iov [1]Iovec
342
 	if len(p) > 0 {
349
 	if len(p) > 0 {
352
 	return
359
 	return
353
 }
360
 }
354
 
361
 
355
-// RecvmsgBuffers receives a message from a socket using the recvmsg
356
-// system call. The flags are passed to recvmsg. Any non-control data
357
-// read is scattered into the buffers slices. The results are:
358
-//   - n is the number of non-control data read into bufs
359
-//   - oobn is the number of control data read into oob; this may be interpreted using [ParseSocketControlMessage]
360
-//   - recvflags is flags returned by recvmsg
361
-//   - from is the address of the sender
362
+// RecvmsgBuffers receives a message from a socket using the recvmsg system
363
+// call. This function is equivalent to Recvmsg, but non-control data read is
364
+// scattered into the buffers slices.
362
 func RecvmsgBuffers(fd int, buffers [][]byte, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
365
 func RecvmsgBuffers(fd int, buffers [][]byte, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
363
 	iov := make([]Iovec, len(buffers))
366
 	iov := make([]Iovec, len(buffers))
364
 	for i := range buffers {
367
 	for i := range buffers {
377
 	return
380
 	return
378
 }
381
 }
379
 
382
 
383
+// Sendmsg sends a message on a socket to an address using the sendmsg system
384
+// call. This function is equivalent to SendmsgN, but does not return the
385
+// number of bytes actually sent.
380
 func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error) {
386
 func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error) {
381
 	_, err = SendmsgN(fd, p, oob, to, flags)
387
 	_, err = SendmsgN(fd, p, oob, to, flags)
382
 	return
388
 	return
383
 }
389
 }
384
 
390
 
391
+// SendmsgN sends a message on a socket to an address using the sendmsg system
392
+// call. p contains the non-control data to send, and oob contains the "out of
393
+// band" control data. The flags are passed to sendmsg. The number of
394
+// non-control bytes actually written to the socket is returned.
395
+//
396
+// Some socket types do not support sending control data without accompanying
397
+// non-control data. If p is empty, and oob contains control data, and the
398
+// underlying socket type is not SOCK_DGRAM, p will be treated as containing a
399
+// single '\0' and the return value will indicate zero bytes sent.
400
+//
401
+// The Go function Recvmsg, if called with an empty p and a non-empty oob,
402
+// will read and ignore this additional '\0'.  If the message is received by
403
+// code that does not use Recvmsg, or that does not use Go at all, that code
404
+// will need to be written to expect and ignore the additional '\0'.
405
+//
406
+// If you need to send non-empty oob with p actually empty, and if the
407
+// underlying socket type supports it, you can do so via a raw system call as
408
+// follows:
409
+//
410
+//	msg := &unix.Msghdr{
411
+//	    Control: &oob[0],
412
+//	}
413
+//	msg.SetControllen(len(oob))
414
+//	n, _, errno := unix.Syscall(unix.SYS_SENDMSG, uintptr(fd), uintptr(unsafe.Pointer(msg)), flags)
385
 func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error) {
415
 func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error) {
386
 	var iov [1]Iovec
416
 	var iov [1]Iovec
387
 	if len(p) > 0 {
417
 	if len(p) > 0 {
400
 }
430
 }
401
 
431
 
402
 // SendmsgBuffers sends a message on a socket to an address using the sendmsg
432
 // SendmsgBuffers sends a message on a socket to an address using the sendmsg
403
-// system call. The flags are passed to sendmsg. Any non-control data written
404
-// is gathered from buffers. The function returns the number of bytes written
405
-// to the socket.
433
+// system call. This function is equivalent to SendmsgN, but the non-control
434
+// data is gathered from buffers.
406
 func SendmsgBuffers(fd int, buffers [][]byte, oob []byte, to Sockaddr, flags int) (n int, err error) {
435
 func SendmsgBuffers(fd int, buffers [][]byte, oob []byte, to Sockaddr, flags int) (n int, err error) {
407
 	iov := make([]Iovec, len(buffers))
436
 	iov := make([]Iovec, len(buffers))
408
 	for i := range buffers {
437
 	for i := range buffers {
429
 }
458
 }
430
 
459
 
431
 func Sendto(fd int, p []byte, flags int, to Sockaddr) (err error) {
460
 func Sendto(fd int, p []byte, flags int, to Sockaddr) (err error) {
432
-	ptr, n, err := to.sockaddr()
433
-	if err != nil {
434
-		return err
461
+	var ptr unsafe.Pointer
462
+	var salen _Socklen
463
+	if to != nil {
464
+		ptr, salen, err = to.sockaddr()
465
+		if err != nil {
466
+			return err
467
+		}
435
 	}
468
 	}
436
-	return sendto(fd, p, flags, ptr, n)
469
+	return sendto(fd, p, flags, ptr, salen)
437
 }
470
 }
438
 
471
 
439
 func SetsockoptByte(fd, level, opt int, value byte) (err error) {
472
 func SetsockoptByte(fd, level, opt int, value byte) (err error) {

+ 2
- 4
vendor/golang.org/x/sys/unix/syscall_unix_gc.go Zobrazit soubor

2
 // Use of this source code is governed by a BSD-style
2
 // Use of this source code is governed by a BSD-style
3
 // license that can be found in the LICENSE file.
3
 // license that can be found in the LICENSE file.
4
 
4
 
5
-//go:build (darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris) && gc && !ppc64le && !ppc64
6
-// +build darwin dragonfly freebsd linux netbsd openbsd solaris
5
+//go:build (darwin || dragonfly || freebsd || (linux && !ppc64 && !ppc64le) || netbsd || openbsd || solaris) && gc
6
+// +build darwin dragonfly freebsd linux,!ppc64,!ppc64le netbsd openbsd solaris
7
 // +build gc
7
 // +build gc
8
-// +build !ppc64le
9
-// +build !ppc64
10
 
8
 
11
 package unix
9
 package unix
12
 
10
 

+ 172
- 1
vendor/golang.org/x/sys/unix/syscall_zos_s390x.go Zobrazit soubor

9
 
9
 
10
 import (
10
 import (
11
 	"bytes"
11
 	"bytes"
12
+	"fmt"
12
 	"runtime"
13
 	"runtime"
13
 	"sort"
14
 	"sort"
15
+	"strings"
14
 	"sync"
16
 	"sync"
15
 	"syscall"
17
 	"syscall"
16
 	"unsafe"
18
 	"unsafe"
55
 	if d == nil {
57
 	if d == nil {
56
 		return ""
58
 		return ""
57
 	}
59
 	}
58
-	return string(d.Name[:d.Namlen])
60
+	s := string(d.Name[:])
61
+	idx := strings.IndexByte(s, 0)
62
+	if idx == -1 {
63
+		return s
64
+	} else {
65
+		return s[:idx]
66
+	}
59
 }
67
 }
60
 
68
 
61
 func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) {
69
 func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) {
1230
 	return &ent, err
1238
 	return &ent, err
1231
 }
1239
 }
1232
 
1240
 
1241
+func readdir_r(dirp uintptr, entry *direntLE, result **direntLE) (err error) {
1242
+	r0, _, e1 := syscall_syscall(SYS___READDIR_R_A, dirp, uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
1243
+	if int64(r0) == -1 {
1244
+		err = errnoErr(Errno(e1))
1245
+	}
1246
+	return
1247
+}
1248
+
1233
 func Closedir(dir uintptr) error {
1249
 func Closedir(dir uintptr) error {
1234
 	_, _, e := syscall_syscall(SYS_CLOSEDIR, dir, 0, 0)
1250
 	_, _, e := syscall_syscall(SYS_CLOSEDIR, dir, 0, 0)
1235
 	if e != 0 {
1251
 	if e != 0 {
1821
 	}
1837
 	}
1822
 	return err
1838
 	return err
1823
 }
1839
 }
1840
+
1841
+func fdToPath(dirfd int) (path string, err error) {
1842
+	var buffer [1024]byte
1843
+	// w_ctrl()
1844
+	ret := runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS_W_IOCTL<<4,
1845
+		[]uintptr{uintptr(dirfd), 17, 1024, uintptr(unsafe.Pointer(&buffer[0]))})
1846
+	if ret == 0 {
1847
+		zb := bytes.IndexByte(buffer[:], 0)
1848
+		if zb == -1 {
1849
+			zb = len(buffer)
1850
+		}
1851
+		// __e2a_l()
1852
+		runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___E2A_L<<4,
1853
+			[]uintptr{uintptr(unsafe.Pointer(&buffer[0])), uintptr(zb)})
1854
+		return string(buffer[:zb]), nil
1855
+	}
1856
+	// __errno()
1857
+	errno := int(*(*int32)(unsafe.Pointer(runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___ERRNO<<4,
1858
+		[]uintptr{}))))
1859
+	// __errno2()
1860
+	errno2 := int(runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___ERRNO2<<4,
1861
+		[]uintptr{}))
1862
+	// strerror_r()
1863
+	ret = runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS_STRERROR_R<<4,
1864
+		[]uintptr{uintptr(errno), uintptr(unsafe.Pointer(&buffer[0])), 1024})
1865
+	if ret == 0 {
1866
+		zb := bytes.IndexByte(buffer[:], 0)
1867
+		if zb == -1 {
1868
+			zb = len(buffer)
1869
+		}
1870
+		return "", fmt.Errorf("%s (errno2=0x%x)", buffer[:zb], errno2)
1871
+	} else {
1872
+		return "", fmt.Errorf("fdToPath errno %d (errno2=0x%x)", errno, errno2)
1873
+	}
1874
+}
1875
+
1876
+func direntLeToDirentUnix(dirent *direntLE, dir uintptr, path string) (Dirent, error) {
1877
+	var d Dirent
1878
+
1879
+	d.Ino = uint64(dirent.Ino)
1880
+	offset, err := Telldir(dir)
1881
+	if err != nil {
1882
+		return d, err
1883
+	}
1884
+
1885
+	d.Off = int64(offset)
1886
+	s := string(bytes.Split(dirent.Name[:], []byte{0})[0])
1887
+	copy(d.Name[:], s)
1888
+
1889
+	d.Reclen = uint16(24 + len(d.NameString()))
1890
+	var st Stat_t
1891
+	path = path + "/" + s
1892
+	err = Lstat(path, &st)
1893
+	if err != nil {
1894
+		return d, err
1895
+	}
1896
+
1897
+	d.Type = uint8(st.Mode >> 24)
1898
+	return d, err
1899
+}
1900
+
1901
+func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
1902
+	// Simulation of Getdirentries port from the Darwin implementation.
1903
+	// COMMENTS FROM DARWIN:
1904
+	// It's not the full required semantics, but should handle the case
1905
+	// of calling Getdirentries or ReadDirent repeatedly.
1906
+	// It won't handle assigning the results of lseek to *basep, or handle
1907
+	// the directory being edited underfoot.
1908
+
1909
+	skip, err := Seek(fd, 0, 1 /* SEEK_CUR */)
1910
+	if err != nil {
1911
+		return 0, err
1912
+	}
1913
+
1914
+	// Get path from fd to avoid unavailable call (fdopendir)
1915
+	path, err := fdToPath(fd)
1916
+	if err != nil {
1917
+		return 0, err
1918
+	}
1919
+	d, err := Opendir(path)
1920
+	if err != nil {
1921
+		return 0, err
1922
+	}
1923
+	defer Closedir(d)
1924
+
1925
+	var cnt int64
1926
+	for {
1927
+		var entryLE direntLE
1928
+		var entrypLE *direntLE
1929
+		e := readdir_r(d, &entryLE, &entrypLE)
1930
+		if e != nil {
1931
+			return n, e
1932
+		}
1933
+		if entrypLE == nil {
1934
+			break
1935
+		}
1936
+		if skip > 0 {
1937
+			skip--
1938
+			cnt++
1939
+			continue
1940
+		}
1941
+
1942
+		// Dirent on zos has a different structure
1943
+		entry, e := direntLeToDirentUnix(&entryLE, d, path)
1944
+		if e != nil {
1945
+			return n, e
1946
+		}
1947
+
1948
+		reclen := int(entry.Reclen)
1949
+		if reclen > len(buf) {
1950
+			// Not enough room. Return for now.
1951
+			// The counter will let us know where we should start up again.
1952
+			// Note: this strategy for suspending in the middle and
1953
+			// restarting is O(n^2) in the length of the directory. Oh well.
1954
+			break
1955
+		}
1956
+
1957
+		// Copy entry into return buffer.
1958
+		s := unsafe.Slice((*byte)(unsafe.Pointer(&entry)), reclen)
1959
+		copy(buf, s)
1960
+
1961
+		buf = buf[reclen:]
1962
+		n += reclen
1963
+		cnt++
1964
+	}
1965
+	// Set the seek offset of the input fd to record
1966
+	// how many files we've already returned.
1967
+	_, err = Seek(fd, cnt, 0 /* SEEK_SET */)
1968
+	if err != nil {
1969
+		return n, err
1970
+	}
1971
+
1972
+	return n, nil
1973
+}
1974
+
1975
+func ReadDirent(fd int, buf []byte) (n int, err error) {
1976
+	var base = (*uintptr)(unsafe.Pointer(new(uint64)))
1977
+	return Getdirentries(fd, buf, base)
1978
+}
1979
+
1980
+func direntIno(buf []byte) (uint64, bool) {
1981
+	return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
1982
+}
1983
+
1984
+func direntReclen(buf []byte) (uint64, bool) {
1985
+	return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
1986
+}
1987
+
1988
+func direntNamlen(buf []byte) (uint64, bool) {
1989
+	reclen, ok := direntReclen(buf)
1990
+	if !ok {
1991
+		return 0, false
1992
+	}
1993
+	return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true
1994
+}

+ 2
- 11
vendor/golang.org/x/sys/unix/sysvshm_unix.go Zobrazit soubor

7
 
7
 
8
 package unix
8
 package unix
9
 
9
 
10
-import (
11
-	"unsafe"
12
-
13
-	"golang.org/x/sys/internal/unsafeheader"
14
-)
10
+import "unsafe"
15
 
11
 
16
 // SysvShmAttach attaches the Sysv shared memory segment associated with the
12
 // SysvShmAttach attaches the Sysv shared memory segment associated with the
17
 // shared memory identifier id.
13
 // shared memory identifier id.
34
 	}
30
 	}
35
 
31
 
36
 	// Use unsafe to convert addr into a []byte.
32
 	// Use unsafe to convert addr into a []byte.
37
-	// TODO: convert to unsafe.Slice once we can assume Go 1.17
38
-	var b []byte
39
-	hdr := (*unsafeheader.Slice)(unsafe.Pointer(&b))
40
-	hdr.Data = unsafe.Pointer(addr)
41
-	hdr.Cap = int(info.Segsz)
42
-	hdr.Len = int(info.Segsz)
33
+	b := unsafe.Slice((*byte)(unsafe.Pointer(addr)), int(info.Segsz))
43
 	return b, nil
34
 	return b, nil
44
 }
35
 }
45
 
36
 

+ 65
- 30
vendor/golang.org/x/sys/unix/xattr_bsd.go Zobrazit soubor

160
 }
160
 }
161
 
161
 
162
 func Listxattr(file string, dest []byte) (sz int, err error) {
162
 func Listxattr(file string, dest []byte) (sz int, err error) {
163
-	d := initxattrdest(dest, 0)
164
 	destsiz := len(dest)
163
 	destsiz := len(dest)
165
 
164
 
166
 	// FreeBSD won't allow you to list xattrs from multiple namespaces
165
 	// FreeBSD won't allow you to list xattrs from multiple namespaces
167
-	s := 0
166
+	s, pos := 0, 0
168
 	for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
167
 	for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
169
-		stmp, e := ExtattrListFile(file, nsid, uintptr(d), destsiz)
168
+		stmp, e := ListxattrNS(file, nsid, dest[pos:])
170
 
169
 
171
 		/* Errors accessing system attrs are ignored so that
170
 		/* Errors accessing system attrs are ignored so that
172
 		 * we can implement the Linux-like behavior of omitting errors that
171
 		 * we can implement the Linux-like behavior of omitting errors that
175
 		 * Linux will still error if we ask for user attributes on a file that
174
 		 * Linux will still error if we ask for user attributes on a file that
176
 		 * we don't have read permissions on, so don't ignore those errors
175
 		 * we don't have read permissions on, so don't ignore those errors
177
 		 */
176
 		 */
178
-		if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
179
-			continue
180
-		} else if e != nil {
177
+		if e != nil {
178
+			if e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
179
+				continue
180
+			}
181
 			return s, e
181
 			return s, e
182
 		}
182
 		}
183
 
183
 
184
 		s += stmp
184
 		s += stmp
185
-		destsiz -= s
186
-		if destsiz < 0 {
187
-			destsiz = 0
185
+		pos = s
186
+		if pos > destsiz {
187
+			pos = destsiz
188
 		}
188
 		}
189
-		d = initxattrdest(dest, s)
190
 	}
189
 	}
191
 
190
 
192
 	return s, nil
191
 	return s, nil
193
 }
192
 }
194
 
193
 
195
-func Flistxattr(fd int, dest []byte) (sz int, err error) {
194
+func ListxattrNS(file string, nsid int, dest []byte) (sz int, err error) {
196
 	d := initxattrdest(dest, 0)
195
 	d := initxattrdest(dest, 0)
197
 	destsiz := len(dest)
196
 	destsiz := len(dest)
198
 
197
 
199
-	s := 0
198
+	s, e := ExtattrListFile(file, nsid, uintptr(d), destsiz)
199
+	if e != nil {
200
+		return 0, err
201
+	}
202
+
203
+	return s, nil
204
+}
205
+
206
+func Flistxattr(fd int, dest []byte) (sz int, err error) {
207
+	destsiz := len(dest)
208
+
209
+	s, pos := 0, 0
200
 	for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
210
 	for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
201
-		stmp, e := ExtattrListFd(fd, nsid, uintptr(d), destsiz)
202
-		if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
203
-			continue
204
-		} else if e != nil {
211
+		stmp, e := FlistxattrNS(fd, nsid, dest[pos:])
212
+
213
+		if e != nil {
214
+			if e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
215
+				continue
216
+			}
205
 			return s, e
217
 			return s, e
206
 		}
218
 		}
207
 
219
 
208
 		s += stmp
220
 		s += stmp
209
-		destsiz -= s
210
-		if destsiz < 0 {
211
-			destsiz = 0
221
+		pos = s
222
+		if pos > destsiz {
223
+			pos = destsiz
212
 		}
224
 		}
213
-		d = initxattrdest(dest, s)
214
 	}
225
 	}
215
 
226
 
216
 	return s, nil
227
 	return s, nil
217
 }
228
 }
218
 
229
 
219
-func Llistxattr(link string, dest []byte) (sz int, err error) {
230
+func FlistxattrNS(fd int, nsid int, dest []byte) (sz int, err error) {
220
 	d := initxattrdest(dest, 0)
231
 	d := initxattrdest(dest, 0)
221
 	destsiz := len(dest)
232
 	destsiz := len(dest)
222
 
233
 
223
-	s := 0
234
+	s, e := ExtattrListFd(fd, nsid, uintptr(d), destsiz)
235
+	if e != nil {
236
+		return 0, err
237
+	}
238
+
239
+	return s, nil
240
+}
241
+
242
+func Llistxattr(link string, dest []byte) (sz int, err error) {
243
+	destsiz := len(dest)
244
+
245
+	s, pos := 0, 0
224
 	for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
246
 	for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
225
-		stmp, e := ExtattrListLink(link, nsid, uintptr(d), destsiz)
226
-		if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
227
-			continue
228
-		} else if e != nil {
247
+		stmp, e := LlistxattrNS(link, nsid, dest[pos:])
248
+
249
+		if e != nil {
250
+			if e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
251
+				continue
252
+			}
229
 			return s, e
253
 			return s, e
230
 		}
254
 		}
231
 
255
 
232
 		s += stmp
256
 		s += stmp
233
-		destsiz -= s
234
-		if destsiz < 0 {
235
-			destsiz = 0
257
+		pos = s
258
+		if pos > destsiz {
259
+			pos = destsiz
236
 		}
260
 		}
237
-		d = initxattrdest(dest, s)
261
+	}
262
+
263
+	return s, nil
264
+}
265
+
266
+func LlistxattrNS(link string, nsid int, dest []byte) (sz int, err error) {
267
+	d := initxattrdest(dest, 0)
268
+	destsiz := len(dest)
269
+
270
+	s, e := ExtattrListLink(link, nsid, uintptr(d), destsiz)
271
+	if e != nil {
272
+		return 0, err
238
 	}
273
 	}
239
 
274
 
240
 	return s, nil
275
 	return s, nil

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_386.go Zobrazit soubor

1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include -m32
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/386/include -m32
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3
 
3
 
4
 //go:build 386 && linux
4
 //go:build 386 && linux
5
 // +build 386,linux
5
 // +build 386,linux
6
 
6
 
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
8
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m32 _const.go
8
+// cgo -godefs -- -Wall -Werror -static -I/tmp/386/include -m32 _const.go
9
 
9
 
10
 package unix
10
 package unix
11
 
11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go Zobrazit soubor

1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include -m64
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/amd64/include -m64
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3
 
3
 
4
 //go:build amd64 && linux
4
 //go:build amd64 && linux
5
 // +build amd64,linux
5
 // +build amd64,linux
6
 
6
 
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
8
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m64 _const.go
8
+// cgo -godefs -- -Wall -Werror -static -I/tmp/amd64/include -m64 _const.go
9
 
9
 
10
 package unix
10
 package unix
11
 
11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go Zobrazit soubor

1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/arm/include
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3
 
3
 
4
 //go:build arm && linux
4
 //go:build arm && linux
5
 // +build arm,linux
5
 // +build arm,linux
6
 
6
 
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
8
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
8
+// cgo -godefs -- -Wall -Werror -static -I/tmp/arm/include _const.go
9
 
9
 
10
 package unix
10
 package unix
11
 
11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go Zobrazit soubor

1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include -fsigned-char
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/arm64/include -fsigned-char
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3
 
3
 
4
 //go:build arm64 && linux
4
 //go:build arm64 && linux
5
 // +build arm64,linux
5
 // +build arm64,linux
6
 
6
 
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
8
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char _const.go
8
+// cgo -godefs -- -Wall -Werror -static -I/tmp/arm64/include -fsigned-char _const.go
9
 
9
 
10
 package unix
10
 package unix
11
 
11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go Zobrazit soubor

1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/loong64/include
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3
 
3
 
4
 //go:build loong64 && linux
4
 //go:build loong64 && linux
5
 // +build loong64,linux
5
 // +build loong64,linux
6
 
6
 
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
8
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
8
+// cgo -godefs -- -Wall -Werror -static -I/tmp/loong64/include _const.go
9
 
9
 
10
 package unix
10
 package unix
11
 
11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go Zobrazit soubor

1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/mips/include
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3
 
3
 
4
 //go:build mips && linux
4
 //go:build mips && linux
5
 // +build mips,linux
5
 // +build mips,linux
6
 
6
 
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
8
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
8
+// cgo -godefs -- -Wall -Werror -static -I/tmp/mips/include _const.go
9
 
9
 
10
 package unix
10
 package unix
11
 
11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go Zobrazit soubor

1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/mips64/include
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3
 
3
 
4
 //go:build mips64 && linux
4
 //go:build mips64 && linux
5
 // +build mips64,linux
5
 // +build mips64,linux
6
 
6
 
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
8
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
8
+// cgo -godefs -- -Wall -Werror -static -I/tmp/mips64/include _const.go
9
 
9
 
10
 package unix
10
 package unix
11
 
11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go Zobrazit soubor

1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/mips64le/include
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3
 
3
 
4
 //go:build mips64le && linux
4
 //go:build mips64le && linux
5
 // +build mips64le,linux
5
 // +build mips64le,linux
6
 
6
 
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
8
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
8
+// cgo -godefs -- -Wall -Werror -static -I/tmp/mips64le/include _const.go
9
 
9
 
10
 package unix
10
 package unix
11
 
11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go Zobrazit soubor

1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/mipsle/include
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3
 
3
 
4
 //go:build mipsle && linux
4
 //go:build mipsle && linux
5
 // +build mipsle,linux
5
 // +build mipsle,linux
6
 
6
 
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
8
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
8
+// cgo -godefs -- -Wall -Werror -static -I/tmp/mipsle/include _const.go
9
 
9
 
10
 package unix
10
 package unix
11
 
11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go Zobrazit soubor

1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/ppc/include
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3
 
3
 
4
 //go:build ppc && linux
4
 //go:build ppc && linux
5
 // +build ppc,linux
5
 // +build ppc,linux
6
 
6
 
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
8
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
8
+// cgo -godefs -- -Wall -Werror -static -I/tmp/ppc/include _const.go
9
 
9
 
10
 package unix
10
 package unix
11
 
11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go Zobrazit soubor

1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/ppc64/include
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3
 
3
 
4
 //go:build ppc64 && linux
4
 //go:build ppc64 && linux
5
 // +build ppc64,linux
5
 // +build ppc64,linux
6
 
6
 
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
8
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
8
+// cgo -godefs -- -Wall -Werror -static -I/tmp/ppc64/include _const.go
9
 
9
 
10
 package unix
10
 package unix
11
 
11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go Zobrazit soubor

1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/ppc64le/include
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3
 
3
 
4
 //go:build ppc64le && linux
4
 //go:build ppc64le && linux
5
 // +build ppc64le,linux
5
 // +build ppc64le,linux
6
 
6
 
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
8
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
8
+// cgo -godefs -- -Wall -Werror -static -I/tmp/ppc64le/include _const.go
9
 
9
 
10
 package unix
10
 package unix
11
 
11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go Zobrazit soubor

1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/riscv64/include
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3
 
3
 
4
 //go:build riscv64 && linux
4
 //go:build riscv64 && linux
5
 // +build riscv64,linux
5
 // +build riscv64,linux
6
 
6
 
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
8
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
8
+// cgo -godefs -- -Wall -Werror -static -I/tmp/riscv64/include _const.go
9
 
9
 
10
 package unix
10
 package unix
11
 
11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go Zobrazit soubor

1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include -fsigned-char
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/s390x/include -fsigned-char
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3
 
3
 
4
 //go:build s390x && linux
4
 //go:build s390x && linux
5
 // +build s390x,linux
5
 // +build s390x,linux
6
 
6
 
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
8
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char _const.go
8
+// cgo -godefs -- -Wall -Werror -static -I/tmp/s390x/include -fsigned-char _const.go
9
 
9
 
10
 package unix
10
 package unix
11
 
11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go Zobrazit soubor

1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/sparc64/include
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3
 
3
 
4
 //go:build sparc64 && linux
4
 //go:build sparc64 && linux
5
 // +build sparc64,linux
5
 // +build sparc64,linux
6
 
6
 
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
8
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
8
+// cgo -godefs -- -Wall -Werror -static -I/tmp/sparc64/include _const.go
9
 
9
 
10
 package unix
10
 package unix
11
 
11
 

+ 297
- 59
vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go Zobrazit soubor

46
 	AF_SNA                            = 0xb
46
 	AF_SNA                            = 0xb
47
 	AF_UNIX                           = 0x1
47
 	AF_UNIX                           = 0x1
48
 	AF_UNSPEC                         = 0x0
48
 	AF_UNSPEC                         = 0x0
49
+	ALTWERASE                         = 0x200
49
 	ARPHRD_ETHER                      = 0x1
50
 	ARPHRD_ETHER                      = 0x1
50
 	ARPHRD_FRELAY                     = 0xf
51
 	ARPHRD_FRELAY                     = 0xf
51
 	ARPHRD_IEEE1394                   = 0x18
52
 	ARPHRD_IEEE1394                   = 0x18
108
 	BPF_DIRECTION_IN                  = 0x1
109
 	BPF_DIRECTION_IN                  = 0x1
109
 	BPF_DIRECTION_OUT                 = 0x2
110
 	BPF_DIRECTION_OUT                 = 0x2
110
 	BPF_DIV                           = 0x30
111
 	BPF_DIV                           = 0x30
112
+	BPF_FILDROP_CAPTURE               = 0x1
113
+	BPF_FILDROP_DROP                  = 0x2
114
+	BPF_FILDROP_PASS                  = 0x0
115
+	BPF_F_DIR_IN                      = 0x10
116
+	BPF_F_DIR_MASK                    = 0x30
117
+	BPF_F_DIR_OUT                     = 0x20
118
+	BPF_F_DIR_SHIFT                   = 0x4
119
+	BPF_F_FLOWID                      = 0x8
120
+	BPF_F_PRI_MASK                    = 0x7
111
 	BPF_H                             = 0x8
121
 	BPF_H                             = 0x8
112
 	BPF_IMM                           = 0x0
122
 	BPF_IMM                           = 0x0
113
 	BPF_IND                           = 0x40
123
 	BPF_IND                           = 0x40
136
 	BPF_OR                            = 0x40
146
 	BPF_OR                            = 0x40
137
 	BPF_RELEASE                       = 0x30bb6
147
 	BPF_RELEASE                       = 0x30bb6
138
 	BPF_RET                           = 0x6
148
 	BPF_RET                           = 0x6
149
+	BPF_RND                           = 0xc0
139
 	BPF_RSH                           = 0x70
150
 	BPF_RSH                           = 0x70
140
 	BPF_ST                            = 0x2
151
 	BPF_ST                            = 0x2
141
 	BPF_STX                           = 0x3
152
 	BPF_STX                           = 0x3
147
 	BRKINT                            = 0x2
158
 	BRKINT                            = 0x2
148
 	CFLUSH                            = 0xf
159
 	CFLUSH                            = 0xf
149
 	CLOCAL                            = 0x8000
160
 	CLOCAL                            = 0x8000
161
+	CLOCK_BOOTTIME                    = 0x6
162
+	CLOCK_MONOTONIC                   = 0x3
163
+	CLOCK_PROCESS_CPUTIME_ID          = 0x2
164
+	CLOCK_REALTIME                    = 0x0
165
+	CLOCK_THREAD_CPUTIME_ID           = 0x4
166
+	CLOCK_UPTIME                      = 0x5
150
 	CPUSTATES                         = 0x6
167
 	CPUSTATES                         = 0x6
151
 	CP_IDLE                           = 0x5
168
 	CP_IDLE                           = 0x5
152
 	CP_INTR                           = 0x4
169
 	CP_INTR                           = 0x4
170
 	CTL_KERN                          = 0x1
187
 	CTL_KERN                          = 0x1
171
 	CTL_MAXNAME                       = 0xc
188
 	CTL_MAXNAME                       = 0xc
172
 	CTL_NET                           = 0x4
189
 	CTL_NET                           = 0x4
190
+	DIOCADDQUEUE                      = 0xc100445d
191
+	DIOCADDRULE                       = 0xccc84404
192
+	DIOCADDSTATE                      = 0xc1084425
193
+	DIOCCHANGERULE                    = 0xccc8441a
194
+	DIOCCLRIFFLAG                     = 0xc024445a
195
+	DIOCCLRSRCNODES                   = 0x20004455
196
+	DIOCCLRSTATES                     = 0xc0d04412
197
+	DIOCCLRSTATUS                     = 0xc0244416
198
+	DIOCGETLIMIT                      = 0xc0084427
199
+	DIOCGETQSTATS                     = 0xc1084460
200
+	DIOCGETQUEUE                      = 0xc100445f
201
+	DIOCGETQUEUES                     = 0xc100445e
202
+	DIOCGETRULE                       = 0xccc84407
203
+	DIOCGETRULES                      = 0xccc84406
204
+	DIOCGETRULESET                    = 0xc444443b
205
+	DIOCGETRULESETS                   = 0xc444443a
206
+	DIOCGETSRCNODES                   = 0xc0084454
207
+	DIOCGETSTATE                      = 0xc1084413
208
+	DIOCGETSTATES                     = 0xc0084419
209
+	DIOCGETSTATUS                     = 0xc1e84415
210
+	DIOCGETSYNFLWATS                  = 0xc0084463
211
+	DIOCGETTIMEOUT                    = 0xc008441e
212
+	DIOCIGETIFACES                    = 0xc0244457
213
+	DIOCKILLSRCNODES                  = 0xc068445b
214
+	DIOCKILLSTATES                    = 0xc0d04429
215
+	DIOCNATLOOK                       = 0xc0504417
216
+	DIOCOSFPADD                       = 0xc084444f
173
 	DIOCOSFPFLUSH                     = 0x2000444e
217
 	DIOCOSFPFLUSH                     = 0x2000444e
218
+	DIOCOSFPGET                       = 0xc0844450
219
+	DIOCRADDADDRS                     = 0xc44c4443
220
+	DIOCRADDTABLES                    = 0xc44c443d
221
+	DIOCRCLRADDRS                     = 0xc44c4442
222
+	DIOCRCLRASTATS                    = 0xc44c4448
223
+	DIOCRCLRTABLES                    = 0xc44c443c
224
+	DIOCRCLRTSTATS                    = 0xc44c4441
225
+	DIOCRDELADDRS                     = 0xc44c4444
226
+	DIOCRDELTABLES                    = 0xc44c443e
227
+	DIOCRGETADDRS                     = 0xc44c4446
228
+	DIOCRGETASTATS                    = 0xc44c4447
229
+	DIOCRGETTABLES                    = 0xc44c443f
230
+	DIOCRGETTSTATS                    = 0xc44c4440
231
+	DIOCRINADEFINE                    = 0xc44c444d
232
+	DIOCRSETADDRS                     = 0xc44c4445
233
+	DIOCRSETTFLAGS                    = 0xc44c444a
234
+	DIOCRTSTADDRS                     = 0xc44c4449
235
+	DIOCSETDEBUG                      = 0xc0044418
236
+	DIOCSETHOSTID                     = 0xc0044456
237
+	DIOCSETIFFLAG                     = 0xc0244459
238
+	DIOCSETLIMIT                      = 0xc0084428
239
+	DIOCSETREASS                      = 0xc004445c
240
+	DIOCSETSTATUSIF                   = 0xc0244414
241
+	DIOCSETSYNCOOKIES                 = 0xc0014462
242
+	DIOCSETSYNFLWATS                  = 0xc0084461
243
+	DIOCSETTIMEOUT                    = 0xc008441d
244
+	DIOCSTART                         = 0x20004401
245
+	DIOCSTOP                          = 0x20004402
246
+	DIOCXBEGIN                        = 0xc00c4451
247
+	DIOCXCOMMIT                       = 0xc00c4452
248
+	DIOCXROLLBACK                     = 0xc00c4453
174
 	DLT_ARCNET                        = 0x7
249
 	DLT_ARCNET                        = 0x7
175
 	DLT_ATM_RFC1483                   = 0xb
250
 	DLT_ATM_RFC1483                   = 0xb
176
 	DLT_AX25                          = 0x3
251
 	DLT_AX25                          = 0x3
186
 	DLT_LOOP                          = 0xc
261
 	DLT_LOOP                          = 0xc
187
 	DLT_MPLS                          = 0xdb
262
 	DLT_MPLS                          = 0xdb
188
 	DLT_NULL                          = 0x0
263
 	DLT_NULL                          = 0x0
264
+	DLT_OPENFLOW                      = 0x10b
189
 	DLT_PFLOG                         = 0x75
265
 	DLT_PFLOG                         = 0x75
190
 	DLT_PFSYNC                        = 0x12
266
 	DLT_PFSYNC                        = 0x12
191
 	DLT_PPP                           = 0x9
267
 	DLT_PPP                           = 0x9
196
 	DLT_RAW                           = 0xe
272
 	DLT_RAW                           = 0xe
197
 	DLT_SLIP                          = 0x8
273
 	DLT_SLIP                          = 0x8
198
 	DLT_SLIP_BSDOS                    = 0xf
274
 	DLT_SLIP_BSDOS                    = 0xf
275
+	DLT_USBPCAP                       = 0xf9
276
+	DLT_USER0                         = 0x93
277
+	DLT_USER1                         = 0x94
278
+	DLT_USER10                        = 0x9d
279
+	DLT_USER11                        = 0x9e
280
+	DLT_USER12                        = 0x9f
281
+	DLT_USER13                        = 0xa0
282
+	DLT_USER14                        = 0xa1
283
+	DLT_USER15                        = 0xa2
284
+	DLT_USER2                         = 0x95
285
+	DLT_USER3                         = 0x96
286
+	DLT_USER4                         = 0x97
287
+	DLT_USER5                         = 0x98
288
+	DLT_USER6                         = 0x99
289
+	DLT_USER7                         = 0x9a
290
+	DLT_USER8                         = 0x9b
291
+	DLT_USER9                         = 0x9c
199
 	DT_BLK                            = 0x6
292
 	DT_BLK                            = 0x6
200
 	DT_CHR                            = 0x2
293
 	DT_CHR                            = 0x2
201
 	DT_DIR                            = 0x4
294
 	DT_DIR                            = 0x4
215
 	EMUL_ENABLED                      = 0x1
308
 	EMUL_ENABLED                      = 0x1
216
 	EMUL_NATIVE                       = 0x2
309
 	EMUL_NATIVE                       = 0x2
217
 	ENDRUNDISC                        = 0x9
310
 	ENDRUNDISC                        = 0x9
311
+	ETH64_8021_RSVD_MASK              = 0xfffffffffff0
312
+	ETH64_8021_RSVD_PREFIX            = 0x180c2000000
218
 	ETHERMIN                          = 0x2e
313
 	ETHERMIN                          = 0x2e
219
 	ETHERMTU                          = 0x5dc
314
 	ETHERMTU                          = 0x5dc
220
 	ETHERTYPE_8023                    = 0x4
315
 	ETHERTYPE_8023                    = 0x4
267
 	ETHERTYPE_DN                      = 0x6003
362
 	ETHERTYPE_DN                      = 0x6003
268
 	ETHERTYPE_DOGFIGHT                = 0x1989
363
 	ETHERTYPE_DOGFIGHT                = 0x1989
269
 	ETHERTYPE_DSMD                    = 0x8039
364
 	ETHERTYPE_DSMD                    = 0x8039
365
+	ETHERTYPE_EAPOL                   = 0x888e
270
 	ETHERTYPE_ECMA                    = 0x803
366
 	ETHERTYPE_ECMA                    = 0x803
271
 	ETHERTYPE_ENCRYPT                 = 0x803d
367
 	ETHERTYPE_ENCRYPT                 = 0x803d
272
 	ETHERTYPE_ES                      = 0x805d
368
 	ETHERTYPE_ES                      = 0x805d
298
 	ETHERTYPE_LLDP                    = 0x88cc
394
 	ETHERTYPE_LLDP                    = 0x88cc
299
 	ETHERTYPE_LOGICRAFT               = 0x8148
395
 	ETHERTYPE_LOGICRAFT               = 0x8148
300
 	ETHERTYPE_LOOPBACK                = 0x9000
396
 	ETHERTYPE_LOOPBACK                = 0x9000
397
+	ETHERTYPE_MACSEC                  = 0x88e5
301
 	ETHERTYPE_MATRA                   = 0x807a
398
 	ETHERTYPE_MATRA                   = 0x807a
302
 	ETHERTYPE_MAX                     = 0xffff
399
 	ETHERTYPE_MAX                     = 0xffff
303
 	ETHERTYPE_MERIT                   = 0x807c
400
 	ETHERTYPE_MERIT                   = 0x807c
326
 	ETHERTYPE_NCD                     = 0x8149
423
 	ETHERTYPE_NCD                     = 0x8149
327
 	ETHERTYPE_NESTAR                  = 0x8006
424
 	ETHERTYPE_NESTAR                  = 0x8006
328
 	ETHERTYPE_NETBEUI                 = 0x8191
425
 	ETHERTYPE_NETBEUI                 = 0x8191
426
+	ETHERTYPE_NHRP                    = 0x2001
329
 	ETHERTYPE_NOVELL                  = 0x8138
427
 	ETHERTYPE_NOVELL                  = 0x8138
330
 	ETHERTYPE_NS                      = 0x600
428
 	ETHERTYPE_NS                      = 0x600
331
 	ETHERTYPE_NSAT                    = 0x601
429
 	ETHERTYPE_NSAT                    = 0x601
332
 	ETHERTYPE_NSCOMPAT                = 0x807
430
 	ETHERTYPE_NSCOMPAT                = 0x807
431
+	ETHERTYPE_NSH                     = 0x984f
333
 	ETHERTYPE_NTRAILER                = 0x10
432
 	ETHERTYPE_NTRAILER                = 0x10
334
 	ETHERTYPE_OS9                     = 0x7007
433
 	ETHERTYPE_OS9                     = 0x7007
335
 	ETHERTYPE_OS9NET                  = 0x7009
434
 	ETHERTYPE_OS9NET                  = 0x7009
336
 	ETHERTYPE_PACER                   = 0x80c6
435
 	ETHERTYPE_PACER                   = 0x80c6
337
-	ETHERTYPE_PAE                     = 0x888e
436
+	ETHERTYPE_PBB                     = 0x88e7
338
 	ETHERTYPE_PCS                     = 0x4242
437
 	ETHERTYPE_PCS                     = 0x4242
339
 	ETHERTYPE_PLANNING                = 0x8044
438
 	ETHERTYPE_PLANNING                = 0x8044
340
 	ETHERTYPE_PPP                     = 0x880b
439
 	ETHERTYPE_PPP                     = 0x880b
409
 	ETHER_CRC_POLY_LE                 = 0xedb88320
508
 	ETHER_CRC_POLY_LE                 = 0xedb88320
410
 	ETHER_HDR_LEN                     = 0xe
509
 	ETHER_HDR_LEN                     = 0xe
411
 	ETHER_MAX_DIX_LEN                 = 0x600
510
 	ETHER_MAX_DIX_LEN                 = 0x600
511
+	ETHER_MAX_HARDMTU_LEN             = 0xff9b
412
 	ETHER_MAX_LEN                     = 0x5ee
512
 	ETHER_MAX_LEN                     = 0x5ee
413
 	ETHER_MIN_LEN                     = 0x40
513
 	ETHER_MIN_LEN                     = 0x40
414
 	ETHER_TYPE_LEN                    = 0x2
514
 	ETHER_TYPE_LEN                    = 0x2
415
 	ETHER_VLAN_ENCAP_LEN              = 0x4
515
 	ETHER_VLAN_ENCAP_LEN              = 0x4
416
 	EVFILT_AIO                        = -0x3
516
 	EVFILT_AIO                        = -0x3
517
+	EVFILT_DEVICE                     = -0x8
518
+	EVFILT_EXCEPT                     = -0x9
417
 	EVFILT_PROC                       = -0x5
519
 	EVFILT_PROC                       = -0x5
418
 	EVFILT_READ                       = -0x1
520
 	EVFILT_READ                       = -0x1
419
 	EVFILT_SIGNAL                     = -0x6
521
 	EVFILT_SIGNAL                     = -0x6
420
-	EVFILT_SYSCOUNT                   = 0x7
522
+	EVFILT_SYSCOUNT                   = 0x9
421
 	EVFILT_TIMER                      = -0x7
523
 	EVFILT_TIMER                      = -0x7
422
 	EVFILT_VNODE                      = -0x4
524
 	EVFILT_VNODE                      = -0x4
423
 	EVFILT_WRITE                      = -0x2
525
 	EVFILT_WRITE                      = -0x2
526
+	EVL_ENCAPLEN                      = 0x4
527
+	EVL_PRIO_BITS                     = 0xd
528
+	EVL_PRIO_MAX                      = 0x7
529
+	EVL_VLID_MASK                     = 0xfff
530
+	EVL_VLID_MAX                      = 0xffe
531
+	EVL_VLID_MIN                      = 0x1
532
+	EVL_VLID_NULL                     = 0x0
424
 	EV_ADD                            = 0x1
533
 	EV_ADD                            = 0x1
425
 	EV_CLEAR                          = 0x20
534
 	EV_CLEAR                          = 0x20
426
 	EV_DELETE                         = 0x2
535
 	EV_DELETE                         = 0x2
427
 	EV_DISABLE                        = 0x8
536
 	EV_DISABLE                        = 0x8
537
+	EV_DISPATCH                       = 0x80
428
 	EV_ENABLE                         = 0x4
538
 	EV_ENABLE                         = 0x4
429
 	EV_EOF                            = 0x8000
539
 	EV_EOF                            = 0x8000
430
 	EV_ERROR                          = 0x4000
540
 	EV_ERROR                          = 0x4000
431
 	EV_FLAG1                          = 0x2000
541
 	EV_FLAG1                          = 0x2000
432
 	EV_ONESHOT                        = 0x10
542
 	EV_ONESHOT                        = 0x10
433
-	EV_SYSFLAGS                       = 0xf000
543
+	EV_RECEIPT                        = 0x40
544
+	EV_SYSFLAGS                       = 0xf800
434
 	EXTA                              = 0x4b00
545
 	EXTA                              = 0x4b00
435
 	EXTB                              = 0x9600
546
 	EXTB                              = 0x9600
436
 	EXTPROC                           = 0x800
547
 	EXTPROC                           = 0x800
443
 	F_GETFL                           = 0x3
554
 	F_GETFL                           = 0x3
444
 	F_GETLK                           = 0x7
555
 	F_GETLK                           = 0x7
445
 	F_GETOWN                          = 0x5
556
 	F_GETOWN                          = 0x5
557
+	F_ISATTY                          = 0xb
446
 	F_OK                              = 0x0
558
 	F_OK                              = 0x0
447
 	F_RDLCK                           = 0x1
559
 	F_RDLCK                           = 0x1
448
 	F_SETFD                           = 0x2
560
 	F_SETFD                           = 0x2
460
 	IEXTEN                            = 0x400
572
 	IEXTEN                            = 0x400
461
 	IFAN_ARRIVAL                      = 0x0
573
 	IFAN_ARRIVAL                      = 0x0
462
 	IFAN_DEPARTURE                    = 0x1
574
 	IFAN_DEPARTURE                    = 0x1
463
-	IFA_ROUTE                         = 0x1
464
 	IFF_ALLMULTI                      = 0x200
575
 	IFF_ALLMULTI                      = 0x200
465
 	IFF_BROADCAST                     = 0x2
576
 	IFF_BROADCAST                     = 0x2
466
 	IFF_CANTCHANGE                    = 0x8e52
577
 	IFF_CANTCHANGE                    = 0x8e52
471
 	IFF_LOOPBACK                      = 0x8
582
 	IFF_LOOPBACK                      = 0x8
472
 	IFF_MULTICAST                     = 0x8000
583
 	IFF_MULTICAST                     = 0x8000
473
 	IFF_NOARP                         = 0x80
584
 	IFF_NOARP                         = 0x80
474
-	IFF_NOTRAILERS                    = 0x20
475
 	IFF_OACTIVE                       = 0x400
585
 	IFF_OACTIVE                       = 0x400
476
 	IFF_POINTOPOINT                   = 0x10
586
 	IFF_POINTOPOINT                   = 0x10
477
 	IFF_PROMISC                       = 0x100
587
 	IFF_PROMISC                       = 0x100
478
 	IFF_RUNNING                       = 0x40
588
 	IFF_RUNNING                       = 0x40
479
 	IFF_SIMPLEX                       = 0x800
589
 	IFF_SIMPLEX                       = 0x800
590
+	IFF_STATICARP                     = 0x20
480
 	IFF_UP                            = 0x1
591
 	IFF_UP                            = 0x1
481
 	IFNAMSIZ                          = 0x10
592
 	IFNAMSIZ                          = 0x10
482
 	IFT_1822                          = 0x2
593
 	IFT_1822                          = 0x2
605
 	IFT_LINEGROUP                     = 0xd2
716
 	IFT_LINEGROUP                     = 0xd2
606
 	IFT_LOCALTALK                     = 0x2a
717
 	IFT_LOCALTALK                     = 0x2a
607
 	IFT_LOOP                          = 0x18
718
 	IFT_LOOP                          = 0x18
719
+	IFT_MBIM                          = 0xfa
608
 	IFT_MEDIAMAILOVERIP               = 0x8b
720
 	IFT_MEDIAMAILOVERIP               = 0x8b
609
 	IFT_MFSIGLINK                     = 0xa7
721
 	IFT_MFSIGLINK                     = 0xa7
610
 	IFT_MIOX25                        = 0x26
722
 	IFT_MIOX25                        = 0x26
695
 	IFT_VOICEOVERCABLE                = 0xc6
807
 	IFT_VOICEOVERCABLE                = 0xc6
696
 	IFT_VOICEOVERFRAMERELAY           = 0x99
808
 	IFT_VOICEOVERFRAMERELAY           = 0x99
697
 	IFT_VOICEOVERIP                   = 0x68
809
 	IFT_VOICEOVERIP                   = 0x68
810
+	IFT_WIREGUARD                     = 0xfb
698
 	IFT_X213                          = 0x5d
811
 	IFT_X213                          = 0x5d
699
 	IFT_X25                           = 0x5
812
 	IFT_X25                           = 0x5
700
 	IFT_X25DDN                        = 0x4
813
 	IFT_X25DDN                        = 0x4
729
 	IPPROTO_AH                        = 0x33
842
 	IPPROTO_AH                        = 0x33
730
 	IPPROTO_CARP                      = 0x70
843
 	IPPROTO_CARP                      = 0x70
731
 	IPPROTO_DIVERT                    = 0x102
844
 	IPPROTO_DIVERT                    = 0x102
732
-	IPPROTO_DIVERT_INIT               = 0x2
733
-	IPPROTO_DIVERT_RESP               = 0x1
734
 	IPPROTO_DONE                      = 0x101
845
 	IPPROTO_DONE                      = 0x101
735
 	IPPROTO_DSTOPTS                   = 0x3c
846
 	IPPROTO_DSTOPTS                   = 0x3c
736
 	IPPROTO_EGP                       = 0x8
847
 	IPPROTO_EGP                       = 0x8
762
 	IPPROTO_RAW                       = 0xff
873
 	IPPROTO_RAW                       = 0xff
763
 	IPPROTO_ROUTING                   = 0x2b
874
 	IPPROTO_ROUTING                   = 0x2b
764
 	IPPROTO_RSVP                      = 0x2e
875
 	IPPROTO_RSVP                      = 0x2e
876
+	IPPROTO_SCTP                      = 0x84
765
 	IPPROTO_TCP                       = 0x6
877
 	IPPROTO_TCP                       = 0x6
766
 	IPPROTO_TP                        = 0x1d
878
 	IPPROTO_TP                        = 0x1d
767
 	IPPROTO_UDP                       = 0x11
879
 	IPPROTO_UDP                       = 0x11
880
+	IPPROTO_UDPLITE                   = 0x88
768
 	IPV6_AUTH_LEVEL                   = 0x35
881
 	IPV6_AUTH_LEVEL                   = 0x35
769
 	IPV6_AUTOFLOWLABEL                = 0x3b
882
 	IPV6_AUTOFLOWLABEL                = 0x3b
770
 	IPV6_CHECKSUM                     = 0x1a
883
 	IPV6_CHECKSUM                     = 0x1a
787
 	IPV6_LEAVE_GROUP                  = 0xd
900
 	IPV6_LEAVE_GROUP                  = 0xd
788
 	IPV6_MAXHLIM                      = 0xff
901
 	IPV6_MAXHLIM                      = 0xff
789
 	IPV6_MAXPACKET                    = 0xffff
902
 	IPV6_MAXPACKET                    = 0xffff
903
+	IPV6_MINHOPCOUNT                  = 0x41
790
 	IPV6_MMTU                         = 0x500
904
 	IPV6_MMTU                         = 0x500
791
 	IPV6_MULTICAST_HOPS               = 0xa
905
 	IPV6_MULTICAST_HOPS               = 0xa
792
 	IPV6_MULTICAST_IF                 = 0x9
906
 	IPV6_MULTICAST_IF                 = 0x9
826
 	IP_DEFAULT_MULTICAST_LOOP         = 0x1
940
 	IP_DEFAULT_MULTICAST_LOOP         = 0x1
827
 	IP_DEFAULT_MULTICAST_TTL          = 0x1
941
 	IP_DEFAULT_MULTICAST_TTL          = 0x1
828
 	IP_DF                             = 0x4000
942
 	IP_DF                             = 0x4000
829
-	IP_DIVERTFL                       = 0x1022
830
 	IP_DROP_MEMBERSHIP                = 0xd
943
 	IP_DROP_MEMBERSHIP                = 0xd
831
 	IP_ESP_NETWORK_LEVEL              = 0x16
944
 	IP_ESP_NETWORK_LEVEL              = 0x16
832
 	IP_ESP_TRANS_LEVEL                = 0x15
945
 	IP_ESP_TRANS_LEVEL                = 0x15
833
 	IP_HDRINCL                        = 0x2
946
 	IP_HDRINCL                        = 0x2
834
 	IP_IPCOMP_LEVEL                   = 0x1d
947
 	IP_IPCOMP_LEVEL                   = 0x1d
948
+	IP_IPDEFTTL                       = 0x25
835
 	IP_IPSECFLOWINFO                  = 0x24
949
 	IP_IPSECFLOWINFO                  = 0x24
836
 	IP_IPSEC_LOCAL_AUTH               = 0x1b
950
 	IP_IPSEC_LOCAL_AUTH               = 0x1b
837
 	IP_IPSEC_LOCAL_CRED               = 0x19
951
 	IP_IPSEC_LOCAL_CRED               = 0x19
865
 	IP_RETOPTS                        = 0x8
979
 	IP_RETOPTS                        = 0x8
866
 	IP_RF                             = 0x8000
980
 	IP_RF                             = 0x8000
867
 	IP_RTABLE                         = 0x1021
981
 	IP_RTABLE                         = 0x1021
982
+	IP_SENDSRCADDR                    = 0x7
868
 	IP_TOS                            = 0x3
983
 	IP_TOS                            = 0x3
869
 	IP_TTL                            = 0x4
984
 	IP_TTL                            = 0x4
870
 	ISIG                              = 0x80
985
 	ISIG                              = 0x80
871
 	ISTRIP                            = 0x20
986
 	ISTRIP                            = 0x20
987
+	ITIMER_PROF                       = 0x2
988
+	ITIMER_REAL                       = 0x0
989
+	ITIMER_VIRTUAL                    = 0x1
990
+	IUCLC                             = 0x1000
872
 	IXANY                             = 0x800
991
 	IXANY                             = 0x800
873
 	IXOFF                             = 0x400
992
 	IXOFF                             = 0x400
874
 	IXON                              = 0x200
993
 	IXON                              = 0x200
900
 	MAP_INHERIT_COPY                  = 0x1
1019
 	MAP_INHERIT_COPY                  = 0x1
901
 	MAP_INHERIT_NONE                  = 0x2
1020
 	MAP_INHERIT_NONE                  = 0x2
902
 	MAP_INHERIT_SHARE                 = 0x0
1021
 	MAP_INHERIT_SHARE                 = 0x0
903
-	MAP_NOEXTEND                      = 0x100
904
-	MAP_NORESERVE                     = 0x40
1022
+	MAP_INHERIT_ZERO                  = 0x3
1023
+	MAP_NOEXTEND                      = 0x0
1024
+	MAP_NORESERVE                     = 0x0
905
 	MAP_PRIVATE                       = 0x2
1025
 	MAP_PRIVATE                       = 0x2
906
-	MAP_RENAME                        = 0x20
1026
+	MAP_RENAME                        = 0x0
907
 	MAP_SHARED                        = 0x1
1027
 	MAP_SHARED                        = 0x1
908
 	MAP_STACK                         = 0x4000
1028
 	MAP_STACK                         = 0x4000
909
 	MAP_TRYFIXED                      = 0x0
1029
 	MAP_TRYFIXED                      = 0x0
922
 	MNT_NOATIME                       = 0x8000
1042
 	MNT_NOATIME                       = 0x8000
923
 	MNT_NODEV                         = 0x10
1043
 	MNT_NODEV                         = 0x10
924
 	MNT_NOEXEC                        = 0x4
1044
 	MNT_NOEXEC                        = 0x4
1045
+	MNT_NOPERM                        = 0x20
925
 	MNT_NOSUID                        = 0x8
1046
 	MNT_NOSUID                        = 0x8
926
 	MNT_NOWAIT                        = 0x2
1047
 	MNT_NOWAIT                        = 0x2
927
 	MNT_QUOTA                         = 0x2000
1048
 	MNT_QUOTA                         = 0x2000
929
 	MNT_RELOAD                        = 0x40000
1050
 	MNT_RELOAD                        = 0x40000
930
 	MNT_ROOTFS                        = 0x4000
1051
 	MNT_ROOTFS                        = 0x4000
931
 	MNT_SOFTDEP                       = 0x4000000
1052
 	MNT_SOFTDEP                       = 0x4000000
1053
+	MNT_STALLED                       = 0x100000
1054
+	MNT_SWAPPABLE                     = 0x200000
932
 	MNT_SYNCHRONOUS                   = 0x2
1055
 	MNT_SYNCHRONOUS                   = 0x2
933
 	MNT_UPDATE                        = 0x10000
1056
 	MNT_UPDATE                        = 0x10000
934
 	MNT_VISFLAGMASK                   = 0x400ffff
1057
 	MNT_VISFLAGMASK                   = 0x400ffff
935
 	MNT_WAIT                          = 0x1
1058
 	MNT_WAIT                          = 0x1
936
 	MNT_WANTRDWR                      = 0x2000000
1059
 	MNT_WANTRDWR                      = 0x2000000
937
 	MNT_WXALLOWED                     = 0x800
1060
 	MNT_WXALLOWED                     = 0x800
1061
+	MOUNT_AFS                         = "afs"
1062
+	MOUNT_CD9660                      = "cd9660"
1063
+	MOUNT_EXT2FS                      = "ext2fs"
1064
+	MOUNT_FFS                         = "ffs"
1065
+	MOUNT_FUSEFS                      = "fuse"
1066
+	MOUNT_MFS                         = "mfs"
1067
+	MOUNT_MSDOS                       = "msdos"
1068
+	MOUNT_NCPFS                       = "ncpfs"
1069
+	MOUNT_NFS                         = "nfs"
1070
+	MOUNT_NTFS                        = "ntfs"
1071
+	MOUNT_TMPFS                       = "tmpfs"
1072
+	MOUNT_UDF                         = "udf"
1073
+	MOUNT_UFS                         = "ffs"
938
 	MSG_BCAST                         = 0x100
1074
 	MSG_BCAST                         = 0x100
1075
+	MSG_CMSG_CLOEXEC                  = 0x800
939
 	MSG_CTRUNC                        = 0x20
1076
 	MSG_CTRUNC                        = 0x20
940
 	MSG_DONTROUTE                     = 0x4
1077
 	MSG_DONTROUTE                     = 0x4
941
 	MSG_DONTWAIT                      = 0x80
1078
 	MSG_DONTWAIT                      = 0x80
946
 	MSG_PEEK                          = 0x2
1083
 	MSG_PEEK                          = 0x2
947
 	MSG_TRUNC                         = 0x10
1084
 	MSG_TRUNC                         = 0x10
948
 	MSG_WAITALL                       = 0x40
1085
 	MSG_WAITALL                       = 0x40
1086
+	MSG_WAITFORONE                    = 0x1000
949
 	MS_ASYNC                          = 0x1
1087
 	MS_ASYNC                          = 0x1
950
 	MS_INVALIDATE                     = 0x4
1088
 	MS_INVALIDATE                     = 0x4
951
 	MS_SYNC                           = 0x2
1089
 	MS_SYNC                           = 0x2
953
 	NET_RT_DUMP                       = 0x1
1091
 	NET_RT_DUMP                       = 0x1
954
 	NET_RT_FLAGS                      = 0x2
1092
 	NET_RT_FLAGS                      = 0x2
955
 	NET_RT_IFLIST                     = 0x3
1093
 	NET_RT_IFLIST                     = 0x3
956
-	NET_RT_MAXID                      = 0x6
1094
+	NET_RT_IFNAMES                    = 0x6
1095
+	NET_RT_MAXID                      = 0x8
1096
+	NET_RT_SOURCE                     = 0x7
957
 	NET_RT_STATS                      = 0x4
1097
 	NET_RT_STATS                      = 0x4
958
 	NET_RT_TABLE                      = 0x5
1098
 	NET_RT_TABLE                      = 0x5
959
 	NFDBITS                           = 0x20
1099
 	NFDBITS                           = 0x20
960
 	NOFLSH                            = 0x80000000
1100
 	NOFLSH                            = 0x80000000
1101
+	NOKERNINFO                        = 0x2000000
961
 	NOTE_ATTRIB                       = 0x8
1102
 	NOTE_ATTRIB                       = 0x8
1103
+	NOTE_CHANGE                       = 0x1
962
 	NOTE_CHILD                        = 0x4
1104
 	NOTE_CHILD                        = 0x4
963
 	NOTE_DELETE                       = 0x1
1105
 	NOTE_DELETE                       = 0x1
964
 	NOTE_EOF                          = 0x2
1106
 	NOTE_EOF                          = 0x2
968
 	NOTE_FORK                         = 0x40000000
1110
 	NOTE_FORK                         = 0x40000000
969
 	NOTE_LINK                         = 0x10
1111
 	NOTE_LINK                         = 0x10
970
 	NOTE_LOWAT                        = 0x1
1112
 	NOTE_LOWAT                        = 0x1
1113
+	NOTE_OOB                          = 0x4
971
 	NOTE_PCTRLMASK                    = 0xf0000000
1114
 	NOTE_PCTRLMASK                    = 0xf0000000
972
 	NOTE_PDATAMASK                    = 0xfffff
1115
 	NOTE_PDATAMASK                    = 0xfffff
973
 	NOTE_RENAME                       = 0x20
1116
 	NOTE_RENAME                       = 0x20
977
 	NOTE_TRUNCATE                     = 0x80
1120
 	NOTE_TRUNCATE                     = 0x80
978
 	NOTE_WRITE                        = 0x2
1121
 	NOTE_WRITE                        = 0x2
979
 	OCRNL                             = 0x10
1122
 	OCRNL                             = 0x10
1123
+	OLCUC                             = 0x20
980
 	ONLCR                             = 0x2
1124
 	ONLCR                             = 0x2
981
 	ONLRET                            = 0x80
1125
 	ONLRET                            = 0x80
982
 	ONOCR                             = 0x40
1126
 	ONOCR                             = 0x40
983
 	ONOEOT                            = 0x8
1127
 	ONOEOT                            = 0x8
984
 	OPOST                             = 0x1
1128
 	OPOST                             = 0x1
1129
+	OXTABS                            = 0x4
985
 	O_ACCMODE                         = 0x3
1130
 	O_ACCMODE                         = 0x3
986
 	O_APPEND                          = 0x8
1131
 	O_APPEND                          = 0x8
987
 	O_ASYNC                           = 0x40
1132
 	O_ASYNC                           = 0x40
1015
 	PROT_NONE                         = 0x0
1160
 	PROT_NONE                         = 0x0
1016
 	PROT_READ                         = 0x1
1161
 	PROT_READ                         = 0x1
1017
 	PROT_WRITE                        = 0x2
1162
 	PROT_WRITE                        = 0x2
1018
-	PT_MASK                           = 0x3ff000
1019
 	RLIMIT_CORE                       = 0x4
1163
 	RLIMIT_CORE                       = 0x4
1020
 	RLIMIT_CPU                        = 0x0
1164
 	RLIMIT_CPU                        = 0x0
1021
 	RLIMIT_DATA                       = 0x2
1165
 	RLIMIT_DATA                       = 0x2
1027
 	RLIMIT_STACK                      = 0x3
1171
 	RLIMIT_STACK                      = 0x3
1028
 	RLIM_INFINITY                     = 0x7fffffffffffffff
1172
 	RLIM_INFINITY                     = 0x7fffffffffffffff
1029
 	RTAX_AUTHOR                       = 0x6
1173
 	RTAX_AUTHOR                       = 0x6
1174
+	RTAX_BFD                          = 0xb
1030
 	RTAX_BRD                          = 0x7
1175
 	RTAX_BRD                          = 0x7
1176
+	RTAX_DNS                          = 0xc
1031
 	RTAX_DST                          = 0x0
1177
 	RTAX_DST                          = 0x0
1032
 	RTAX_GATEWAY                      = 0x1
1178
 	RTAX_GATEWAY                      = 0x1
1033
 	RTAX_GENMASK                      = 0x3
1179
 	RTAX_GENMASK                      = 0x3
1034
 	RTAX_IFA                          = 0x5
1180
 	RTAX_IFA                          = 0x5
1035
 	RTAX_IFP                          = 0x4
1181
 	RTAX_IFP                          = 0x4
1036
 	RTAX_LABEL                        = 0xa
1182
 	RTAX_LABEL                        = 0xa
1037
-	RTAX_MAX                          = 0xb
1183
+	RTAX_MAX                          = 0xf
1038
 	RTAX_NETMASK                      = 0x2
1184
 	RTAX_NETMASK                      = 0x2
1185
+	RTAX_SEARCH                       = 0xe
1039
 	RTAX_SRC                          = 0x8
1186
 	RTAX_SRC                          = 0x8
1040
 	RTAX_SRCMASK                      = 0x9
1187
 	RTAX_SRCMASK                      = 0x9
1188
+	RTAX_STATIC                       = 0xd
1041
 	RTA_AUTHOR                        = 0x40
1189
 	RTA_AUTHOR                        = 0x40
1190
+	RTA_BFD                           = 0x800
1042
 	RTA_BRD                           = 0x80
1191
 	RTA_BRD                           = 0x80
1192
+	RTA_DNS                           = 0x1000
1043
 	RTA_DST                           = 0x1
1193
 	RTA_DST                           = 0x1
1044
 	RTA_GATEWAY                       = 0x2
1194
 	RTA_GATEWAY                       = 0x2
1045
 	RTA_GENMASK                       = 0x8
1195
 	RTA_GENMASK                       = 0x8
1047
 	RTA_IFP                           = 0x10
1197
 	RTA_IFP                           = 0x10
1048
 	RTA_LABEL                         = 0x400
1198
 	RTA_LABEL                         = 0x400
1049
 	RTA_NETMASK                       = 0x4
1199
 	RTA_NETMASK                       = 0x4
1200
+	RTA_SEARCH                        = 0x4000
1050
 	RTA_SRC                           = 0x100
1201
 	RTA_SRC                           = 0x100
1051
 	RTA_SRCMASK                       = 0x200
1202
 	RTA_SRCMASK                       = 0x200
1203
+	RTA_STATIC                        = 0x2000
1052
 	RTF_ANNOUNCE                      = 0x4000
1204
 	RTF_ANNOUNCE                      = 0x4000
1205
+	RTF_BFD                           = 0x1000000
1053
 	RTF_BLACKHOLE                     = 0x1000
1206
 	RTF_BLACKHOLE                     = 0x1000
1207
+	RTF_BROADCAST                     = 0x400000
1208
+	RTF_CACHED                        = 0x20000
1054
 	RTF_CLONED                        = 0x10000
1209
 	RTF_CLONED                        = 0x10000
1055
 	RTF_CLONING                       = 0x100
1210
 	RTF_CLONING                       = 0x100
1211
+	RTF_CONNECTED                     = 0x800000
1056
 	RTF_DONE                          = 0x40
1212
 	RTF_DONE                          = 0x40
1057
 	RTF_DYNAMIC                       = 0x10
1213
 	RTF_DYNAMIC                       = 0x10
1058
-	RTF_FMASK                         = 0x10f808
1214
+	RTF_FMASK                         = 0x110fc08
1059
 	RTF_GATEWAY                       = 0x2
1215
 	RTF_GATEWAY                       = 0x2
1060
 	RTF_HOST                          = 0x4
1216
 	RTF_HOST                          = 0x4
1061
 	RTF_LLINFO                        = 0x400
1217
 	RTF_LLINFO                        = 0x400
1062
-	RTF_MASK                          = 0x80
1218
+	RTF_LOCAL                         = 0x200000
1063
 	RTF_MODIFIED                      = 0x20
1219
 	RTF_MODIFIED                      = 0x20
1064
 	RTF_MPATH                         = 0x40000
1220
 	RTF_MPATH                         = 0x40000
1065
 	RTF_MPLS                          = 0x100000
1221
 	RTF_MPLS                          = 0x100000
1222
+	RTF_MULTICAST                     = 0x200
1066
 	RTF_PERMANENT_ARP                 = 0x2000
1223
 	RTF_PERMANENT_ARP                 = 0x2000
1067
 	RTF_PROTO1                        = 0x8000
1224
 	RTF_PROTO1                        = 0x8000
1068
 	RTF_PROTO2                        = 0x4000
1225
 	RTF_PROTO2                        = 0x4000
1069
 	RTF_PROTO3                        = 0x2000
1226
 	RTF_PROTO3                        = 0x2000
1070
 	RTF_REJECT                        = 0x8
1227
 	RTF_REJECT                        = 0x8
1071
-	RTF_SOURCE                        = 0x20000
1072
 	RTF_STATIC                        = 0x800
1228
 	RTF_STATIC                        = 0x800
1073
-	RTF_TUNNEL                        = 0x100000
1074
 	RTF_UP                            = 0x1
1229
 	RTF_UP                            = 0x1
1075
 	RTF_USETRAILERS                   = 0x8000
1230
 	RTF_USETRAILERS                   = 0x8000
1076
-	RTF_XRESOLVE                      = 0x200
1231
+	RTM_80211INFO                     = 0x15
1077
 	RTM_ADD                           = 0x1
1232
 	RTM_ADD                           = 0x1
1233
+	RTM_BFD                           = 0x12
1078
 	RTM_CHANGE                        = 0x3
1234
 	RTM_CHANGE                        = 0x3
1235
+	RTM_CHGADDRATTR                   = 0x14
1079
 	RTM_DELADDR                       = 0xd
1236
 	RTM_DELADDR                       = 0xd
1080
 	RTM_DELETE                        = 0x2
1237
 	RTM_DELETE                        = 0x2
1081
 	RTM_DESYNC                        = 0x10
1238
 	RTM_DESYNC                        = 0x10
1082
 	RTM_GET                           = 0x4
1239
 	RTM_GET                           = 0x4
1083
 	RTM_IFANNOUNCE                    = 0xf
1240
 	RTM_IFANNOUNCE                    = 0xf
1084
 	RTM_IFINFO                        = 0xe
1241
 	RTM_IFINFO                        = 0xe
1085
-	RTM_LOCK                          = 0x8
1242
+	RTM_INVALIDATE                    = 0x11
1086
 	RTM_LOSING                        = 0x5
1243
 	RTM_LOSING                        = 0x5
1087
 	RTM_MAXSIZE                       = 0x800
1244
 	RTM_MAXSIZE                       = 0x800
1088
 	RTM_MISS                          = 0x7
1245
 	RTM_MISS                          = 0x7
1089
 	RTM_NEWADDR                       = 0xc
1246
 	RTM_NEWADDR                       = 0xc
1247
+	RTM_PROPOSAL                      = 0x13
1090
 	RTM_REDIRECT                      = 0x6
1248
 	RTM_REDIRECT                      = 0x6
1091
 	RTM_RESOLVE                       = 0xb
1249
 	RTM_RESOLVE                       = 0xb
1092
-	RTM_RTTUNIT                       = 0xf4240
1250
+	RTM_SOURCE                        = 0x16
1093
 	RTM_VERSION                       = 0x5
1251
 	RTM_VERSION                       = 0x5
1094
 	RTV_EXPIRE                        = 0x4
1252
 	RTV_EXPIRE                        = 0x4
1095
 	RTV_HOPCOUNT                      = 0x2
1253
 	RTV_HOPCOUNT                      = 0x2
1099
 	RTV_RTTVAR                        = 0x80
1257
 	RTV_RTTVAR                        = 0x80
1100
 	RTV_SPIPE                         = 0x10
1258
 	RTV_SPIPE                         = 0x10
1101
 	RTV_SSTHRESH                      = 0x20
1259
 	RTV_SSTHRESH                      = 0x20
1260
+	RT_TABLEID_BITS                   = 0x8
1261
+	RT_TABLEID_MASK                   = 0xff
1102
 	RT_TABLEID_MAX                    = 0xff
1262
 	RT_TABLEID_MAX                    = 0xff
1103
 	RUSAGE_CHILDREN                   = -0x1
1263
 	RUSAGE_CHILDREN                   = -0x1
1104
 	RUSAGE_SELF                       = 0x0
1264
 	RUSAGE_SELF                       = 0x0
1105
 	RUSAGE_THREAD                     = 0x1
1265
 	RUSAGE_THREAD                     = 0x1
1106
 	SCM_RIGHTS                        = 0x1
1266
 	SCM_RIGHTS                        = 0x1
1107
 	SCM_TIMESTAMP                     = 0x4
1267
 	SCM_TIMESTAMP                     = 0x4
1268
+	SEEK_CUR                          = 0x1
1269
+	SEEK_END                          = 0x2
1270
+	SEEK_SET                          = 0x0
1108
 	SHUT_RD                           = 0x0
1271
 	SHUT_RD                           = 0x0
1109
 	SHUT_RDWR                         = 0x2
1272
 	SHUT_RDWR                         = 0x2
1110
 	SHUT_WR                           = 0x1
1273
 	SHUT_WR                           = 0x1
1111
 	SIOCADDMULTI                      = 0x80206931
1274
 	SIOCADDMULTI                      = 0x80206931
1112
 	SIOCAIFADDR                       = 0x8040691a
1275
 	SIOCAIFADDR                       = 0x8040691a
1113
 	SIOCAIFGROUP                      = 0x80246987
1276
 	SIOCAIFGROUP                      = 0x80246987
1114
-	SIOCALIFADDR                      = 0x8218691c
1115
 	SIOCATMARK                        = 0x40047307
1277
 	SIOCATMARK                        = 0x40047307
1116
-	SIOCBRDGADD                       = 0x8054693c
1117
-	SIOCBRDGADDS                      = 0x80546941
1118
-	SIOCBRDGARL                       = 0x806e694d
1278
+	SIOCBRDGADD                       = 0x805c693c
1279
+	SIOCBRDGADDL                      = 0x805c6949
1280
+	SIOCBRDGADDS                      = 0x805c6941
1281
+	SIOCBRDGARL                       = 0x808c694d
1119
 	SIOCBRDGDADDR                     = 0x81286947
1282
 	SIOCBRDGDADDR                     = 0x81286947
1120
-	SIOCBRDGDEL                       = 0x8054693d
1121
-	SIOCBRDGDELS                      = 0x80546942
1122
-	SIOCBRDGFLUSH                     = 0x80546948
1123
-	SIOCBRDGFRL                       = 0x806e694e
1283
+	SIOCBRDGDEL                       = 0x805c693d
1284
+	SIOCBRDGDELS                      = 0x805c6942
1285
+	SIOCBRDGFLUSH                     = 0x805c6948
1286
+	SIOCBRDGFRL                       = 0x808c694e
1124
 	SIOCBRDGGCACHE                    = 0xc0146941
1287
 	SIOCBRDGGCACHE                    = 0xc0146941
1125
 	SIOCBRDGGFD                       = 0xc0146952
1288
 	SIOCBRDGGFD                       = 0xc0146952
1126
 	SIOCBRDGGHT                       = 0xc0146951
1289
 	SIOCBRDGGHT                       = 0xc0146951
1127
-	SIOCBRDGGIFFLGS                   = 0xc054693e
1290
+	SIOCBRDGGIFFLGS                   = 0xc05c693e
1128
 	SIOCBRDGGMA                       = 0xc0146953
1291
 	SIOCBRDGGMA                       = 0xc0146953
1129
 	SIOCBRDGGPARAM                    = 0xc03c6958
1292
 	SIOCBRDGGPARAM                    = 0xc03c6958
1130
 	SIOCBRDGGPRI                      = 0xc0146950
1293
 	SIOCBRDGGPRI                      = 0xc0146950
1131
 	SIOCBRDGGRL                       = 0xc028694f
1294
 	SIOCBRDGGRL                       = 0xc028694f
1132
-	SIOCBRDGGSIFS                     = 0xc054693c
1133
 	SIOCBRDGGTO                       = 0xc0146946
1295
 	SIOCBRDGGTO                       = 0xc0146946
1134
-	SIOCBRDGIFS                       = 0xc0546942
1296
+	SIOCBRDGIFS                       = 0xc05c6942
1135
 	SIOCBRDGRTS                       = 0xc0186943
1297
 	SIOCBRDGRTS                       = 0xc0186943
1136
 	SIOCBRDGSADDR                     = 0xc1286944
1298
 	SIOCBRDGSADDR                     = 0xc1286944
1137
 	SIOCBRDGSCACHE                    = 0x80146940
1299
 	SIOCBRDGSCACHE                    = 0x80146940
1138
 	SIOCBRDGSFD                       = 0x80146952
1300
 	SIOCBRDGSFD                       = 0x80146952
1139
 	SIOCBRDGSHT                       = 0x80146951
1301
 	SIOCBRDGSHT                       = 0x80146951
1140
-	SIOCBRDGSIFCOST                   = 0x80546955
1141
-	SIOCBRDGSIFFLGS                   = 0x8054693f
1142
-	SIOCBRDGSIFPRIO                   = 0x80546954
1302
+	SIOCBRDGSIFCOST                   = 0x805c6955
1303
+	SIOCBRDGSIFFLGS                   = 0x805c693f
1304
+	SIOCBRDGSIFPRIO                   = 0x805c6954
1305
+	SIOCBRDGSIFPROT                   = 0x805c694a
1143
 	SIOCBRDGSMA                       = 0x80146953
1306
 	SIOCBRDGSMA                       = 0x80146953
1144
 	SIOCBRDGSPRI                      = 0x80146950
1307
 	SIOCBRDGSPRI                      = 0x80146950
1145
 	SIOCBRDGSPROTO                    = 0x8014695a
1308
 	SIOCBRDGSPROTO                    = 0x8014695a
1146
 	SIOCBRDGSTO                       = 0x80146945
1309
 	SIOCBRDGSTO                       = 0x80146945
1147
 	SIOCBRDGSTXHC                     = 0x80146959
1310
 	SIOCBRDGSTXHC                     = 0x80146959
1311
+	SIOCDELLABEL                      = 0x80206997
1148
 	SIOCDELMULTI                      = 0x80206932
1312
 	SIOCDELMULTI                      = 0x80206932
1149
 	SIOCDIFADDR                       = 0x80206919
1313
 	SIOCDIFADDR                       = 0x80206919
1150
 	SIOCDIFGROUP                      = 0x80246989
1314
 	SIOCDIFGROUP                      = 0x80246989
1315
+	SIOCDIFPARENT                     = 0x802069b4
1151
 	SIOCDIFPHYADDR                    = 0x80206949
1316
 	SIOCDIFPHYADDR                    = 0x80206949
1152
-	SIOCDLIFADDR                      = 0x8218691e
1317
+	SIOCDPWE3NEIGHBOR                 = 0x802069de
1318
+	SIOCDVNETID                       = 0x802069af
1153
 	SIOCGETKALIVE                     = 0xc01869a4
1319
 	SIOCGETKALIVE                     = 0xc01869a4
1154
 	SIOCGETLABEL                      = 0x8020699a
1320
 	SIOCGETLABEL                      = 0x8020699a
1321
+	SIOCGETMPWCFG                     = 0xc02069ae
1155
 	SIOCGETPFLOW                      = 0xc02069fe
1322
 	SIOCGETPFLOW                      = 0xc02069fe
1156
 	SIOCGETPFSYNC                     = 0xc02069f8
1323
 	SIOCGETPFSYNC                     = 0xc02069f8
1157
 	SIOCGETSGCNT                      = 0xc0147534
1324
 	SIOCGETSGCNT                      = 0xc0147534
1158
 	SIOCGETVIFCNT                     = 0xc0147533
1325
 	SIOCGETVIFCNT                     = 0xc0147533
1159
 	SIOCGETVLAN                       = 0xc0206990
1326
 	SIOCGETVLAN                       = 0xc0206990
1160
-	SIOCGHIWAT                        = 0x40047301
1161
 	SIOCGIFADDR                       = 0xc0206921
1327
 	SIOCGIFADDR                       = 0xc0206921
1162
-	SIOCGIFASYNCMAP                   = 0xc020697c
1163
 	SIOCGIFBRDADDR                    = 0xc0206923
1328
 	SIOCGIFBRDADDR                    = 0xc0206923
1164
 	SIOCGIFCONF                       = 0xc0086924
1329
 	SIOCGIFCONF                       = 0xc0086924
1165
 	SIOCGIFDATA                       = 0xc020691b
1330
 	SIOCGIFDATA                       = 0xc020691b
1168
 	SIOCGIFFLAGS                      = 0xc0206911
1333
 	SIOCGIFFLAGS                      = 0xc0206911
1169
 	SIOCGIFGATTR                      = 0xc024698b
1334
 	SIOCGIFGATTR                      = 0xc024698b
1170
 	SIOCGIFGENERIC                    = 0xc020693a
1335
 	SIOCGIFGENERIC                    = 0xc020693a
1336
+	SIOCGIFGLIST                      = 0xc024698d
1171
 	SIOCGIFGMEMB                      = 0xc024698a
1337
 	SIOCGIFGMEMB                      = 0xc024698a
1172
 	SIOCGIFGROUP                      = 0xc0246988
1338
 	SIOCGIFGROUP                      = 0xc0246988
1173
 	SIOCGIFHARDMTU                    = 0xc02069a5
1339
 	SIOCGIFHARDMTU                    = 0xc02069a5
1174
-	SIOCGIFMEDIA                      = 0xc0286936
1340
+	SIOCGIFLLPRIO                     = 0xc02069b6
1341
+	SIOCGIFMEDIA                      = 0xc0386938
1175
 	SIOCGIFMETRIC                     = 0xc0206917
1342
 	SIOCGIFMETRIC                     = 0xc0206917
1176
 	SIOCGIFMTU                        = 0xc020697e
1343
 	SIOCGIFMTU                        = 0xc020697e
1177
 	SIOCGIFNETMASK                    = 0xc0206925
1344
 	SIOCGIFNETMASK                    = 0xc0206925
1178
-	SIOCGIFPDSTADDR                   = 0xc0206948
1345
+	SIOCGIFPAIR                       = 0xc02069b1
1346
+	SIOCGIFPARENT                     = 0xc02069b3
1179
 	SIOCGIFPRIORITY                   = 0xc020699c
1347
 	SIOCGIFPRIORITY                   = 0xc020699c
1180
-	SIOCGIFPSRCADDR                   = 0xc0206947
1181
 	SIOCGIFRDOMAIN                    = 0xc02069a0
1348
 	SIOCGIFRDOMAIN                    = 0xc02069a0
1182
 	SIOCGIFRTLABEL                    = 0xc0206983
1349
 	SIOCGIFRTLABEL                    = 0xc0206983
1183
-	SIOCGIFTIMESLOT                   = 0xc0206986
1350
+	SIOCGIFRXR                        = 0x802069aa
1351
+	SIOCGIFSFFPAGE                    = 0xc1126939
1184
 	SIOCGIFXFLAGS                     = 0xc020699e
1352
 	SIOCGIFXFLAGS                     = 0xc020699e
1185
-	SIOCGLIFADDR                      = 0xc218691d
1186
 	SIOCGLIFPHYADDR                   = 0xc218694b
1353
 	SIOCGLIFPHYADDR                   = 0xc218694b
1354
+	SIOCGLIFPHYDF                     = 0xc02069c2
1355
+	SIOCGLIFPHYECN                    = 0xc02069c8
1187
 	SIOCGLIFPHYRTABLE                 = 0xc02069a2
1356
 	SIOCGLIFPHYRTABLE                 = 0xc02069a2
1188
 	SIOCGLIFPHYTTL                    = 0xc02069a9
1357
 	SIOCGLIFPHYTTL                    = 0xc02069a9
1189
-	SIOCGLOWAT                        = 0x40047303
1190
 	SIOCGPGRP                         = 0x40047309
1358
 	SIOCGPGRP                         = 0x40047309
1359
+	SIOCGPWE3                         = 0xc0206998
1360
+	SIOCGPWE3CTRLWORD                 = 0xc02069dc
1361
+	SIOCGPWE3FAT                      = 0xc02069dd
1362
+	SIOCGPWE3NEIGHBOR                 = 0xc21869de
1363
+	SIOCGRXHPRIO                      = 0xc02069db
1191
 	SIOCGSPPPPARAMS                   = 0xc0206994
1364
 	SIOCGSPPPPARAMS                   = 0xc0206994
1365
+	SIOCGTXHPRIO                      = 0xc02069c6
1366
+	SIOCGUMBINFO                      = 0xc02069be
1367
+	SIOCGUMBPARAM                     = 0xc02069c0
1192
 	SIOCGVH                           = 0xc02069f6
1368
 	SIOCGVH                           = 0xc02069f6
1369
+	SIOCGVNETFLOWID                   = 0xc02069c4
1193
 	SIOCGVNETID                       = 0xc02069a7
1370
 	SIOCGVNETID                       = 0xc02069a7
1371
+	SIOCIFAFATTACH                    = 0x801169ab
1372
+	SIOCIFAFDETACH                    = 0x801169ac
1194
 	SIOCIFCREATE                      = 0x8020697a
1373
 	SIOCIFCREATE                      = 0x8020697a
1195
 	SIOCIFDESTROY                     = 0x80206979
1374
 	SIOCIFDESTROY                     = 0x80206979
1196
 	SIOCIFGCLONERS                    = 0xc00c6978
1375
 	SIOCIFGCLONERS                    = 0xc00c6978
1197
 	SIOCSETKALIVE                     = 0x801869a3
1376
 	SIOCSETKALIVE                     = 0x801869a3
1198
 	SIOCSETLABEL                      = 0x80206999
1377
 	SIOCSETLABEL                      = 0x80206999
1378
+	SIOCSETMPWCFG                     = 0x802069ad
1199
 	SIOCSETPFLOW                      = 0x802069fd
1379
 	SIOCSETPFLOW                      = 0x802069fd
1200
 	SIOCSETPFSYNC                     = 0x802069f7
1380
 	SIOCSETPFSYNC                     = 0x802069f7
1201
 	SIOCSETVLAN                       = 0x8020698f
1381
 	SIOCSETVLAN                       = 0x8020698f
1202
-	SIOCSHIWAT                        = 0x80047300
1203
 	SIOCSIFADDR                       = 0x8020690c
1382
 	SIOCSIFADDR                       = 0x8020690c
1204
-	SIOCSIFASYNCMAP                   = 0x8020697d
1205
 	SIOCSIFBRDADDR                    = 0x80206913
1383
 	SIOCSIFBRDADDR                    = 0x80206913
1206
 	SIOCSIFDESCR                      = 0x80206980
1384
 	SIOCSIFDESCR                      = 0x80206980
1207
 	SIOCSIFDSTADDR                    = 0x8020690e
1385
 	SIOCSIFDSTADDR                    = 0x8020690e
1209
 	SIOCSIFGATTR                      = 0x8024698c
1387
 	SIOCSIFGATTR                      = 0x8024698c
1210
 	SIOCSIFGENERIC                    = 0x80206939
1388
 	SIOCSIFGENERIC                    = 0x80206939
1211
 	SIOCSIFLLADDR                     = 0x8020691f
1389
 	SIOCSIFLLADDR                     = 0x8020691f
1212
-	SIOCSIFMEDIA                      = 0xc0206935
1390
+	SIOCSIFLLPRIO                     = 0x802069b5
1391
+	SIOCSIFMEDIA                      = 0xc0206937
1213
 	SIOCSIFMETRIC                     = 0x80206918
1392
 	SIOCSIFMETRIC                     = 0x80206918
1214
 	SIOCSIFMTU                        = 0x8020697f
1393
 	SIOCSIFMTU                        = 0x8020697f
1215
 	SIOCSIFNETMASK                    = 0x80206916
1394
 	SIOCSIFNETMASK                    = 0x80206916
1216
-	SIOCSIFPHYADDR                    = 0x80406946
1395
+	SIOCSIFPAIR                       = 0x802069b0
1396
+	SIOCSIFPARENT                     = 0x802069b2
1217
 	SIOCSIFPRIORITY                   = 0x8020699b
1397
 	SIOCSIFPRIORITY                   = 0x8020699b
1218
 	SIOCSIFRDOMAIN                    = 0x8020699f
1398
 	SIOCSIFRDOMAIN                    = 0x8020699f
1219
 	SIOCSIFRTLABEL                    = 0x80206982
1399
 	SIOCSIFRTLABEL                    = 0x80206982
1220
-	SIOCSIFTIMESLOT                   = 0x80206985
1221
 	SIOCSIFXFLAGS                     = 0x8020699d
1400
 	SIOCSIFXFLAGS                     = 0x8020699d
1222
 	SIOCSLIFPHYADDR                   = 0x8218694a
1401
 	SIOCSLIFPHYADDR                   = 0x8218694a
1402
+	SIOCSLIFPHYDF                     = 0x802069c1
1403
+	SIOCSLIFPHYECN                    = 0x802069c7
1223
 	SIOCSLIFPHYRTABLE                 = 0x802069a1
1404
 	SIOCSLIFPHYRTABLE                 = 0x802069a1
1224
 	SIOCSLIFPHYTTL                    = 0x802069a8
1405
 	SIOCSLIFPHYTTL                    = 0x802069a8
1225
-	SIOCSLOWAT                        = 0x80047302
1226
 	SIOCSPGRP                         = 0x80047308
1406
 	SIOCSPGRP                         = 0x80047308
1407
+	SIOCSPWE3CTRLWORD                 = 0x802069dc
1408
+	SIOCSPWE3FAT                      = 0x802069dd
1409
+	SIOCSPWE3NEIGHBOR                 = 0x821869de
1410
+	SIOCSRXHPRIO                      = 0x802069db
1227
 	SIOCSSPPPPARAMS                   = 0x80206993
1411
 	SIOCSSPPPPARAMS                   = 0x80206993
1412
+	SIOCSTXHPRIO                      = 0x802069c5
1413
+	SIOCSUMBPARAM                     = 0x802069bf
1228
 	SIOCSVH                           = 0xc02069f5
1414
 	SIOCSVH                           = 0xc02069f5
1415
+	SIOCSVNETFLOWID                   = 0x802069c3
1229
 	SIOCSVNETID                       = 0x802069a6
1416
 	SIOCSVNETID                       = 0x802069a6
1417
+	SOCK_CLOEXEC                      = 0x8000
1230
 	SOCK_DGRAM                        = 0x2
1418
 	SOCK_DGRAM                        = 0x2
1419
+	SOCK_DNS                          = 0x1000
1420
+	SOCK_NONBLOCK                     = 0x4000
1231
 	SOCK_RAW                          = 0x3
1421
 	SOCK_RAW                          = 0x3
1232
 	SOCK_RDM                          = 0x4
1422
 	SOCK_RDM                          = 0x4
1233
 	SOCK_SEQPACKET                    = 0x5
1423
 	SOCK_SEQPACKET                    = 0x5
1238
 	SO_BINDANY                        = 0x1000
1428
 	SO_BINDANY                        = 0x1000
1239
 	SO_BROADCAST                      = 0x20
1429
 	SO_BROADCAST                      = 0x20
1240
 	SO_DEBUG                          = 0x1
1430
 	SO_DEBUG                          = 0x1
1431
+	SO_DOMAIN                         = 0x1024
1241
 	SO_DONTROUTE                      = 0x10
1432
 	SO_DONTROUTE                      = 0x10
1242
 	SO_ERROR                          = 0x1007
1433
 	SO_ERROR                          = 0x1007
1243
 	SO_KEEPALIVE                      = 0x8
1434
 	SO_KEEPALIVE                      = 0x8
1245
 	SO_NETPROC                        = 0x1020
1436
 	SO_NETPROC                        = 0x1020
1246
 	SO_OOBINLINE                      = 0x100
1437
 	SO_OOBINLINE                      = 0x100
1247
 	SO_PEERCRED                       = 0x1022
1438
 	SO_PEERCRED                       = 0x1022
1439
+	SO_PROTOCOL                       = 0x1025
1248
 	SO_RCVBUF                         = 0x1002
1440
 	SO_RCVBUF                         = 0x1002
1249
 	SO_RCVLOWAT                       = 0x1004
1441
 	SO_RCVLOWAT                       = 0x1004
1250
 	SO_RCVTIMEO                       = 0x1006
1442
 	SO_RCVTIMEO                       = 0x1006
1258
 	SO_TIMESTAMP                      = 0x800
1450
 	SO_TIMESTAMP                      = 0x800
1259
 	SO_TYPE                           = 0x1008
1451
 	SO_TYPE                           = 0x1008
1260
 	SO_USELOOPBACK                    = 0x40
1452
 	SO_USELOOPBACK                    = 0x40
1453
+	SO_ZEROIZE                        = 0x2000
1261
 	S_BLKSIZE                         = 0x200
1454
 	S_BLKSIZE                         = 0x200
1262
 	S_IEXEC                           = 0x40
1455
 	S_IEXEC                           = 0x40
1263
 	S_IFBLK                           = 0x6000
1456
 	S_IFBLK                           = 0x6000
1287
 	S_IXOTH                           = 0x1
1480
 	S_IXOTH                           = 0x1
1288
 	S_IXUSR                           = 0x40
1481
 	S_IXUSR                           = 0x40
1289
 	TCIFLUSH                          = 0x1
1482
 	TCIFLUSH                          = 0x1
1483
+	TCIOFF                            = 0x3
1290
 	TCIOFLUSH                         = 0x3
1484
 	TCIOFLUSH                         = 0x3
1485
+	TCION                             = 0x4
1291
 	TCOFLUSH                          = 0x2
1486
 	TCOFLUSH                          = 0x2
1292
-	TCP_MAXBURST                      = 0x4
1487
+	TCOOFF                            = 0x1
1488
+	TCOON                             = 0x2
1489
+	TCPOPT_EOL                        = 0x0
1490
+	TCPOPT_MAXSEG                     = 0x2
1491
+	TCPOPT_NOP                        = 0x1
1492
+	TCPOPT_SACK                       = 0x5
1493
+	TCPOPT_SACK_HDR                   = 0x1010500
1494
+	TCPOPT_SACK_PERMITTED             = 0x4
1495
+	TCPOPT_SACK_PERMIT_HDR            = 0x1010402
1496
+	TCPOPT_SIGNATURE                  = 0x13
1497
+	TCPOPT_TIMESTAMP                  = 0x8
1498
+	TCPOPT_TSTAMP_HDR                 = 0x101080a
1499
+	TCPOPT_WINDOW                     = 0x3
1500
+	TCP_INFO                          = 0x9
1293
 	TCP_MAXSEG                        = 0x2
1501
 	TCP_MAXSEG                        = 0x2
1294
 	TCP_MAXWIN                        = 0xffff
1502
 	TCP_MAXWIN                        = 0xffff
1295
 	TCP_MAX_SACK                      = 0x3
1503
 	TCP_MAX_SACK                      = 0x3
1298
 	TCP_MSS                           = 0x200
1506
 	TCP_MSS                           = 0x200
1299
 	TCP_NODELAY                       = 0x1
1507
 	TCP_NODELAY                       = 0x1
1300
 	TCP_NOPUSH                        = 0x10
1508
 	TCP_NOPUSH                        = 0x10
1301
-	TCP_NSTATES                       = 0xb
1509
+	TCP_SACKHOLE_LIMIT                = 0x80
1302
 	TCP_SACK_ENABLE                   = 0x8
1510
 	TCP_SACK_ENABLE                   = 0x8
1303
 	TCSAFLUSH                         = 0x2
1511
 	TCSAFLUSH                         = 0x2
1512
+	TIMER_ABSTIME                     = 0x1
1513
+	TIMER_RELTIME                     = 0x0
1304
 	TIOCCBRK                          = 0x2000747a
1514
 	TIOCCBRK                          = 0x2000747a
1305
 	TIOCCDTR                          = 0x20007478
1515
 	TIOCCDTR                          = 0x20007478
1516
+	TIOCCHKVERAUTH                    = 0x2000741e
1517
+	TIOCCLRVERAUTH                    = 0x2000741d
1306
 	TIOCCONS                          = 0x80047462
1518
 	TIOCCONS                          = 0x80047462
1307
 	TIOCDRAIN                         = 0x2000745e
1519
 	TIOCDRAIN                         = 0x2000745e
1308
 	TIOCEXCL                          = 0x2000740d
1520
 	TIOCEXCL                          = 0x2000740d
1357
 	TIOCSETAF                         = 0x802c7416
1569
 	TIOCSETAF                         = 0x802c7416
1358
 	TIOCSETAW                         = 0x802c7415
1570
 	TIOCSETAW                         = 0x802c7415
1359
 	TIOCSETD                          = 0x8004741b
1571
 	TIOCSETD                          = 0x8004741b
1572
+	TIOCSETVERAUTH                    = 0x8004741c
1360
 	TIOCSFLAGS                        = 0x8004745c
1573
 	TIOCSFLAGS                        = 0x8004745c
1361
 	TIOCSIG                           = 0x8004745f
1574
 	TIOCSIG                           = 0x8004745f
1362
 	TIOCSPGRP                         = 0x80047476
1575
 	TIOCSPGRP                         = 0x80047476
1363
 	TIOCSTART                         = 0x2000746e
1576
 	TIOCSTART                         = 0x2000746e
1364
-	TIOCSTAT                          = 0x80047465
1365
-	TIOCSTI                           = 0x80017472
1577
+	TIOCSTAT                          = 0x20007465
1366
 	TIOCSTOP                          = 0x2000746f
1578
 	TIOCSTOP                          = 0x2000746f
1367
 	TIOCSTSTAMP                       = 0x8008745a
1579
 	TIOCSTSTAMP                       = 0x8008745a
1368
 	TIOCSWINSZ                        = 0x80087467
1580
 	TIOCSWINSZ                        = 0x80087467
1369
 	TIOCUCNTL                         = 0x80047466
1581
 	TIOCUCNTL                         = 0x80047466
1582
+	TIOCUCNTL_CBRK                    = 0x7a
1583
+	TIOCUCNTL_SBRK                    = 0x7b
1370
 	TOSTOP                            = 0x400000
1584
 	TOSTOP                            = 0x400000
1585
+	UTIME_NOW                         = -0x2
1586
+	UTIME_OMIT                        = -0x1
1371
 	VDISCARD                          = 0xf
1587
 	VDISCARD                          = 0xf
1372
 	VDSUSP                            = 0xb
1588
 	VDSUSP                            = 0xb
1373
 	VEOF                              = 0x0
1589
 	VEOF                              = 0x0
1378
 	VKILL                             = 0x5
1594
 	VKILL                             = 0x5
1379
 	VLNEXT                            = 0xe
1595
 	VLNEXT                            = 0xe
1380
 	VMIN                              = 0x10
1596
 	VMIN                              = 0x10
1597
+	VM_ANONMIN                        = 0x7
1598
+	VM_LOADAVG                        = 0x2
1599
+	VM_MALLOC_CONF                    = 0xc
1600
+	VM_MAXID                          = 0xd
1601
+	VM_MAXSLP                         = 0xa
1602
+	VM_METER                          = 0x1
1603
+	VM_NKMEMPAGES                     = 0x6
1604
+	VM_PSSTRINGS                      = 0x3
1605
+	VM_SWAPENCRYPT                    = 0x5
1606
+	VM_USPACE                         = 0xb
1607
+	VM_UVMEXP                         = 0x4
1608
+	VM_VNODEMIN                       = 0x9
1609
+	VM_VTEXTMIN                       = 0x8
1381
 	VQUIT                             = 0x9
1610
 	VQUIT                             = 0x9
1382
 	VREPRINT                          = 0x6
1611
 	VREPRINT                          = 0x6
1383
 	VSTART                            = 0xc
1612
 	VSTART                            = 0xc
1390
 	WCONTINUED                        = 0x8
1619
 	WCONTINUED                        = 0x8
1391
 	WCOREFLAG                         = 0x80
1620
 	WCOREFLAG                         = 0x80
1392
 	WNOHANG                           = 0x1
1621
 	WNOHANG                           = 0x1
1393
-	WSTOPPED                          = 0x7f
1394
 	WUNTRACED                         = 0x2
1622
 	WUNTRACED                         = 0x2
1623
+	XCASE                             = 0x1000000
1395
 )
1624
 )
1396
 
1625
 
1397
 // Errors
1626
 // Errors
1405
 	EALREADY        = syscall.Errno(0x25)
1634
 	EALREADY        = syscall.Errno(0x25)
1406
 	EAUTH           = syscall.Errno(0x50)
1635
 	EAUTH           = syscall.Errno(0x50)
1407
 	EBADF           = syscall.Errno(0x9)
1636
 	EBADF           = syscall.Errno(0x9)
1637
+	EBADMSG         = syscall.Errno(0x5c)
1408
 	EBADRPC         = syscall.Errno(0x48)
1638
 	EBADRPC         = syscall.Errno(0x48)
1409
 	EBUSY           = syscall.Errno(0x10)
1639
 	EBUSY           = syscall.Errno(0x10)
1410
 	ECANCELED       = syscall.Errno(0x58)
1640
 	ECANCELED       = syscall.Errno(0x58)
1431
 	EIPSEC          = syscall.Errno(0x52)
1661
 	EIPSEC          = syscall.Errno(0x52)
1432
 	EISCONN         = syscall.Errno(0x38)
1662
 	EISCONN         = syscall.Errno(0x38)
1433
 	EISDIR          = syscall.Errno(0x15)
1663
 	EISDIR          = syscall.Errno(0x15)
1434
-	ELAST           = syscall.Errno(0x5b)
1664
+	ELAST           = syscall.Errno(0x5f)
1435
 	ELOOP           = syscall.Errno(0x3e)
1665
 	ELOOP           = syscall.Errno(0x3e)
1436
 	EMEDIUMTYPE     = syscall.Errno(0x56)
1666
 	EMEDIUMTYPE     = syscall.Errno(0x56)
1437
 	EMFILE          = syscall.Errno(0x18)
1667
 	EMFILE          = syscall.Errno(0x18)
1459
 	ENOTCONN        = syscall.Errno(0x39)
1689
 	ENOTCONN        = syscall.Errno(0x39)
1460
 	ENOTDIR         = syscall.Errno(0x14)
1690
 	ENOTDIR         = syscall.Errno(0x14)
1461
 	ENOTEMPTY       = syscall.Errno(0x42)
1691
 	ENOTEMPTY       = syscall.Errno(0x42)
1692
+	ENOTRECOVERABLE = syscall.Errno(0x5d)
1462
 	ENOTSOCK        = syscall.Errno(0x26)
1693
 	ENOTSOCK        = syscall.Errno(0x26)
1463
 	ENOTSUP         = syscall.Errno(0x5b)
1694
 	ENOTSUP         = syscall.Errno(0x5b)
1464
 	ENOTTY          = syscall.Errno(0x19)
1695
 	ENOTTY          = syscall.Errno(0x19)
1465
 	ENXIO           = syscall.Errno(0x6)
1696
 	ENXIO           = syscall.Errno(0x6)
1466
 	EOPNOTSUPP      = syscall.Errno(0x2d)
1697
 	EOPNOTSUPP      = syscall.Errno(0x2d)
1467
 	EOVERFLOW       = syscall.Errno(0x57)
1698
 	EOVERFLOW       = syscall.Errno(0x57)
1699
+	EOWNERDEAD      = syscall.Errno(0x5e)
1468
 	EPERM           = syscall.Errno(0x1)
1700
 	EPERM           = syscall.Errno(0x1)
1469
 	EPFNOSUPPORT    = syscall.Errno(0x2e)
1701
 	EPFNOSUPPORT    = syscall.Errno(0x2e)
1470
 	EPIPE           = syscall.Errno(0x20)
1702
 	EPIPE           = syscall.Errno(0x20)
1472
 	EPROCUNAVAIL    = syscall.Errno(0x4c)
1704
 	EPROCUNAVAIL    = syscall.Errno(0x4c)
1473
 	EPROGMISMATCH   = syscall.Errno(0x4b)
1705
 	EPROGMISMATCH   = syscall.Errno(0x4b)
1474
 	EPROGUNAVAIL    = syscall.Errno(0x4a)
1706
 	EPROGUNAVAIL    = syscall.Errno(0x4a)
1707
+	EPROTO          = syscall.Errno(0x5f)
1475
 	EPROTONOSUPPORT = syscall.Errno(0x2b)
1708
 	EPROTONOSUPPORT = syscall.Errno(0x2b)
1476
 	EPROTOTYPE      = syscall.Errno(0x29)
1709
 	EPROTOTYPE      = syscall.Errno(0x29)
1477
 	ERANGE          = syscall.Errno(0x22)
1710
 	ERANGE          = syscall.Errno(0x22)
1568
 	{32, "EPIPE", "broken pipe"},
1801
 	{32, "EPIPE", "broken pipe"},
1569
 	{33, "EDOM", "numerical argument out of domain"},
1802
 	{33, "EDOM", "numerical argument out of domain"},
1570
 	{34, "ERANGE", "result too large"},
1803
 	{34, "ERANGE", "result too large"},
1571
-	{35, "EWOULDBLOCK", "resource temporarily unavailable"},
1804
+	{35, "EAGAIN", "resource temporarily unavailable"},
1572
 	{36, "EINPROGRESS", "operation now in progress"},
1805
 	{36, "EINPROGRESS", "operation now in progress"},
1573
 	{37, "EALREADY", "operation already in progress"},
1806
 	{37, "EALREADY", "operation already in progress"},
1574
 	{38, "ENOTSOCK", "socket operation on non-socket"},
1807
 	{38, "ENOTSOCK", "socket operation on non-socket"},
1624
 	{88, "ECANCELED", "operation canceled"},
1857
 	{88, "ECANCELED", "operation canceled"},
1625
 	{89, "EIDRM", "identifier removed"},
1858
 	{89, "EIDRM", "identifier removed"},
1626
 	{90, "ENOMSG", "no message of desired type"},
1859
 	{90, "ENOMSG", "no message of desired type"},
1627
-	{91, "ELAST", "not supported"},
1860
+	{91, "ENOTSUP", "not supported"},
1861
+	{92, "EBADMSG", "bad message"},
1862
+	{93, "ENOTRECOVERABLE", "state not recoverable"},
1863
+	{94, "EOWNERDEAD", "previous owner died"},
1864
+	{95, "ELAST", "protocol error"},
1628
 }
1865
 }
1629
 
1866
 
1630
 // Signal table
1867
 // Signal table
1638
 	{3, "SIGQUIT", "quit"},
1875
 	{3, "SIGQUIT", "quit"},
1639
 	{4, "SIGILL", "illegal instruction"},
1876
 	{4, "SIGILL", "illegal instruction"},
1640
 	{5, "SIGTRAP", "trace/BPT trap"},
1877
 	{5, "SIGTRAP", "trace/BPT trap"},
1641
-	{6, "SIGABRT", "abort trap"},
1878
+	{6, "SIGIOT", "abort trap"},
1642
 	{7, "SIGEMT", "EMT trap"},
1879
 	{7, "SIGEMT", "EMT trap"},
1643
 	{8, "SIGFPE", "floating point exception"},
1880
 	{8, "SIGFPE", "floating point exception"},
1644
 	{9, "SIGKILL", "killed"},
1881
 	{9, "SIGKILL", "killed"},
1665
 	{30, "SIGUSR1", "user defined signal 1"},
1902
 	{30, "SIGUSR1", "user defined signal 1"},
1666
 	{31, "SIGUSR2", "user defined signal 2"},
1903
 	{31, "SIGUSR2", "user defined signal 2"},
1667
 	{32, "SIGTHR", "thread AST"},
1904
 	{32, "SIGTHR", "thread AST"},
1905
+	{28672, "SIGSTKSZ", "unknown signal"},
1668
 }
1906
 }

+ 160
- 29
vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go Zobrazit soubor

109
 	BPF_DIRECTION_IN                  = 0x1
109
 	BPF_DIRECTION_IN                  = 0x1
110
 	BPF_DIRECTION_OUT                 = 0x2
110
 	BPF_DIRECTION_OUT                 = 0x2
111
 	BPF_DIV                           = 0x30
111
 	BPF_DIV                           = 0x30
112
+	BPF_FILDROP_CAPTURE               = 0x1
113
+	BPF_FILDROP_DROP                  = 0x2
114
+	BPF_FILDROP_PASS                  = 0x0
115
+	BPF_F_DIR_IN                      = 0x10
116
+	BPF_F_DIR_MASK                    = 0x30
117
+	BPF_F_DIR_OUT                     = 0x20
118
+	BPF_F_DIR_SHIFT                   = 0x4
119
+	BPF_F_FLOWID                      = 0x8
120
+	BPF_F_PRI_MASK                    = 0x7
112
 	BPF_H                             = 0x8
121
 	BPF_H                             = 0x8
113
 	BPF_IMM                           = 0x0
122
 	BPF_IMM                           = 0x0
114
 	BPF_IND                           = 0x40
123
 	BPF_IND                           = 0x40
137
 	BPF_OR                            = 0x40
146
 	BPF_OR                            = 0x40
138
 	BPF_RELEASE                       = 0x30bb6
147
 	BPF_RELEASE                       = 0x30bb6
139
 	BPF_RET                           = 0x6
148
 	BPF_RET                           = 0x6
149
+	BPF_RND                           = 0xc0
140
 	BPF_RSH                           = 0x70
150
 	BPF_RSH                           = 0x70
141
 	BPF_ST                            = 0x2
151
 	BPF_ST                            = 0x2
142
 	BPF_STX                           = 0x3
152
 	BPF_STX                           = 0x3
177
 	CTL_KERN                          = 0x1
187
 	CTL_KERN                          = 0x1
178
 	CTL_MAXNAME                       = 0xc
188
 	CTL_MAXNAME                       = 0xc
179
 	CTL_NET                           = 0x4
189
 	CTL_NET                           = 0x4
190
+	DIOCADDQUEUE                      = 0xc110445d
191
+	DIOCADDRULE                       = 0xcd604404
192
+	DIOCADDSTATE                      = 0xc1084425
193
+	DIOCCHANGERULE                    = 0xcd60441a
194
+	DIOCCLRIFFLAG                     = 0xc028445a
195
+	DIOCCLRSRCNODES                   = 0x20004455
196
+	DIOCCLRSTATES                     = 0xc0e04412
197
+	DIOCCLRSTATUS                     = 0xc0284416
198
+	DIOCGETLIMIT                      = 0xc0084427
199
+	DIOCGETQSTATS                     = 0xc1204460
200
+	DIOCGETQUEUE                      = 0xc110445f
201
+	DIOCGETQUEUES                     = 0xc110445e
202
+	DIOCGETRULE                       = 0xcd604407
203
+	DIOCGETRULES                      = 0xcd604406
204
+	DIOCGETRULESET                    = 0xc444443b
205
+	DIOCGETRULESETS                   = 0xc444443a
206
+	DIOCGETSRCNODES                   = 0xc0104454
207
+	DIOCGETSTATE                      = 0xc1084413
208
+	DIOCGETSTATES                     = 0xc0104419
209
+	DIOCGETSTATUS                     = 0xc1e84415
210
+	DIOCGETSYNFLWATS                  = 0xc0084463
211
+	DIOCGETTIMEOUT                    = 0xc008441e
212
+	DIOCIGETIFACES                    = 0xc0284457
213
+	DIOCKILLSRCNODES                  = 0xc080445b
214
+	DIOCKILLSTATES                    = 0xc0e04429
215
+	DIOCNATLOOK                       = 0xc0504417
216
+	DIOCOSFPADD                       = 0xc088444f
180
 	DIOCOSFPFLUSH                     = 0x2000444e
217
 	DIOCOSFPFLUSH                     = 0x2000444e
218
+	DIOCOSFPGET                       = 0xc0884450
219
+	DIOCRADDADDRS                     = 0xc4504443
220
+	DIOCRADDTABLES                    = 0xc450443d
221
+	DIOCRCLRADDRS                     = 0xc4504442
222
+	DIOCRCLRASTATS                    = 0xc4504448
223
+	DIOCRCLRTABLES                    = 0xc450443c
224
+	DIOCRCLRTSTATS                    = 0xc4504441
225
+	DIOCRDELADDRS                     = 0xc4504444
226
+	DIOCRDELTABLES                    = 0xc450443e
227
+	DIOCRGETADDRS                     = 0xc4504446
228
+	DIOCRGETASTATS                    = 0xc4504447
229
+	DIOCRGETTABLES                    = 0xc450443f
230
+	DIOCRGETTSTATS                    = 0xc4504440
231
+	DIOCRINADEFINE                    = 0xc450444d
232
+	DIOCRSETADDRS                     = 0xc4504445
233
+	DIOCRSETTFLAGS                    = 0xc450444a
234
+	DIOCRTSTADDRS                     = 0xc4504449
235
+	DIOCSETDEBUG                      = 0xc0044418
236
+	DIOCSETHOSTID                     = 0xc0044456
237
+	DIOCSETIFFLAG                     = 0xc0284459
238
+	DIOCSETLIMIT                      = 0xc0084428
239
+	DIOCSETREASS                      = 0xc004445c
240
+	DIOCSETSTATUSIF                   = 0xc0284414
241
+	DIOCSETSYNCOOKIES                 = 0xc0014462
242
+	DIOCSETSYNFLWATS                  = 0xc0084461
243
+	DIOCSETTIMEOUT                    = 0xc008441d
244
+	DIOCSTART                         = 0x20004401
245
+	DIOCSTOP                          = 0x20004402
246
+	DIOCXBEGIN                        = 0xc0104451
247
+	DIOCXCOMMIT                       = 0xc0104452
248
+	DIOCXROLLBACK                     = 0xc0104453
181
 	DLT_ARCNET                        = 0x7
249
 	DLT_ARCNET                        = 0x7
182
 	DLT_ATM_RFC1483                   = 0xb
250
 	DLT_ATM_RFC1483                   = 0xb
183
 	DLT_AX25                          = 0x3
251
 	DLT_AX25                          = 0x3
240
 	EMUL_ENABLED                      = 0x1
308
 	EMUL_ENABLED                      = 0x1
241
 	EMUL_NATIVE                       = 0x2
309
 	EMUL_NATIVE                       = 0x2
242
 	ENDRUNDISC                        = 0x9
310
 	ENDRUNDISC                        = 0x9
311
+	ETH64_8021_RSVD_MASK              = 0xfffffffffff0
312
+	ETH64_8021_RSVD_PREFIX            = 0x180c2000000
243
 	ETHERMIN                          = 0x2e
313
 	ETHERMIN                          = 0x2e
244
 	ETHERMTU                          = 0x5dc
314
 	ETHERMTU                          = 0x5dc
245
 	ETHERTYPE_8023                    = 0x4
315
 	ETHERTYPE_8023                    = 0x4
292
 	ETHERTYPE_DN                      = 0x6003
362
 	ETHERTYPE_DN                      = 0x6003
293
 	ETHERTYPE_DOGFIGHT                = 0x1989
363
 	ETHERTYPE_DOGFIGHT                = 0x1989
294
 	ETHERTYPE_DSMD                    = 0x8039
364
 	ETHERTYPE_DSMD                    = 0x8039
365
+	ETHERTYPE_EAPOL                   = 0x888e
295
 	ETHERTYPE_ECMA                    = 0x803
366
 	ETHERTYPE_ECMA                    = 0x803
296
 	ETHERTYPE_ENCRYPT                 = 0x803d
367
 	ETHERTYPE_ENCRYPT                 = 0x803d
297
 	ETHERTYPE_ES                      = 0x805d
368
 	ETHERTYPE_ES                      = 0x805d
323
 	ETHERTYPE_LLDP                    = 0x88cc
394
 	ETHERTYPE_LLDP                    = 0x88cc
324
 	ETHERTYPE_LOGICRAFT               = 0x8148
395
 	ETHERTYPE_LOGICRAFT               = 0x8148
325
 	ETHERTYPE_LOOPBACK                = 0x9000
396
 	ETHERTYPE_LOOPBACK                = 0x9000
397
+	ETHERTYPE_MACSEC                  = 0x88e5
326
 	ETHERTYPE_MATRA                   = 0x807a
398
 	ETHERTYPE_MATRA                   = 0x807a
327
 	ETHERTYPE_MAX                     = 0xffff
399
 	ETHERTYPE_MAX                     = 0xffff
328
 	ETHERTYPE_MERIT                   = 0x807c
400
 	ETHERTYPE_MERIT                   = 0x807c
351
 	ETHERTYPE_NCD                     = 0x8149
423
 	ETHERTYPE_NCD                     = 0x8149
352
 	ETHERTYPE_NESTAR                  = 0x8006
424
 	ETHERTYPE_NESTAR                  = 0x8006
353
 	ETHERTYPE_NETBEUI                 = 0x8191
425
 	ETHERTYPE_NETBEUI                 = 0x8191
426
+	ETHERTYPE_NHRP                    = 0x2001
354
 	ETHERTYPE_NOVELL                  = 0x8138
427
 	ETHERTYPE_NOVELL                  = 0x8138
355
 	ETHERTYPE_NS                      = 0x600
428
 	ETHERTYPE_NS                      = 0x600
356
 	ETHERTYPE_NSAT                    = 0x601
429
 	ETHERTYPE_NSAT                    = 0x601
357
 	ETHERTYPE_NSCOMPAT                = 0x807
430
 	ETHERTYPE_NSCOMPAT                = 0x807
431
+	ETHERTYPE_NSH                     = 0x984f
358
 	ETHERTYPE_NTRAILER                = 0x10
432
 	ETHERTYPE_NTRAILER                = 0x10
359
 	ETHERTYPE_OS9                     = 0x7007
433
 	ETHERTYPE_OS9                     = 0x7007
360
 	ETHERTYPE_OS9NET                  = 0x7009
434
 	ETHERTYPE_OS9NET                  = 0x7009
361
 	ETHERTYPE_PACER                   = 0x80c6
435
 	ETHERTYPE_PACER                   = 0x80c6
362
-	ETHERTYPE_PAE                     = 0x888e
436
+	ETHERTYPE_PBB                     = 0x88e7
363
 	ETHERTYPE_PCS                     = 0x4242
437
 	ETHERTYPE_PCS                     = 0x4242
364
 	ETHERTYPE_PLANNING                = 0x8044
438
 	ETHERTYPE_PLANNING                = 0x8044
365
 	ETHERTYPE_PPP                     = 0x880b
439
 	ETHERTYPE_PPP                     = 0x880b
441
 	ETHER_VLAN_ENCAP_LEN              = 0x4
515
 	ETHER_VLAN_ENCAP_LEN              = 0x4
442
 	EVFILT_AIO                        = -0x3
516
 	EVFILT_AIO                        = -0x3
443
 	EVFILT_DEVICE                     = -0x8
517
 	EVFILT_DEVICE                     = -0x8
518
+	EVFILT_EXCEPT                     = -0x9
444
 	EVFILT_PROC                       = -0x5
519
 	EVFILT_PROC                       = -0x5
445
 	EVFILT_READ                       = -0x1
520
 	EVFILT_READ                       = -0x1
446
 	EVFILT_SIGNAL                     = -0x6
521
 	EVFILT_SIGNAL                     = -0x6
447
-	EVFILT_SYSCOUNT                   = 0x8
522
+	EVFILT_SYSCOUNT                   = 0x9
448
 	EVFILT_TIMER                      = -0x7
523
 	EVFILT_TIMER                      = -0x7
449
 	EVFILT_VNODE                      = -0x4
524
 	EVFILT_VNODE                      = -0x4
450
 	EVFILT_WRITE                      = -0x2
525
 	EVFILT_WRITE                      = -0x2
466
 	EV_FLAG1                          = 0x2000
541
 	EV_FLAG1                          = 0x2000
467
 	EV_ONESHOT                        = 0x10
542
 	EV_ONESHOT                        = 0x10
468
 	EV_RECEIPT                        = 0x40
543
 	EV_RECEIPT                        = 0x40
469
-	EV_SYSFLAGS                       = 0xf000
544
+	EV_SYSFLAGS                       = 0xf800
470
 	EXTA                              = 0x4b00
545
 	EXTA                              = 0x4b00
471
 	EXTB                              = 0x9600
546
 	EXTB                              = 0x9600
472
 	EXTPROC                           = 0x800
547
 	EXTPROC                           = 0x800
732
 	IFT_VOICEOVERCABLE                = 0xc6
807
 	IFT_VOICEOVERCABLE                = 0xc6
733
 	IFT_VOICEOVERFRAMERELAY           = 0x99
808
 	IFT_VOICEOVERFRAMERELAY           = 0x99
734
 	IFT_VOICEOVERIP                   = 0x68
809
 	IFT_VOICEOVERIP                   = 0x68
810
+	IFT_WIREGUARD                     = 0xfb
735
 	IFT_X213                          = 0x5d
811
 	IFT_X213                          = 0x5d
736
 	IFT_X25                           = 0x5
812
 	IFT_X25                           = 0x5
737
 	IFT_X25DDN                        = 0x4
813
 	IFT_X25DDN                        = 0x4
797
 	IPPROTO_RAW                       = 0xff
873
 	IPPROTO_RAW                       = 0xff
798
 	IPPROTO_ROUTING                   = 0x2b
874
 	IPPROTO_ROUTING                   = 0x2b
799
 	IPPROTO_RSVP                      = 0x2e
875
 	IPPROTO_RSVP                      = 0x2e
876
+	IPPROTO_SCTP                      = 0x84
800
 	IPPROTO_TCP                       = 0x6
877
 	IPPROTO_TCP                       = 0x6
801
 	IPPROTO_TP                        = 0x1d
878
 	IPPROTO_TP                        = 0x1d
802
 	IPPROTO_UDP                       = 0x11
879
 	IPPROTO_UDP                       = 0x11
880
+	IPPROTO_UDPLITE                   = 0x88
803
 	IPV6_AUTH_LEVEL                   = 0x35
881
 	IPV6_AUTH_LEVEL                   = 0x35
804
 	IPV6_AUTOFLOWLABEL                = 0x3b
882
 	IPV6_AUTOFLOWLABEL                = 0x3b
805
 	IPV6_CHECKSUM                     = 0x1a
883
 	IPV6_CHECKSUM                     = 0x1a
906
 	IP_TTL                            = 0x4
984
 	IP_TTL                            = 0x4
907
 	ISIG                              = 0x80
985
 	ISIG                              = 0x80
908
 	ISTRIP                            = 0x20
986
 	ISTRIP                            = 0x20
987
+	ITIMER_PROF                       = 0x2
988
+	ITIMER_REAL                       = 0x0
989
+	ITIMER_VIRTUAL                    = 0x1
909
 	IUCLC                             = 0x1000
990
 	IUCLC                             = 0x1000
910
 	IXANY                             = 0x800
991
 	IXANY                             = 0x800
911
 	IXOFF                             = 0x400
992
 	IXOFF                             = 0x400
970
 	MNT_ROOTFS                        = 0x4000
1051
 	MNT_ROOTFS                        = 0x4000
971
 	MNT_SOFTDEP                       = 0x4000000
1052
 	MNT_SOFTDEP                       = 0x4000000
972
 	MNT_STALLED                       = 0x100000
1053
 	MNT_STALLED                       = 0x100000
1054
+	MNT_SWAPPABLE                     = 0x200000
973
 	MNT_SYNCHRONOUS                   = 0x2
1055
 	MNT_SYNCHRONOUS                   = 0x2
974
 	MNT_UPDATE                        = 0x10000
1056
 	MNT_UPDATE                        = 0x10000
975
 	MNT_VISFLAGMASK                   = 0x400ffff
1057
 	MNT_VISFLAGMASK                   = 0x400ffff
976
 	MNT_WAIT                          = 0x1
1058
 	MNT_WAIT                          = 0x1
977
 	MNT_WANTRDWR                      = 0x2000000
1059
 	MNT_WANTRDWR                      = 0x2000000
978
 	MNT_WXALLOWED                     = 0x800
1060
 	MNT_WXALLOWED                     = 0x800
1061
+	MOUNT_AFS                         = "afs"
1062
+	MOUNT_CD9660                      = "cd9660"
1063
+	MOUNT_EXT2FS                      = "ext2fs"
1064
+	MOUNT_FFS                         = "ffs"
1065
+	MOUNT_FUSEFS                      = "fuse"
1066
+	MOUNT_MFS                         = "mfs"
1067
+	MOUNT_MSDOS                       = "msdos"
1068
+	MOUNT_NCPFS                       = "ncpfs"
1069
+	MOUNT_NFS                         = "nfs"
1070
+	MOUNT_NTFS                        = "ntfs"
1071
+	MOUNT_TMPFS                       = "tmpfs"
1072
+	MOUNT_UDF                         = "udf"
1073
+	MOUNT_UFS                         = "ffs"
979
 	MSG_BCAST                         = 0x100
1074
 	MSG_BCAST                         = 0x100
980
 	MSG_CMSG_CLOEXEC                  = 0x800
1075
 	MSG_CMSG_CLOEXEC                  = 0x800
981
 	MSG_CTRUNC                        = 0x20
1076
 	MSG_CTRUNC                        = 0x20
988
 	MSG_PEEK                          = 0x2
1083
 	MSG_PEEK                          = 0x2
989
 	MSG_TRUNC                         = 0x10
1084
 	MSG_TRUNC                         = 0x10
990
 	MSG_WAITALL                       = 0x40
1085
 	MSG_WAITALL                       = 0x40
1086
+	MSG_WAITFORONE                    = 0x1000
991
 	MS_ASYNC                          = 0x1
1087
 	MS_ASYNC                          = 0x1
992
 	MS_INVALIDATE                     = 0x4
1088
 	MS_INVALIDATE                     = 0x4
993
 	MS_SYNC                           = 0x2
1089
 	MS_SYNC                           = 0x2
996
 	NET_RT_FLAGS                      = 0x2
1092
 	NET_RT_FLAGS                      = 0x2
997
 	NET_RT_IFLIST                     = 0x3
1093
 	NET_RT_IFLIST                     = 0x3
998
 	NET_RT_IFNAMES                    = 0x6
1094
 	NET_RT_IFNAMES                    = 0x6
999
-	NET_RT_MAXID                      = 0x7
1095
+	NET_RT_MAXID                      = 0x8
1096
+	NET_RT_SOURCE                     = 0x7
1000
 	NET_RT_STATS                      = 0x4
1097
 	NET_RT_STATS                      = 0x4
1001
 	NET_RT_TABLE                      = 0x5
1098
 	NET_RT_TABLE                      = 0x5
1002
 	NFDBITS                           = 0x20
1099
 	NFDBITS                           = 0x20
1013
 	NOTE_FORK                         = 0x40000000
1110
 	NOTE_FORK                         = 0x40000000
1014
 	NOTE_LINK                         = 0x10
1111
 	NOTE_LINK                         = 0x10
1015
 	NOTE_LOWAT                        = 0x1
1112
 	NOTE_LOWAT                        = 0x1
1113
+	NOTE_OOB                          = 0x4
1016
 	NOTE_PCTRLMASK                    = 0xf0000000
1114
 	NOTE_PCTRLMASK                    = 0xf0000000
1017
 	NOTE_PDATAMASK                    = 0xfffff
1115
 	NOTE_PDATAMASK                    = 0xfffff
1018
 	NOTE_RENAME                       = 0x20
1116
 	NOTE_RENAME                       = 0x20
1130
 	RTF_STATIC                        = 0x800
1228
 	RTF_STATIC                        = 0x800
1131
 	RTF_UP                            = 0x1
1229
 	RTF_UP                            = 0x1
1132
 	RTF_USETRAILERS                   = 0x8000
1230
 	RTF_USETRAILERS                   = 0x8000
1231
+	RTM_80211INFO                     = 0x15
1133
 	RTM_ADD                           = 0x1
1232
 	RTM_ADD                           = 0x1
1134
 	RTM_BFD                           = 0x12
1233
 	RTM_BFD                           = 0x12
1135
 	RTM_CHANGE                        = 0x3
1234
 	RTM_CHANGE                        = 0x3
1235
+	RTM_CHGADDRATTR                   = 0x14
1136
 	RTM_DELADDR                       = 0xd
1236
 	RTM_DELADDR                       = 0xd
1137
 	RTM_DELETE                        = 0x2
1237
 	RTM_DELETE                        = 0x2
1138
 	RTM_DESYNC                        = 0x10
1238
 	RTM_DESYNC                        = 0x10
1140
 	RTM_IFANNOUNCE                    = 0xf
1240
 	RTM_IFANNOUNCE                    = 0xf
1141
 	RTM_IFINFO                        = 0xe
1241
 	RTM_IFINFO                        = 0xe
1142
 	RTM_INVALIDATE                    = 0x11
1242
 	RTM_INVALIDATE                    = 0x11
1143
-	RTM_LOCK                          = 0x8
1144
 	RTM_LOSING                        = 0x5
1243
 	RTM_LOSING                        = 0x5
1145
 	RTM_MAXSIZE                       = 0x800
1244
 	RTM_MAXSIZE                       = 0x800
1146
 	RTM_MISS                          = 0x7
1245
 	RTM_MISS                          = 0x7
1148
 	RTM_PROPOSAL                      = 0x13
1247
 	RTM_PROPOSAL                      = 0x13
1149
 	RTM_REDIRECT                      = 0x6
1248
 	RTM_REDIRECT                      = 0x6
1150
 	RTM_RESOLVE                       = 0xb
1249
 	RTM_RESOLVE                       = 0xb
1151
-	RTM_RTTUNIT                       = 0xf4240
1250
+	RTM_SOURCE                        = 0x16
1152
 	RTM_VERSION                       = 0x5
1251
 	RTM_VERSION                       = 0x5
1153
 	RTV_EXPIRE                        = 0x4
1252
 	RTV_EXPIRE                        = 0x4
1154
 	RTV_HOPCOUNT                      = 0x2
1253
 	RTV_HOPCOUNT                      = 0x2
1166
 	RUSAGE_THREAD                     = 0x1
1265
 	RUSAGE_THREAD                     = 0x1
1167
 	SCM_RIGHTS                        = 0x1
1266
 	SCM_RIGHTS                        = 0x1
1168
 	SCM_TIMESTAMP                     = 0x4
1267
 	SCM_TIMESTAMP                     = 0x4
1268
+	SEEK_CUR                          = 0x1
1269
+	SEEK_END                          = 0x2
1270
+	SEEK_SET                          = 0x0
1169
 	SHUT_RD                           = 0x0
1271
 	SHUT_RD                           = 0x0
1170
 	SHUT_RDWR                         = 0x2
1272
 	SHUT_RDWR                         = 0x2
1171
 	SHUT_WR                           = 0x1
1273
 	SHUT_WR                           = 0x1
1182
 	SIOCBRDGDELS                      = 0x80606942
1284
 	SIOCBRDGDELS                      = 0x80606942
1183
 	SIOCBRDGFLUSH                     = 0x80606948
1285
 	SIOCBRDGFLUSH                     = 0x80606948
1184
 	SIOCBRDGFRL                       = 0x808c694e
1286
 	SIOCBRDGFRL                       = 0x808c694e
1185
-	SIOCBRDGGCACHE                    = 0xc0186941
1186
-	SIOCBRDGGFD                       = 0xc0186952
1187
-	SIOCBRDGGHT                       = 0xc0186951
1287
+	SIOCBRDGGCACHE                    = 0xc0146941
1288
+	SIOCBRDGGFD                       = 0xc0146952
1289
+	SIOCBRDGGHT                       = 0xc0146951
1188
 	SIOCBRDGGIFFLGS                   = 0xc060693e
1290
 	SIOCBRDGGIFFLGS                   = 0xc060693e
1189
-	SIOCBRDGGMA                       = 0xc0186953
1291
+	SIOCBRDGGMA                       = 0xc0146953
1190
 	SIOCBRDGGPARAM                    = 0xc0406958
1292
 	SIOCBRDGGPARAM                    = 0xc0406958
1191
-	SIOCBRDGGPRI                      = 0xc0186950
1293
+	SIOCBRDGGPRI                      = 0xc0146950
1192
 	SIOCBRDGGRL                       = 0xc030694f
1294
 	SIOCBRDGGRL                       = 0xc030694f
1193
-	SIOCBRDGGTO                       = 0xc0186946
1295
+	SIOCBRDGGTO                       = 0xc0146946
1194
 	SIOCBRDGIFS                       = 0xc0606942
1296
 	SIOCBRDGIFS                       = 0xc0606942
1195
 	SIOCBRDGRTS                       = 0xc0206943
1297
 	SIOCBRDGRTS                       = 0xc0206943
1196
 	SIOCBRDGSADDR                     = 0xc1286944
1298
 	SIOCBRDGSADDR                     = 0xc1286944
1197
-	SIOCBRDGSCACHE                    = 0x80186940
1198
-	SIOCBRDGSFD                       = 0x80186952
1199
-	SIOCBRDGSHT                       = 0x80186951
1299
+	SIOCBRDGSCACHE                    = 0x80146940
1300
+	SIOCBRDGSFD                       = 0x80146952
1301
+	SIOCBRDGSHT                       = 0x80146951
1200
 	SIOCBRDGSIFCOST                   = 0x80606955
1302
 	SIOCBRDGSIFCOST                   = 0x80606955
1201
 	SIOCBRDGSIFFLGS                   = 0x8060693f
1303
 	SIOCBRDGSIFFLGS                   = 0x8060693f
1202
 	SIOCBRDGSIFPRIO                   = 0x80606954
1304
 	SIOCBRDGSIFPRIO                   = 0x80606954
1203
 	SIOCBRDGSIFPROT                   = 0x8060694a
1305
 	SIOCBRDGSIFPROT                   = 0x8060694a
1204
-	SIOCBRDGSMA                       = 0x80186953
1205
-	SIOCBRDGSPRI                      = 0x80186950
1206
-	SIOCBRDGSPROTO                    = 0x8018695a
1207
-	SIOCBRDGSTO                       = 0x80186945
1208
-	SIOCBRDGSTXHC                     = 0x80186959
1306
+	SIOCBRDGSMA                       = 0x80146953
1307
+	SIOCBRDGSPRI                      = 0x80146950
1308
+	SIOCBRDGSPROTO                    = 0x8014695a
1309
+	SIOCBRDGSTO                       = 0x80146945
1310
+	SIOCBRDGSTXHC                     = 0x80146959
1311
+	SIOCDELLABEL                      = 0x80206997
1209
 	SIOCDELMULTI                      = 0x80206932
1312
 	SIOCDELMULTI                      = 0x80206932
1210
 	SIOCDIFADDR                       = 0x80206919
1313
 	SIOCDIFADDR                       = 0x80206919
1211
 	SIOCDIFGROUP                      = 0x80286989
1314
 	SIOCDIFGROUP                      = 0x80286989
1212
 	SIOCDIFPARENT                     = 0x802069b4
1315
 	SIOCDIFPARENT                     = 0x802069b4
1213
 	SIOCDIFPHYADDR                    = 0x80206949
1316
 	SIOCDIFPHYADDR                    = 0x80206949
1317
+	SIOCDPWE3NEIGHBOR                 = 0x802069de
1214
 	SIOCDVNETID                       = 0x802069af
1318
 	SIOCDVNETID                       = 0x802069af
1215
 	SIOCGETKALIVE                     = 0xc01869a4
1319
 	SIOCGETKALIVE                     = 0xc01869a4
1216
 	SIOCGETLABEL                      = 0x8020699a
1320
 	SIOCGETLABEL                      = 0x8020699a
1229
 	SIOCGIFFLAGS                      = 0xc0206911
1333
 	SIOCGIFFLAGS                      = 0xc0206911
1230
 	SIOCGIFGATTR                      = 0xc028698b
1334
 	SIOCGIFGATTR                      = 0xc028698b
1231
 	SIOCGIFGENERIC                    = 0xc020693a
1335
 	SIOCGIFGENERIC                    = 0xc020693a
1336
+	SIOCGIFGLIST                      = 0xc028698d
1232
 	SIOCGIFGMEMB                      = 0xc028698a
1337
 	SIOCGIFGMEMB                      = 0xc028698a
1233
 	SIOCGIFGROUP                      = 0xc0286988
1338
 	SIOCGIFGROUP                      = 0xc0286988
1234
 	SIOCGIFHARDMTU                    = 0xc02069a5
1339
 	SIOCGIFHARDMTU                    = 0xc02069a5
1243
 	SIOCGIFRDOMAIN                    = 0xc02069a0
1348
 	SIOCGIFRDOMAIN                    = 0xc02069a0
1244
 	SIOCGIFRTLABEL                    = 0xc0206983
1349
 	SIOCGIFRTLABEL                    = 0xc0206983
1245
 	SIOCGIFRXR                        = 0x802069aa
1350
 	SIOCGIFRXR                        = 0x802069aa
1351
+	SIOCGIFSFFPAGE                    = 0xc1126939
1246
 	SIOCGIFXFLAGS                     = 0xc020699e
1352
 	SIOCGIFXFLAGS                     = 0xc020699e
1247
 	SIOCGLIFPHYADDR                   = 0xc218694b
1353
 	SIOCGLIFPHYADDR                   = 0xc218694b
1248
 	SIOCGLIFPHYDF                     = 0xc02069c2
1354
 	SIOCGLIFPHYDF                     = 0xc02069c2
1355
+	SIOCGLIFPHYECN                    = 0xc02069c8
1249
 	SIOCGLIFPHYRTABLE                 = 0xc02069a2
1356
 	SIOCGLIFPHYRTABLE                 = 0xc02069a2
1250
 	SIOCGLIFPHYTTL                    = 0xc02069a9
1357
 	SIOCGLIFPHYTTL                    = 0xc02069a9
1251
 	SIOCGPGRP                         = 0x40047309
1358
 	SIOCGPGRP                         = 0x40047309
1359
+	SIOCGPWE3                         = 0xc0206998
1360
+	SIOCGPWE3CTRLWORD                 = 0xc02069dc
1361
+	SIOCGPWE3FAT                      = 0xc02069dd
1362
+	SIOCGPWE3NEIGHBOR                 = 0xc21869de
1363
+	SIOCGRXHPRIO                      = 0xc02069db
1252
 	SIOCGSPPPPARAMS                   = 0xc0206994
1364
 	SIOCGSPPPPARAMS                   = 0xc0206994
1365
+	SIOCGTXHPRIO                      = 0xc02069c6
1253
 	SIOCGUMBINFO                      = 0xc02069be
1366
 	SIOCGUMBINFO                      = 0xc02069be
1254
 	SIOCGUMBPARAM                     = 0xc02069c0
1367
 	SIOCGUMBPARAM                     = 0xc02069c0
1255
 	SIOCGVH                           = 0xc02069f6
1368
 	SIOCGVH                           = 0xc02069f6
1287
 	SIOCSIFXFLAGS                     = 0x8020699d
1400
 	SIOCSIFXFLAGS                     = 0x8020699d
1288
 	SIOCSLIFPHYADDR                   = 0x8218694a
1401
 	SIOCSLIFPHYADDR                   = 0x8218694a
1289
 	SIOCSLIFPHYDF                     = 0x802069c1
1402
 	SIOCSLIFPHYDF                     = 0x802069c1
1403
+	SIOCSLIFPHYECN                    = 0x802069c7
1290
 	SIOCSLIFPHYRTABLE                 = 0x802069a1
1404
 	SIOCSLIFPHYRTABLE                 = 0x802069a1
1291
 	SIOCSLIFPHYTTL                    = 0x802069a8
1405
 	SIOCSLIFPHYTTL                    = 0x802069a8
1292
 	SIOCSPGRP                         = 0x80047308
1406
 	SIOCSPGRP                         = 0x80047308
1407
+	SIOCSPWE3CTRLWORD                 = 0x802069dc
1408
+	SIOCSPWE3FAT                      = 0x802069dd
1409
+	SIOCSPWE3NEIGHBOR                 = 0x821869de
1410
+	SIOCSRXHPRIO                      = 0x802069db
1293
 	SIOCSSPPPPARAMS                   = 0x80206993
1411
 	SIOCSSPPPPARAMS                   = 0x80206993
1412
+	SIOCSTXHPRIO                      = 0x802069c5
1294
 	SIOCSUMBPARAM                     = 0x802069bf
1413
 	SIOCSUMBPARAM                     = 0x802069bf
1295
 	SIOCSVH                           = 0xc02069f5
1414
 	SIOCSVH                           = 0xc02069f5
1296
 	SIOCSVNETFLOWID                   = 0x802069c3
1415
 	SIOCSVNETFLOWID                   = 0x802069c3
1297
 	SIOCSVNETID                       = 0x802069a6
1416
 	SIOCSVNETID                       = 0x802069a6
1298
-	SIOCSWGDPID                       = 0xc018695b
1299
-	SIOCSWGMAXFLOW                    = 0xc0186960
1300
-	SIOCSWGMAXGROUP                   = 0xc018695d
1301
-	SIOCSWSDPID                       = 0x8018695c
1302
-	SIOCSWSPORTNO                     = 0xc060695f
1303
 	SOCK_CLOEXEC                      = 0x8000
1417
 	SOCK_CLOEXEC                      = 0x8000
1304
 	SOCK_DGRAM                        = 0x2
1418
 	SOCK_DGRAM                        = 0x2
1305
 	SOCK_DNS                          = 0x1000
1419
 	SOCK_DNS                          = 0x1000
1314
 	SO_BINDANY                        = 0x1000
1428
 	SO_BINDANY                        = 0x1000
1315
 	SO_BROADCAST                      = 0x20
1429
 	SO_BROADCAST                      = 0x20
1316
 	SO_DEBUG                          = 0x1
1430
 	SO_DEBUG                          = 0x1
1431
+	SO_DOMAIN                         = 0x1024
1317
 	SO_DONTROUTE                      = 0x10
1432
 	SO_DONTROUTE                      = 0x10
1318
 	SO_ERROR                          = 0x1007
1433
 	SO_ERROR                          = 0x1007
1319
 	SO_KEEPALIVE                      = 0x8
1434
 	SO_KEEPALIVE                      = 0x8
1321
 	SO_NETPROC                        = 0x1020
1436
 	SO_NETPROC                        = 0x1020
1322
 	SO_OOBINLINE                      = 0x100
1437
 	SO_OOBINLINE                      = 0x100
1323
 	SO_PEERCRED                       = 0x1022
1438
 	SO_PEERCRED                       = 0x1022
1439
+	SO_PROTOCOL                       = 0x1025
1324
 	SO_RCVBUF                         = 0x1002
1440
 	SO_RCVBUF                         = 0x1002
1325
 	SO_RCVLOWAT                       = 0x1004
1441
 	SO_RCVLOWAT                       = 0x1004
1326
 	SO_RCVTIMEO                       = 0x1006
1442
 	SO_RCVTIMEO                       = 0x1006
1370
 	TCOFLUSH                          = 0x2
1486
 	TCOFLUSH                          = 0x2
1371
 	TCOOFF                            = 0x1
1487
 	TCOOFF                            = 0x1
1372
 	TCOON                             = 0x2
1488
 	TCOON                             = 0x2
1373
-	TCP_MAXBURST                      = 0x4
1489
+	TCPOPT_EOL                        = 0x0
1490
+	TCPOPT_MAXSEG                     = 0x2
1491
+	TCPOPT_NOP                        = 0x1
1492
+	TCPOPT_SACK                       = 0x5
1493
+	TCPOPT_SACK_HDR                   = 0x1010500
1494
+	TCPOPT_SACK_PERMITTED             = 0x4
1495
+	TCPOPT_SACK_PERMIT_HDR            = 0x1010402
1496
+	TCPOPT_SIGNATURE                  = 0x13
1497
+	TCPOPT_TIMESTAMP                  = 0x8
1498
+	TCPOPT_TSTAMP_HDR                 = 0x101080a
1499
+	TCPOPT_WINDOW                     = 0x3
1500
+	TCP_INFO                          = 0x9
1374
 	TCP_MAXSEG                        = 0x2
1501
 	TCP_MAXSEG                        = 0x2
1375
 	TCP_MAXWIN                        = 0xffff
1502
 	TCP_MAXWIN                        = 0xffff
1376
 	TCP_MAX_SACK                      = 0x3
1503
 	TCP_MAX_SACK                      = 0x3
1379
 	TCP_MSS                           = 0x200
1506
 	TCP_MSS                           = 0x200
1380
 	TCP_NODELAY                       = 0x1
1507
 	TCP_NODELAY                       = 0x1
1381
 	TCP_NOPUSH                        = 0x10
1508
 	TCP_NOPUSH                        = 0x10
1509
+	TCP_SACKHOLE_LIMIT                = 0x80
1382
 	TCP_SACK_ENABLE                   = 0x8
1510
 	TCP_SACK_ENABLE                   = 0x8
1383
 	TCSAFLUSH                         = 0x2
1511
 	TCSAFLUSH                         = 0x2
1512
+	TIMER_ABSTIME                     = 0x1
1513
+	TIMER_RELTIME                     = 0x0
1384
 	TIOCCBRK                          = 0x2000747a
1514
 	TIOCCBRK                          = 0x2000747a
1385
 	TIOCCDTR                          = 0x20007478
1515
 	TIOCCDTR                          = 0x20007478
1386
 	TIOCCHKVERAUTH                    = 0x2000741e
1516
 	TIOCCHKVERAUTH                    = 0x2000741e
1445
 	TIOCSPGRP                         = 0x80047476
1575
 	TIOCSPGRP                         = 0x80047476
1446
 	TIOCSTART                         = 0x2000746e
1576
 	TIOCSTART                         = 0x2000746e
1447
 	TIOCSTAT                          = 0x20007465
1577
 	TIOCSTAT                          = 0x20007465
1448
-	TIOCSTI                           = 0x80017472
1449
 	TIOCSTOP                          = 0x2000746f
1578
 	TIOCSTOP                          = 0x2000746f
1450
 	TIOCSTSTAMP                       = 0x8008745a
1579
 	TIOCSTSTAMP                       = 0x8008745a
1451
 	TIOCSWINSZ                        = 0x80087467
1580
 	TIOCSWINSZ                        = 0x80087467
1467
 	VMIN                              = 0x10
1596
 	VMIN                              = 0x10
1468
 	VM_ANONMIN                        = 0x7
1597
 	VM_ANONMIN                        = 0x7
1469
 	VM_LOADAVG                        = 0x2
1598
 	VM_LOADAVG                        = 0x2
1470
-	VM_MAXID                          = 0xc
1599
+	VM_MALLOC_CONF                    = 0xc
1600
+	VM_MAXID                          = 0xd
1471
 	VM_MAXSLP                         = 0xa
1601
 	VM_MAXSLP                         = 0xa
1472
 	VM_METER                          = 0x1
1602
 	VM_METER                          = 0x1
1473
 	VM_NKMEMPAGES                     = 0x6
1603
 	VM_NKMEMPAGES                     = 0x6
1745
 	{3, "SIGQUIT", "quit"},
1875
 	{3, "SIGQUIT", "quit"},
1746
 	{4, "SIGILL", "illegal instruction"},
1876
 	{4, "SIGILL", "illegal instruction"},
1747
 	{5, "SIGTRAP", "trace/BPT trap"},
1877
 	{5, "SIGTRAP", "trace/BPT trap"},
1748
-	{6, "SIGABRT", "abort trap"},
1878
+	{6, "SIGIOT", "abort trap"},
1749
 	{7, "SIGEMT", "EMT trap"},
1879
 	{7, "SIGEMT", "EMT trap"},
1750
 	{8, "SIGFPE", "floating point exception"},
1880
 	{8, "SIGFPE", "floating point exception"},
1751
 	{9, "SIGKILL", "killed"},
1881
 	{9, "SIGKILL", "killed"},
1772
 	{30, "SIGUSR1", "user defined signal 1"},
1902
 	{30, "SIGUSR1", "user defined signal 1"},
1773
 	{31, "SIGUSR2", "user defined signal 2"},
1903
 	{31, "SIGUSR2", "user defined signal 2"},
1774
 	{32, "SIGTHR", "thread AST"},
1904
 	{32, "SIGTHR", "thread AST"},
1905
+	{28672, "SIGSTKSZ", "unknown signal"},
1775
 }
1906
 }

+ 292
- 56
vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go Zobrazit soubor

46
 	AF_SNA                            = 0xb
46
 	AF_SNA                            = 0xb
47
 	AF_UNIX                           = 0x1
47
 	AF_UNIX                           = 0x1
48
 	AF_UNSPEC                         = 0x0
48
 	AF_UNSPEC                         = 0x0
49
+	ALTWERASE                         = 0x200
49
 	ARPHRD_ETHER                      = 0x1
50
 	ARPHRD_ETHER                      = 0x1
50
 	ARPHRD_FRELAY                     = 0xf
51
 	ARPHRD_FRELAY                     = 0xf
51
 	ARPHRD_IEEE1394                   = 0x18
52
 	ARPHRD_IEEE1394                   = 0x18
82
 	BIOCGFILDROP                      = 0x40044278
83
 	BIOCGFILDROP                      = 0x40044278
83
 	BIOCGHDRCMPLT                     = 0x40044274
84
 	BIOCGHDRCMPLT                     = 0x40044274
84
 	BIOCGRSIG                         = 0x40044273
85
 	BIOCGRSIG                         = 0x40044273
85
-	BIOCGRTIMEOUT                     = 0x400c426e
86
+	BIOCGRTIMEOUT                     = 0x4010426e
86
 	BIOCGSTATS                        = 0x4008426f
87
 	BIOCGSTATS                        = 0x4008426f
87
 	BIOCIMMEDIATE                     = 0x80044270
88
 	BIOCIMMEDIATE                     = 0x80044270
88
 	BIOCLOCK                          = 0x20004276
89
 	BIOCLOCK                          = 0x20004276
96
 	BIOCSFILDROP                      = 0x80044279
97
 	BIOCSFILDROP                      = 0x80044279
97
 	BIOCSHDRCMPLT                     = 0x80044275
98
 	BIOCSHDRCMPLT                     = 0x80044275
98
 	BIOCSRSIG                         = 0x80044272
99
 	BIOCSRSIG                         = 0x80044272
99
-	BIOCSRTIMEOUT                     = 0x800c426d
100
+	BIOCSRTIMEOUT                     = 0x8010426d
100
 	BIOCVERSION                       = 0x40044271
101
 	BIOCVERSION                       = 0x40044271
101
 	BPF_A                             = 0x10
102
 	BPF_A                             = 0x10
102
 	BPF_ABS                           = 0x20
103
 	BPF_ABS                           = 0x20
108
 	BPF_DIRECTION_IN                  = 0x1
109
 	BPF_DIRECTION_IN                  = 0x1
109
 	BPF_DIRECTION_OUT                 = 0x2
110
 	BPF_DIRECTION_OUT                 = 0x2
110
 	BPF_DIV                           = 0x30
111
 	BPF_DIV                           = 0x30
112
+	BPF_FILDROP_CAPTURE               = 0x1
113
+	BPF_FILDROP_DROP                  = 0x2
114
+	BPF_FILDROP_PASS                  = 0x0
115
+	BPF_F_DIR_IN                      = 0x10
116
+	BPF_F_DIR_MASK                    = 0x30
117
+	BPF_F_DIR_OUT                     = 0x20
118
+	BPF_F_DIR_SHIFT                   = 0x4
119
+	BPF_F_FLOWID                      = 0x8
120
+	BPF_F_PRI_MASK                    = 0x7
111
 	BPF_H                             = 0x8
121
 	BPF_H                             = 0x8
112
 	BPF_IMM                           = 0x0
122
 	BPF_IMM                           = 0x0
113
 	BPF_IND                           = 0x40
123
 	BPF_IND                           = 0x40
136
 	BPF_OR                            = 0x40
146
 	BPF_OR                            = 0x40
137
 	BPF_RELEASE                       = 0x30bb6
147
 	BPF_RELEASE                       = 0x30bb6
138
 	BPF_RET                           = 0x6
148
 	BPF_RET                           = 0x6
149
+	BPF_RND                           = 0xc0
139
 	BPF_RSH                           = 0x70
150
 	BPF_RSH                           = 0x70
140
 	BPF_ST                            = 0x2
151
 	BPF_ST                            = 0x2
141
 	BPF_STX                           = 0x3
152
 	BPF_STX                           = 0x3
147
 	BRKINT                            = 0x2
158
 	BRKINT                            = 0x2
148
 	CFLUSH                            = 0xf
159
 	CFLUSH                            = 0xf
149
 	CLOCAL                            = 0x8000
160
 	CLOCAL                            = 0x8000
161
+	CLOCK_BOOTTIME                    = 0x6
162
+	CLOCK_MONOTONIC                   = 0x3
163
+	CLOCK_PROCESS_CPUTIME_ID          = 0x2
164
+	CLOCK_REALTIME                    = 0x0
165
+	CLOCK_THREAD_CPUTIME_ID           = 0x4
166
+	CLOCK_UPTIME                      = 0x5
150
 	CPUSTATES                         = 0x6
167
 	CPUSTATES                         = 0x6
151
 	CP_IDLE                           = 0x5
168
 	CP_IDLE                           = 0x5
152
 	CP_INTR                           = 0x4
169
 	CP_INTR                           = 0x4
170
 	CTL_KERN                          = 0x1
187
 	CTL_KERN                          = 0x1
171
 	CTL_MAXNAME                       = 0xc
188
 	CTL_MAXNAME                       = 0xc
172
 	CTL_NET                           = 0x4
189
 	CTL_NET                           = 0x4
190
+	DIOCADDQUEUE                      = 0xc100445d
191
+	DIOCADDRULE                       = 0xcce04404
192
+	DIOCADDSTATE                      = 0xc1084425
193
+	DIOCCHANGERULE                    = 0xcce0441a
194
+	DIOCCLRIFFLAG                     = 0xc024445a
195
+	DIOCCLRSRCNODES                   = 0x20004455
196
+	DIOCCLRSTATES                     = 0xc0d04412
197
+	DIOCCLRSTATUS                     = 0xc0244416
198
+	DIOCGETLIMIT                      = 0xc0084427
199
+	DIOCGETQSTATS                     = 0xc1084460
200
+	DIOCGETQUEUE                      = 0xc100445f
201
+	DIOCGETQUEUES                     = 0xc100445e
202
+	DIOCGETRULE                       = 0xcce04407
203
+	DIOCGETRULES                      = 0xcce04406
204
+	DIOCGETRULESET                    = 0xc444443b
205
+	DIOCGETRULESETS                   = 0xc444443a
206
+	DIOCGETSRCNODES                   = 0xc0084454
207
+	DIOCGETSTATE                      = 0xc1084413
208
+	DIOCGETSTATES                     = 0xc0084419
209
+	DIOCGETSTATUS                     = 0xc1e84415
210
+	DIOCGETSYNFLWATS                  = 0xc0084463
211
+	DIOCGETTIMEOUT                    = 0xc008441e
212
+	DIOCIGETIFACES                    = 0xc0244457
213
+	DIOCKILLSRCNODES                  = 0xc068445b
214
+	DIOCKILLSTATES                    = 0xc0d04429
215
+	DIOCNATLOOK                       = 0xc0504417
216
+	DIOCOSFPADD                       = 0xc088444f
173
 	DIOCOSFPFLUSH                     = 0x2000444e
217
 	DIOCOSFPFLUSH                     = 0x2000444e
218
+	DIOCOSFPGET                       = 0xc0884450
219
+	DIOCRADDADDRS                     = 0xc44c4443
220
+	DIOCRADDTABLES                    = 0xc44c443d
221
+	DIOCRCLRADDRS                     = 0xc44c4442
222
+	DIOCRCLRASTATS                    = 0xc44c4448
223
+	DIOCRCLRTABLES                    = 0xc44c443c
224
+	DIOCRCLRTSTATS                    = 0xc44c4441
225
+	DIOCRDELADDRS                     = 0xc44c4444
226
+	DIOCRDELTABLES                    = 0xc44c443e
227
+	DIOCRGETADDRS                     = 0xc44c4446
228
+	DIOCRGETASTATS                    = 0xc44c4447
229
+	DIOCRGETTABLES                    = 0xc44c443f
230
+	DIOCRGETTSTATS                    = 0xc44c4440
231
+	DIOCRINADEFINE                    = 0xc44c444d
232
+	DIOCRSETADDRS                     = 0xc44c4445
233
+	DIOCRSETTFLAGS                    = 0xc44c444a
234
+	DIOCRTSTADDRS                     = 0xc44c4449
235
+	DIOCSETDEBUG                      = 0xc0044418
236
+	DIOCSETHOSTID                     = 0xc0044456
237
+	DIOCSETIFFLAG                     = 0xc0244459
238
+	DIOCSETLIMIT                      = 0xc0084428
239
+	DIOCSETREASS                      = 0xc004445c
240
+	DIOCSETSTATUSIF                   = 0xc0244414
241
+	DIOCSETSYNCOOKIES                 = 0xc0014462
242
+	DIOCSETSYNFLWATS                  = 0xc0084461
243
+	DIOCSETTIMEOUT                    = 0xc008441d
244
+	DIOCSTART                         = 0x20004401
245
+	DIOCSTOP                          = 0x20004402
246
+	DIOCXBEGIN                        = 0xc00c4451
247
+	DIOCXCOMMIT                       = 0xc00c4452
248
+	DIOCXROLLBACK                     = 0xc00c4453
174
 	DLT_ARCNET                        = 0x7
249
 	DLT_ARCNET                        = 0x7
175
 	DLT_ATM_RFC1483                   = 0xb
250
 	DLT_ATM_RFC1483                   = 0xb
176
 	DLT_AX25                          = 0x3
251
 	DLT_AX25                          = 0x3
186
 	DLT_LOOP                          = 0xc
261
 	DLT_LOOP                          = 0xc
187
 	DLT_MPLS                          = 0xdb
262
 	DLT_MPLS                          = 0xdb
188
 	DLT_NULL                          = 0x0
263
 	DLT_NULL                          = 0x0
264
+	DLT_OPENFLOW                      = 0x10b
189
 	DLT_PFLOG                         = 0x75
265
 	DLT_PFLOG                         = 0x75
190
 	DLT_PFSYNC                        = 0x12
266
 	DLT_PFSYNC                        = 0x12
191
 	DLT_PPP                           = 0x9
267
 	DLT_PPP                           = 0x9
196
 	DLT_RAW                           = 0xe
272
 	DLT_RAW                           = 0xe
197
 	DLT_SLIP                          = 0x8
273
 	DLT_SLIP                          = 0x8
198
 	DLT_SLIP_BSDOS                    = 0xf
274
 	DLT_SLIP_BSDOS                    = 0xf
275
+	DLT_USBPCAP                       = 0xf9
276
+	DLT_USER0                         = 0x93
277
+	DLT_USER1                         = 0x94
278
+	DLT_USER10                        = 0x9d
279
+	DLT_USER11                        = 0x9e
280
+	DLT_USER12                        = 0x9f
281
+	DLT_USER13                        = 0xa0
282
+	DLT_USER14                        = 0xa1
283
+	DLT_USER15                        = 0xa2
284
+	DLT_USER2                         = 0x95
285
+	DLT_USER3                         = 0x96
286
+	DLT_USER4                         = 0x97
287
+	DLT_USER5                         = 0x98
288
+	DLT_USER6                         = 0x99
289
+	DLT_USER7                         = 0x9a
290
+	DLT_USER8                         = 0x9b
291
+	DLT_USER9                         = 0x9c
199
 	DT_BLK                            = 0x6
292
 	DT_BLK                            = 0x6
200
 	DT_CHR                            = 0x2
293
 	DT_CHR                            = 0x2
201
 	DT_DIR                            = 0x4
294
 	DT_DIR                            = 0x4
215
 	EMUL_ENABLED                      = 0x1
308
 	EMUL_ENABLED                      = 0x1
216
 	EMUL_NATIVE                       = 0x2
309
 	EMUL_NATIVE                       = 0x2
217
 	ENDRUNDISC                        = 0x9
310
 	ENDRUNDISC                        = 0x9
311
+	ETH64_8021_RSVD_MASK              = 0xfffffffffff0
312
+	ETH64_8021_RSVD_PREFIX            = 0x180c2000000
218
 	ETHERMIN                          = 0x2e
313
 	ETHERMIN                          = 0x2e
219
 	ETHERMTU                          = 0x5dc
314
 	ETHERMTU                          = 0x5dc
220
 	ETHERTYPE_8023                    = 0x4
315
 	ETHERTYPE_8023                    = 0x4
267
 	ETHERTYPE_DN                      = 0x6003
362
 	ETHERTYPE_DN                      = 0x6003
268
 	ETHERTYPE_DOGFIGHT                = 0x1989
363
 	ETHERTYPE_DOGFIGHT                = 0x1989
269
 	ETHERTYPE_DSMD                    = 0x8039
364
 	ETHERTYPE_DSMD                    = 0x8039
365
+	ETHERTYPE_EAPOL                   = 0x888e
270
 	ETHERTYPE_ECMA                    = 0x803
366
 	ETHERTYPE_ECMA                    = 0x803
271
 	ETHERTYPE_ENCRYPT                 = 0x803d
367
 	ETHERTYPE_ENCRYPT                 = 0x803d
272
 	ETHERTYPE_ES                      = 0x805d
368
 	ETHERTYPE_ES                      = 0x805d
298
 	ETHERTYPE_LLDP                    = 0x88cc
394
 	ETHERTYPE_LLDP                    = 0x88cc
299
 	ETHERTYPE_LOGICRAFT               = 0x8148
395
 	ETHERTYPE_LOGICRAFT               = 0x8148
300
 	ETHERTYPE_LOOPBACK                = 0x9000
396
 	ETHERTYPE_LOOPBACK                = 0x9000
397
+	ETHERTYPE_MACSEC                  = 0x88e5
301
 	ETHERTYPE_MATRA                   = 0x807a
398
 	ETHERTYPE_MATRA                   = 0x807a
302
 	ETHERTYPE_MAX                     = 0xffff
399
 	ETHERTYPE_MAX                     = 0xffff
303
 	ETHERTYPE_MERIT                   = 0x807c
400
 	ETHERTYPE_MERIT                   = 0x807c
326
 	ETHERTYPE_NCD                     = 0x8149
423
 	ETHERTYPE_NCD                     = 0x8149
327
 	ETHERTYPE_NESTAR                  = 0x8006
424
 	ETHERTYPE_NESTAR                  = 0x8006
328
 	ETHERTYPE_NETBEUI                 = 0x8191
425
 	ETHERTYPE_NETBEUI                 = 0x8191
426
+	ETHERTYPE_NHRP                    = 0x2001
329
 	ETHERTYPE_NOVELL                  = 0x8138
427
 	ETHERTYPE_NOVELL                  = 0x8138
330
 	ETHERTYPE_NS                      = 0x600
428
 	ETHERTYPE_NS                      = 0x600
331
 	ETHERTYPE_NSAT                    = 0x601
429
 	ETHERTYPE_NSAT                    = 0x601
332
 	ETHERTYPE_NSCOMPAT                = 0x807
430
 	ETHERTYPE_NSCOMPAT                = 0x807
431
+	ETHERTYPE_NSH                     = 0x984f
333
 	ETHERTYPE_NTRAILER                = 0x10
432
 	ETHERTYPE_NTRAILER                = 0x10
334
 	ETHERTYPE_OS9                     = 0x7007
433
 	ETHERTYPE_OS9                     = 0x7007
335
 	ETHERTYPE_OS9NET                  = 0x7009
434
 	ETHERTYPE_OS9NET                  = 0x7009
336
 	ETHERTYPE_PACER                   = 0x80c6
435
 	ETHERTYPE_PACER                   = 0x80c6
337
-	ETHERTYPE_PAE                     = 0x888e
436
+	ETHERTYPE_PBB                     = 0x88e7
338
 	ETHERTYPE_PCS                     = 0x4242
437
 	ETHERTYPE_PCS                     = 0x4242
339
 	ETHERTYPE_PLANNING                = 0x8044
438
 	ETHERTYPE_PLANNING                = 0x8044
340
 	ETHERTYPE_PPP                     = 0x880b
439
 	ETHERTYPE_PPP                     = 0x880b
409
 	ETHER_CRC_POLY_LE                 = 0xedb88320
508
 	ETHER_CRC_POLY_LE                 = 0xedb88320
410
 	ETHER_HDR_LEN                     = 0xe
509
 	ETHER_HDR_LEN                     = 0xe
411
 	ETHER_MAX_DIX_LEN                 = 0x600
510
 	ETHER_MAX_DIX_LEN                 = 0x600
511
+	ETHER_MAX_HARDMTU_LEN             = 0xff9b
412
 	ETHER_MAX_LEN                     = 0x5ee
512
 	ETHER_MAX_LEN                     = 0x5ee
413
 	ETHER_MIN_LEN                     = 0x40
513
 	ETHER_MIN_LEN                     = 0x40
414
 	ETHER_TYPE_LEN                    = 0x2
514
 	ETHER_TYPE_LEN                    = 0x2
415
 	ETHER_VLAN_ENCAP_LEN              = 0x4
515
 	ETHER_VLAN_ENCAP_LEN              = 0x4
416
 	EVFILT_AIO                        = -0x3
516
 	EVFILT_AIO                        = -0x3
517
+	EVFILT_DEVICE                     = -0x8
518
+	EVFILT_EXCEPT                     = -0x9
417
 	EVFILT_PROC                       = -0x5
519
 	EVFILT_PROC                       = -0x5
418
 	EVFILT_READ                       = -0x1
520
 	EVFILT_READ                       = -0x1
419
 	EVFILT_SIGNAL                     = -0x6
521
 	EVFILT_SIGNAL                     = -0x6
420
-	EVFILT_SYSCOUNT                   = 0x7
522
+	EVFILT_SYSCOUNT                   = 0x9
421
 	EVFILT_TIMER                      = -0x7
523
 	EVFILT_TIMER                      = -0x7
422
 	EVFILT_VNODE                      = -0x4
524
 	EVFILT_VNODE                      = -0x4
423
 	EVFILT_WRITE                      = -0x2
525
 	EVFILT_WRITE                      = -0x2
526
+	EVL_ENCAPLEN                      = 0x4
527
+	EVL_PRIO_BITS                     = 0xd
528
+	EVL_PRIO_MAX                      = 0x7
529
+	EVL_VLID_MASK                     = 0xfff
530
+	EVL_VLID_MAX                      = 0xffe
531
+	EVL_VLID_MIN                      = 0x1
532
+	EVL_VLID_NULL                     = 0x0
424
 	EV_ADD                            = 0x1
533
 	EV_ADD                            = 0x1
425
 	EV_CLEAR                          = 0x20
534
 	EV_CLEAR                          = 0x20
426
 	EV_DELETE                         = 0x2
535
 	EV_DELETE                         = 0x2
427
 	EV_DISABLE                        = 0x8
536
 	EV_DISABLE                        = 0x8
537
+	EV_DISPATCH                       = 0x80
428
 	EV_ENABLE                         = 0x4
538
 	EV_ENABLE                         = 0x4
429
 	EV_EOF                            = 0x8000
539
 	EV_EOF                            = 0x8000
430
 	EV_ERROR                          = 0x4000
540
 	EV_ERROR                          = 0x4000
431
 	EV_FLAG1                          = 0x2000
541
 	EV_FLAG1                          = 0x2000
432
 	EV_ONESHOT                        = 0x10
542
 	EV_ONESHOT                        = 0x10
433
-	EV_SYSFLAGS                       = 0xf000
543
+	EV_RECEIPT                        = 0x40
544
+	EV_SYSFLAGS                       = 0xf800
434
 	EXTA                              = 0x4b00
545
 	EXTA                              = 0x4b00
435
 	EXTB                              = 0x9600
546
 	EXTB                              = 0x9600
436
 	EXTPROC                           = 0x800
547
 	EXTPROC                           = 0x800
443
 	F_GETFL                           = 0x3
554
 	F_GETFL                           = 0x3
444
 	F_GETLK                           = 0x7
555
 	F_GETLK                           = 0x7
445
 	F_GETOWN                          = 0x5
556
 	F_GETOWN                          = 0x5
557
+	F_ISATTY                          = 0xb
558
+	F_OK                              = 0x0
446
 	F_RDLCK                           = 0x1
559
 	F_RDLCK                           = 0x1
447
 	F_SETFD                           = 0x2
560
 	F_SETFD                           = 0x2
448
 	F_SETFL                           = 0x4
561
 	F_SETFL                           = 0x4
459
 	IEXTEN                            = 0x400
572
 	IEXTEN                            = 0x400
460
 	IFAN_ARRIVAL                      = 0x0
573
 	IFAN_ARRIVAL                      = 0x0
461
 	IFAN_DEPARTURE                    = 0x1
574
 	IFAN_DEPARTURE                    = 0x1
462
-	IFA_ROUTE                         = 0x1
463
 	IFF_ALLMULTI                      = 0x200
575
 	IFF_ALLMULTI                      = 0x200
464
 	IFF_BROADCAST                     = 0x2
576
 	IFF_BROADCAST                     = 0x2
465
 	IFF_CANTCHANGE                    = 0x8e52
577
 	IFF_CANTCHANGE                    = 0x8e52
470
 	IFF_LOOPBACK                      = 0x8
582
 	IFF_LOOPBACK                      = 0x8
471
 	IFF_MULTICAST                     = 0x8000
583
 	IFF_MULTICAST                     = 0x8000
472
 	IFF_NOARP                         = 0x80
584
 	IFF_NOARP                         = 0x80
473
-	IFF_NOTRAILERS                    = 0x20
474
 	IFF_OACTIVE                       = 0x400
585
 	IFF_OACTIVE                       = 0x400
475
 	IFF_POINTOPOINT                   = 0x10
586
 	IFF_POINTOPOINT                   = 0x10
476
 	IFF_PROMISC                       = 0x100
587
 	IFF_PROMISC                       = 0x100
477
 	IFF_RUNNING                       = 0x40
588
 	IFF_RUNNING                       = 0x40
478
 	IFF_SIMPLEX                       = 0x800
589
 	IFF_SIMPLEX                       = 0x800
590
+	IFF_STATICARP                     = 0x20
479
 	IFF_UP                            = 0x1
591
 	IFF_UP                            = 0x1
480
 	IFNAMSIZ                          = 0x10
592
 	IFNAMSIZ                          = 0x10
481
 	IFT_1822                          = 0x2
593
 	IFT_1822                          = 0x2
604
 	IFT_LINEGROUP                     = 0xd2
716
 	IFT_LINEGROUP                     = 0xd2
605
 	IFT_LOCALTALK                     = 0x2a
717
 	IFT_LOCALTALK                     = 0x2a
606
 	IFT_LOOP                          = 0x18
718
 	IFT_LOOP                          = 0x18
719
+	IFT_MBIM                          = 0xfa
607
 	IFT_MEDIAMAILOVERIP               = 0x8b
720
 	IFT_MEDIAMAILOVERIP               = 0x8b
608
 	IFT_MFSIGLINK                     = 0xa7
721
 	IFT_MFSIGLINK                     = 0xa7
609
 	IFT_MIOX25                        = 0x26
722
 	IFT_MIOX25                        = 0x26
694
 	IFT_VOICEOVERCABLE                = 0xc6
807
 	IFT_VOICEOVERCABLE                = 0xc6
695
 	IFT_VOICEOVERFRAMERELAY           = 0x99
808
 	IFT_VOICEOVERFRAMERELAY           = 0x99
696
 	IFT_VOICEOVERIP                   = 0x68
809
 	IFT_VOICEOVERIP                   = 0x68
810
+	IFT_WIREGUARD                     = 0xfb
697
 	IFT_X213                          = 0x5d
811
 	IFT_X213                          = 0x5d
698
 	IFT_X25                           = 0x5
812
 	IFT_X25                           = 0x5
699
 	IFT_X25DDN                        = 0x4
813
 	IFT_X25DDN                        = 0x4
728
 	IPPROTO_AH                        = 0x33
842
 	IPPROTO_AH                        = 0x33
729
 	IPPROTO_CARP                      = 0x70
843
 	IPPROTO_CARP                      = 0x70
730
 	IPPROTO_DIVERT                    = 0x102
844
 	IPPROTO_DIVERT                    = 0x102
731
-	IPPROTO_DIVERT_INIT               = 0x2
732
-	IPPROTO_DIVERT_RESP               = 0x1
733
 	IPPROTO_DONE                      = 0x101
845
 	IPPROTO_DONE                      = 0x101
734
 	IPPROTO_DSTOPTS                   = 0x3c
846
 	IPPROTO_DSTOPTS                   = 0x3c
735
 	IPPROTO_EGP                       = 0x8
847
 	IPPROTO_EGP                       = 0x8
761
 	IPPROTO_RAW                       = 0xff
873
 	IPPROTO_RAW                       = 0xff
762
 	IPPROTO_ROUTING                   = 0x2b
874
 	IPPROTO_ROUTING                   = 0x2b
763
 	IPPROTO_RSVP                      = 0x2e
875
 	IPPROTO_RSVP                      = 0x2e
876
+	IPPROTO_SCTP                      = 0x84
764
 	IPPROTO_TCP                       = 0x6
877
 	IPPROTO_TCP                       = 0x6
765
 	IPPROTO_TP                        = 0x1d
878
 	IPPROTO_TP                        = 0x1d
766
 	IPPROTO_UDP                       = 0x11
879
 	IPPROTO_UDP                       = 0x11
880
+	IPPROTO_UDPLITE                   = 0x88
767
 	IPV6_AUTH_LEVEL                   = 0x35
881
 	IPV6_AUTH_LEVEL                   = 0x35
768
 	IPV6_AUTOFLOWLABEL                = 0x3b
882
 	IPV6_AUTOFLOWLABEL                = 0x3b
769
 	IPV6_CHECKSUM                     = 0x1a
883
 	IPV6_CHECKSUM                     = 0x1a
786
 	IPV6_LEAVE_GROUP                  = 0xd
900
 	IPV6_LEAVE_GROUP                  = 0xd
787
 	IPV6_MAXHLIM                      = 0xff
901
 	IPV6_MAXHLIM                      = 0xff
788
 	IPV6_MAXPACKET                    = 0xffff
902
 	IPV6_MAXPACKET                    = 0xffff
903
+	IPV6_MINHOPCOUNT                  = 0x41
789
 	IPV6_MMTU                         = 0x500
904
 	IPV6_MMTU                         = 0x500
790
 	IPV6_MULTICAST_HOPS               = 0xa
905
 	IPV6_MULTICAST_HOPS               = 0xa
791
 	IPV6_MULTICAST_IF                 = 0x9
906
 	IPV6_MULTICAST_IF                 = 0x9
825
 	IP_DEFAULT_MULTICAST_LOOP         = 0x1
940
 	IP_DEFAULT_MULTICAST_LOOP         = 0x1
826
 	IP_DEFAULT_MULTICAST_TTL          = 0x1
941
 	IP_DEFAULT_MULTICAST_TTL          = 0x1
827
 	IP_DF                             = 0x4000
942
 	IP_DF                             = 0x4000
828
-	IP_DIVERTFL                       = 0x1022
829
 	IP_DROP_MEMBERSHIP                = 0xd
943
 	IP_DROP_MEMBERSHIP                = 0xd
830
 	IP_ESP_NETWORK_LEVEL              = 0x16
944
 	IP_ESP_NETWORK_LEVEL              = 0x16
831
 	IP_ESP_TRANS_LEVEL                = 0x15
945
 	IP_ESP_TRANS_LEVEL                = 0x15
832
 	IP_HDRINCL                        = 0x2
946
 	IP_HDRINCL                        = 0x2
833
 	IP_IPCOMP_LEVEL                   = 0x1d
947
 	IP_IPCOMP_LEVEL                   = 0x1d
948
+	IP_IPDEFTTL                       = 0x25
834
 	IP_IPSECFLOWINFO                  = 0x24
949
 	IP_IPSECFLOWINFO                  = 0x24
835
 	IP_IPSEC_LOCAL_AUTH               = 0x1b
950
 	IP_IPSEC_LOCAL_AUTH               = 0x1b
836
 	IP_IPSEC_LOCAL_CRED               = 0x19
951
 	IP_IPSEC_LOCAL_CRED               = 0x19
864
 	IP_RETOPTS                        = 0x8
979
 	IP_RETOPTS                        = 0x8
865
 	IP_RF                             = 0x8000
980
 	IP_RF                             = 0x8000
866
 	IP_RTABLE                         = 0x1021
981
 	IP_RTABLE                         = 0x1021
982
+	IP_SENDSRCADDR                    = 0x7
867
 	IP_TOS                            = 0x3
983
 	IP_TOS                            = 0x3
868
 	IP_TTL                            = 0x4
984
 	IP_TTL                            = 0x4
869
 	ISIG                              = 0x80
985
 	ISIG                              = 0x80
870
 	ISTRIP                            = 0x20
986
 	ISTRIP                            = 0x20
987
+	ITIMER_PROF                       = 0x2
988
+	ITIMER_REAL                       = 0x0
989
+	ITIMER_VIRTUAL                    = 0x1
990
+	IUCLC                             = 0x1000
871
 	IXANY                             = 0x800
991
 	IXANY                             = 0x800
872
 	IXOFF                             = 0x400
992
 	IXOFF                             = 0x400
873
 	IXON                              = 0x200
993
 	IXON                              = 0x200
922
 	MNT_NOATIME                       = 0x8000
1042
 	MNT_NOATIME                       = 0x8000
923
 	MNT_NODEV                         = 0x10
1043
 	MNT_NODEV                         = 0x10
924
 	MNT_NOEXEC                        = 0x4
1044
 	MNT_NOEXEC                        = 0x4
1045
+	MNT_NOPERM                        = 0x20
925
 	MNT_NOSUID                        = 0x8
1046
 	MNT_NOSUID                        = 0x8
926
 	MNT_NOWAIT                        = 0x2
1047
 	MNT_NOWAIT                        = 0x2
927
 	MNT_QUOTA                         = 0x2000
1048
 	MNT_QUOTA                         = 0x2000
929
 	MNT_RELOAD                        = 0x40000
1050
 	MNT_RELOAD                        = 0x40000
930
 	MNT_ROOTFS                        = 0x4000
1051
 	MNT_ROOTFS                        = 0x4000
931
 	MNT_SOFTDEP                       = 0x4000000
1052
 	MNT_SOFTDEP                       = 0x4000000
1053
+	MNT_STALLED                       = 0x100000
1054
+	MNT_SWAPPABLE                     = 0x200000
932
 	MNT_SYNCHRONOUS                   = 0x2
1055
 	MNT_SYNCHRONOUS                   = 0x2
933
 	MNT_UPDATE                        = 0x10000
1056
 	MNT_UPDATE                        = 0x10000
934
 	MNT_VISFLAGMASK                   = 0x400ffff
1057
 	MNT_VISFLAGMASK                   = 0x400ffff
935
 	MNT_WAIT                          = 0x1
1058
 	MNT_WAIT                          = 0x1
936
 	MNT_WANTRDWR                      = 0x2000000
1059
 	MNT_WANTRDWR                      = 0x2000000
937
 	MNT_WXALLOWED                     = 0x800
1060
 	MNT_WXALLOWED                     = 0x800
1061
+	MOUNT_AFS                         = "afs"
1062
+	MOUNT_CD9660                      = "cd9660"
1063
+	MOUNT_EXT2FS                      = "ext2fs"
1064
+	MOUNT_FFS                         = "ffs"
1065
+	MOUNT_FUSEFS                      = "fuse"
1066
+	MOUNT_MFS                         = "mfs"
1067
+	MOUNT_MSDOS                       = "msdos"
1068
+	MOUNT_NCPFS                       = "ncpfs"
1069
+	MOUNT_NFS                         = "nfs"
1070
+	MOUNT_NTFS                        = "ntfs"
1071
+	MOUNT_TMPFS                       = "tmpfs"
1072
+	MOUNT_UDF                         = "udf"
1073
+	MOUNT_UFS                         = "ffs"
938
 	MSG_BCAST                         = 0x100
1074
 	MSG_BCAST                         = 0x100
939
 	MSG_CMSG_CLOEXEC                  = 0x800
1075
 	MSG_CMSG_CLOEXEC                  = 0x800
940
 	MSG_CTRUNC                        = 0x20
1076
 	MSG_CTRUNC                        = 0x20
947
 	MSG_PEEK                          = 0x2
1083
 	MSG_PEEK                          = 0x2
948
 	MSG_TRUNC                         = 0x10
1084
 	MSG_TRUNC                         = 0x10
949
 	MSG_WAITALL                       = 0x40
1085
 	MSG_WAITALL                       = 0x40
1086
+	MSG_WAITFORONE                    = 0x1000
950
 	MS_ASYNC                          = 0x1
1087
 	MS_ASYNC                          = 0x1
951
 	MS_INVALIDATE                     = 0x4
1088
 	MS_INVALIDATE                     = 0x4
952
 	MS_SYNC                           = 0x2
1089
 	MS_SYNC                           = 0x2
954
 	NET_RT_DUMP                       = 0x1
1091
 	NET_RT_DUMP                       = 0x1
955
 	NET_RT_FLAGS                      = 0x2
1092
 	NET_RT_FLAGS                      = 0x2
956
 	NET_RT_IFLIST                     = 0x3
1093
 	NET_RT_IFLIST                     = 0x3
957
-	NET_RT_MAXID                      = 0x6
1094
+	NET_RT_IFNAMES                    = 0x6
1095
+	NET_RT_MAXID                      = 0x8
1096
+	NET_RT_SOURCE                     = 0x7
958
 	NET_RT_STATS                      = 0x4
1097
 	NET_RT_STATS                      = 0x4
959
 	NET_RT_TABLE                      = 0x5
1098
 	NET_RT_TABLE                      = 0x5
960
 	NFDBITS                           = 0x20
1099
 	NFDBITS                           = 0x20
961
 	NOFLSH                            = 0x80000000
1100
 	NOFLSH                            = 0x80000000
1101
+	NOKERNINFO                        = 0x2000000
962
 	NOTE_ATTRIB                       = 0x8
1102
 	NOTE_ATTRIB                       = 0x8
1103
+	NOTE_CHANGE                       = 0x1
963
 	NOTE_CHILD                        = 0x4
1104
 	NOTE_CHILD                        = 0x4
964
 	NOTE_DELETE                       = 0x1
1105
 	NOTE_DELETE                       = 0x1
965
 	NOTE_EOF                          = 0x2
1106
 	NOTE_EOF                          = 0x2
969
 	NOTE_FORK                         = 0x40000000
1110
 	NOTE_FORK                         = 0x40000000
970
 	NOTE_LINK                         = 0x10
1111
 	NOTE_LINK                         = 0x10
971
 	NOTE_LOWAT                        = 0x1
1112
 	NOTE_LOWAT                        = 0x1
1113
+	NOTE_OOB                          = 0x4
972
 	NOTE_PCTRLMASK                    = 0xf0000000
1114
 	NOTE_PCTRLMASK                    = 0xf0000000
973
 	NOTE_PDATAMASK                    = 0xfffff
1115
 	NOTE_PDATAMASK                    = 0xfffff
974
 	NOTE_RENAME                       = 0x20
1116
 	NOTE_RENAME                       = 0x20
978
 	NOTE_TRUNCATE                     = 0x80
1120
 	NOTE_TRUNCATE                     = 0x80
979
 	NOTE_WRITE                        = 0x2
1121
 	NOTE_WRITE                        = 0x2
980
 	OCRNL                             = 0x10
1122
 	OCRNL                             = 0x10
1123
+	OLCUC                             = 0x20
981
 	ONLCR                             = 0x2
1124
 	ONLCR                             = 0x2
982
 	ONLRET                            = 0x80
1125
 	ONLRET                            = 0x80
983
 	ONOCR                             = 0x40
1126
 	ONOCR                             = 0x40
984
 	ONOEOT                            = 0x8
1127
 	ONOEOT                            = 0x8
985
 	OPOST                             = 0x1
1128
 	OPOST                             = 0x1
1129
+	OXTABS                            = 0x4
986
 	O_ACCMODE                         = 0x3
1130
 	O_ACCMODE                         = 0x3
987
 	O_APPEND                          = 0x8
1131
 	O_APPEND                          = 0x8
988
 	O_ASYNC                           = 0x40
1132
 	O_ASYNC                           = 0x40
1027
 	RLIMIT_STACK                      = 0x3
1171
 	RLIMIT_STACK                      = 0x3
1028
 	RLIM_INFINITY                     = 0x7fffffffffffffff
1172
 	RLIM_INFINITY                     = 0x7fffffffffffffff
1029
 	RTAX_AUTHOR                       = 0x6
1173
 	RTAX_AUTHOR                       = 0x6
1174
+	RTAX_BFD                          = 0xb
1030
 	RTAX_BRD                          = 0x7
1175
 	RTAX_BRD                          = 0x7
1176
+	RTAX_DNS                          = 0xc
1031
 	RTAX_DST                          = 0x0
1177
 	RTAX_DST                          = 0x0
1032
 	RTAX_GATEWAY                      = 0x1
1178
 	RTAX_GATEWAY                      = 0x1
1033
 	RTAX_GENMASK                      = 0x3
1179
 	RTAX_GENMASK                      = 0x3
1034
 	RTAX_IFA                          = 0x5
1180
 	RTAX_IFA                          = 0x5
1035
 	RTAX_IFP                          = 0x4
1181
 	RTAX_IFP                          = 0x4
1036
 	RTAX_LABEL                        = 0xa
1182
 	RTAX_LABEL                        = 0xa
1037
-	RTAX_MAX                          = 0xb
1183
+	RTAX_MAX                          = 0xf
1038
 	RTAX_NETMASK                      = 0x2
1184
 	RTAX_NETMASK                      = 0x2
1185
+	RTAX_SEARCH                       = 0xe
1039
 	RTAX_SRC                          = 0x8
1186
 	RTAX_SRC                          = 0x8
1040
 	RTAX_SRCMASK                      = 0x9
1187
 	RTAX_SRCMASK                      = 0x9
1188
+	RTAX_STATIC                       = 0xd
1041
 	RTA_AUTHOR                        = 0x40
1189
 	RTA_AUTHOR                        = 0x40
1190
+	RTA_BFD                           = 0x800
1042
 	RTA_BRD                           = 0x80
1191
 	RTA_BRD                           = 0x80
1192
+	RTA_DNS                           = 0x1000
1043
 	RTA_DST                           = 0x1
1193
 	RTA_DST                           = 0x1
1044
 	RTA_GATEWAY                       = 0x2
1194
 	RTA_GATEWAY                       = 0x2
1045
 	RTA_GENMASK                       = 0x8
1195
 	RTA_GENMASK                       = 0x8
1047
 	RTA_IFP                           = 0x10
1197
 	RTA_IFP                           = 0x10
1048
 	RTA_LABEL                         = 0x400
1198
 	RTA_LABEL                         = 0x400
1049
 	RTA_NETMASK                       = 0x4
1199
 	RTA_NETMASK                       = 0x4
1200
+	RTA_SEARCH                        = 0x4000
1050
 	RTA_SRC                           = 0x100
1201
 	RTA_SRC                           = 0x100
1051
 	RTA_SRCMASK                       = 0x200
1202
 	RTA_SRCMASK                       = 0x200
1203
+	RTA_STATIC                        = 0x2000
1052
 	RTF_ANNOUNCE                      = 0x4000
1204
 	RTF_ANNOUNCE                      = 0x4000
1205
+	RTF_BFD                           = 0x1000000
1053
 	RTF_BLACKHOLE                     = 0x1000
1206
 	RTF_BLACKHOLE                     = 0x1000
1054
 	RTF_BROADCAST                     = 0x400000
1207
 	RTF_BROADCAST                     = 0x400000
1208
+	RTF_CACHED                        = 0x20000
1055
 	RTF_CLONED                        = 0x10000
1209
 	RTF_CLONED                        = 0x10000
1056
 	RTF_CLONING                       = 0x100
1210
 	RTF_CLONING                       = 0x100
1211
+	RTF_CONNECTED                     = 0x800000
1057
 	RTF_DONE                          = 0x40
1212
 	RTF_DONE                          = 0x40
1058
 	RTF_DYNAMIC                       = 0x10
1213
 	RTF_DYNAMIC                       = 0x10
1059
-	RTF_FMASK                         = 0x70f808
1214
+	RTF_FMASK                         = 0x110fc08
1060
 	RTF_GATEWAY                       = 0x2
1215
 	RTF_GATEWAY                       = 0x2
1061
 	RTF_HOST                          = 0x4
1216
 	RTF_HOST                          = 0x4
1062
 	RTF_LLINFO                        = 0x400
1217
 	RTF_LLINFO                        = 0x400
1063
 	RTF_LOCAL                         = 0x200000
1218
 	RTF_LOCAL                         = 0x200000
1064
-	RTF_MASK                          = 0x80
1065
 	RTF_MODIFIED                      = 0x20
1219
 	RTF_MODIFIED                      = 0x20
1066
 	RTF_MPATH                         = 0x40000
1220
 	RTF_MPATH                         = 0x40000
1067
 	RTF_MPLS                          = 0x100000
1221
 	RTF_MPLS                          = 0x100000
1222
+	RTF_MULTICAST                     = 0x200
1068
 	RTF_PERMANENT_ARP                 = 0x2000
1223
 	RTF_PERMANENT_ARP                 = 0x2000
1069
 	RTF_PROTO1                        = 0x8000
1224
 	RTF_PROTO1                        = 0x8000
1070
 	RTF_PROTO2                        = 0x4000
1225
 	RTF_PROTO2                        = 0x4000
1073
 	RTF_STATIC                        = 0x800
1228
 	RTF_STATIC                        = 0x800
1074
 	RTF_UP                            = 0x1
1229
 	RTF_UP                            = 0x1
1075
 	RTF_USETRAILERS                   = 0x8000
1230
 	RTF_USETRAILERS                   = 0x8000
1076
-	RTF_XRESOLVE                      = 0x200
1231
+	RTM_80211INFO                     = 0x15
1077
 	RTM_ADD                           = 0x1
1232
 	RTM_ADD                           = 0x1
1233
+	RTM_BFD                           = 0x12
1078
 	RTM_CHANGE                        = 0x3
1234
 	RTM_CHANGE                        = 0x3
1235
+	RTM_CHGADDRATTR                   = 0x14
1079
 	RTM_DELADDR                       = 0xd
1236
 	RTM_DELADDR                       = 0xd
1080
 	RTM_DELETE                        = 0x2
1237
 	RTM_DELETE                        = 0x2
1081
 	RTM_DESYNC                        = 0x10
1238
 	RTM_DESYNC                        = 0x10
1082
 	RTM_GET                           = 0x4
1239
 	RTM_GET                           = 0x4
1083
 	RTM_IFANNOUNCE                    = 0xf
1240
 	RTM_IFANNOUNCE                    = 0xf
1084
 	RTM_IFINFO                        = 0xe
1241
 	RTM_IFINFO                        = 0xe
1085
-	RTM_LOCK                          = 0x8
1242
+	RTM_INVALIDATE                    = 0x11
1086
 	RTM_LOSING                        = 0x5
1243
 	RTM_LOSING                        = 0x5
1087
 	RTM_MAXSIZE                       = 0x800
1244
 	RTM_MAXSIZE                       = 0x800
1088
 	RTM_MISS                          = 0x7
1245
 	RTM_MISS                          = 0x7
1089
 	RTM_NEWADDR                       = 0xc
1246
 	RTM_NEWADDR                       = 0xc
1247
+	RTM_PROPOSAL                      = 0x13
1090
 	RTM_REDIRECT                      = 0x6
1248
 	RTM_REDIRECT                      = 0x6
1091
 	RTM_RESOLVE                       = 0xb
1249
 	RTM_RESOLVE                       = 0xb
1092
-	RTM_RTTUNIT                       = 0xf4240
1250
+	RTM_SOURCE                        = 0x16
1093
 	RTM_VERSION                       = 0x5
1251
 	RTM_VERSION                       = 0x5
1094
 	RTV_EXPIRE                        = 0x4
1252
 	RTV_EXPIRE                        = 0x4
1095
 	RTV_HOPCOUNT                      = 0x2
1253
 	RTV_HOPCOUNT                      = 0x2
1099
 	RTV_RTTVAR                        = 0x80
1257
 	RTV_RTTVAR                        = 0x80
1100
 	RTV_SPIPE                         = 0x10
1258
 	RTV_SPIPE                         = 0x10
1101
 	RTV_SSTHRESH                      = 0x20
1259
 	RTV_SSTHRESH                      = 0x20
1260
+	RT_TABLEID_BITS                   = 0x8
1261
+	RT_TABLEID_MASK                   = 0xff
1102
 	RT_TABLEID_MAX                    = 0xff
1262
 	RT_TABLEID_MAX                    = 0xff
1103
 	RUSAGE_CHILDREN                   = -0x1
1263
 	RUSAGE_CHILDREN                   = -0x1
1104
 	RUSAGE_SELF                       = 0x0
1264
 	RUSAGE_SELF                       = 0x0
1105
 	RUSAGE_THREAD                     = 0x1
1265
 	RUSAGE_THREAD                     = 0x1
1106
 	SCM_RIGHTS                        = 0x1
1266
 	SCM_RIGHTS                        = 0x1
1107
 	SCM_TIMESTAMP                     = 0x4
1267
 	SCM_TIMESTAMP                     = 0x4
1268
+	SEEK_CUR                          = 0x1
1269
+	SEEK_END                          = 0x2
1270
+	SEEK_SET                          = 0x0
1108
 	SHUT_RD                           = 0x0
1271
 	SHUT_RD                           = 0x0
1109
 	SHUT_RDWR                         = 0x2
1272
 	SHUT_RDWR                         = 0x2
1110
 	SHUT_WR                           = 0x1
1273
 	SHUT_WR                           = 0x1
1111
 	SIOCADDMULTI                      = 0x80206931
1274
 	SIOCADDMULTI                      = 0x80206931
1112
 	SIOCAIFADDR                       = 0x8040691a
1275
 	SIOCAIFADDR                       = 0x8040691a
1113
 	SIOCAIFGROUP                      = 0x80246987
1276
 	SIOCAIFGROUP                      = 0x80246987
1114
-	SIOCALIFADDR                      = 0x8218691c
1115
 	SIOCATMARK                        = 0x40047307
1277
 	SIOCATMARK                        = 0x40047307
1116
-	SIOCBRDGADD                       = 0x8054693c
1117
-	SIOCBRDGADDS                      = 0x80546941
1118
-	SIOCBRDGARL                       = 0x806e694d
1278
+	SIOCBRDGADD                       = 0x8060693c
1279
+	SIOCBRDGADDL                      = 0x80606949
1280
+	SIOCBRDGADDS                      = 0x80606941
1281
+	SIOCBRDGARL                       = 0x808c694d
1119
 	SIOCBRDGDADDR                     = 0x81286947
1282
 	SIOCBRDGDADDR                     = 0x81286947
1120
-	SIOCBRDGDEL                       = 0x8054693d
1121
-	SIOCBRDGDELS                      = 0x80546942
1122
-	SIOCBRDGFLUSH                     = 0x80546948
1123
-	SIOCBRDGFRL                       = 0x806e694e
1283
+	SIOCBRDGDEL                       = 0x8060693d
1284
+	SIOCBRDGDELS                      = 0x80606942
1285
+	SIOCBRDGFLUSH                     = 0x80606948
1286
+	SIOCBRDGFRL                       = 0x808c694e
1124
 	SIOCBRDGGCACHE                    = 0xc0146941
1287
 	SIOCBRDGGCACHE                    = 0xc0146941
1125
 	SIOCBRDGGFD                       = 0xc0146952
1288
 	SIOCBRDGGFD                       = 0xc0146952
1126
 	SIOCBRDGGHT                       = 0xc0146951
1289
 	SIOCBRDGGHT                       = 0xc0146951
1127
-	SIOCBRDGGIFFLGS                   = 0xc054693e
1290
+	SIOCBRDGGIFFLGS                   = 0xc060693e
1128
 	SIOCBRDGGMA                       = 0xc0146953
1291
 	SIOCBRDGGMA                       = 0xc0146953
1129
-	SIOCBRDGGPARAM                    = 0xc03c6958
1292
+	SIOCBRDGGPARAM                    = 0xc0406958
1130
 	SIOCBRDGGPRI                      = 0xc0146950
1293
 	SIOCBRDGGPRI                      = 0xc0146950
1131
 	SIOCBRDGGRL                       = 0xc028694f
1294
 	SIOCBRDGGRL                       = 0xc028694f
1132
-	SIOCBRDGGSIFS                     = 0xc054693c
1133
 	SIOCBRDGGTO                       = 0xc0146946
1295
 	SIOCBRDGGTO                       = 0xc0146946
1134
-	SIOCBRDGIFS                       = 0xc0546942
1296
+	SIOCBRDGIFS                       = 0xc0606942
1135
 	SIOCBRDGRTS                       = 0xc0186943
1297
 	SIOCBRDGRTS                       = 0xc0186943
1136
 	SIOCBRDGSADDR                     = 0xc1286944
1298
 	SIOCBRDGSADDR                     = 0xc1286944
1137
 	SIOCBRDGSCACHE                    = 0x80146940
1299
 	SIOCBRDGSCACHE                    = 0x80146940
1138
 	SIOCBRDGSFD                       = 0x80146952
1300
 	SIOCBRDGSFD                       = 0x80146952
1139
 	SIOCBRDGSHT                       = 0x80146951
1301
 	SIOCBRDGSHT                       = 0x80146951
1140
-	SIOCBRDGSIFCOST                   = 0x80546955
1141
-	SIOCBRDGSIFFLGS                   = 0x8054693f
1142
-	SIOCBRDGSIFPRIO                   = 0x80546954
1302
+	SIOCBRDGSIFCOST                   = 0x80606955
1303
+	SIOCBRDGSIFFLGS                   = 0x8060693f
1304
+	SIOCBRDGSIFPRIO                   = 0x80606954
1305
+	SIOCBRDGSIFPROT                   = 0x8060694a
1143
 	SIOCBRDGSMA                       = 0x80146953
1306
 	SIOCBRDGSMA                       = 0x80146953
1144
 	SIOCBRDGSPRI                      = 0x80146950
1307
 	SIOCBRDGSPRI                      = 0x80146950
1145
 	SIOCBRDGSPROTO                    = 0x8014695a
1308
 	SIOCBRDGSPROTO                    = 0x8014695a
1146
 	SIOCBRDGSTO                       = 0x80146945
1309
 	SIOCBRDGSTO                       = 0x80146945
1147
 	SIOCBRDGSTXHC                     = 0x80146959
1310
 	SIOCBRDGSTXHC                     = 0x80146959
1311
+	SIOCDELLABEL                      = 0x80206997
1148
 	SIOCDELMULTI                      = 0x80206932
1312
 	SIOCDELMULTI                      = 0x80206932
1149
 	SIOCDIFADDR                       = 0x80206919
1313
 	SIOCDIFADDR                       = 0x80206919
1150
 	SIOCDIFGROUP                      = 0x80246989
1314
 	SIOCDIFGROUP                      = 0x80246989
1315
+	SIOCDIFPARENT                     = 0x802069b4
1151
 	SIOCDIFPHYADDR                    = 0x80206949
1316
 	SIOCDIFPHYADDR                    = 0x80206949
1152
-	SIOCDLIFADDR                      = 0x8218691e
1317
+	SIOCDPWE3NEIGHBOR                 = 0x802069de
1318
+	SIOCDVNETID                       = 0x802069af
1153
 	SIOCGETKALIVE                     = 0xc01869a4
1319
 	SIOCGETKALIVE                     = 0xc01869a4
1154
 	SIOCGETLABEL                      = 0x8020699a
1320
 	SIOCGETLABEL                      = 0x8020699a
1321
+	SIOCGETMPWCFG                     = 0xc02069ae
1155
 	SIOCGETPFLOW                      = 0xc02069fe
1322
 	SIOCGETPFLOW                      = 0xc02069fe
1156
 	SIOCGETPFSYNC                     = 0xc02069f8
1323
 	SIOCGETPFSYNC                     = 0xc02069f8
1157
 	SIOCGETSGCNT                      = 0xc0147534
1324
 	SIOCGETSGCNT                      = 0xc0147534
1158
 	SIOCGETVIFCNT                     = 0xc0147533
1325
 	SIOCGETVIFCNT                     = 0xc0147533
1159
 	SIOCGETVLAN                       = 0xc0206990
1326
 	SIOCGETVLAN                       = 0xc0206990
1160
-	SIOCGHIWAT                        = 0x40047301
1161
 	SIOCGIFADDR                       = 0xc0206921
1327
 	SIOCGIFADDR                       = 0xc0206921
1162
-	SIOCGIFASYNCMAP                   = 0xc020697c
1163
 	SIOCGIFBRDADDR                    = 0xc0206923
1328
 	SIOCGIFBRDADDR                    = 0xc0206923
1164
 	SIOCGIFCONF                       = 0xc0086924
1329
 	SIOCGIFCONF                       = 0xc0086924
1165
 	SIOCGIFDATA                       = 0xc020691b
1330
 	SIOCGIFDATA                       = 0xc020691b
1168
 	SIOCGIFFLAGS                      = 0xc0206911
1333
 	SIOCGIFFLAGS                      = 0xc0206911
1169
 	SIOCGIFGATTR                      = 0xc024698b
1334
 	SIOCGIFGATTR                      = 0xc024698b
1170
 	SIOCGIFGENERIC                    = 0xc020693a
1335
 	SIOCGIFGENERIC                    = 0xc020693a
1336
+	SIOCGIFGLIST                      = 0xc024698d
1171
 	SIOCGIFGMEMB                      = 0xc024698a
1337
 	SIOCGIFGMEMB                      = 0xc024698a
1172
 	SIOCGIFGROUP                      = 0xc0246988
1338
 	SIOCGIFGROUP                      = 0xc0246988
1173
 	SIOCGIFHARDMTU                    = 0xc02069a5
1339
 	SIOCGIFHARDMTU                    = 0xc02069a5
1174
-	SIOCGIFMEDIA                      = 0xc0286936
1340
+	SIOCGIFLLPRIO                     = 0xc02069b6
1341
+	SIOCGIFMEDIA                      = 0xc0386938
1175
 	SIOCGIFMETRIC                     = 0xc0206917
1342
 	SIOCGIFMETRIC                     = 0xc0206917
1176
 	SIOCGIFMTU                        = 0xc020697e
1343
 	SIOCGIFMTU                        = 0xc020697e
1177
 	SIOCGIFNETMASK                    = 0xc0206925
1344
 	SIOCGIFNETMASK                    = 0xc0206925
1178
-	SIOCGIFPDSTADDR                   = 0xc0206948
1345
+	SIOCGIFPAIR                       = 0xc02069b1
1346
+	SIOCGIFPARENT                     = 0xc02069b3
1179
 	SIOCGIFPRIORITY                   = 0xc020699c
1347
 	SIOCGIFPRIORITY                   = 0xc020699c
1180
-	SIOCGIFPSRCADDR                   = 0xc0206947
1181
 	SIOCGIFRDOMAIN                    = 0xc02069a0
1348
 	SIOCGIFRDOMAIN                    = 0xc02069a0
1182
 	SIOCGIFRTLABEL                    = 0xc0206983
1349
 	SIOCGIFRTLABEL                    = 0xc0206983
1183
 	SIOCGIFRXR                        = 0x802069aa
1350
 	SIOCGIFRXR                        = 0x802069aa
1184
-	SIOCGIFTIMESLOT                   = 0xc0206986
1351
+	SIOCGIFSFFPAGE                    = 0xc1126939
1185
 	SIOCGIFXFLAGS                     = 0xc020699e
1352
 	SIOCGIFXFLAGS                     = 0xc020699e
1186
-	SIOCGLIFADDR                      = 0xc218691d
1187
 	SIOCGLIFPHYADDR                   = 0xc218694b
1353
 	SIOCGLIFPHYADDR                   = 0xc218694b
1354
+	SIOCGLIFPHYDF                     = 0xc02069c2
1355
+	SIOCGLIFPHYECN                    = 0xc02069c8
1188
 	SIOCGLIFPHYRTABLE                 = 0xc02069a2
1356
 	SIOCGLIFPHYRTABLE                 = 0xc02069a2
1189
 	SIOCGLIFPHYTTL                    = 0xc02069a9
1357
 	SIOCGLIFPHYTTL                    = 0xc02069a9
1190
-	SIOCGLOWAT                        = 0x40047303
1191
 	SIOCGPGRP                         = 0x40047309
1358
 	SIOCGPGRP                         = 0x40047309
1359
+	SIOCGPWE3                         = 0xc0206998
1360
+	SIOCGPWE3CTRLWORD                 = 0xc02069dc
1361
+	SIOCGPWE3FAT                      = 0xc02069dd
1362
+	SIOCGPWE3NEIGHBOR                 = 0xc21869de
1363
+	SIOCGRXHPRIO                      = 0xc02069db
1192
 	SIOCGSPPPPARAMS                   = 0xc0206994
1364
 	SIOCGSPPPPARAMS                   = 0xc0206994
1365
+	SIOCGTXHPRIO                      = 0xc02069c6
1366
+	SIOCGUMBINFO                      = 0xc02069be
1367
+	SIOCGUMBPARAM                     = 0xc02069c0
1193
 	SIOCGVH                           = 0xc02069f6
1368
 	SIOCGVH                           = 0xc02069f6
1369
+	SIOCGVNETFLOWID                   = 0xc02069c4
1194
 	SIOCGVNETID                       = 0xc02069a7
1370
 	SIOCGVNETID                       = 0xc02069a7
1371
+	SIOCIFAFATTACH                    = 0x801169ab
1372
+	SIOCIFAFDETACH                    = 0x801169ac
1195
 	SIOCIFCREATE                      = 0x8020697a
1373
 	SIOCIFCREATE                      = 0x8020697a
1196
 	SIOCIFDESTROY                     = 0x80206979
1374
 	SIOCIFDESTROY                     = 0x80206979
1197
 	SIOCIFGCLONERS                    = 0xc00c6978
1375
 	SIOCIFGCLONERS                    = 0xc00c6978
1198
 	SIOCSETKALIVE                     = 0x801869a3
1376
 	SIOCSETKALIVE                     = 0x801869a3
1199
 	SIOCSETLABEL                      = 0x80206999
1377
 	SIOCSETLABEL                      = 0x80206999
1378
+	SIOCSETMPWCFG                     = 0x802069ad
1200
 	SIOCSETPFLOW                      = 0x802069fd
1379
 	SIOCSETPFLOW                      = 0x802069fd
1201
 	SIOCSETPFSYNC                     = 0x802069f7
1380
 	SIOCSETPFSYNC                     = 0x802069f7
1202
 	SIOCSETVLAN                       = 0x8020698f
1381
 	SIOCSETVLAN                       = 0x8020698f
1203
-	SIOCSHIWAT                        = 0x80047300
1204
 	SIOCSIFADDR                       = 0x8020690c
1382
 	SIOCSIFADDR                       = 0x8020690c
1205
-	SIOCSIFASYNCMAP                   = 0x8020697d
1206
 	SIOCSIFBRDADDR                    = 0x80206913
1383
 	SIOCSIFBRDADDR                    = 0x80206913
1207
 	SIOCSIFDESCR                      = 0x80206980
1384
 	SIOCSIFDESCR                      = 0x80206980
1208
 	SIOCSIFDSTADDR                    = 0x8020690e
1385
 	SIOCSIFDSTADDR                    = 0x8020690e
1210
 	SIOCSIFGATTR                      = 0x8024698c
1387
 	SIOCSIFGATTR                      = 0x8024698c
1211
 	SIOCSIFGENERIC                    = 0x80206939
1388
 	SIOCSIFGENERIC                    = 0x80206939
1212
 	SIOCSIFLLADDR                     = 0x8020691f
1389
 	SIOCSIFLLADDR                     = 0x8020691f
1213
-	SIOCSIFMEDIA                      = 0xc0206935
1390
+	SIOCSIFLLPRIO                     = 0x802069b5
1391
+	SIOCSIFMEDIA                      = 0xc0206937
1214
 	SIOCSIFMETRIC                     = 0x80206918
1392
 	SIOCSIFMETRIC                     = 0x80206918
1215
 	SIOCSIFMTU                        = 0x8020697f
1393
 	SIOCSIFMTU                        = 0x8020697f
1216
 	SIOCSIFNETMASK                    = 0x80206916
1394
 	SIOCSIFNETMASK                    = 0x80206916
1217
-	SIOCSIFPHYADDR                    = 0x80406946
1395
+	SIOCSIFPAIR                       = 0x802069b0
1396
+	SIOCSIFPARENT                     = 0x802069b2
1218
 	SIOCSIFPRIORITY                   = 0x8020699b
1397
 	SIOCSIFPRIORITY                   = 0x8020699b
1219
 	SIOCSIFRDOMAIN                    = 0x8020699f
1398
 	SIOCSIFRDOMAIN                    = 0x8020699f
1220
 	SIOCSIFRTLABEL                    = 0x80206982
1399
 	SIOCSIFRTLABEL                    = 0x80206982
1221
-	SIOCSIFTIMESLOT                   = 0x80206985
1222
 	SIOCSIFXFLAGS                     = 0x8020699d
1400
 	SIOCSIFXFLAGS                     = 0x8020699d
1223
 	SIOCSLIFPHYADDR                   = 0x8218694a
1401
 	SIOCSLIFPHYADDR                   = 0x8218694a
1402
+	SIOCSLIFPHYDF                     = 0x802069c1
1403
+	SIOCSLIFPHYECN                    = 0x802069c7
1224
 	SIOCSLIFPHYRTABLE                 = 0x802069a1
1404
 	SIOCSLIFPHYRTABLE                 = 0x802069a1
1225
 	SIOCSLIFPHYTTL                    = 0x802069a8
1405
 	SIOCSLIFPHYTTL                    = 0x802069a8
1226
-	SIOCSLOWAT                        = 0x80047302
1227
 	SIOCSPGRP                         = 0x80047308
1406
 	SIOCSPGRP                         = 0x80047308
1407
+	SIOCSPWE3CTRLWORD                 = 0x802069dc
1408
+	SIOCSPWE3FAT                      = 0x802069dd
1409
+	SIOCSPWE3NEIGHBOR                 = 0x821869de
1410
+	SIOCSRXHPRIO                      = 0x802069db
1228
 	SIOCSSPPPPARAMS                   = 0x80206993
1411
 	SIOCSSPPPPARAMS                   = 0x80206993
1412
+	SIOCSTXHPRIO                      = 0x802069c5
1413
+	SIOCSUMBPARAM                     = 0x802069bf
1229
 	SIOCSVH                           = 0xc02069f5
1414
 	SIOCSVH                           = 0xc02069f5
1415
+	SIOCSVNETFLOWID                   = 0x802069c3
1230
 	SIOCSVNETID                       = 0x802069a6
1416
 	SIOCSVNETID                       = 0x802069a6
1231
 	SOCK_CLOEXEC                      = 0x8000
1417
 	SOCK_CLOEXEC                      = 0x8000
1232
 	SOCK_DGRAM                        = 0x2
1418
 	SOCK_DGRAM                        = 0x2
1419
+	SOCK_DNS                          = 0x1000
1233
 	SOCK_NONBLOCK                     = 0x4000
1420
 	SOCK_NONBLOCK                     = 0x4000
1234
 	SOCK_RAW                          = 0x3
1421
 	SOCK_RAW                          = 0x3
1235
 	SOCK_RDM                          = 0x4
1422
 	SOCK_RDM                          = 0x4
1241
 	SO_BINDANY                        = 0x1000
1428
 	SO_BINDANY                        = 0x1000
1242
 	SO_BROADCAST                      = 0x20
1429
 	SO_BROADCAST                      = 0x20
1243
 	SO_DEBUG                          = 0x1
1430
 	SO_DEBUG                          = 0x1
1431
+	SO_DOMAIN                         = 0x1024
1244
 	SO_DONTROUTE                      = 0x10
1432
 	SO_DONTROUTE                      = 0x10
1245
 	SO_ERROR                          = 0x1007
1433
 	SO_ERROR                          = 0x1007
1246
 	SO_KEEPALIVE                      = 0x8
1434
 	SO_KEEPALIVE                      = 0x8
1248
 	SO_NETPROC                        = 0x1020
1436
 	SO_NETPROC                        = 0x1020
1249
 	SO_OOBINLINE                      = 0x100
1437
 	SO_OOBINLINE                      = 0x100
1250
 	SO_PEERCRED                       = 0x1022
1438
 	SO_PEERCRED                       = 0x1022
1439
+	SO_PROTOCOL                       = 0x1025
1251
 	SO_RCVBUF                         = 0x1002
1440
 	SO_RCVBUF                         = 0x1002
1252
 	SO_RCVLOWAT                       = 0x1004
1441
 	SO_RCVLOWAT                       = 0x1004
1253
 	SO_RCVTIMEO                       = 0x1006
1442
 	SO_RCVTIMEO                       = 0x1006
1261
 	SO_TIMESTAMP                      = 0x800
1450
 	SO_TIMESTAMP                      = 0x800
1262
 	SO_TYPE                           = 0x1008
1451
 	SO_TYPE                           = 0x1008
1263
 	SO_USELOOPBACK                    = 0x40
1452
 	SO_USELOOPBACK                    = 0x40
1453
+	SO_ZEROIZE                        = 0x2000
1264
 	S_BLKSIZE                         = 0x200
1454
 	S_BLKSIZE                         = 0x200
1265
 	S_IEXEC                           = 0x40
1455
 	S_IEXEC                           = 0x40
1266
 	S_IFBLK                           = 0x6000
1456
 	S_IFBLK                           = 0x6000
1290
 	S_IXOTH                           = 0x1
1480
 	S_IXOTH                           = 0x1
1291
 	S_IXUSR                           = 0x40
1481
 	S_IXUSR                           = 0x40
1292
 	TCIFLUSH                          = 0x1
1482
 	TCIFLUSH                          = 0x1
1483
+	TCIOFF                            = 0x3
1293
 	TCIOFLUSH                         = 0x3
1484
 	TCIOFLUSH                         = 0x3
1485
+	TCION                             = 0x4
1294
 	TCOFLUSH                          = 0x2
1486
 	TCOFLUSH                          = 0x2
1295
-	TCP_MAXBURST                      = 0x4
1487
+	TCOOFF                            = 0x1
1488
+	TCOON                             = 0x2
1489
+	TCPOPT_EOL                        = 0x0
1490
+	TCPOPT_MAXSEG                     = 0x2
1491
+	TCPOPT_NOP                        = 0x1
1492
+	TCPOPT_SACK                       = 0x5
1493
+	TCPOPT_SACK_HDR                   = 0x1010500
1494
+	TCPOPT_SACK_PERMITTED             = 0x4
1495
+	TCPOPT_SACK_PERMIT_HDR            = 0x1010402
1496
+	TCPOPT_SIGNATURE                  = 0x13
1497
+	TCPOPT_TIMESTAMP                  = 0x8
1498
+	TCPOPT_TSTAMP_HDR                 = 0x101080a
1499
+	TCPOPT_WINDOW                     = 0x3
1500
+	TCP_INFO                          = 0x9
1296
 	TCP_MAXSEG                        = 0x2
1501
 	TCP_MAXSEG                        = 0x2
1297
 	TCP_MAXWIN                        = 0xffff
1502
 	TCP_MAXWIN                        = 0xffff
1298
 	TCP_MAX_SACK                      = 0x3
1503
 	TCP_MAX_SACK                      = 0x3
1301
 	TCP_MSS                           = 0x200
1506
 	TCP_MSS                           = 0x200
1302
 	TCP_NODELAY                       = 0x1
1507
 	TCP_NODELAY                       = 0x1
1303
 	TCP_NOPUSH                        = 0x10
1508
 	TCP_NOPUSH                        = 0x10
1304
-	TCP_NSTATES                       = 0xb
1509
+	TCP_SACKHOLE_LIMIT                = 0x80
1305
 	TCP_SACK_ENABLE                   = 0x8
1510
 	TCP_SACK_ENABLE                   = 0x8
1306
 	TCSAFLUSH                         = 0x2
1511
 	TCSAFLUSH                         = 0x2
1512
+	TIMER_ABSTIME                     = 0x1
1513
+	TIMER_RELTIME                     = 0x0
1307
 	TIOCCBRK                          = 0x2000747a
1514
 	TIOCCBRK                          = 0x2000747a
1308
 	TIOCCDTR                          = 0x20007478
1515
 	TIOCCDTR                          = 0x20007478
1516
+	TIOCCHKVERAUTH                    = 0x2000741e
1517
+	TIOCCLRVERAUTH                    = 0x2000741d
1309
 	TIOCCONS                          = 0x80047462
1518
 	TIOCCONS                          = 0x80047462
1310
 	TIOCDRAIN                         = 0x2000745e
1519
 	TIOCDRAIN                         = 0x2000745e
1311
 	TIOCEXCL                          = 0x2000740d
1520
 	TIOCEXCL                          = 0x2000740d
1321
 	TIOCGFLAGS                        = 0x4004745d
1530
 	TIOCGFLAGS                        = 0x4004745d
1322
 	TIOCGPGRP                         = 0x40047477
1531
 	TIOCGPGRP                         = 0x40047477
1323
 	TIOCGSID                          = 0x40047463
1532
 	TIOCGSID                          = 0x40047463
1324
-	TIOCGTSTAMP                       = 0x400c745b
1533
+	TIOCGTSTAMP                       = 0x4010745b
1325
 	TIOCGWINSZ                        = 0x40087468
1534
 	TIOCGWINSZ                        = 0x40087468
1326
 	TIOCMBIC                          = 0x8004746b
1535
 	TIOCMBIC                          = 0x8004746b
1327
 	TIOCMBIS                          = 0x8004746c
1536
 	TIOCMBIS                          = 0x8004746c
1360
 	TIOCSETAF                         = 0x802c7416
1569
 	TIOCSETAF                         = 0x802c7416
1361
 	TIOCSETAW                         = 0x802c7415
1570
 	TIOCSETAW                         = 0x802c7415
1362
 	TIOCSETD                          = 0x8004741b
1571
 	TIOCSETD                          = 0x8004741b
1572
+	TIOCSETVERAUTH                    = 0x8004741c
1363
 	TIOCSFLAGS                        = 0x8004745c
1573
 	TIOCSFLAGS                        = 0x8004745c
1364
 	TIOCSIG                           = 0x8004745f
1574
 	TIOCSIG                           = 0x8004745f
1365
 	TIOCSPGRP                         = 0x80047476
1575
 	TIOCSPGRP                         = 0x80047476
1366
 	TIOCSTART                         = 0x2000746e
1576
 	TIOCSTART                         = 0x2000746e
1367
-	TIOCSTAT                          = 0x80047465
1368
-	TIOCSTI                           = 0x80017472
1577
+	TIOCSTAT                          = 0x20007465
1369
 	TIOCSTOP                          = 0x2000746f
1578
 	TIOCSTOP                          = 0x2000746f
1370
 	TIOCSTSTAMP                       = 0x8008745a
1579
 	TIOCSTSTAMP                       = 0x8008745a
1371
 	TIOCSWINSZ                        = 0x80087467
1580
 	TIOCSWINSZ                        = 0x80087467
1372
 	TIOCUCNTL                         = 0x80047466
1581
 	TIOCUCNTL                         = 0x80047466
1582
+	TIOCUCNTL_CBRK                    = 0x7a
1583
+	TIOCUCNTL_SBRK                    = 0x7b
1373
 	TOSTOP                            = 0x400000
1584
 	TOSTOP                            = 0x400000
1585
+	UTIME_NOW                         = -0x2
1586
+	UTIME_OMIT                        = -0x1
1374
 	VDISCARD                          = 0xf
1587
 	VDISCARD                          = 0xf
1375
 	VDSUSP                            = 0xb
1588
 	VDSUSP                            = 0xb
1376
 	VEOF                              = 0x0
1589
 	VEOF                              = 0x0
1381
 	VKILL                             = 0x5
1594
 	VKILL                             = 0x5
1382
 	VLNEXT                            = 0xe
1595
 	VLNEXT                            = 0xe
1383
 	VMIN                              = 0x10
1596
 	VMIN                              = 0x10
1597
+	VM_ANONMIN                        = 0x7
1598
+	VM_LOADAVG                        = 0x2
1599
+	VM_MALLOC_CONF                    = 0xc
1600
+	VM_MAXID                          = 0xd
1601
+	VM_MAXSLP                         = 0xa
1602
+	VM_METER                          = 0x1
1603
+	VM_NKMEMPAGES                     = 0x6
1604
+	VM_PSSTRINGS                      = 0x3
1605
+	VM_SWAPENCRYPT                    = 0x5
1606
+	VM_USPACE                         = 0xb
1607
+	VM_UVMEXP                         = 0x4
1608
+	VM_VNODEMIN                       = 0x9
1609
+	VM_VTEXTMIN                       = 0x8
1384
 	VQUIT                             = 0x9
1610
 	VQUIT                             = 0x9
1385
 	VREPRINT                          = 0x6
1611
 	VREPRINT                          = 0x6
1386
 	VSTART                            = 0xc
1612
 	VSTART                            = 0xc
1394
 	WCOREFLAG                         = 0x80
1620
 	WCOREFLAG                         = 0x80
1395
 	WNOHANG                           = 0x1
1621
 	WNOHANG                           = 0x1
1396
 	WUNTRACED                         = 0x2
1622
 	WUNTRACED                         = 0x2
1623
+	XCASE                             = 0x1000000
1397
 )
1624
 )
1398
 
1625
 
1399
 // Errors
1626
 // Errors
1407
 	EALREADY        = syscall.Errno(0x25)
1634
 	EALREADY        = syscall.Errno(0x25)
1408
 	EAUTH           = syscall.Errno(0x50)
1635
 	EAUTH           = syscall.Errno(0x50)
1409
 	EBADF           = syscall.Errno(0x9)
1636
 	EBADF           = syscall.Errno(0x9)
1637
+	EBADMSG         = syscall.Errno(0x5c)
1410
 	EBADRPC         = syscall.Errno(0x48)
1638
 	EBADRPC         = syscall.Errno(0x48)
1411
 	EBUSY           = syscall.Errno(0x10)
1639
 	EBUSY           = syscall.Errno(0x10)
1412
 	ECANCELED       = syscall.Errno(0x58)
1640
 	ECANCELED       = syscall.Errno(0x58)
1433
 	EIPSEC          = syscall.Errno(0x52)
1661
 	EIPSEC          = syscall.Errno(0x52)
1434
 	EISCONN         = syscall.Errno(0x38)
1662
 	EISCONN         = syscall.Errno(0x38)
1435
 	EISDIR          = syscall.Errno(0x15)
1663
 	EISDIR          = syscall.Errno(0x15)
1436
-	ELAST           = syscall.Errno(0x5b)
1664
+	ELAST           = syscall.Errno(0x5f)
1437
 	ELOOP           = syscall.Errno(0x3e)
1665
 	ELOOP           = syscall.Errno(0x3e)
1438
 	EMEDIUMTYPE     = syscall.Errno(0x56)
1666
 	EMEDIUMTYPE     = syscall.Errno(0x56)
1439
 	EMFILE          = syscall.Errno(0x18)
1667
 	EMFILE          = syscall.Errno(0x18)
1461
 	ENOTCONN        = syscall.Errno(0x39)
1689
 	ENOTCONN        = syscall.Errno(0x39)
1462
 	ENOTDIR         = syscall.Errno(0x14)
1690
 	ENOTDIR         = syscall.Errno(0x14)
1463
 	ENOTEMPTY       = syscall.Errno(0x42)
1691
 	ENOTEMPTY       = syscall.Errno(0x42)
1692
+	ENOTRECOVERABLE = syscall.Errno(0x5d)
1464
 	ENOTSOCK        = syscall.Errno(0x26)
1693
 	ENOTSOCK        = syscall.Errno(0x26)
1465
 	ENOTSUP         = syscall.Errno(0x5b)
1694
 	ENOTSUP         = syscall.Errno(0x5b)
1466
 	ENOTTY          = syscall.Errno(0x19)
1695
 	ENOTTY          = syscall.Errno(0x19)
1467
 	ENXIO           = syscall.Errno(0x6)
1696
 	ENXIO           = syscall.Errno(0x6)
1468
 	EOPNOTSUPP      = syscall.Errno(0x2d)
1697
 	EOPNOTSUPP      = syscall.Errno(0x2d)
1469
 	EOVERFLOW       = syscall.Errno(0x57)
1698
 	EOVERFLOW       = syscall.Errno(0x57)
1699
+	EOWNERDEAD      = syscall.Errno(0x5e)
1470
 	EPERM           = syscall.Errno(0x1)
1700
 	EPERM           = syscall.Errno(0x1)
1471
 	EPFNOSUPPORT    = syscall.Errno(0x2e)
1701
 	EPFNOSUPPORT    = syscall.Errno(0x2e)
1472
 	EPIPE           = syscall.Errno(0x20)
1702
 	EPIPE           = syscall.Errno(0x20)
1474
 	EPROCUNAVAIL    = syscall.Errno(0x4c)
1704
 	EPROCUNAVAIL    = syscall.Errno(0x4c)
1475
 	EPROGMISMATCH   = syscall.Errno(0x4b)
1705
 	EPROGMISMATCH   = syscall.Errno(0x4b)
1476
 	EPROGUNAVAIL    = syscall.Errno(0x4a)
1706
 	EPROGUNAVAIL    = syscall.Errno(0x4a)
1707
+	EPROTO          = syscall.Errno(0x5f)
1477
 	EPROTONOSUPPORT = syscall.Errno(0x2b)
1708
 	EPROTONOSUPPORT = syscall.Errno(0x2b)
1478
 	EPROTOTYPE      = syscall.Errno(0x29)
1709
 	EPROTOTYPE      = syscall.Errno(0x29)
1479
 	ERANGE          = syscall.Errno(0x22)
1710
 	ERANGE          = syscall.Errno(0x22)
1570
 	{32, "EPIPE", "broken pipe"},
1801
 	{32, "EPIPE", "broken pipe"},
1571
 	{33, "EDOM", "numerical argument out of domain"},
1802
 	{33, "EDOM", "numerical argument out of domain"},
1572
 	{34, "ERANGE", "result too large"},
1803
 	{34, "ERANGE", "result too large"},
1573
-	{35, "EWOULDBLOCK", "resource temporarily unavailable"},
1804
+	{35, "EAGAIN", "resource temporarily unavailable"},
1574
 	{36, "EINPROGRESS", "operation now in progress"},
1805
 	{36, "EINPROGRESS", "operation now in progress"},
1575
 	{37, "EALREADY", "operation already in progress"},
1806
 	{37, "EALREADY", "operation already in progress"},
1576
 	{38, "ENOTSOCK", "socket operation on non-socket"},
1807
 	{38, "ENOTSOCK", "socket operation on non-socket"},
1626
 	{88, "ECANCELED", "operation canceled"},
1857
 	{88, "ECANCELED", "operation canceled"},
1627
 	{89, "EIDRM", "identifier removed"},
1858
 	{89, "EIDRM", "identifier removed"},
1628
 	{90, "ENOMSG", "no message of desired type"},
1859
 	{90, "ENOMSG", "no message of desired type"},
1629
-	{91, "ELAST", "not supported"},
1860
+	{91, "ENOTSUP", "not supported"},
1861
+	{92, "EBADMSG", "bad message"},
1862
+	{93, "ENOTRECOVERABLE", "state not recoverable"},
1863
+	{94, "EOWNERDEAD", "previous owner died"},
1864
+	{95, "ELAST", "protocol error"},
1630
 }
1865
 }
1631
 
1866
 
1632
 // Signal table
1867
 // Signal table
1640
 	{3, "SIGQUIT", "quit"},
1875
 	{3, "SIGQUIT", "quit"},
1641
 	{4, "SIGILL", "illegal instruction"},
1876
 	{4, "SIGILL", "illegal instruction"},
1642
 	{5, "SIGTRAP", "trace/BPT trap"},
1877
 	{5, "SIGTRAP", "trace/BPT trap"},
1643
-	{6, "SIGABRT", "abort trap"},
1878
+	{6, "SIGIOT", "abort trap"},
1644
 	{7, "SIGEMT", "EMT trap"},
1879
 	{7, "SIGEMT", "EMT trap"},
1645
 	{8, "SIGFPE", "floating point exception"},
1880
 	{8, "SIGFPE", "floating point exception"},
1646
 	{9, "SIGKILL", "killed"},
1881
 	{9, "SIGKILL", "killed"},
1667
 	{30, "SIGUSR1", "user defined signal 1"},
1902
 	{30, "SIGUSR1", "user defined signal 1"},
1668
 	{31, "SIGUSR2", "user defined signal 2"},
1903
 	{31, "SIGUSR2", "user defined signal 2"},
1669
 	{32, "SIGTHR", "thread AST"},
1904
 	{32, "SIGTHR", "thread AST"},
1905
+	{28672, "SIGSTKSZ", "unknown signal"},
1670
 }
1906
 }

+ 134
- 26
vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go Zobrazit soubor

112
 	BPF_FILDROP_CAPTURE               = 0x1
112
 	BPF_FILDROP_CAPTURE               = 0x1
113
 	BPF_FILDROP_DROP                  = 0x2
113
 	BPF_FILDROP_DROP                  = 0x2
114
 	BPF_FILDROP_PASS                  = 0x0
114
 	BPF_FILDROP_PASS                  = 0x0
115
+	BPF_F_DIR_IN                      = 0x10
116
+	BPF_F_DIR_MASK                    = 0x30
117
+	BPF_F_DIR_OUT                     = 0x20
118
+	BPF_F_DIR_SHIFT                   = 0x4
119
+	BPF_F_FLOWID                      = 0x8
120
+	BPF_F_PRI_MASK                    = 0x7
115
 	BPF_H                             = 0x8
121
 	BPF_H                             = 0x8
116
 	BPF_IMM                           = 0x0
122
 	BPF_IMM                           = 0x0
117
 	BPF_IND                           = 0x40
123
 	BPF_IND                           = 0x40
140
 	BPF_OR                            = 0x40
146
 	BPF_OR                            = 0x40
141
 	BPF_RELEASE                       = 0x30bb6
147
 	BPF_RELEASE                       = 0x30bb6
142
 	BPF_RET                           = 0x6
148
 	BPF_RET                           = 0x6
149
+	BPF_RND                           = 0xc0
143
 	BPF_RSH                           = 0x70
150
 	BPF_RSH                           = 0x70
144
 	BPF_ST                            = 0x2
151
 	BPF_ST                            = 0x2
145
 	BPF_STX                           = 0x3
152
 	BPF_STX                           = 0x3
180
 	CTL_KERN                          = 0x1
187
 	CTL_KERN                          = 0x1
181
 	CTL_MAXNAME                       = 0xc
188
 	CTL_MAXNAME                       = 0xc
182
 	CTL_NET                           = 0x4
189
 	CTL_NET                           = 0x4
190
+	DIOCADDQUEUE                      = 0xc110445d
191
+	DIOCADDRULE                       = 0xcd604404
192
+	DIOCADDSTATE                      = 0xc1084425
193
+	DIOCCHANGERULE                    = 0xcd60441a
194
+	DIOCCLRIFFLAG                     = 0xc028445a
195
+	DIOCCLRSRCNODES                   = 0x20004455
196
+	DIOCCLRSTATES                     = 0xc0e04412
197
+	DIOCCLRSTATUS                     = 0xc0284416
198
+	DIOCGETLIMIT                      = 0xc0084427
199
+	DIOCGETQSTATS                     = 0xc1204460
200
+	DIOCGETQUEUE                      = 0xc110445f
201
+	DIOCGETQUEUES                     = 0xc110445e
202
+	DIOCGETRULE                       = 0xcd604407
203
+	DIOCGETRULES                      = 0xcd604406
204
+	DIOCGETRULESET                    = 0xc444443b
205
+	DIOCGETRULESETS                   = 0xc444443a
206
+	DIOCGETSRCNODES                   = 0xc0104454
207
+	DIOCGETSTATE                      = 0xc1084413
208
+	DIOCGETSTATES                     = 0xc0104419
209
+	DIOCGETSTATUS                     = 0xc1e84415
210
+	DIOCGETSYNFLWATS                  = 0xc0084463
211
+	DIOCGETTIMEOUT                    = 0xc008441e
212
+	DIOCIGETIFACES                    = 0xc0284457
213
+	DIOCKILLSRCNODES                  = 0xc080445b
214
+	DIOCKILLSTATES                    = 0xc0e04429
215
+	DIOCNATLOOK                       = 0xc0504417
216
+	DIOCOSFPADD                       = 0xc088444f
183
 	DIOCOSFPFLUSH                     = 0x2000444e
217
 	DIOCOSFPFLUSH                     = 0x2000444e
218
+	DIOCOSFPGET                       = 0xc0884450
219
+	DIOCRADDADDRS                     = 0xc4504443
220
+	DIOCRADDTABLES                    = 0xc450443d
221
+	DIOCRCLRADDRS                     = 0xc4504442
222
+	DIOCRCLRASTATS                    = 0xc4504448
223
+	DIOCRCLRTABLES                    = 0xc450443c
224
+	DIOCRCLRTSTATS                    = 0xc4504441
225
+	DIOCRDELADDRS                     = 0xc4504444
226
+	DIOCRDELTABLES                    = 0xc450443e
227
+	DIOCRGETADDRS                     = 0xc4504446
228
+	DIOCRGETASTATS                    = 0xc4504447
229
+	DIOCRGETTABLES                    = 0xc450443f
230
+	DIOCRGETTSTATS                    = 0xc4504440
231
+	DIOCRINADEFINE                    = 0xc450444d
232
+	DIOCRSETADDRS                     = 0xc4504445
233
+	DIOCRSETTFLAGS                    = 0xc450444a
234
+	DIOCRTSTADDRS                     = 0xc4504449
235
+	DIOCSETDEBUG                      = 0xc0044418
236
+	DIOCSETHOSTID                     = 0xc0044456
237
+	DIOCSETIFFLAG                     = 0xc0284459
238
+	DIOCSETLIMIT                      = 0xc0084428
239
+	DIOCSETREASS                      = 0xc004445c
240
+	DIOCSETSTATUSIF                   = 0xc0284414
241
+	DIOCSETSYNCOOKIES                 = 0xc0014462
242
+	DIOCSETSYNFLWATS                  = 0xc0084461
243
+	DIOCSETTIMEOUT                    = 0xc008441d
244
+	DIOCSTART                         = 0x20004401
245
+	DIOCSTOP                          = 0x20004402
246
+	DIOCXBEGIN                        = 0xc0104451
247
+	DIOCXCOMMIT                       = 0xc0104452
248
+	DIOCXROLLBACK                     = 0xc0104453
184
 	DLT_ARCNET                        = 0x7
249
 	DLT_ARCNET                        = 0x7
185
 	DLT_ATM_RFC1483                   = 0xb
250
 	DLT_ATM_RFC1483                   = 0xb
186
 	DLT_AX25                          = 0x3
251
 	DLT_AX25                          = 0x3
243
 	EMUL_ENABLED                      = 0x1
308
 	EMUL_ENABLED                      = 0x1
244
 	EMUL_NATIVE                       = 0x2
309
 	EMUL_NATIVE                       = 0x2
245
 	ENDRUNDISC                        = 0x9
310
 	ENDRUNDISC                        = 0x9
311
+	ETH64_8021_RSVD_MASK              = 0xfffffffffff0
312
+	ETH64_8021_RSVD_PREFIX            = 0x180c2000000
246
 	ETHERMIN                          = 0x2e
313
 	ETHERMIN                          = 0x2e
247
 	ETHERMTU                          = 0x5dc
314
 	ETHERMTU                          = 0x5dc
248
 	ETHERTYPE_8023                    = 0x4
315
 	ETHERTYPE_8023                    = 0x4
295
 	ETHERTYPE_DN                      = 0x6003
362
 	ETHERTYPE_DN                      = 0x6003
296
 	ETHERTYPE_DOGFIGHT                = 0x1989
363
 	ETHERTYPE_DOGFIGHT                = 0x1989
297
 	ETHERTYPE_DSMD                    = 0x8039
364
 	ETHERTYPE_DSMD                    = 0x8039
365
+	ETHERTYPE_EAPOL                   = 0x888e
298
 	ETHERTYPE_ECMA                    = 0x803
366
 	ETHERTYPE_ECMA                    = 0x803
299
 	ETHERTYPE_ENCRYPT                 = 0x803d
367
 	ETHERTYPE_ENCRYPT                 = 0x803d
300
 	ETHERTYPE_ES                      = 0x805d
368
 	ETHERTYPE_ES                      = 0x805d
326
 	ETHERTYPE_LLDP                    = 0x88cc
394
 	ETHERTYPE_LLDP                    = 0x88cc
327
 	ETHERTYPE_LOGICRAFT               = 0x8148
395
 	ETHERTYPE_LOGICRAFT               = 0x8148
328
 	ETHERTYPE_LOOPBACK                = 0x9000
396
 	ETHERTYPE_LOOPBACK                = 0x9000
397
+	ETHERTYPE_MACSEC                  = 0x88e5
329
 	ETHERTYPE_MATRA                   = 0x807a
398
 	ETHERTYPE_MATRA                   = 0x807a
330
 	ETHERTYPE_MAX                     = 0xffff
399
 	ETHERTYPE_MAX                     = 0xffff
331
 	ETHERTYPE_MERIT                   = 0x807c
400
 	ETHERTYPE_MERIT                   = 0x807c
354
 	ETHERTYPE_NCD                     = 0x8149
423
 	ETHERTYPE_NCD                     = 0x8149
355
 	ETHERTYPE_NESTAR                  = 0x8006
424
 	ETHERTYPE_NESTAR                  = 0x8006
356
 	ETHERTYPE_NETBEUI                 = 0x8191
425
 	ETHERTYPE_NETBEUI                 = 0x8191
426
+	ETHERTYPE_NHRP                    = 0x2001
357
 	ETHERTYPE_NOVELL                  = 0x8138
427
 	ETHERTYPE_NOVELL                  = 0x8138
358
 	ETHERTYPE_NS                      = 0x600
428
 	ETHERTYPE_NS                      = 0x600
359
 	ETHERTYPE_NSAT                    = 0x601
429
 	ETHERTYPE_NSAT                    = 0x601
360
 	ETHERTYPE_NSCOMPAT                = 0x807
430
 	ETHERTYPE_NSCOMPAT                = 0x807
431
+	ETHERTYPE_NSH                     = 0x984f
361
 	ETHERTYPE_NTRAILER                = 0x10
432
 	ETHERTYPE_NTRAILER                = 0x10
362
 	ETHERTYPE_OS9                     = 0x7007
433
 	ETHERTYPE_OS9                     = 0x7007
363
 	ETHERTYPE_OS9NET                  = 0x7009
434
 	ETHERTYPE_OS9NET                  = 0x7009
364
 	ETHERTYPE_PACER                   = 0x80c6
435
 	ETHERTYPE_PACER                   = 0x80c6
365
-	ETHERTYPE_PAE                     = 0x888e
366
 	ETHERTYPE_PBB                     = 0x88e7
436
 	ETHERTYPE_PBB                     = 0x88e7
367
 	ETHERTYPE_PCS                     = 0x4242
437
 	ETHERTYPE_PCS                     = 0x4242
368
 	ETHERTYPE_PLANNING                = 0x8044
438
 	ETHERTYPE_PLANNING                = 0x8044
445
 	ETHER_VLAN_ENCAP_LEN              = 0x4
515
 	ETHER_VLAN_ENCAP_LEN              = 0x4
446
 	EVFILT_AIO                        = -0x3
516
 	EVFILT_AIO                        = -0x3
447
 	EVFILT_DEVICE                     = -0x8
517
 	EVFILT_DEVICE                     = -0x8
518
+	EVFILT_EXCEPT                     = -0x9
448
 	EVFILT_PROC                       = -0x5
519
 	EVFILT_PROC                       = -0x5
449
 	EVFILT_READ                       = -0x1
520
 	EVFILT_READ                       = -0x1
450
 	EVFILT_SIGNAL                     = -0x6
521
 	EVFILT_SIGNAL                     = -0x6
451
-	EVFILT_SYSCOUNT                   = 0x8
522
+	EVFILT_SYSCOUNT                   = 0x9
452
 	EVFILT_TIMER                      = -0x7
523
 	EVFILT_TIMER                      = -0x7
453
 	EVFILT_VNODE                      = -0x4
524
 	EVFILT_VNODE                      = -0x4
454
 	EVFILT_WRITE                      = -0x2
525
 	EVFILT_WRITE                      = -0x2
470
 	EV_FLAG1                          = 0x2000
541
 	EV_FLAG1                          = 0x2000
471
 	EV_ONESHOT                        = 0x10
542
 	EV_ONESHOT                        = 0x10
472
 	EV_RECEIPT                        = 0x40
543
 	EV_RECEIPT                        = 0x40
473
-	EV_SYSFLAGS                       = 0xf000
544
+	EV_SYSFLAGS                       = 0xf800
474
 	EXTA                              = 0x4b00
545
 	EXTA                              = 0x4b00
475
 	EXTB                              = 0x9600
546
 	EXTB                              = 0x9600
476
 	EXTPROC                           = 0x800
547
 	EXTPROC                           = 0x800
736
 	IFT_VOICEOVERCABLE                = 0xc6
807
 	IFT_VOICEOVERCABLE                = 0xc6
737
 	IFT_VOICEOVERFRAMERELAY           = 0x99
808
 	IFT_VOICEOVERFRAMERELAY           = 0x99
738
 	IFT_VOICEOVERIP                   = 0x68
809
 	IFT_VOICEOVERIP                   = 0x68
810
+	IFT_WIREGUARD                     = 0xfb
739
 	IFT_X213                          = 0x5d
811
 	IFT_X213                          = 0x5d
740
 	IFT_X25                           = 0x5
812
 	IFT_X25                           = 0x5
741
 	IFT_X25DDN                        = 0x4
813
 	IFT_X25DDN                        = 0x4
801
 	IPPROTO_RAW                       = 0xff
873
 	IPPROTO_RAW                       = 0xff
802
 	IPPROTO_ROUTING                   = 0x2b
874
 	IPPROTO_ROUTING                   = 0x2b
803
 	IPPROTO_RSVP                      = 0x2e
875
 	IPPROTO_RSVP                      = 0x2e
876
+	IPPROTO_SCTP                      = 0x84
804
 	IPPROTO_TCP                       = 0x6
877
 	IPPROTO_TCP                       = 0x6
805
 	IPPROTO_TP                        = 0x1d
878
 	IPPROTO_TP                        = 0x1d
806
 	IPPROTO_UDP                       = 0x11
879
 	IPPROTO_UDP                       = 0x11
880
+	IPPROTO_UDPLITE                   = 0x88
807
 	IPV6_AUTH_LEVEL                   = 0x35
881
 	IPV6_AUTH_LEVEL                   = 0x35
808
 	IPV6_AUTOFLOWLABEL                = 0x3b
882
 	IPV6_AUTOFLOWLABEL                = 0x3b
809
 	IPV6_CHECKSUM                     = 0x1a
883
 	IPV6_CHECKSUM                     = 0x1a
910
 	IP_TTL                            = 0x4
984
 	IP_TTL                            = 0x4
911
 	ISIG                              = 0x80
985
 	ISIG                              = 0x80
912
 	ISTRIP                            = 0x20
986
 	ISTRIP                            = 0x20
987
+	ITIMER_PROF                       = 0x2
988
+	ITIMER_REAL                       = 0x0
989
+	ITIMER_VIRTUAL                    = 0x1
913
 	IUCLC                             = 0x1000
990
 	IUCLC                             = 0x1000
914
 	IXANY                             = 0x800
991
 	IXANY                             = 0x800
915
 	IXOFF                             = 0x400
992
 	IXOFF                             = 0x400
981
 	MNT_WAIT                          = 0x1
1058
 	MNT_WAIT                          = 0x1
982
 	MNT_WANTRDWR                      = 0x2000000
1059
 	MNT_WANTRDWR                      = 0x2000000
983
 	MNT_WXALLOWED                     = 0x800
1060
 	MNT_WXALLOWED                     = 0x800
1061
+	MOUNT_AFS                         = "afs"
1062
+	MOUNT_CD9660                      = "cd9660"
1063
+	MOUNT_EXT2FS                      = "ext2fs"
1064
+	MOUNT_FFS                         = "ffs"
1065
+	MOUNT_FUSEFS                      = "fuse"
1066
+	MOUNT_MFS                         = "mfs"
1067
+	MOUNT_MSDOS                       = "msdos"
1068
+	MOUNT_NCPFS                       = "ncpfs"
1069
+	MOUNT_NFS                         = "nfs"
1070
+	MOUNT_NTFS                        = "ntfs"
1071
+	MOUNT_TMPFS                       = "tmpfs"
1072
+	MOUNT_UDF                         = "udf"
1073
+	MOUNT_UFS                         = "ffs"
984
 	MSG_BCAST                         = 0x100
1074
 	MSG_BCAST                         = 0x100
985
 	MSG_CMSG_CLOEXEC                  = 0x800
1075
 	MSG_CMSG_CLOEXEC                  = 0x800
986
 	MSG_CTRUNC                        = 0x20
1076
 	MSG_CTRUNC                        = 0x20
993
 	MSG_PEEK                          = 0x2
1083
 	MSG_PEEK                          = 0x2
994
 	MSG_TRUNC                         = 0x10
1084
 	MSG_TRUNC                         = 0x10
995
 	MSG_WAITALL                       = 0x40
1085
 	MSG_WAITALL                       = 0x40
1086
+	MSG_WAITFORONE                    = 0x1000
996
 	MS_ASYNC                          = 0x1
1087
 	MS_ASYNC                          = 0x1
997
 	MS_INVALIDATE                     = 0x4
1088
 	MS_INVALIDATE                     = 0x4
998
 	MS_SYNC                           = 0x2
1089
 	MS_SYNC                           = 0x2
1001
 	NET_RT_FLAGS                      = 0x2
1092
 	NET_RT_FLAGS                      = 0x2
1002
 	NET_RT_IFLIST                     = 0x3
1093
 	NET_RT_IFLIST                     = 0x3
1003
 	NET_RT_IFNAMES                    = 0x6
1094
 	NET_RT_IFNAMES                    = 0x6
1004
-	NET_RT_MAXID                      = 0x7
1095
+	NET_RT_MAXID                      = 0x8
1096
+	NET_RT_SOURCE                     = 0x7
1005
 	NET_RT_STATS                      = 0x4
1097
 	NET_RT_STATS                      = 0x4
1006
 	NET_RT_TABLE                      = 0x5
1098
 	NET_RT_TABLE                      = 0x5
1007
 	NFDBITS                           = 0x20
1099
 	NFDBITS                           = 0x20
1018
 	NOTE_FORK                         = 0x40000000
1110
 	NOTE_FORK                         = 0x40000000
1019
 	NOTE_LINK                         = 0x10
1111
 	NOTE_LINK                         = 0x10
1020
 	NOTE_LOWAT                        = 0x1
1112
 	NOTE_LOWAT                        = 0x1
1113
+	NOTE_OOB                          = 0x4
1021
 	NOTE_PCTRLMASK                    = 0xf0000000
1114
 	NOTE_PCTRLMASK                    = 0xf0000000
1022
 	NOTE_PDATAMASK                    = 0xfffff
1115
 	NOTE_PDATAMASK                    = 0xfffff
1023
 	NOTE_RENAME                       = 0x20
1116
 	NOTE_RENAME                       = 0x20
1154
 	RTM_PROPOSAL                      = 0x13
1247
 	RTM_PROPOSAL                      = 0x13
1155
 	RTM_REDIRECT                      = 0x6
1248
 	RTM_REDIRECT                      = 0x6
1156
 	RTM_RESOLVE                       = 0xb
1249
 	RTM_RESOLVE                       = 0xb
1157
-	RTM_RTTUNIT                       = 0xf4240
1250
+	RTM_SOURCE                        = 0x16
1158
 	RTM_VERSION                       = 0x5
1251
 	RTM_VERSION                       = 0x5
1159
 	RTV_EXPIRE                        = 0x4
1252
 	RTV_EXPIRE                        = 0x4
1160
 	RTV_HOPCOUNT                      = 0x2
1253
 	RTV_HOPCOUNT                      = 0x2
1172
 	RUSAGE_THREAD                     = 0x1
1265
 	RUSAGE_THREAD                     = 0x1
1173
 	SCM_RIGHTS                        = 0x1
1266
 	SCM_RIGHTS                        = 0x1
1174
 	SCM_TIMESTAMP                     = 0x4
1267
 	SCM_TIMESTAMP                     = 0x4
1268
+	SEEK_CUR                          = 0x1
1269
+	SEEK_END                          = 0x2
1270
+	SEEK_SET                          = 0x0
1175
 	SHUT_RD                           = 0x0
1271
 	SHUT_RD                           = 0x0
1176
 	SHUT_RDWR                         = 0x2
1272
 	SHUT_RDWR                         = 0x2
1177
 	SHUT_WR                           = 0x1
1273
 	SHUT_WR                           = 0x1
1188
 	SIOCBRDGDELS                      = 0x80606942
1284
 	SIOCBRDGDELS                      = 0x80606942
1189
 	SIOCBRDGFLUSH                     = 0x80606948
1285
 	SIOCBRDGFLUSH                     = 0x80606948
1190
 	SIOCBRDGFRL                       = 0x808c694e
1286
 	SIOCBRDGFRL                       = 0x808c694e
1191
-	SIOCBRDGGCACHE                    = 0xc0186941
1192
-	SIOCBRDGGFD                       = 0xc0186952
1193
-	SIOCBRDGGHT                       = 0xc0186951
1287
+	SIOCBRDGGCACHE                    = 0xc0146941
1288
+	SIOCBRDGGFD                       = 0xc0146952
1289
+	SIOCBRDGGHT                       = 0xc0146951
1194
 	SIOCBRDGGIFFLGS                   = 0xc060693e
1290
 	SIOCBRDGGIFFLGS                   = 0xc060693e
1195
-	SIOCBRDGGMA                       = 0xc0186953
1291
+	SIOCBRDGGMA                       = 0xc0146953
1196
 	SIOCBRDGGPARAM                    = 0xc0406958
1292
 	SIOCBRDGGPARAM                    = 0xc0406958
1197
-	SIOCBRDGGPRI                      = 0xc0186950
1293
+	SIOCBRDGGPRI                      = 0xc0146950
1198
 	SIOCBRDGGRL                       = 0xc030694f
1294
 	SIOCBRDGGRL                       = 0xc030694f
1199
-	SIOCBRDGGTO                       = 0xc0186946
1295
+	SIOCBRDGGTO                       = 0xc0146946
1200
 	SIOCBRDGIFS                       = 0xc0606942
1296
 	SIOCBRDGIFS                       = 0xc0606942
1201
 	SIOCBRDGRTS                       = 0xc0206943
1297
 	SIOCBRDGRTS                       = 0xc0206943
1202
 	SIOCBRDGSADDR                     = 0xc1286944
1298
 	SIOCBRDGSADDR                     = 0xc1286944
1203
-	SIOCBRDGSCACHE                    = 0x80186940
1204
-	SIOCBRDGSFD                       = 0x80186952
1205
-	SIOCBRDGSHT                       = 0x80186951
1299
+	SIOCBRDGSCACHE                    = 0x80146940
1300
+	SIOCBRDGSFD                       = 0x80146952
1301
+	SIOCBRDGSHT                       = 0x80146951
1206
 	SIOCBRDGSIFCOST                   = 0x80606955
1302
 	SIOCBRDGSIFCOST                   = 0x80606955
1207
 	SIOCBRDGSIFFLGS                   = 0x8060693f
1303
 	SIOCBRDGSIFFLGS                   = 0x8060693f
1208
 	SIOCBRDGSIFPRIO                   = 0x80606954
1304
 	SIOCBRDGSIFPRIO                   = 0x80606954
1209
 	SIOCBRDGSIFPROT                   = 0x8060694a
1305
 	SIOCBRDGSIFPROT                   = 0x8060694a
1210
-	SIOCBRDGSMA                       = 0x80186953
1211
-	SIOCBRDGSPRI                      = 0x80186950
1212
-	SIOCBRDGSPROTO                    = 0x8018695a
1213
-	SIOCBRDGSTO                       = 0x80186945
1214
-	SIOCBRDGSTXHC                     = 0x80186959
1306
+	SIOCBRDGSMA                       = 0x80146953
1307
+	SIOCBRDGSPRI                      = 0x80146950
1308
+	SIOCBRDGSPROTO                    = 0x8014695a
1309
+	SIOCBRDGSTO                       = 0x80146945
1310
+	SIOCBRDGSTXHC                     = 0x80146959
1215
 	SIOCDELLABEL                      = 0x80206997
1311
 	SIOCDELLABEL                      = 0x80206997
1216
 	SIOCDELMULTI                      = 0x80206932
1312
 	SIOCDELMULTI                      = 0x80206932
1217
 	SIOCDIFADDR                       = 0x80206919
1313
 	SIOCDIFADDR                       = 0x80206919
1264
 	SIOCGPWE3CTRLWORD                 = 0xc02069dc
1360
 	SIOCGPWE3CTRLWORD                 = 0xc02069dc
1265
 	SIOCGPWE3FAT                      = 0xc02069dd
1361
 	SIOCGPWE3FAT                      = 0xc02069dd
1266
 	SIOCGPWE3NEIGHBOR                 = 0xc21869de
1362
 	SIOCGPWE3NEIGHBOR                 = 0xc21869de
1363
+	SIOCGRXHPRIO                      = 0xc02069db
1267
 	SIOCGSPPPPARAMS                   = 0xc0206994
1364
 	SIOCGSPPPPARAMS                   = 0xc0206994
1268
 	SIOCGTXHPRIO                      = 0xc02069c6
1365
 	SIOCGTXHPRIO                      = 0xc02069c6
1269
 	SIOCGUMBINFO                      = 0xc02069be
1366
 	SIOCGUMBINFO                      = 0xc02069be
1310
 	SIOCSPWE3CTRLWORD                 = 0x802069dc
1407
 	SIOCSPWE3CTRLWORD                 = 0x802069dc
1311
 	SIOCSPWE3FAT                      = 0x802069dd
1408
 	SIOCSPWE3FAT                      = 0x802069dd
1312
 	SIOCSPWE3NEIGHBOR                 = 0x821869de
1409
 	SIOCSPWE3NEIGHBOR                 = 0x821869de
1410
+	SIOCSRXHPRIO                      = 0x802069db
1313
 	SIOCSSPPPPARAMS                   = 0x80206993
1411
 	SIOCSSPPPPARAMS                   = 0x80206993
1314
 	SIOCSTXHPRIO                      = 0x802069c5
1412
 	SIOCSTXHPRIO                      = 0x802069c5
1315
 	SIOCSUMBPARAM                     = 0x802069bf
1413
 	SIOCSUMBPARAM                     = 0x802069bf
1316
 	SIOCSVH                           = 0xc02069f5
1414
 	SIOCSVH                           = 0xc02069f5
1317
 	SIOCSVNETFLOWID                   = 0x802069c3
1415
 	SIOCSVNETFLOWID                   = 0x802069c3
1318
 	SIOCSVNETID                       = 0x802069a6
1416
 	SIOCSVNETID                       = 0x802069a6
1319
-	SIOCSWGDPID                       = 0xc018695b
1320
-	SIOCSWGMAXFLOW                    = 0xc0186960
1321
-	SIOCSWGMAXGROUP                   = 0xc018695d
1322
-	SIOCSWSDPID                       = 0x8018695c
1323
-	SIOCSWSPORTNO                     = 0xc060695f
1324
 	SOCK_CLOEXEC                      = 0x8000
1417
 	SOCK_CLOEXEC                      = 0x8000
1325
 	SOCK_DGRAM                        = 0x2
1418
 	SOCK_DGRAM                        = 0x2
1326
 	SOCK_DNS                          = 0x1000
1419
 	SOCK_DNS                          = 0x1000
1335
 	SO_BINDANY                        = 0x1000
1428
 	SO_BINDANY                        = 0x1000
1336
 	SO_BROADCAST                      = 0x20
1429
 	SO_BROADCAST                      = 0x20
1337
 	SO_DEBUG                          = 0x1
1430
 	SO_DEBUG                          = 0x1
1431
+	SO_DOMAIN                         = 0x1024
1338
 	SO_DONTROUTE                      = 0x10
1432
 	SO_DONTROUTE                      = 0x10
1339
 	SO_ERROR                          = 0x1007
1433
 	SO_ERROR                          = 0x1007
1340
 	SO_KEEPALIVE                      = 0x8
1434
 	SO_KEEPALIVE                      = 0x8
1342
 	SO_NETPROC                        = 0x1020
1436
 	SO_NETPROC                        = 0x1020
1343
 	SO_OOBINLINE                      = 0x100
1437
 	SO_OOBINLINE                      = 0x100
1344
 	SO_PEERCRED                       = 0x1022
1438
 	SO_PEERCRED                       = 0x1022
1439
+	SO_PROTOCOL                       = 0x1025
1345
 	SO_RCVBUF                         = 0x1002
1440
 	SO_RCVBUF                         = 0x1002
1346
 	SO_RCVLOWAT                       = 0x1004
1441
 	SO_RCVLOWAT                       = 0x1004
1347
 	SO_RCVTIMEO                       = 0x1006
1442
 	SO_RCVTIMEO                       = 0x1006
1391
 	TCOFLUSH                          = 0x2
1486
 	TCOFLUSH                          = 0x2
1392
 	TCOOFF                            = 0x1
1487
 	TCOOFF                            = 0x1
1393
 	TCOON                             = 0x2
1488
 	TCOON                             = 0x2
1394
-	TCP_MAXBURST                      = 0x4
1489
+	TCPOPT_EOL                        = 0x0
1490
+	TCPOPT_MAXSEG                     = 0x2
1491
+	TCPOPT_NOP                        = 0x1
1492
+	TCPOPT_SACK                       = 0x5
1493
+	TCPOPT_SACK_HDR                   = 0x1010500
1494
+	TCPOPT_SACK_PERMITTED             = 0x4
1495
+	TCPOPT_SACK_PERMIT_HDR            = 0x1010402
1496
+	TCPOPT_SIGNATURE                  = 0x13
1497
+	TCPOPT_TIMESTAMP                  = 0x8
1498
+	TCPOPT_TSTAMP_HDR                 = 0x101080a
1499
+	TCPOPT_WINDOW                     = 0x3
1500
+	TCP_INFO                          = 0x9
1395
 	TCP_MAXSEG                        = 0x2
1501
 	TCP_MAXSEG                        = 0x2
1396
 	TCP_MAXWIN                        = 0xffff
1502
 	TCP_MAXWIN                        = 0xffff
1397
 	TCP_MAX_SACK                      = 0x3
1503
 	TCP_MAX_SACK                      = 0x3
1400
 	TCP_MSS                           = 0x200
1506
 	TCP_MSS                           = 0x200
1401
 	TCP_NODELAY                       = 0x1
1507
 	TCP_NODELAY                       = 0x1
1402
 	TCP_NOPUSH                        = 0x10
1508
 	TCP_NOPUSH                        = 0x10
1509
+	TCP_SACKHOLE_LIMIT                = 0x80
1403
 	TCP_SACK_ENABLE                   = 0x8
1510
 	TCP_SACK_ENABLE                   = 0x8
1404
 	TCSAFLUSH                         = 0x2
1511
 	TCSAFLUSH                         = 0x2
1405
 	TIMER_ABSTIME                     = 0x1
1512
 	TIMER_ABSTIME                     = 0x1
1768
 	{3, "SIGQUIT", "quit"},
1875
 	{3, "SIGQUIT", "quit"},
1769
 	{4, "SIGILL", "illegal instruction"},
1876
 	{4, "SIGILL", "illegal instruction"},
1770
 	{5, "SIGTRAP", "trace/BPT trap"},
1877
 	{5, "SIGTRAP", "trace/BPT trap"},
1771
-	{6, "SIGABRT", "abort trap"},
1878
+	{6, "SIGIOT", "abort trap"},
1772
 	{7, "SIGEMT", "EMT trap"},
1879
 	{7, "SIGEMT", "EMT trap"},
1773
 	{8, "SIGFPE", "floating point exception"},
1880
 	{8, "SIGFPE", "floating point exception"},
1774
 	{9, "SIGKILL", "killed"},
1881
 	{9, "SIGKILL", "killed"},
1795
 	{30, "SIGUSR1", "user defined signal 1"},
1902
 	{30, "SIGUSR1", "user defined signal 1"},
1796
 	{31, "SIGUSR2", "user defined signal 2"},
1903
 	{31, "SIGUSR2", "user defined signal 2"},
1797
 	{32, "SIGTHR", "thread AST"},
1904
 	{32, "SIGTHR", "thread AST"},
1905
+	{28672, "SIGSTKSZ", "unknown signal"},
1798
 }
1906
 }

+ 69
- 26
vendor/golang.org/x/sys/unix/zerrors_openbsd_mips64.go Zobrazit soubor

112
 	BPF_FILDROP_CAPTURE               = 0x1
112
 	BPF_FILDROP_CAPTURE               = 0x1
113
 	BPF_FILDROP_DROP                  = 0x2
113
 	BPF_FILDROP_DROP                  = 0x2
114
 	BPF_FILDROP_PASS                  = 0x0
114
 	BPF_FILDROP_PASS                  = 0x0
115
+	BPF_F_DIR_IN                      = 0x10
116
+	BPF_F_DIR_MASK                    = 0x30
117
+	BPF_F_DIR_OUT                     = 0x20
118
+	BPF_F_DIR_SHIFT                   = 0x4
119
+	BPF_F_FLOWID                      = 0x8
120
+	BPF_F_PRI_MASK                    = 0x7
115
 	BPF_H                             = 0x8
121
 	BPF_H                             = 0x8
116
 	BPF_IMM                           = 0x0
122
 	BPF_IMM                           = 0x0
117
 	BPF_IND                           = 0x40
123
 	BPF_IND                           = 0x40
140
 	BPF_OR                            = 0x40
146
 	BPF_OR                            = 0x40
141
 	BPF_RELEASE                       = 0x30bb6
147
 	BPF_RELEASE                       = 0x30bb6
142
 	BPF_RET                           = 0x6
148
 	BPF_RET                           = 0x6
149
+	BPF_RND                           = 0xc0
143
 	BPF_RSH                           = 0x70
150
 	BPF_RSH                           = 0x70
144
 	BPF_ST                            = 0x2
151
 	BPF_ST                            = 0x2
145
 	BPF_STX                           = 0x3
152
 	BPF_STX                           = 0x3
301
 	EMUL_ENABLED                      = 0x1
308
 	EMUL_ENABLED                      = 0x1
302
 	EMUL_NATIVE                       = 0x2
309
 	EMUL_NATIVE                       = 0x2
303
 	ENDRUNDISC                        = 0x9
310
 	ENDRUNDISC                        = 0x9
311
+	ETH64_8021_RSVD_MASK              = 0xfffffffffff0
312
+	ETH64_8021_RSVD_PREFIX            = 0x180c2000000
304
 	ETHERMIN                          = 0x2e
313
 	ETHERMIN                          = 0x2e
305
 	ETHERMTU                          = 0x5dc
314
 	ETHERMTU                          = 0x5dc
306
 	ETHERTYPE_8023                    = 0x4
315
 	ETHERTYPE_8023                    = 0x4
353
 	ETHERTYPE_DN                      = 0x6003
362
 	ETHERTYPE_DN                      = 0x6003
354
 	ETHERTYPE_DOGFIGHT                = 0x1989
363
 	ETHERTYPE_DOGFIGHT                = 0x1989
355
 	ETHERTYPE_DSMD                    = 0x8039
364
 	ETHERTYPE_DSMD                    = 0x8039
365
+	ETHERTYPE_EAPOL                   = 0x888e
356
 	ETHERTYPE_ECMA                    = 0x803
366
 	ETHERTYPE_ECMA                    = 0x803
357
 	ETHERTYPE_ENCRYPT                 = 0x803d
367
 	ETHERTYPE_ENCRYPT                 = 0x803d
358
 	ETHERTYPE_ES                      = 0x805d
368
 	ETHERTYPE_ES                      = 0x805d
413
 	ETHERTYPE_NCD                     = 0x8149
423
 	ETHERTYPE_NCD                     = 0x8149
414
 	ETHERTYPE_NESTAR                  = 0x8006
424
 	ETHERTYPE_NESTAR                  = 0x8006
415
 	ETHERTYPE_NETBEUI                 = 0x8191
425
 	ETHERTYPE_NETBEUI                 = 0x8191
426
+	ETHERTYPE_NHRP                    = 0x2001
416
 	ETHERTYPE_NOVELL                  = 0x8138
427
 	ETHERTYPE_NOVELL                  = 0x8138
417
 	ETHERTYPE_NS                      = 0x600
428
 	ETHERTYPE_NS                      = 0x600
418
 	ETHERTYPE_NSAT                    = 0x601
429
 	ETHERTYPE_NSAT                    = 0x601
419
 	ETHERTYPE_NSCOMPAT                = 0x807
430
 	ETHERTYPE_NSCOMPAT                = 0x807
431
+	ETHERTYPE_NSH                     = 0x984f
420
 	ETHERTYPE_NTRAILER                = 0x10
432
 	ETHERTYPE_NTRAILER                = 0x10
421
 	ETHERTYPE_OS9                     = 0x7007
433
 	ETHERTYPE_OS9                     = 0x7007
422
 	ETHERTYPE_OS9NET                  = 0x7009
434
 	ETHERTYPE_OS9NET                  = 0x7009
423
 	ETHERTYPE_PACER                   = 0x80c6
435
 	ETHERTYPE_PACER                   = 0x80c6
424
-	ETHERTYPE_PAE                     = 0x888e
425
 	ETHERTYPE_PBB                     = 0x88e7
436
 	ETHERTYPE_PBB                     = 0x88e7
426
 	ETHERTYPE_PCS                     = 0x4242
437
 	ETHERTYPE_PCS                     = 0x4242
427
 	ETHERTYPE_PLANNING                = 0x8044
438
 	ETHERTYPE_PLANNING                = 0x8044
504
 	ETHER_VLAN_ENCAP_LEN              = 0x4
515
 	ETHER_VLAN_ENCAP_LEN              = 0x4
505
 	EVFILT_AIO                        = -0x3
516
 	EVFILT_AIO                        = -0x3
506
 	EVFILT_DEVICE                     = -0x8
517
 	EVFILT_DEVICE                     = -0x8
518
+	EVFILT_EXCEPT                     = -0x9
507
 	EVFILT_PROC                       = -0x5
519
 	EVFILT_PROC                       = -0x5
508
 	EVFILT_READ                       = -0x1
520
 	EVFILT_READ                       = -0x1
509
 	EVFILT_SIGNAL                     = -0x6
521
 	EVFILT_SIGNAL                     = -0x6
510
-	EVFILT_SYSCOUNT                   = 0x8
522
+	EVFILT_SYSCOUNT                   = 0x9
511
 	EVFILT_TIMER                      = -0x7
523
 	EVFILT_TIMER                      = -0x7
512
 	EVFILT_VNODE                      = -0x4
524
 	EVFILT_VNODE                      = -0x4
513
 	EVFILT_WRITE                      = -0x2
525
 	EVFILT_WRITE                      = -0x2
529
 	EV_FLAG1                          = 0x2000
541
 	EV_FLAG1                          = 0x2000
530
 	EV_ONESHOT                        = 0x10
542
 	EV_ONESHOT                        = 0x10
531
 	EV_RECEIPT                        = 0x40
543
 	EV_RECEIPT                        = 0x40
532
-	EV_SYSFLAGS                       = 0xf000
544
+	EV_SYSFLAGS                       = 0xf800
533
 	EXTA                              = 0x4b00
545
 	EXTA                              = 0x4b00
534
 	EXTB                              = 0x9600
546
 	EXTB                              = 0x9600
535
 	EXTPROC                           = 0x800
547
 	EXTPROC                           = 0x800
795
 	IFT_VOICEOVERCABLE                = 0xc6
807
 	IFT_VOICEOVERCABLE                = 0xc6
796
 	IFT_VOICEOVERFRAMERELAY           = 0x99
808
 	IFT_VOICEOVERFRAMERELAY           = 0x99
797
 	IFT_VOICEOVERIP                   = 0x68
809
 	IFT_VOICEOVERIP                   = 0x68
810
+	IFT_WIREGUARD                     = 0xfb
798
 	IFT_X213                          = 0x5d
811
 	IFT_X213                          = 0x5d
799
 	IFT_X25                           = 0x5
812
 	IFT_X25                           = 0x5
800
 	IFT_X25DDN                        = 0x4
813
 	IFT_X25DDN                        = 0x4
860
 	IPPROTO_RAW                       = 0xff
873
 	IPPROTO_RAW                       = 0xff
861
 	IPPROTO_ROUTING                   = 0x2b
874
 	IPPROTO_ROUTING                   = 0x2b
862
 	IPPROTO_RSVP                      = 0x2e
875
 	IPPROTO_RSVP                      = 0x2e
876
+	IPPROTO_SCTP                      = 0x84
863
 	IPPROTO_TCP                       = 0x6
877
 	IPPROTO_TCP                       = 0x6
864
 	IPPROTO_TP                        = 0x1d
878
 	IPPROTO_TP                        = 0x1d
865
 	IPPROTO_UDP                       = 0x11
879
 	IPPROTO_UDP                       = 0x11
970
 	IP_TTL                            = 0x4
984
 	IP_TTL                            = 0x4
971
 	ISIG                              = 0x80
985
 	ISIG                              = 0x80
972
 	ISTRIP                            = 0x20
986
 	ISTRIP                            = 0x20
987
+	ITIMER_PROF                       = 0x2
988
+	ITIMER_REAL                       = 0x0
989
+	ITIMER_VIRTUAL                    = 0x1
973
 	IUCLC                             = 0x1000
990
 	IUCLC                             = 0x1000
974
 	IXANY                             = 0x800
991
 	IXANY                             = 0x800
975
 	IXOFF                             = 0x400
992
 	IXOFF                             = 0x400
1041
 	MNT_WAIT                          = 0x1
1058
 	MNT_WAIT                          = 0x1
1042
 	MNT_WANTRDWR                      = 0x2000000
1059
 	MNT_WANTRDWR                      = 0x2000000
1043
 	MNT_WXALLOWED                     = 0x800
1060
 	MNT_WXALLOWED                     = 0x800
1061
+	MOUNT_AFS                         = "afs"
1062
+	MOUNT_CD9660                      = "cd9660"
1063
+	MOUNT_EXT2FS                      = "ext2fs"
1064
+	MOUNT_FFS                         = "ffs"
1065
+	MOUNT_FUSEFS                      = "fuse"
1066
+	MOUNT_MFS                         = "mfs"
1067
+	MOUNT_MSDOS                       = "msdos"
1068
+	MOUNT_NCPFS                       = "ncpfs"
1069
+	MOUNT_NFS                         = "nfs"
1070
+	MOUNT_NTFS                        = "ntfs"
1071
+	MOUNT_TMPFS                       = "tmpfs"
1072
+	MOUNT_UDF                         = "udf"
1073
+	MOUNT_UFS                         = "ffs"
1044
 	MSG_BCAST                         = 0x100
1074
 	MSG_BCAST                         = 0x100
1045
 	MSG_CMSG_CLOEXEC                  = 0x800
1075
 	MSG_CMSG_CLOEXEC                  = 0x800
1046
 	MSG_CTRUNC                        = 0x20
1076
 	MSG_CTRUNC                        = 0x20
1053
 	MSG_PEEK                          = 0x2
1083
 	MSG_PEEK                          = 0x2
1054
 	MSG_TRUNC                         = 0x10
1084
 	MSG_TRUNC                         = 0x10
1055
 	MSG_WAITALL                       = 0x40
1085
 	MSG_WAITALL                       = 0x40
1086
+	MSG_WAITFORONE                    = 0x1000
1056
 	MS_ASYNC                          = 0x1
1087
 	MS_ASYNC                          = 0x1
1057
 	MS_INVALIDATE                     = 0x4
1088
 	MS_INVALIDATE                     = 0x4
1058
 	MS_SYNC                           = 0x2
1089
 	MS_SYNC                           = 0x2
1061
 	NET_RT_FLAGS                      = 0x2
1092
 	NET_RT_FLAGS                      = 0x2
1062
 	NET_RT_IFLIST                     = 0x3
1093
 	NET_RT_IFLIST                     = 0x3
1063
 	NET_RT_IFNAMES                    = 0x6
1094
 	NET_RT_IFNAMES                    = 0x6
1064
-	NET_RT_MAXID                      = 0x7
1095
+	NET_RT_MAXID                      = 0x8
1096
+	NET_RT_SOURCE                     = 0x7
1065
 	NET_RT_STATS                      = 0x4
1097
 	NET_RT_STATS                      = 0x4
1066
 	NET_RT_TABLE                      = 0x5
1098
 	NET_RT_TABLE                      = 0x5
1067
 	NFDBITS                           = 0x20
1099
 	NFDBITS                           = 0x20
1078
 	NOTE_FORK                         = 0x40000000
1110
 	NOTE_FORK                         = 0x40000000
1079
 	NOTE_LINK                         = 0x10
1111
 	NOTE_LINK                         = 0x10
1080
 	NOTE_LOWAT                        = 0x1
1112
 	NOTE_LOWAT                        = 0x1
1113
+	NOTE_OOB                          = 0x4
1081
 	NOTE_PCTRLMASK                    = 0xf0000000
1114
 	NOTE_PCTRLMASK                    = 0xf0000000
1082
 	NOTE_PDATAMASK                    = 0xfffff
1115
 	NOTE_PDATAMASK                    = 0xfffff
1083
 	NOTE_RENAME                       = 0x20
1116
 	NOTE_RENAME                       = 0x20
1214
 	RTM_PROPOSAL                      = 0x13
1247
 	RTM_PROPOSAL                      = 0x13
1215
 	RTM_REDIRECT                      = 0x6
1248
 	RTM_REDIRECT                      = 0x6
1216
 	RTM_RESOLVE                       = 0xb
1249
 	RTM_RESOLVE                       = 0xb
1217
-	RTM_RTTUNIT                       = 0xf4240
1250
+	RTM_SOURCE                        = 0x16
1218
 	RTM_VERSION                       = 0x5
1251
 	RTM_VERSION                       = 0x5
1219
 	RTV_EXPIRE                        = 0x4
1252
 	RTV_EXPIRE                        = 0x4
1220
 	RTV_HOPCOUNT                      = 0x2
1253
 	RTV_HOPCOUNT                      = 0x2
1232
 	RUSAGE_THREAD                     = 0x1
1265
 	RUSAGE_THREAD                     = 0x1
1233
 	SCM_RIGHTS                        = 0x1
1266
 	SCM_RIGHTS                        = 0x1
1234
 	SCM_TIMESTAMP                     = 0x4
1267
 	SCM_TIMESTAMP                     = 0x4
1268
+	SEEK_CUR                          = 0x1
1269
+	SEEK_END                          = 0x2
1270
+	SEEK_SET                          = 0x0
1235
 	SHUT_RD                           = 0x0
1271
 	SHUT_RD                           = 0x0
1236
 	SHUT_RDWR                         = 0x2
1272
 	SHUT_RDWR                         = 0x2
1237
 	SHUT_WR                           = 0x1
1273
 	SHUT_WR                           = 0x1
1248
 	SIOCBRDGDELS                      = 0x80606942
1284
 	SIOCBRDGDELS                      = 0x80606942
1249
 	SIOCBRDGFLUSH                     = 0x80606948
1285
 	SIOCBRDGFLUSH                     = 0x80606948
1250
 	SIOCBRDGFRL                       = 0x808c694e
1286
 	SIOCBRDGFRL                       = 0x808c694e
1251
-	SIOCBRDGGCACHE                    = 0xc0186941
1252
-	SIOCBRDGGFD                       = 0xc0186952
1253
-	SIOCBRDGGHT                       = 0xc0186951
1287
+	SIOCBRDGGCACHE                    = 0xc0146941
1288
+	SIOCBRDGGFD                       = 0xc0146952
1289
+	SIOCBRDGGHT                       = 0xc0146951
1254
 	SIOCBRDGGIFFLGS                   = 0xc060693e
1290
 	SIOCBRDGGIFFLGS                   = 0xc060693e
1255
-	SIOCBRDGGMA                       = 0xc0186953
1291
+	SIOCBRDGGMA                       = 0xc0146953
1256
 	SIOCBRDGGPARAM                    = 0xc0406958
1292
 	SIOCBRDGGPARAM                    = 0xc0406958
1257
-	SIOCBRDGGPRI                      = 0xc0186950
1293
+	SIOCBRDGGPRI                      = 0xc0146950
1258
 	SIOCBRDGGRL                       = 0xc030694f
1294
 	SIOCBRDGGRL                       = 0xc030694f
1259
-	SIOCBRDGGTO                       = 0xc0186946
1295
+	SIOCBRDGGTO                       = 0xc0146946
1260
 	SIOCBRDGIFS                       = 0xc0606942
1296
 	SIOCBRDGIFS                       = 0xc0606942
1261
 	SIOCBRDGRTS                       = 0xc0206943
1297
 	SIOCBRDGRTS                       = 0xc0206943
1262
 	SIOCBRDGSADDR                     = 0xc1286944
1298
 	SIOCBRDGSADDR                     = 0xc1286944
1263
-	SIOCBRDGSCACHE                    = 0x80186940
1264
-	SIOCBRDGSFD                       = 0x80186952
1265
-	SIOCBRDGSHT                       = 0x80186951
1299
+	SIOCBRDGSCACHE                    = 0x80146940
1300
+	SIOCBRDGSFD                       = 0x80146952
1301
+	SIOCBRDGSHT                       = 0x80146951
1266
 	SIOCBRDGSIFCOST                   = 0x80606955
1302
 	SIOCBRDGSIFCOST                   = 0x80606955
1267
 	SIOCBRDGSIFFLGS                   = 0x8060693f
1303
 	SIOCBRDGSIFFLGS                   = 0x8060693f
1268
 	SIOCBRDGSIFPRIO                   = 0x80606954
1304
 	SIOCBRDGSIFPRIO                   = 0x80606954
1269
 	SIOCBRDGSIFPROT                   = 0x8060694a
1305
 	SIOCBRDGSIFPROT                   = 0x8060694a
1270
-	SIOCBRDGSMA                       = 0x80186953
1271
-	SIOCBRDGSPRI                      = 0x80186950
1272
-	SIOCBRDGSPROTO                    = 0x8018695a
1273
-	SIOCBRDGSTO                       = 0x80186945
1274
-	SIOCBRDGSTXHC                     = 0x80186959
1306
+	SIOCBRDGSMA                       = 0x80146953
1307
+	SIOCBRDGSPRI                      = 0x80146950
1308
+	SIOCBRDGSPROTO                    = 0x8014695a
1309
+	SIOCBRDGSTO                       = 0x80146945
1310
+	SIOCBRDGSTXHC                     = 0x80146959
1275
 	SIOCDELLABEL                      = 0x80206997
1311
 	SIOCDELLABEL                      = 0x80206997
1276
 	SIOCDELMULTI                      = 0x80206932
1312
 	SIOCDELMULTI                      = 0x80206932
1277
 	SIOCDIFADDR                       = 0x80206919
1313
 	SIOCDIFADDR                       = 0x80206919
1378
 	SIOCSVH                           = 0xc02069f5
1414
 	SIOCSVH                           = 0xc02069f5
1379
 	SIOCSVNETFLOWID                   = 0x802069c3
1415
 	SIOCSVNETFLOWID                   = 0x802069c3
1380
 	SIOCSVNETID                       = 0x802069a6
1416
 	SIOCSVNETID                       = 0x802069a6
1381
-	SIOCSWGDPID                       = 0xc018695b
1382
-	SIOCSWGMAXFLOW                    = 0xc0186960
1383
-	SIOCSWGMAXGROUP                   = 0xc018695d
1384
-	SIOCSWSDPID                       = 0x8018695c
1385
-	SIOCSWSPORTNO                     = 0xc060695f
1386
 	SOCK_CLOEXEC                      = 0x8000
1417
 	SOCK_CLOEXEC                      = 0x8000
1387
 	SOCK_DGRAM                        = 0x2
1418
 	SOCK_DGRAM                        = 0x2
1388
 	SOCK_DNS                          = 0x1000
1419
 	SOCK_DNS                          = 0x1000
1455
 	TCOFLUSH                          = 0x2
1486
 	TCOFLUSH                          = 0x2
1456
 	TCOOFF                            = 0x1
1487
 	TCOOFF                            = 0x1
1457
 	TCOON                             = 0x2
1488
 	TCOON                             = 0x2
1458
-	TCP_MAXBURST                      = 0x4
1489
+	TCPOPT_EOL                        = 0x0
1490
+	TCPOPT_MAXSEG                     = 0x2
1491
+	TCPOPT_NOP                        = 0x1
1492
+	TCPOPT_SACK                       = 0x5
1493
+	TCPOPT_SACK_HDR                   = 0x1010500
1494
+	TCPOPT_SACK_PERMITTED             = 0x4
1495
+	TCPOPT_SACK_PERMIT_HDR            = 0x1010402
1496
+	TCPOPT_SIGNATURE                  = 0x13
1497
+	TCPOPT_TIMESTAMP                  = 0x8
1498
+	TCPOPT_TSTAMP_HDR                 = 0x101080a
1499
+	TCPOPT_WINDOW                     = 0x3
1500
+	TCP_INFO                          = 0x9
1459
 	TCP_MAXSEG                        = 0x2
1501
 	TCP_MAXSEG                        = 0x2
1460
 	TCP_MAXWIN                        = 0xffff
1502
 	TCP_MAXWIN                        = 0xffff
1461
 	TCP_MAX_SACK                      = 0x3
1503
 	TCP_MAX_SACK                      = 0x3
1833
 	{3, "SIGQUIT", "quit"},
1875
 	{3, "SIGQUIT", "quit"},
1834
 	{4, "SIGILL", "illegal instruction"},
1876
 	{4, "SIGILL", "illegal instruction"},
1835
 	{5, "SIGTRAP", "trace/BPT trap"},
1877
 	{5, "SIGTRAP", "trace/BPT trap"},
1836
-	{6, "SIGABRT", "abort trap"},
1878
+	{6, "SIGIOT", "abort trap"},
1837
 	{7, "SIGEMT", "EMT trap"},
1879
 	{7, "SIGEMT", "EMT trap"},
1838
 	{8, "SIGFPE", "floating point exception"},
1880
 	{8, "SIGFPE", "floating point exception"},
1839
 	{9, "SIGKILL", "killed"},
1881
 	{9, "SIGKILL", "killed"},
1860
 	{30, "SIGUSR1", "user defined signal 1"},
1902
 	{30, "SIGUSR1", "user defined signal 1"},
1861
 	{31, "SIGUSR2", "user defined signal 2"},
1903
 	{31, "SIGUSR2", "user defined signal 2"},
1862
 	{32, "SIGTHR", "thread AST"},
1904
 	{32, "SIGTHR", "thread AST"},
1905
+	{81920, "SIGSTKSZ", "unknown signal"},
1863
 }
1906
 }

+ 1905
- 0
vendor/golang.org/x/sys/unix/zerrors_openbsd_ppc64.go
Diff nebyl zobrazen, protože je příliš veliký
Zobrazit soubor


+ 1904
- 0
vendor/golang.org/x/sys/unix/zerrors_openbsd_riscv64.go
Diff nebyl zobrazen, protože je příliš veliký
Zobrazit soubor


+ 0
- 40
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.go Zobrazit soubor

1
-// go run mksyscall.go -tags darwin,amd64,go1.13 syscall_darwin.1_13.go
2
-// Code generated by the command above; see README.md. DO NOT EDIT.
3
-
4
-//go:build darwin && amd64 && go1.13
5
-// +build darwin,amd64,go1.13
6
-
7
-package unix
8
-
9
-import (
10
-	"syscall"
11
-	"unsafe"
12
-)
13
-
14
-var _ syscall.Errno
15
-
16
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
17
-
18
-func closedir(dir uintptr) (err error) {
19
-	_, _, e1 := syscall_syscall(libc_closedir_trampoline_addr, uintptr(dir), 0, 0)
20
-	if e1 != 0 {
21
-		err = errnoErr(e1)
22
-	}
23
-	return
24
-}
25
-
26
-var libc_closedir_trampoline_addr uintptr
27
-
28
-//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
29
-
30
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
31
-
32
-func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
33
-	r0, _, _ := syscall_syscall(libc_readdir_r_trampoline_addr, uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
34
-	res = Errno(r0)
35
-	return
36
-}
37
-
38
-var libc_readdir_r_trampoline_addr uintptr
39
-
40
-//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"

+ 0
- 25
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.s Zobrazit soubor

1
-// go run mkasm_darwin.go amd64
2
-// Code generated by the command above; DO NOT EDIT.
3
-
4
-//go:build go1.13
5
-// +build go1.13
6
-
7
-#include "textflag.h"
8
-
9
-TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0
10
-	JMP	libc_fdopendir(SB)
11
-
12
-GLOBL	·libc_fdopendir_trampoline_addr(SB), RODATA, $8
13
-DATA	·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB)
14
-
15
-TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0
16
-	JMP	libc_closedir(SB)
17
-
18
-GLOBL	·libc_closedir_trampoline_addr(SB), RODATA, $8
19
-DATA	·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB)
20
-
21
-TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0
22
-	JMP	libc_readdir_r(SB)
23
-
24
-GLOBL	·libc_readdir_r_trampoline_addr(SB), RODATA, $8
25
-DATA	·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB)

+ 29
- 3
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go Zobrazit soubor

1
-// go run mksyscall.go -tags darwin,amd64,go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go
1
+// go run mksyscall.go -tags darwin,amd64 syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3
 
3
 
4
-//go:build darwin && amd64 && go1.12
5
-// +build darwin,amd64,go1.12
4
+//go:build darwin && amd64
5
+// +build darwin,amd64
6
 
6
 
7
 package unix
7
 package unix
8
 
8
 
463
 
463
 
464
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
464
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
465
 
465
 
466
+func closedir(dir uintptr) (err error) {
467
+	_, _, e1 := syscall_syscall(libc_closedir_trampoline_addr, uintptr(dir), 0, 0)
468
+	if e1 != 0 {
469
+		err = errnoErr(e1)
470
+	}
471
+	return
472
+}
473
+
474
+var libc_closedir_trampoline_addr uintptr
475
+
476
+//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
477
+
478
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
479
+
480
+func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
481
+	r0, _, _ := syscall_syscall(libc_readdir_r_trampoline_addr, uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
482
+	res = Errno(r0)
483
+	return
484
+}
485
+
486
+var libc_readdir_r_trampoline_addr uintptr
487
+
488
+//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"
489
+
490
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
491
+
466
 func pipe(p *[2]int32) (err error) {
492
 func pipe(p *[2]int32) (err error) {
467
 	_, _, e1 := syscall_rawSyscall(libc_pipe_trampoline_addr, uintptr(unsafe.Pointer(p)), 0, 0)
493
 	_, _, e1 := syscall_rawSyscall(libc_pipe_trampoline_addr, uintptr(unsafe.Pointer(p)), 0, 0)
468
 	if e1 != 0 {
494
 	if e1 != 0 {

+ 19
- 4
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s Zobrazit soubor

1
-// go run mkasm_darwin.go amd64
1
+// go run mkasm.go darwin amd64
2
 // Code generated by the command above; DO NOT EDIT.
2
 // Code generated by the command above; DO NOT EDIT.
3
 
3
 
4
-//go:build go1.12
5
-// +build go1.12
6
-
7
 #include "textflag.h"
4
 #include "textflag.h"
8
 
5
 
6
+TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0
7
+	JMP	libc_fdopendir(SB)
8
+
9
+GLOBL	·libc_fdopendir_trampoline_addr(SB), RODATA, $8
10
+DATA	·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB)
11
+
9
 TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0
12
 TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0
10
 	JMP	libc_getgroups(SB)
13
 	JMP	libc_getgroups(SB)
11
 
14
 
174
 GLOBL	·libc_munlockall_trampoline_addr(SB), RODATA, $8
177
 GLOBL	·libc_munlockall_trampoline_addr(SB), RODATA, $8
175
 DATA	·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB)
178
 DATA	·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB)
176
 
179
 
180
+TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0
181
+	JMP	libc_closedir(SB)
182
+
183
+GLOBL	·libc_closedir_trampoline_addr(SB), RODATA, $8
184
+DATA	·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB)
185
+
186
+TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0
187
+	JMP	libc_readdir_r(SB)
188
+
189
+GLOBL	·libc_readdir_r_trampoline_addr(SB), RODATA, $8
190
+DATA	·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB)
191
+
177
 TEXT libc_pipe_trampoline<>(SB),NOSPLIT,$0-0
192
 TEXT libc_pipe_trampoline<>(SB),NOSPLIT,$0-0
178
 	JMP	libc_pipe(SB)
193
 	JMP	libc_pipe(SB)
179
 
194
 

+ 0
- 40
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.go Zobrazit soubor

1
-// go run mksyscall.go -tags darwin,arm64,go1.13 syscall_darwin.1_13.go
2
-// Code generated by the command above; see README.md. DO NOT EDIT.
3
-
4
-//go:build darwin && arm64 && go1.13
5
-// +build darwin,arm64,go1.13
6
-
7
-package unix
8
-
9
-import (
10
-	"syscall"
11
-	"unsafe"
12
-)
13
-
14
-var _ syscall.Errno
15
-
16
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
17
-
18
-func closedir(dir uintptr) (err error) {
19
-	_, _, e1 := syscall_syscall(libc_closedir_trampoline_addr, uintptr(dir), 0, 0)
20
-	if e1 != 0 {
21
-		err = errnoErr(e1)
22
-	}
23
-	return
24
-}
25
-
26
-var libc_closedir_trampoline_addr uintptr
27
-
28
-//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
29
-
30
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
31
-
32
-func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
33
-	r0, _, _ := syscall_syscall(libc_readdir_r_trampoline_addr, uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
34
-	res = Errno(r0)
35
-	return
36
-}
37
-
38
-var libc_readdir_r_trampoline_addr uintptr
39
-
40
-//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"

+ 0
- 25
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.s Zobrazit soubor

1
-// go run mkasm_darwin.go arm64
2
-// Code generated by the command above; DO NOT EDIT.
3
-
4
-//go:build go1.13
5
-// +build go1.13
6
-
7
-#include "textflag.h"
8
-
9
-TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0
10
-	JMP	libc_fdopendir(SB)
11
-
12
-GLOBL	·libc_fdopendir_trampoline_addr(SB), RODATA, $8
13
-DATA	·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB)
14
-
15
-TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0
16
-	JMP	libc_closedir(SB)
17
-
18
-GLOBL	·libc_closedir_trampoline_addr(SB), RODATA, $8
19
-DATA	·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB)
20
-
21
-TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0
22
-	JMP	libc_readdir_r(SB)
23
-
24
-GLOBL	·libc_readdir_r_trampoline_addr(SB), RODATA, $8
25
-DATA	·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB)

+ 29
- 3
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go Zobrazit soubor

1
-// go run mksyscall.go -tags darwin,arm64,go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.go
1
+// go run mksyscall.go -tags darwin,arm64 syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.go
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3
 
3
 
4
-//go:build darwin && arm64 && go1.12
5
-// +build darwin,arm64,go1.12
4
+//go:build darwin && arm64
5
+// +build darwin,arm64
6
 
6
 
7
 package unix
7
 package unix
8
 
8
 
463
 
463
 
464
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
464
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
465
 
465
 
466
+func closedir(dir uintptr) (err error) {
467
+	_, _, e1 := syscall_syscall(libc_closedir_trampoline_addr, uintptr(dir), 0, 0)
468
+	if e1 != 0 {
469
+		err = errnoErr(e1)
470
+	}
471
+	return
472
+}
473
+
474
+var libc_closedir_trampoline_addr uintptr
475
+
476
+//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
477
+
478
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
479
+
480
+func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
481
+	r0, _, _ := syscall_syscall(libc_readdir_r_trampoline_addr, uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
482
+	res = Errno(r0)
483
+	return
484
+}
485
+
486
+var libc_readdir_r_trampoline_addr uintptr
487
+
488
+//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"
489
+
490
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
491
+
466
 func pipe(p *[2]int32) (err error) {
492
 func pipe(p *[2]int32) (err error) {
467
 	_, _, e1 := syscall_rawSyscall(libc_pipe_trampoline_addr, uintptr(unsafe.Pointer(p)), 0, 0)
493
 	_, _, e1 := syscall_rawSyscall(libc_pipe_trampoline_addr, uintptr(unsafe.Pointer(p)), 0, 0)
468
 	if e1 != 0 {
494
 	if e1 != 0 {

+ 19
- 4
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s Zobrazit soubor

1
-// go run mkasm_darwin.go arm64
1
+// go run mkasm.go darwin arm64
2
 // Code generated by the command above; DO NOT EDIT.
2
 // Code generated by the command above; DO NOT EDIT.
3
 
3
 
4
-//go:build go1.12
5
-// +build go1.12
6
-
7
 #include "textflag.h"
4
 #include "textflag.h"
8
 
5
 
6
+TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0
7
+	JMP	libc_fdopendir(SB)
8
+
9
+GLOBL	·libc_fdopendir_trampoline_addr(SB), RODATA, $8
10
+DATA	·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB)
11
+
9
 TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0
12
 TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0
10
 	JMP	libc_getgroups(SB)
13
 	JMP	libc_getgroups(SB)
11
 
14
 
174
 GLOBL	·libc_munlockall_trampoline_addr(SB), RODATA, $8
177
 GLOBL	·libc_munlockall_trampoline_addr(SB), RODATA, $8
175
 DATA	·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB)
178
 DATA	·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB)
176
 
179
 
180
+TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0
181
+	JMP	libc_closedir(SB)
182
+
183
+GLOBL	·libc_closedir_trampoline_addr(SB), RODATA, $8
184
+DATA	·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB)
185
+
186
+TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0
187
+	JMP	libc_readdir_r(SB)
188
+
189
+GLOBL	·libc_readdir_r_trampoline_addr(SB), RODATA, $8
190
+DATA	·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB)
191
+
177
 TEXT libc_pipe_trampoline<>(SB),NOSPLIT,$0-0
192
 TEXT libc_pipe_trampoline<>(SB),NOSPLIT,$0-0
178
 	JMP	libc_pipe(SB)
193
 	JMP	libc_pipe(SB)
179
 
194
 

+ 10
- 0
vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go Zobrazit soubor

552
 
552
 
553
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
553
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
554
 
554
 
555
+func ClockGettime(clockid int32, time *Timespec) (err error) {
556
+	_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
557
+	if e1 != 0 {
558
+		err = errnoErr(e1)
559
+	}
560
+	return
561
+}
562
+
563
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
564
+
555
 func Close(fd int) (err error) {
565
 func Close(fd int) (err error) {
556
 	_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
566
 	_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
557
 	if e1 != 0 {
567
 	if e1 != 0 {

+ 10
- 0
vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go Zobrazit soubor

544
 
544
 
545
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
545
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
546
 
546
 
547
+func ClockGettime(clockid int32, time *Timespec) (err error) {
548
+	_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
549
+	if e1 != 0 {
550
+		err = errnoErr(e1)
551
+	}
552
+	return
553
+}
554
+
555
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
556
+
547
 func Close(fd int) (err error) {
557
 func Close(fd int) (err error) {
548
 	_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
558
 	_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
549
 	if e1 != 0 {
559
 	if e1 != 0 {

+ 10
- 0
vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go Zobrazit soubor

544
 
544
 
545
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
545
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
546
 
546
 
547
+func ClockGettime(clockid int32, time *Timespec) (err error) {
548
+	_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
549
+	if e1 != 0 {
550
+		err = errnoErr(e1)
551
+	}
552
+	return
553
+}
554
+
555
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
556
+
547
 func Close(fd int) (err error) {
557
 func Close(fd int) (err error) {
548
 	_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
558
 	_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
549
 	if e1 != 0 {
559
 	if e1 != 0 {

+ 0
- 0
vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go Zobrazit soubor


Některé soubory nejsou zobrazny, neboť je v této revizi změněno mnoho souborů

Načítá se…
Zrušit
Uložit