Browse Source

upgrade other x dependencies

tags/v2.12.0-rc1
Shivaram Lingamneni 1 year ago
parent
commit
eb84103865
100 changed files with 6242 additions and 1010 deletions
  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 View File

@@ -20,7 +20,7 @@ require (
20 20
 	github.com/tidwall/buntdb v1.2.10
21 21
 	github.com/toorop/go-dkim v0.0.0-20201103131630-e1cd1a0a5208
22 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 24
 	golang.org/x/text v0.6.0
25 25
 	gopkg.in/yaml.v2 v2.4.0
26 26
 )
@@ -36,8 +36,8 @@ require (
36 36
 	github.com/tidwall/rtred v0.1.2 // indirect
37 37
 	github.com/tidwall/tinyqueue v0.1.1 // indirect
38 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 43
 replace github.com/gorilla/websocket => github.com/ergochat/websocket v1.4.2-oragono1

+ 6
- 0
go.sum View File

@@ -89,6 +89,8 @@ golang.org/x/crypto v0.0.0-20211115234514-b4de73f9ece8 h1:5QRxNnVsaJP6NAse0UdkRg
89 89
 golang.org/x/crypto v0.0.0-20211115234514-b4de73f9ece8/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
90 90
 golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e h1:T8NU3HyQ8ClP4SEE+KbFlg6n0NhuTsN4MyznaarGsZM=
91 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 94
 golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
93 95
 golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 h1:qWPm9rbaAMKs8Bq/9LRpbMqxWRVUAQwMI9fVrssnTfw=
94 96
 golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
@@ -101,8 +103,12 @@ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 h1:SrN+KX8Art/Sf4HNj6Zcz06G7
101 103
 golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
102 104
 golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f h1:v4INt8xihDGvnrfjMDVXGxw9wrfxYyCjk0KbXjhR55s=
103 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 108
 golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E=
105 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 112
 golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
107 113
 golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
108 114
 golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=

+ 0
- 3
vendor/golang.org/x/crypto/AUTHORS View File

@@ -1,3 +0,0 @@
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 View File

@@ -1,3 +0,0 @@
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 View File

@@ -50,7 +50,7 @@ func (ih InvalidHashPrefixError) Error() string {
50 50
 type InvalidCostError int
51 51
 
52 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 56
 const (
@@ -82,11 +82,20 @@ type hashed struct {
82 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 89
 // GenerateFromPassword returns the bcrypt hash of the password at the given
86 90
 // cost. If the cost given is less than MinCost, the cost will be set to
87 91
 // DefaultCost, instead. Use CompareHashAndPassword, as defined in this package,
88 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 95
 func GenerateFromPassword(password []byte, cost int) ([]byte, error) {
96
+	if len(password) > 72 {
97
+		return nil, ErrPasswordTooLong
98
+	}
90 99
 	p, err := newFromPassword(password, cost)
91 100
 	if err != nil {
92 101
 		return nil, err

+ 98
- 96
vendor/golang.org/x/crypto/sha3/keccakf.go View File

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

+ 6
- 6
vendor/golang.org/x/sys/cpu/cpu_arm64.go View File

@@ -6,7 +6,10 @@ package cpu
6 6
 
7 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 14
 func initOptions() {
12 15
 	options = []option{
@@ -41,13 +44,10 @@ func archInit() {
41 44
 	switch runtime.GOOS {
42 45
 	case "freebsd":
43 46
 		readARM64Registers()
44
-	case "linux", "netbsd":
47
+	case "linux", "netbsd", "openbsd":
45 48
 		doinit()
46 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 51
 		setMinimalFeatures()
52 52
 	}
53 53
 }

+ 42
- 2
vendor/golang.org/x/sys/cpu/cpu_linux_arm64.go View File

@@ -4,6 +4,11 @@
4 4
 
5 5
 package cpu
6 6
 
7
+import (
8
+	"strings"
9
+	"syscall"
10
+)
11
+
7 12
 // HWCAP/HWCAP2 bits. These are exposed by Linux.
8 13
 const (
9 14
 	hwcap_FP       = 1 << 0
@@ -32,10 +37,45 @@ const (
32 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 59
 func doinit() {
36 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 79
 		return
40 80
 	}
41 81
 

+ 65
- 0
vendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.go View File

@@ -0,0 +1,65 @@
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 View File

@@ -0,0 +1,11 @@
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 View File

@@ -2,8 +2,8 @@
2 2
 // Use of this source code is governed by a BSD-style
3 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 8
 package cpu
9 9
 

+ 15
- 0
vendor/golang.org/x/sys/cpu/cpu_other_ppc64x.go View File

@@ -0,0 +1,15 @@
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 View File

@@ -0,0 +1,43 @@
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 View File

@@ -0,0 +1,54 @@
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 View File

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

+ 1
- 9
vendor/golang.org/x/sys/plan9/syscall.go View File

@@ -29,8 +29,6 @@ import (
29 29
 	"bytes"
30 30
 	"strings"
31 31
 	"unsafe"
32
-
33
-	"golang.org/x/sys/internal/unsafeheader"
34 32
 )
35 33
 
36 34
 // ByteSliceFromString returns a NUL-terminated slice of bytes
@@ -82,13 +80,7 @@ func BytePtrToString(p *byte) string {
82 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 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 View File

@@ -0,0 +1,31 @@
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 View File

@@ -2,8 +2,8 @@
2 2
 // Use of this source code is governed by a BSD-style
3 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 8
 package unix
9 9
 

+ 2
- 2
vendor/golang.org/x/sys/unix/gccgo.go View File

@@ -2,8 +2,8 @@
2 2
 // Use of this source code is governed by a BSD-style
3 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 8
 package unix
9 9
 

+ 2
- 2
vendor/golang.org/x/sys/unix/gccgo_c.c View File

@@ -2,8 +2,8 @@
2 2
 // Use of this source code is governed by a BSD-style
3 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 8
 #include <errno.h>
9 9
 #include <stdint.h>

+ 2
- 2
vendor/golang.org/x/sys/unix/ioctl.go View File

@@ -2,8 +2,8 @@
2 2
 // Use of this source code is governed by a BSD-style
3 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 8
 package unix
9 9
 

+ 17
- 3
vendor/golang.org/x/sys/unix/ioctl_linux.go View File

@@ -4,9 +4,7 @@
4 4
 
5 5
 package unix
6 6
 
7
-import (
8
-	"unsafe"
9
-)
7
+import "unsafe"
10 8
 
11 9
 // IoctlRetInt performs an ioctl operation specified by req on a device
12 10
 // associated with opened file descriptor fd, and returns a non-negative
@@ -217,3 +215,19 @@ func IoctlKCMAttach(fd int, info KCMAttach) error {
217 215
 func IoctlKCMUnattach(fd int, info KCMUnattach) error {
218 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 View File

@@ -73,12 +73,12 @@ aix_ppc64)
73 73
 darwin_amd64)
74 74
 	mkerrors="$mkerrors -m64"
75 75
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
76
-	mkasm="go run mkasm_darwin.go"
76
+	mkasm="go run mkasm.go"
77 77
 	;;
78 78
 darwin_arm64)
79 79
 	mkerrors="$mkerrors -m64"
80 80
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
81
-	mkasm="go run mkasm_darwin.go"
81
+	mkasm="go run mkasm.go"
82 82
 	;;
83 83
 dragonfly_amd64)
84 84
 	mkerrors="$mkerrors -m64"
@@ -142,42 +142,60 @@ netbsd_arm64)
142 142
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
143 143
 	;;
144 144
 openbsd_386)
145
+	mkasm="go run mkasm.go"
145 146
 	mkerrors="$mkerrors -m32"
146
-	mksyscall="go run mksyscall.go -l32 -openbsd"
147
+	mksyscall="go run mksyscall.go -l32 -openbsd -libc"
147 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 149
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
150 150
 	;;
151 151
 openbsd_amd64)
152
+	mkasm="go run mkasm.go"
152 153
 	mkerrors="$mkerrors -m64"
153
-	mksyscall="go run mksyscall.go -openbsd"
154
+	mksyscall="go run mksyscall.go -openbsd -libc"
154 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 156
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
157 157
 	;;
158 158
 openbsd_arm)
159
+	mkasm="go run mkasm.go"
159 160
 	mkerrors="$mkerrors"
160
-	mksyscall="go run mksyscall.go -l32 -openbsd -arm"
161
+	mksyscall="go run mksyscall.go -l32 -openbsd -arm -libc"
161 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 163
 	# Let the type of C char be signed for making the bare syscall
164 164
 	# API consistent across platforms.
165 165
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
166 166
 	;;
167 167
 openbsd_arm64)
168
+	mkasm="go run mkasm.go"
168 169
 	mkerrors="$mkerrors -m64"
169
-	mksyscall="go run mksyscall.go -openbsd"
170
+	mksyscall="go run mksyscall.go -openbsd -libc"
170 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 172
 	# Let the type of C char be signed for making the bare syscall
173 173
 	# API consistent across platforms.
174 174
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
175 175
 	;;
176 176
 openbsd_mips64)
177
+	mkasm="go run mkasm.go"
177 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 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 199
 	# Let the type of C char be signed for making the bare syscall
182 200
 	# API consistent across platforms.
183 201
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
@@ -214,11 +232,6 @@ esac
214 232
 			if [ "$GOOSARCH" == "aix_ppc64" ]; then
215 233
 				# aix/ppc64 script generates files instead of writing to stdin.
216 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 235
 			elif [ "$GOOS" == "illumos" ]; then
223 236
 			        # illumos code generation requires a --illumos switch
224 237
 			        echo "$mksyscall -illumos -tags illumos,$GOARCH syscall_illumos.go |gofmt > zsyscall_illumos_$GOARCH.go";
@@ -232,5 +245,5 @@ esac
232 245
 	if [ -n "$mksysctl" ]; then echo "$mksysctl |gofmt >$zsysctl"; fi
233 246
 	if [ -n "$mksysnum" ]; then echo "$mksysnum |gofmt >zsysnum_$GOOSARCH.go"; fi
234 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 249
 ) | $run

+ 2
- 2
vendor/golang.org/x/sys/unix/mkerrors.sh View File

@@ -642,7 +642,7 @@ errors=$(
642 642
 signals=$(
643 643
 	echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
644 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 646
 	sort
647 647
 )
648 648
 
@@ -652,7 +652,7 @@ echo '#include <errno.h>' | $CC -x c - -E -dM $ccflags |
652 652
 	sort >_error.grep
653 653
 echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
654 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 656
 	sort >_signal.grep
657 657
 
658 658
 echo '// mkerrors.sh' "$@"

+ 14
- 0
vendor/golang.org/x/sys/unix/sockcmsg_unix.go View File

@@ -52,6 +52,20 @@ func ParseSocketControlMessage(b []byte) ([]SocketControlMessage, error) {
52 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 69
 func socketControlMessageHeaderAndData(b []byte) (*Cmsghdr, []byte, error) {
56 70
 	h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
57 71
 	if h.Len < SizeofCmsghdr || uint64(h.Len) > uint64(len(b)) {

+ 0
- 27
vendor/golang.org/x/sys/unix/str.go View File

@@ -1,27 +0,0 @@
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 View File

@@ -29,8 +29,6 @@ import (
29 29
 	"bytes"
30 30
 	"strings"
31 31
 	"unsafe"
32
-
33
-	"golang.org/x/sys/internal/unsafeheader"
34 32
 )
35 33
 
36 34
 // ByteSliceFromString returns a NUL-terminated slice of bytes
@@ -82,13 +80,7 @@ func BytePtrToString(p *byte) string {
82 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 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 View File

@@ -218,13 +218,62 @@ func Accept(fd int) (nfd int, sa Sockaddr, err error) {
218 218
 }
219 219
 
220 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 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 279
 func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {

+ 1
- 1
vendor/golang.org/x/sys/unix/syscall_bsd.go View File

@@ -363,7 +363,7 @@ func sendmsgN(fd int, iov []Iovec, oob []byte, ptr unsafe.Pointer, salen _Sockle
363 363
 	var empty bool
364 364
 	if len(oob) > 0 {
365 365
 		// send at least one normal byte
366
-		empty := emptyIovecs(iov)
366
+		empty = emptyIovecs(iov)
367 367
 		if empty {
368 368
 			var iova [1]Iovec
369 369
 			iova[0].Base = &dummy

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

@@ -1,32 +0,0 @@
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 View File

@@ -1,108 +0,0 @@
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 View File

@@ -19,6 +19,96 @@ import (
19 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 112
 // SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
23 113
 type SockaddrDatalink struct {
24 114
 	Len    uint8

+ 1
- 0
vendor/golang.org/x/sys/unix/syscall_dragonfly.go View File

@@ -255,6 +255,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
255 255
 //sys	Chmod(path string, mode uint32) (err error)
256 256
 //sys	Chown(path string, uid int, gid int) (err error)
257 257
 //sys	Chroot(path string) (err error)
258
+//sys	ClockGettime(clockid int32, time *Timespec) (err error)
258 259
 //sys	Close(fd int) (err error)
259 260
 //sys	Dup(fd int) (nfd int, err error)
260 261
 //sys	Dup2(from int, to int) (err error)

+ 1
- 0
vendor/golang.org/x/sys/unix/syscall_freebsd.go View File

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

+ 1
- 1
vendor/golang.org/x/sys/unix/syscall_freebsd_386.go View File

@@ -61,7 +61,7 @@ func PtraceGetFsBase(pid int, fsbase *int64) (err error) {
61 61
 }
62 62
 
63 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 65
 	err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
66 66
 	return int(ioDesc.Len), err
67 67
 }

+ 1
- 1
vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go View File

@@ -61,7 +61,7 @@ func PtraceGetFsBase(pid int, fsbase *int64) (err error) {
61 61
 }
62 62
 
63 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 65
 	err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
66 66
 	return int(ioDesc.Len), err
67 67
 }

+ 1
- 1
vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go View File

@@ -57,7 +57,7 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
57 57
 func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
58 58
 
59 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 61
 	err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
62 62
 	return int(ioDesc.Len), err
63 63
 }

+ 1
- 1
vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go View File

@@ -57,7 +57,7 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
57 57
 func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
58 58
 
59 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 61
 	err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
62 62
 	return int(ioDesc.Len), err
63 63
 }

+ 1
- 1
vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go View File

@@ -57,7 +57,7 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
57 57
 func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
58 58
 
59 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 61
 	err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
62 62
 	return int(ioDesc.Len), err
63 63
 }

+ 22
- 0
vendor/golang.org/x/sys/unix/syscall_hurd.go View File

@@ -0,0 +1,22 @@
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 View File

@@ -0,0 +1,29 @@
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 View File

@@ -10,8 +10,6 @@
10 10
 package unix
11 11
 
12 12
 import (
13
-	"fmt"
14
-	"runtime"
15 13
 	"unsafe"
16 14
 )
17 15
 
@@ -79,107 +77,3 @@ func Accept4(fd int, flags int) (nfd int, sa Sockaddr, err error) {
79 77
 	}
80 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 View File

@@ -13,6 +13,7 @@ package unix
13 13
 
14 14
 import (
15 15
 	"encoding/binary"
16
+	"strconv"
16 17
 	"syscall"
17 18
 	"time"
18 19
 	"unsafe"
@@ -233,7 +234,7 @@ func Futimesat(dirfd int, path string, tv []Timeval) error {
233 234
 func Futimes(fd int, tv []Timeval) (err error) {
234 235
 	// Believe it or not, this is the best we can do on Linux
235 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 240
 const ImplementsGetwd = true
@@ -1541,7 +1542,7 @@ func sendmsgN(fd int, iov []Iovec, oob []byte, ptr unsafe.Pointer, salen _Sockle
1541 1542
 	var dummy byte
1542 1543
 	var empty bool
1543 1544
 	if len(oob) > 0 {
1544
-		empty := emptyIovecs(iov)
1545
+		empty = emptyIovecs(iov)
1545 1546
 		if empty {
1546 1547
 			var sockType int
1547 1548
 			sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE)
@@ -1553,6 +1554,7 @@ func sendmsgN(fd int, iov []Iovec, oob []byte, ptr unsafe.Pointer, salen _Sockle
1553 1554
 				var iova [1]Iovec
1554 1555
 				iova[0].Base = &dummy
1555 1556
 				iova[0].SetLen(1)
1557
+				iov = iova[:]
1556 1558
 			}
1557 1559
 		}
1558 1560
 		msg.Control = &oob[0]
@@ -1891,17 +1893,28 @@ func PrctlRetInt(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uint
1891 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 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 1920
 // SetfsgidRetGid sets fsgid for current thread and returns previous fsgid set.
@@ -1960,36 +1973,46 @@ func Signalfd(fd int, sigmask *Sigset_t, flags int) (newfd int, err error) {
1960 1973
 //sys	preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PREADV2
1961 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 1989
 		if len(b) > 0 {
1968
-			iovecs[i].Base = &b[0]
1990
+			v.Base = &b[0]
1969 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 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 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 2008
 	n, err = readv(fd, iovecs)
1987 2009
 	readvRacedetect(iovecs, n, err)
1988 2010
 	return n, err
1989 2011
 }
1990 2012
 
1991 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 2016
 	lo, hi := offs2lohi(offset)
1994 2017
 	n, err = preadv(fd, iovecs, lo, hi)
1995 2018
 	readvRacedetect(iovecs, n, err)
@@ -1997,7 +2020,8 @@ func Preadv(fd int, iovs [][]byte, offset int64) (n int, err error) {
1997 2020
 }
1998 2021
 
1999 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 2025
 	lo, hi := offs2lohi(offset)
2002 2026
 	n, err = preadv2(fd, iovecs, lo, hi, flags)
2003 2027
 	readvRacedetect(iovecs, n, err)
@@ -2024,7 +2048,8 @@ func readvRacedetect(iovecs []Iovec, n int, err error) {
2024 2048
 }
2025 2049
 
2026 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 2053
 	if raceenabled {
2029 2054
 		raceReleaseMerge(unsafe.Pointer(&ioSync))
2030 2055
 	}
@@ -2034,7 +2059,8 @@ func Writev(fd int, iovs [][]byte) (n int, err error) {
2034 2059
 }
2035 2060
 
2036 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 2064
 	if raceenabled {
2039 2065
 		raceReleaseMerge(unsafe.Pointer(&ioSync))
2040 2066
 	}
@@ -2045,7 +2071,8 @@ func Pwritev(fd int, iovs [][]byte, offset int64) (n int, err error) {
2045 2071
 }
2046 2072
 
2047 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 2076
 	if raceenabled {
2050 2077
 		raceReleaseMerge(unsafe.Pointer(&ioSync))
2051 2078
 	}
@@ -2240,7 +2267,7 @@ func (fh *FileHandle) Bytes() []byte {
2240 2267
 	if n == 0 {
2241 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 2273
 // NameToHandleAt wraps the name_to_handle_at system call; it obtains
@@ -2356,6 +2383,16 @@ func Setitimer(which ItimerWhich, it Itimerval) (Itimerval, error) {
2356 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 2397
  * Unimplemented
2361 2398
  */
@@ -2414,7 +2451,6 @@ func Setitimer(which ItimerWhich, it Itimerval) (Itimerval, error) {
2414 2451
 // RestartSyscall
2415 2452
 // RtSigaction
2416 2453
 // RtSigpending
2417
-// RtSigprocmask
2418 2454
 // RtSigqueueinfo
2419 2455
 // RtSigreturn
2420 2456
 // RtSigsuspend

+ 0
- 4
vendor/golang.org/x/sys/unix/syscall_linux_386.go View File

@@ -41,10 +41,6 @@ func setTimeval(sec, usec int64) Timeval {
41 41
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
42 42
 //sys	setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32
43 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 44
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
49 45
 //sys	Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
50 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 View File

@@ -46,11 +46,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
46 46
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
47 47
 //sys	setfsgid(gid int) (prev int, err error)
48 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 49
 //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
53
-//sysnb	Setreuid(ruid int, euid int) (err error)
54 50
 //sys	Shutdown(fd int, how int) (err error)
55 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 View File

@@ -62,10 +62,6 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
62 62
 //sys	Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
63 63
 //sys	setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32
64 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 65
 //sys	Shutdown(fd int, how int) (err error)
70 66
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
71 67
 //sys	Stat(path string, stat *Stat_t) (err error) = SYS_STAT64

+ 0
- 4
vendor/golang.org/x/sys/unix/syscall_linux_arm64.go View File

@@ -39,11 +39,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
39 39
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
40 40
 //sys	setfsgid(gid int) (prev int, err error)
41 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 42
 //sysnb	setrlimit(resource int, rlim *Rlimit) (err error)
46
-//sysnb	Setreuid(ruid int, euid int) (err error)
47 43
 //sys	Shutdown(fd int, how int) (err error)
48 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 View File

@@ -34,10 +34,6 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
34 34
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
35 35
 //sys	setfsgid(gid int) (prev int, err error)
36 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 37
 //sys	Shutdown(fd int, how int) (err error)
42 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 View File

@@ -37,11 +37,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
37 37
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
38 38
 //sys	setfsgid(gid int) (prev int, err error)
39 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 40
 //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
44
-//sysnb	Setreuid(ruid int, euid int) (err error)
45 41
 //sys	Shutdown(fd int, how int) (err error)
46 42
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
47 43
 //sys	Statfs(path string, buf *Statfs_t) (err error)

+ 0
- 4
vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go View File

@@ -32,10 +32,6 @@ func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr,
32 32
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
33 33
 //sys	setfsgid(gid int) (prev int, err error)
34 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 35
 //sys	Shutdown(fd int, how int) (err error)
40 36
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
41 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 View File

@@ -34,10 +34,6 @@ import (
34 34
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
35 35
 //sys	setfsgid(gid int) (prev int, err error)
36 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 37
 //sys	Shutdown(fd int, how int) (err error)
42 38
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
43 39
 //sys	Stat(path string, stat *Stat_t) (err error) = SYS_STAT64

+ 0
- 4
vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go View File

@@ -34,11 +34,7 @@ package unix
34 34
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
35 35
 //sys	setfsgid(gid int) (prev int, err error)
36 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 37
 //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
41
-//sysnb	Setreuid(ruid int, euid int) (err error)
42 38
 //sys	Shutdown(fd int, how int) (err error)
43 39
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
44 40
 //sys	Stat(path string, stat *Stat_t) (err error)

+ 0
- 4
vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go View File

@@ -38,11 +38,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
38 38
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
39 39
 //sys	setfsgid(gid int) (prev int, err error)
40 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 41
 //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
45
-//sysnb	Setreuid(ruid int, euid int) (err error)
46 42
 //sys	Shutdown(fd int, how int) (err error)
47 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 View File

@@ -34,11 +34,7 @@ import (
34 34
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
35 35
 //sys	setfsgid(gid int) (prev int, err error)
36 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 37
 //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
41
-//sysnb	Setreuid(ruid int, euid int) (err error)
42 38
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
43 39
 //sys	Stat(path string, stat *Stat_t) (err error)
44 40
 //sys	Statfs(path string, buf *Statfs_t) (err error)

+ 0
- 4
vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go View File

@@ -31,11 +31,7 @@ package unix
31 31
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
32 32
 //sys	setfsgid(gid int) (prev int, err error)
33 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 34
 //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
38
-//sysnb	Setreuid(ruid int, euid int) (err error)
39 35
 //sys	Shutdown(fd int, how int) (err error)
40 36
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
41 37
 //sys	Stat(path string, stat *Stat_t) (err error)

+ 15
- 0
vendor/golang.org/x/sys/unix/syscall_netbsd.go View File

@@ -110,6 +110,20 @@ func direntNamlen(buf []byte) (uint64, bool) {
110 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 127
 func Pipe(p []int) (err error) {
114 128
 	return Pipe2(p, 0)
115 129
 }
@@ -245,6 +259,7 @@ func Statvfs(path string, buf *Statvfs_t) (err error) {
245 259
 //sys	Chmod(path string, mode uint32) (err error)
246 260
 //sys	Chown(path string, uid int, gid int) (err error)
247 261
 //sys	Chroot(path string) (err error)
262
+//sys	ClockGettime(clockid int32, time *Timespec) (err error)
248 263
 //sys	Close(fd int) (err error)
249 264
 //sys	Dup(fd int) (nfd int, err error)
250 265
 //sys	Dup2(from int, to int) (err error)

+ 1
- 0
vendor/golang.org/x/sys/unix/syscall_openbsd.go View File

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

+ 27
- 0
vendor/golang.org/x/sys/unix/syscall_openbsd_libc.go View File

@@ -0,0 +1,27 @@
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 View File

@@ -0,0 +1,42 @@
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 View File

@@ -0,0 +1,42 @@
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 View File

@@ -590,6 +590,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
590 590
 //sys	Chmod(path string, mode uint32) (err error)
591 591
 //sys	Chown(path string, uid int, gid int) (err error)
592 592
 //sys	Chroot(path string) (err error)
593
+//sys	ClockGettime(clockid int32, time *Timespec) (err error)
593 594
 //sys	Close(fd int) (err error)
594 595
 //sys	Creat(path string, mode uint32) (fd int, err error)
595 596
 //sys	Dup(fd int) (nfd int, err error)
@@ -750,8 +751,8 @@ type EventPort struct {
750 751
 	// we should handle things gracefully. To do so, we need to keep an extra
751 752
 	// reference to the cookie around until the event is processed
752 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 758
 // PortEvent is an abstraction of the port_event C struct.
@@ -778,7 +779,7 @@ func NewEventPort() (*EventPort, error) {
778 779
 		port:    port,
779 780
 		fds:     make(map[uintptr]*fileObjCookie),
780 781
 		paths:   make(map[string]*fileObjCookie),
781
-		cookies: make(map[*interface{}]*fileObjCookie),
782
+		cookies: make(map[*fileObjCookie]struct{}),
782 783
 	}
783 784
 	return e, nil
784 785
 }
@@ -799,6 +800,7 @@ func (e *EventPort) Close() error {
799 800
 	}
800 801
 	e.fds = nil
801 802
 	e.paths = nil
803
+	e.cookies = nil
802 804
 	return nil
803 805
 }
804 806
 
@@ -826,17 +828,16 @@ func (e *EventPort) AssociatePath(path string, stat os.FileInfo, events int, coo
826 828
 	if _, found := e.paths[path]; found {
827 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 832
 	if err != nil {
831 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 836
 	if err != nil {
836 837
 		return err
837 838
 	}
838 839
 	e.paths[path] = fCookie
839
-	e.cookies[&fCookie.cookie] = fCookie
840
+	e.cookies[fCookie] = struct{}{}
840 841
 	return nil
841 842
 }
842 843
 
@@ -858,7 +859,7 @@ func (e *EventPort) DissociatePath(path string) error {
858 859
 	if err == nil {
859 860
 		// dissociate was successful, safe to delete the cookie
860 861
 		fCookie := e.paths[path]
861
-		delete(e.cookies, &fCookie.cookie)
862
+		delete(e.cookies, fCookie)
862 863
 	}
863 864
 	delete(e.paths, path)
864 865
 	return err
@@ -871,13 +872,16 @@ func (e *EventPort) AssociateFd(fd uintptr, events int, cookie interface{}) erro
871 872
 	if _, found := e.fds[fd]; found {
872 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 880
 	if err != nil {
877 881
 		return err
878 882
 	}
879 883
 	e.fds[fd] = fCookie
880
-	e.cookies[&fCookie.cookie] = fCookie
884
+	e.cookies[fCookie] = struct{}{}
881 885
 	return nil
882 886
 }
883 887
 
@@ -896,27 +900,31 @@ func (e *EventPort) DissociateFd(fd uintptr) error {
896 900
 	if err == nil {
897 901
 		// dissociate was successful, safe to delete the cookie
898 902
 		fCookie := e.fds[fd]
899
-		delete(e.cookies, &fCookie.cookie)
903
+		delete(e.cookies, fCookie)
900 904
 	}
901 905
 	delete(e.fds, fd)
902 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 930
 // GetOne wraps port_get(3c) and returns a single PortEvent.
@@ -929,44 +937,50 @@ func (e *EventPort) GetOne(t *Timespec) (*PortEvent, error) {
929 937
 	p := new(PortEvent)
930 938
 	e.mu.Lock()
931 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 944
 	return p, nil
934 945
 }
935 946
 
936 947
 // peIntToExt converts a cgo portEvent struct into the friendlier PortEvent
937 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 953
 	peExt.Events = peInt.Events
940 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 964
 	switch peInt.Source {
944 965
 	case PORT_SOURCE_FD:
945
-		delete(e.cookies, cookie)
946 966
 		peExt.Fd = uintptr(peInt.Object)
947 967
 		// Only remove the fds entry if it exists and this cookie matches
948 968
 		if fobj, ok := e.fds[peExt.Fd]; ok {
949
-			if &fobj.cookie == cookie {
969
+			if fobj == fCookie {
950 970
 				delete(e.fds, peExt.Fd)
951 971
 			}
952 972
 		}
953 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 975
 		peExt.Path = BytePtrToString((*byte)(unsafe.Pointer(peExt.fobj.Name)))
963 976
 		// Only remove the paths entry if it exists and this cookie matches
964 977
 		if fobj, ok := e.paths[peExt.Path]; ok {
965
-			if &fobj.cookie == cookie {
978
+			if fobj == fCookie {
966 979
 				delete(e.paths, peExt.Path)
967 980
 			}
968 981
 		}
969 982
 	}
983
+	return nil
970 984
 }
971 985
 
972 986
 // Pending wraps port_getn(3c) and returns how many events are pending.
@@ -990,7 +1004,7 @@ func (e *EventPort) Get(s []PortEvent, min int, timeout *Timespec) (int, error)
990 1004
 	got := uint32(min)
991 1005
 	max := uint32(len(s))
992 1006
 	var err error
993
-	ps := make([]portEvent, max, max)
1007
+	ps := make([]portEvent, max)
994 1008
 	_, err = port_getn(e.port, &ps[0], max, &got, timeout)
995 1009
 	// got will be trustworthy with ETIME, but not any other error.
996 1010
 	if err != nil && err != ETIME {
@@ -998,8 +1012,122 @@ func (e *EventPort) Get(s []PortEvent, min int, timeout *Timespec) (int, error)
998 1012
 	}
999 1013
 	e.mu.Lock()
1000 1014
 	defer e.mu.Unlock()
1015
+	valid := 0
1001 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 View File

@@ -13,8 +13,6 @@ import (
13 13
 	"sync"
14 14
 	"syscall"
15 15
 	"unsafe"
16
-
17
-	"golang.org/x/sys/internal/unsafeheader"
18 16
 )
19 17
 
20 18
 var (
@@ -117,11 +115,7 @@ func (m *mmapper) Mmap(fd int, offset int64, length int, prot int, flags int) (d
117 115
 	}
118 116
 
119 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 120
 	// Register mapping in m and return it.
127 121
 	p := &b[cap(b)-1]
@@ -337,6 +331,19 @@ func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) {
337 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 347
 func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
341 348
 	var iov [1]Iovec
342 349
 	if len(p) > 0 {
@@ -352,13 +359,9 @@ func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from
352 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 365
 func RecvmsgBuffers(fd int, buffers [][]byte, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
363 366
 	iov := make([]Iovec, len(buffers))
364 367
 	for i := range buffers {
@@ -377,11 +380,38 @@ func RecvmsgBuffers(fd int, buffers [][]byte, oob []byte, flags int) (n, oobn in
377 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 386
 func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error) {
381 387
 	_, err = SendmsgN(fd, p, oob, to, flags)
382 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 415
 func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error) {
386 416
 	var iov [1]Iovec
387 417
 	if len(p) > 0 {
@@ -400,9 +430,8 @@ func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error)
400 430
 }
401 431
 
402 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 435
 func SendmsgBuffers(fd int, buffers [][]byte, oob []byte, to Sockaddr, flags int) (n int, err error) {
407 436
 	iov := make([]Iovec, len(buffers))
408 437
 	for i := range buffers {
@@ -429,11 +458,15 @@ func Send(s int, buf []byte, flags int) (err error) {
429 458
 }
430 459
 
431 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 472
 func SetsockoptByte(fd, level, opt int, value byte) (err error) {

+ 2
- 4
vendor/golang.org/x/sys/unix/syscall_unix_gc.go View File

@@ -2,11 +2,9 @@
2 2
 // Use of this source code is governed by a BSD-style
3 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 7
 // +build gc
8
-// +build !ppc64le
9
-// +build !ppc64
10 8
 
11 9
 package unix
12 10
 

+ 172
- 1
vendor/golang.org/x/sys/unix/syscall_zos_s390x.go View File

@@ -9,8 +9,10 @@ package unix
9 9
 
10 10
 import (
11 11
 	"bytes"
12
+	"fmt"
12 13
 	"runtime"
13 14
 	"sort"
15
+	"strings"
14 16
 	"sync"
15 17
 	"syscall"
16 18
 	"unsafe"
@@ -55,7 +57,13 @@ func (d *Dirent) NameString() string {
55 57
 	if d == nil {
56 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 69
 func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) {
@@ -1230,6 +1238,14 @@ func Readdir(dir uintptr) (*Dirent, error) {
1230 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 1249
 func Closedir(dir uintptr) error {
1234 1250
 	_, _, e := syscall_syscall(SYS_CLOSEDIR, dir, 0, 0)
1235 1251
 	if e != 0 {
@@ -1821,3 +1837,158 @@ func Unmount(name string, mtm int) (err error) {
1821 1837
 	}
1822 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 View File

@@ -7,11 +7,7 @@
7 7
 
8 8
 package unix
9 9
 
10
-import (
11
-	"unsafe"
12
-
13
-	"golang.org/x/sys/internal/unsafeheader"
14
-)
10
+import "unsafe"
15 11
 
16 12
 // SysvShmAttach attaches the Sysv shared memory segment associated with the
17 13
 // shared memory identifier id.
@@ -34,12 +30,7 @@ func SysvShmAttach(id int, addr uintptr, flag int) ([]byte, error) {
34 30
 	}
35 31
 
36 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 34
 	return b, nil
44 35
 }
45 36
 

+ 65
- 30
vendor/golang.org/x/sys/unix/xattr_bsd.go View File

@@ -160,13 +160,12 @@ func Lremovexattr(link string, attr string) (err error) {
160 160
 }
161 161
 
162 162
 func Listxattr(file string, dest []byte) (sz int, err error) {
163
-	d := initxattrdest(dest, 0)
164 163
 	destsiz := len(dest)
165 164
 
166 165
 	// FreeBSD won't allow you to list xattrs from multiple namespaces
167
-	s := 0
166
+	s, pos := 0, 0
168 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 170
 		/* Errors accessing system attrs are ignored so that
172 171
 		 * we can implement the Linux-like behavior of omitting errors that
@@ -175,66 +174,102 @@ func Listxattr(file string, dest []byte) (sz int, err error) {
175 174
 		 * Linux will still error if we ask for user attributes on a file that
176 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 181
 			return s, e
182 182
 		}
183 183
 
184 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 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 195
 	d := initxattrdest(dest, 0)
197 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 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 217
 			return s, e
206 218
 		}
207 219
 
208 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 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 231
 	d := initxattrdest(dest, 0)
221 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 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 253
 			return s, e
230 254
 		}
231 255
 
232 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 275
 	return s, nil

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_386.go View File

@@ -1,11 +1,11 @@
1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include -m32
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/386/include -m32
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 //go:build 386 && linux
5 5
 // +build 386,linux
6 6
 
7 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 10
 package unix
11 11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go View File

@@ -1,11 +1,11 @@
1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include -m64
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/amd64/include -m64
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 //go:build amd64 && linux
5 5
 // +build amd64,linux
6 6
 
7 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 10
 package unix
11 11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go View File

@@ -1,11 +1,11 @@
1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/arm/include
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 //go:build arm && linux
5 5
 // +build arm,linux
6 6
 
7 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 10
 package unix
11 11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go View File

@@ -1,11 +1,11 @@
1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include -fsigned-char
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/arm64/include -fsigned-char
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 //go:build arm64 && linux
5 5
 // +build arm64,linux
6 6
 
7 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 10
 package unix
11 11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go View File

@@ -1,11 +1,11 @@
1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/loong64/include
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 //go:build loong64 && linux
5 5
 // +build loong64,linux
6 6
 
7 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 10
 package unix
11 11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go View File

@@ -1,11 +1,11 @@
1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/mips/include
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 //go:build mips && linux
5 5
 // +build mips,linux
6 6
 
7 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 10
 package unix
11 11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go View File

@@ -1,11 +1,11 @@
1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/mips64/include
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 //go:build mips64 && linux
5 5
 // +build mips64,linux
6 6
 
7 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 10
 package unix
11 11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go View File

@@ -1,11 +1,11 @@
1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/mips64le/include
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 //go:build mips64le && linux
5 5
 // +build mips64le,linux
6 6
 
7 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 10
 package unix
11 11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go View File

@@ -1,11 +1,11 @@
1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/mipsle/include
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 //go:build mipsle && linux
5 5
 // +build mipsle,linux
6 6
 
7 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 10
 package unix
11 11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go View File

@@ -1,11 +1,11 @@
1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/ppc/include
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 //go:build ppc && linux
5 5
 // +build ppc,linux
6 6
 
7 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 10
 package unix
11 11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go View File

@@ -1,11 +1,11 @@
1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/ppc64/include
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 //go:build ppc64 && linux
5 5
 // +build ppc64,linux
6 6
 
7 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 10
 package unix
11 11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go View File

@@ -1,11 +1,11 @@
1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/ppc64le/include
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 //go:build ppc64le && linux
5 5
 // +build ppc64le,linux
6 6
 
7 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 10
 package unix
11 11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go View File

@@ -1,11 +1,11 @@
1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/riscv64/include
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 //go:build riscv64 && linux
5 5
 // +build riscv64,linux
6 6
 
7 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 10
 package unix
11 11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go View File

@@ -1,11 +1,11 @@
1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include -fsigned-char
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/s390x/include -fsigned-char
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 //go:build s390x && linux
5 5
 // +build s390x,linux
6 6
 
7 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 10
 package unix
11 11
 

+ 2
- 2
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go View File

@@ -1,11 +1,11 @@
1
-// mkerrors.sh -Wall -Werror -static -I/tmp/include
1
+// mkerrors.sh -Wall -Werror -static -I/tmp/sparc64/include
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 //go:build sparc64 && linux
5 5
 // +build sparc64,linux
6 6
 
7 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 10
 package unix
11 11
 

+ 297
- 59
vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go View File

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

+ 160
- 29
vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go View File

@@ -109,6 +109,15 @@ const (
109 109
 	BPF_DIRECTION_IN                  = 0x1
110 110
 	BPF_DIRECTION_OUT                 = 0x2
111 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 121
 	BPF_H                             = 0x8
113 122
 	BPF_IMM                           = 0x0
114 123
 	BPF_IND                           = 0x40
@@ -137,6 +146,7 @@ const (
137 146
 	BPF_OR                            = 0x40
138 147
 	BPF_RELEASE                       = 0x30bb6
139 148
 	BPF_RET                           = 0x6
149
+	BPF_RND                           = 0xc0
140 150
 	BPF_RSH                           = 0x70
141 151
 	BPF_ST                            = 0x2
142 152
 	BPF_STX                           = 0x3
@@ -177,7 +187,65 @@ const (
177 187
 	CTL_KERN                          = 0x1
178 188
 	CTL_MAXNAME                       = 0xc
179 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 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 249
 	DLT_ARCNET                        = 0x7
182 250
 	DLT_ATM_RFC1483                   = 0xb
183 251
 	DLT_AX25                          = 0x3
@@ -240,6 +308,8 @@ const (
240 308
 	EMUL_ENABLED                      = 0x1
241 309
 	EMUL_NATIVE                       = 0x2
242 310
 	ENDRUNDISC                        = 0x9
311
+	ETH64_8021_RSVD_MASK              = 0xfffffffffff0
312
+	ETH64_8021_RSVD_PREFIX            = 0x180c2000000
243 313
 	ETHERMIN                          = 0x2e
244 314
 	ETHERMTU                          = 0x5dc
245 315
 	ETHERTYPE_8023                    = 0x4
@@ -292,6 +362,7 @@ const (
292 362
 	ETHERTYPE_DN                      = 0x6003
293 363
 	ETHERTYPE_DOGFIGHT                = 0x1989
294 364
 	ETHERTYPE_DSMD                    = 0x8039
365
+	ETHERTYPE_EAPOL                   = 0x888e
295 366
 	ETHERTYPE_ECMA                    = 0x803
296 367
 	ETHERTYPE_ENCRYPT                 = 0x803d
297 368
 	ETHERTYPE_ES                      = 0x805d
@@ -323,6 +394,7 @@ const (
323 394
 	ETHERTYPE_LLDP                    = 0x88cc
324 395
 	ETHERTYPE_LOGICRAFT               = 0x8148
325 396
 	ETHERTYPE_LOOPBACK                = 0x9000
397
+	ETHERTYPE_MACSEC                  = 0x88e5
326 398
 	ETHERTYPE_MATRA                   = 0x807a
327 399
 	ETHERTYPE_MAX                     = 0xffff
328 400
 	ETHERTYPE_MERIT                   = 0x807c
@@ -351,15 +423,17 @@ const (
351 423
 	ETHERTYPE_NCD                     = 0x8149
352 424
 	ETHERTYPE_NESTAR                  = 0x8006
353 425
 	ETHERTYPE_NETBEUI                 = 0x8191
426
+	ETHERTYPE_NHRP                    = 0x2001
354 427
 	ETHERTYPE_NOVELL                  = 0x8138
355 428
 	ETHERTYPE_NS                      = 0x600
356 429
 	ETHERTYPE_NSAT                    = 0x601
357 430
 	ETHERTYPE_NSCOMPAT                = 0x807
431
+	ETHERTYPE_NSH                     = 0x984f
358 432
 	ETHERTYPE_NTRAILER                = 0x10
359 433
 	ETHERTYPE_OS9                     = 0x7007
360 434
 	ETHERTYPE_OS9NET                  = 0x7009
361 435
 	ETHERTYPE_PACER                   = 0x80c6
362
-	ETHERTYPE_PAE                     = 0x888e
436
+	ETHERTYPE_PBB                     = 0x88e7
363 437
 	ETHERTYPE_PCS                     = 0x4242
364 438
 	ETHERTYPE_PLANNING                = 0x8044
365 439
 	ETHERTYPE_PPP                     = 0x880b
@@ -441,10 +515,11 @@ const (
441 515
 	ETHER_VLAN_ENCAP_LEN              = 0x4
442 516
 	EVFILT_AIO                        = -0x3
443 517
 	EVFILT_DEVICE                     = -0x8
518
+	EVFILT_EXCEPT                     = -0x9
444 519
 	EVFILT_PROC                       = -0x5
445 520
 	EVFILT_READ                       = -0x1
446 521
 	EVFILT_SIGNAL                     = -0x6
447
-	EVFILT_SYSCOUNT                   = 0x8
522
+	EVFILT_SYSCOUNT                   = 0x9
448 523
 	EVFILT_TIMER                      = -0x7
449 524
 	EVFILT_VNODE                      = -0x4
450 525
 	EVFILT_WRITE                      = -0x2
@@ -466,7 +541,7 @@ const (
466 541
 	EV_FLAG1                          = 0x2000
467 542
 	EV_ONESHOT                        = 0x10
468 543
 	EV_RECEIPT                        = 0x40
469
-	EV_SYSFLAGS                       = 0xf000
544
+	EV_SYSFLAGS                       = 0xf800
470 545
 	EXTA                              = 0x4b00
471 546
 	EXTB                              = 0x9600
472 547
 	EXTPROC                           = 0x800
@@ -732,6 +807,7 @@ const (
732 807
 	IFT_VOICEOVERCABLE                = 0xc6
733 808
 	IFT_VOICEOVERFRAMERELAY           = 0x99
734 809
 	IFT_VOICEOVERIP                   = 0x68
810
+	IFT_WIREGUARD                     = 0xfb
735 811
 	IFT_X213                          = 0x5d
736 812
 	IFT_X25                           = 0x5
737 813
 	IFT_X25DDN                        = 0x4
@@ -797,9 +873,11 @@ const (
797 873
 	IPPROTO_RAW                       = 0xff
798 874
 	IPPROTO_ROUTING                   = 0x2b
799 875
 	IPPROTO_RSVP                      = 0x2e
876
+	IPPROTO_SCTP                      = 0x84
800 877
 	IPPROTO_TCP                       = 0x6
801 878
 	IPPROTO_TP                        = 0x1d
802 879
 	IPPROTO_UDP                       = 0x11
880
+	IPPROTO_UDPLITE                   = 0x88
803 881
 	IPV6_AUTH_LEVEL                   = 0x35
804 882
 	IPV6_AUTOFLOWLABEL                = 0x3b
805 883
 	IPV6_CHECKSUM                     = 0x1a
@@ -906,6 +984,9 @@ const (
906 984
 	IP_TTL                            = 0x4
907 985
 	ISIG                              = 0x80
908 986
 	ISTRIP                            = 0x20
987
+	ITIMER_PROF                       = 0x2
988
+	ITIMER_REAL                       = 0x0
989
+	ITIMER_VIRTUAL                    = 0x1
909 990
 	IUCLC                             = 0x1000
910 991
 	IXANY                             = 0x800
911 992
 	IXOFF                             = 0x400
@@ -970,12 +1051,26 @@ const (
970 1051
 	MNT_ROOTFS                        = 0x4000
971 1052
 	MNT_SOFTDEP                       = 0x4000000
972 1053
 	MNT_STALLED                       = 0x100000
1054
+	MNT_SWAPPABLE                     = 0x200000
973 1055
 	MNT_SYNCHRONOUS                   = 0x2
974 1056
 	MNT_UPDATE                        = 0x10000
975 1057
 	MNT_VISFLAGMASK                   = 0x400ffff
976 1058
 	MNT_WAIT                          = 0x1
977 1059
 	MNT_WANTRDWR                      = 0x2000000
978 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 1074
 	MSG_BCAST                         = 0x100
980 1075
 	MSG_CMSG_CLOEXEC                  = 0x800
981 1076
 	MSG_CTRUNC                        = 0x20
@@ -988,6 +1083,7 @@ const (
988 1083
 	MSG_PEEK                          = 0x2
989 1084
 	MSG_TRUNC                         = 0x10
990 1085
 	MSG_WAITALL                       = 0x40
1086
+	MSG_WAITFORONE                    = 0x1000
991 1087
 	MS_ASYNC                          = 0x1
992 1088
 	MS_INVALIDATE                     = 0x4
993 1089
 	MS_SYNC                           = 0x2
@@ -996,7 +1092,8 @@ const (
996 1092
 	NET_RT_FLAGS                      = 0x2
997 1093
 	NET_RT_IFLIST                     = 0x3
998 1094
 	NET_RT_IFNAMES                    = 0x6
999
-	NET_RT_MAXID                      = 0x7
1095
+	NET_RT_MAXID                      = 0x8
1096
+	NET_RT_SOURCE                     = 0x7
1000 1097
 	NET_RT_STATS                      = 0x4
1001 1098
 	NET_RT_TABLE                      = 0x5
1002 1099
 	NFDBITS                           = 0x20
@@ -1013,6 +1110,7 @@ const (
1013 1110
 	NOTE_FORK                         = 0x40000000
1014 1111
 	NOTE_LINK                         = 0x10
1015 1112
 	NOTE_LOWAT                        = 0x1
1113
+	NOTE_OOB                          = 0x4
1016 1114
 	NOTE_PCTRLMASK                    = 0xf0000000
1017 1115
 	NOTE_PDATAMASK                    = 0xfffff
1018 1116
 	NOTE_RENAME                       = 0x20
@@ -1130,9 +1228,11 @@ const (
1130 1228
 	RTF_STATIC                        = 0x800
1131 1229
 	RTF_UP                            = 0x1
1132 1230
 	RTF_USETRAILERS                   = 0x8000
1231
+	RTM_80211INFO                     = 0x15
1133 1232
 	RTM_ADD                           = 0x1
1134 1233
 	RTM_BFD                           = 0x12
1135 1234
 	RTM_CHANGE                        = 0x3
1235
+	RTM_CHGADDRATTR                   = 0x14
1136 1236
 	RTM_DELADDR                       = 0xd
1137 1237
 	RTM_DELETE                        = 0x2
1138 1238
 	RTM_DESYNC                        = 0x10
@@ -1140,7 +1240,6 @@ const (
1140 1240
 	RTM_IFANNOUNCE                    = 0xf
1141 1241
 	RTM_IFINFO                        = 0xe
1142 1242
 	RTM_INVALIDATE                    = 0x11
1143
-	RTM_LOCK                          = 0x8
1144 1243
 	RTM_LOSING                        = 0x5
1145 1244
 	RTM_MAXSIZE                       = 0x800
1146 1245
 	RTM_MISS                          = 0x7
@@ -1148,7 +1247,7 @@ const (
1148 1247
 	RTM_PROPOSAL                      = 0x13
1149 1248
 	RTM_REDIRECT                      = 0x6
1150 1249
 	RTM_RESOLVE                       = 0xb
1151
-	RTM_RTTUNIT                       = 0xf4240
1250
+	RTM_SOURCE                        = 0x16
1152 1251
 	RTM_VERSION                       = 0x5
1153 1252
 	RTV_EXPIRE                        = 0x4
1154 1253
 	RTV_HOPCOUNT                      = 0x2
@@ -1166,6 +1265,9 @@ const (
1166 1265
 	RUSAGE_THREAD                     = 0x1
1167 1266
 	SCM_RIGHTS                        = 0x1
1168 1267
 	SCM_TIMESTAMP                     = 0x4
1268
+	SEEK_CUR                          = 0x1
1269
+	SEEK_END                          = 0x2
1270
+	SEEK_SET                          = 0x0
1169 1271
 	SHUT_RD                           = 0x0
1170 1272
 	SHUT_RDWR                         = 0x2
1171 1273
 	SHUT_WR                           = 0x1
@@ -1182,35 +1284,37 @@ const (
1182 1284
 	SIOCBRDGDELS                      = 0x80606942
1183 1285
 	SIOCBRDGFLUSH                     = 0x80606948
1184 1286
 	SIOCBRDGFRL                       = 0x808c694e
1185
-	SIOCBRDGGCACHE                    = 0xc0186941
1186
-	SIOCBRDGGFD                       = 0xc0186952
1187
-	SIOCBRDGGHT                       = 0xc0186951
1287
+	SIOCBRDGGCACHE                    = 0xc0146941
1288
+	SIOCBRDGGFD                       = 0xc0146952
1289
+	SIOCBRDGGHT                       = 0xc0146951
1188 1290
 	SIOCBRDGGIFFLGS                   = 0xc060693e
1189
-	SIOCBRDGGMA                       = 0xc0186953
1291
+	SIOCBRDGGMA                       = 0xc0146953
1190 1292
 	SIOCBRDGGPARAM                    = 0xc0406958
1191
-	SIOCBRDGGPRI                      = 0xc0186950
1293
+	SIOCBRDGGPRI                      = 0xc0146950
1192 1294
 	SIOCBRDGGRL                       = 0xc030694f
1193
-	SIOCBRDGGTO                       = 0xc0186946
1295
+	SIOCBRDGGTO                       = 0xc0146946
1194 1296
 	SIOCBRDGIFS                       = 0xc0606942
1195 1297
 	SIOCBRDGRTS                       = 0xc0206943
1196 1298
 	SIOCBRDGSADDR                     = 0xc1286944
1197
-	SIOCBRDGSCACHE                    = 0x80186940
1198
-	SIOCBRDGSFD                       = 0x80186952
1199
-	SIOCBRDGSHT                       = 0x80186951
1299
+	SIOCBRDGSCACHE                    = 0x80146940
1300
+	SIOCBRDGSFD                       = 0x80146952
1301
+	SIOCBRDGSHT                       = 0x80146951
1200 1302
 	SIOCBRDGSIFCOST                   = 0x80606955
1201 1303
 	SIOCBRDGSIFFLGS                   = 0x8060693f
1202 1304
 	SIOCBRDGSIFPRIO                   = 0x80606954
1203 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 1312
 	SIOCDELMULTI                      = 0x80206932
1210 1313
 	SIOCDIFADDR                       = 0x80206919
1211 1314
 	SIOCDIFGROUP                      = 0x80286989
1212 1315
 	SIOCDIFPARENT                     = 0x802069b4
1213 1316
 	SIOCDIFPHYADDR                    = 0x80206949
1317
+	SIOCDPWE3NEIGHBOR                 = 0x802069de
1214 1318
 	SIOCDVNETID                       = 0x802069af
1215 1319
 	SIOCGETKALIVE                     = 0xc01869a4
1216 1320
 	SIOCGETLABEL                      = 0x8020699a
@@ -1229,6 +1333,7 @@ const (
1229 1333
 	SIOCGIFFLAGS                      = 0xc0206911
1230 1334
 	SIOCGIFGATTR                      = 0xc028698b
1231 1335
 	SIOCGIFGENERIC                    = 0xc020693a
1336
+	SIOCGIFGLIST                      = 0xc028698d
1232 1337
 	SIOCGIFGMEMB                      = 0xc028698a
1233 1338
 	SIOCGIFGROUP                      = 0xc0286988
1234 1339
 	SIOCGIFHARDMTU                    = 0xc02069a5
@@ -1243,13 +1348,21 @@ const (
1243 1348
 	SIOCGIFRDOMAIN                    = 0xc02069a0
1244 1349
 	SIOCGIFRTLABEL                    = 0xc0206983
1245 1350
 	SIOCGIFRXR                        = 0x802069aa
1351
+	SIOCGIFSFFPAGE                    = 0xc1126939
1246 1352
 	SIOCGIFXFLAGS                     = 0xc020699e
1247 1353
 	SIOCGLIFPHYADDR                   = 0xc218694b
1248 1354
 	SIOCGLIFPHYDF                     = 0xc02069c2
1355
+	SIOCGLIFPHYECN                    = 0xc02069c8
1249 1356
 	SIOCGLIFPHYRTABLE                 = 0xc02069a2
1250 1357
 	SIOCGLIFPHYTTL                    = 0xc02069a9
1251 1358
 	SIOCGPGRP                         = 0x40047309
1359
+	SIOCGPWE3                         = 0xc0206998
1360
+	SIOCGPWE3CTRLWORD                 = 0xc02069dc
1361
+	SIOCGPWE3FAT                      = 0xc02069dd
1362
+	SIOCGPWE3NEIGHBOR                 = 0xc21869de
1363
+	SIOCGRXHPRIO                      = 0xc02069db
1252 1364
 	SIOCGSPPPPARAMS                   = 0xc0206994
1365
+	SIOCGTXHPRIO                      = 0xc02069c6
1253 1366
 	SIOCGUMBINFO                      = 0xc02069be
1254 1367
 	SIOCGUMBPARAM                     = 0xc02069c0
1255 1368
 	SIOCGVH                           = 0xc02069f6
@@ -1287,19 +1400,20 @@ const (
1287 1400
 	SIOCSIFXFLAGS                     = 0x8020699d
1288 1401
 	SIOCSLIFPHYADDR                   = 0x8218694a
1289 1402
 	SIOCSLIFPHYDF                     = 0x802069c1
1403
+	SIOCSLIFPHYECN                    = 0x802069c7
1290 1404
 	SIOCSLIFPHYRTABLE                 = 0x802069a1
1291 1405
 	SIOCSLIFPHYTTL                    = 0x802069a8
1292 1406
 	SIOCSPGRP                         = 0x80047308
1407
+	SIOCSPWE3CTRLWORD                 = 0x802069dc
1408
+	SIOCSPWE3FAT                      = 0x802069dd
1409
+	SIOCSPWE3NEIGHBOR                 = 0x821869de
1410
+	SIOCSRXHPRIO                      = 0x802069db
1293 1411
 	SIOCSSPPPPARAMS                   = 0x80206993
1412
+	SIOCSTXHPRIO                      = 0x802069c5
1294 1413
 	SIOCSUMBPARAM                     = 0x802069bf
1295 1414
 	SIOCSVH                           = 0xc02069f5
1296 1415
 	SIOCSVNETFLOWID                   = 0x802069c3
1297 1416
 	SIOCSVNETID                       = 0x802069a6
1298
-	SIOCSWGDPID                       = 0xc018695b
1299
-	SIOCSWGMAXFLOW                    = 0xc0186960
1300
-	SIOCSWGMAXGROUP                   = 0xc018695d
1301
-	SIOCSWSDPID                       = 0x8018695c
1302
-	SIOCSWSPORTNO                     = 0xc060695f
1303 1417
 	SOCK_CLOEXEC                      = 0x8000
1304 1418
 	SOCK_DGRAM                        = 0x2
1305 1419
 	SOCK_DNS                          = 0x1000
@@ -1314,6 +1428,7 @@ const (
1314 1428
 	SO_BINDANY                        = 0x1000
1315 1429
 	SO_BROADCAST                      = 0x20
1316 1430
 	SO_DEBUG                          = 0x1
1431
+	SO_DOMAIN                         = 0x1024
1317 1432
 	SO_DONTROUTE                      = 0x10
1318 1433
 	SO_ERROR                          = 0x1007
1319 1434
 	SO_KEEPALIVE                      = 0x8
@@ -1321,6 +1436,7 @@ const (
1321 1436
 	SO_NETPROC                        = 0x1020
1322 1437
 	SO_OOBINLINE                      = 0x100
1323 1438
 	SO_PEERCRED                       = 0x1022
1439
+	SO_PROTOCOL                       = 0x1025
1324 1440
 	SO_RCVBUF                         = 0x1002
1325 1441
 	SO_RCVLOWAT                       = 0x1004
1326 1442
 	SO_RCVTIMEO                       = 0x1006
@@ -1370,7 +1486,18 @@ const (
1370 1486
 	TCOFLUSH                          = 0x2
1371 1487
 	TCOOFF                            = 0x1
1372 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 1501
 	TCP_MAXSEG                        = 0x2
1375 1502
 	TCP_MAXWIN                        = 0xffff
1376 1503
 	TCP_MAX_SACK                      = 0x3
@@ -1379,8 +1506,11 @@ const (
1379 1506
 	TCP_MSS                           = 0x200
1380 1507
 	TCP_NODELAY                       = 0x1
1381 1508
 	TCP_NOPUSH                        = 0x10
1509
+	TCP_SACKHOLE_LIMIT                = 0x80
1382 1510
 	TCP_SACK_ENABLE                   = 0x8
1383 1511
 	TCSAFLUSH                         = 0x2
1512
+	TIMER_ABSTIME                     = 0x1
1513
+	TIMER_RELTIME                     = 0x0
1384 1514
 	TIOCCBRK                          = 0x2000747a
1385 1515
 	TIOCCDTR                          = 0x20007478
1386 1516
 	TIOCCHKVERAUTH                    = 0x2000741e
@@ -1445,7 +1575,6 @@ const (
1445 1575
 	TIOCSPGRP                         = 0x80047476
1446 1576
 	TIOCSTART                         = 0x2000746e
1447 1577
 	TIOCSTAT                          = 0x20007465
1448
-	TIOCSTI                           = 0x80017472
1449 1578
 	TIOCSTOP                          = 0x2000746f
1450 1579
 	TIOCSTSTAMP                       = 0x8008745a
1451 1580
 	TIOCSWINSZ                        = 0x80087467
@@ -1467,7 +1596,8 @@ const (
1467 1596
 	VMIN                              = 0x10
1468 1597
 	VM_ANONMIN                        = 0x7
1469 1598
 	VM_LOADAVG                        = 0x2
1470
-	VM_MAXID                          = 0xc
1599
+	VM_MALLOC_CONF                    = 0xc
1600
+	VM_MAXID                          = 0xd
1471 1601
 	VM_MAXSLP                         = 0xa
1472 1602
 	VM_METER                          = 0x1
1473 1603
 	VM_NKMEMPAGES                     = 0x6
@@ -1745,7 +1875,7 @@ var signalList = [...]struct {
1745 1875
 	{3, "SIGQUIT", "quit"},
1746 1876
 	{4, "SIGILL", "illegal instruction"},
1747 1877
 	{5, "SIGTRAP", "trace/BPT trap"},
1748
-	{6, "SIGABRT", "abort trap"},
1878
+	{6, "SIGIOT", "abort trap"},
1749 1879
 	{7, "SIGEMT", "EMT trap"},
1750 1880
 	{8, "SIGFPE", "floating point exception"},
1751 1881
 	{9, "SIGKILL", "killed"},
@@ -1772,4 +1902,5 @@ var signalList = [...]struct {
1772 1902
 	{30, "SIGUSR1", "user defined signal 1"},
1773 1903
 	{31, "SIGUSR2", "user defined signal 2"},
1774 1904
 	{32, "SIGTHR", "thread AST"},
1905
+	{28672, "SIGSTKSZ", "unknown signal"},
1775 1906
 }

+ 292
- 56
vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go View File

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

+ 134
- 26
vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go View File

@@ -112,6 +112,12 @@ const (
112 112
 	BPF_FILDROP_CAPTURE               = 0x1
113 113
 	BPF_FILDROP_DROP                  = 0x2
114 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 121
 	BPF_H                             = 0x8
116 122
 	BPF_IMM                           = 0x0
117 123
 	BPF_IND                           = 0x40
@@ -140,6 +146,7 @@ const (
140 146
 	BPF_OR                            = 0x40
141 147
 	BPF_RELEASE                       = 0x30bb6
142 148
 	BPF_RET                           = 0x6
149
+	BPF_RND                           = 0xc0
143 150
 	BPF_RSH                           = 0x70
144 151
 	BPF_ST                            = 0x2
145 152
 	BPF_STX                           = 0x3
@@ -180,7 +187,65 @@ const (
180 187
 	CTL_KERN                          = 0x1
181 188
 	CTL_MAXNAME                       = 0xc
182 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 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 249
 	DLT_ARCNET                        = 0x7
185 250
 	DLT_ATM_RFC1483                   = 0xb
186 251
 	DLT_AX25                          = 0x3
@@ -243,6 +308,8 @@ const (
243 308
 	EMUL_ENABLED                      = 0x1
244 309
 	EMUL_NATIVE                       = 0x2
245 310
 	ENDRUNDISC                        = 0x9
311
+	ETH64_8021_RSVD_MASK              = 0xfffffffffff0
312
+	ETH64_8021_RSVD_PREFIX            = 0x180c2000000
246 313
 	ETHERMIN                          = 0x2e
247 314
 	ETHERMTU                          = 0x5dc
248 315
 	ETHERTYPE_8023                    = 0x4
@@ -295,6 +362,7 @@ const (
295 362
 	ETHERTYPE_DN                      = 0x6003
296 363
 	ETHERTYPE_DOGFIGHT                = 0x1989
297 364
 	ETHERTYPE_DSMD                    = 0x8039
365
+	ETHERTYPE_EAPOL                   = 0x888e
298 366
 	ETHERTYPE_ECMA                    = 0x803
299 367
 	ETHERTYPE_ENCRYPT                 = 0x803d
300 368
 	ETHERTYPE_ES                      = 0x805d
@@ -326,6 +394,7 @@ const (
326 394
 	ETHERTYPE_LLDP                    = 0x88cc
327 395
 	ETHERTYPE_LOGICRAFT               = 0x8148
328 396
 	ETHERTYPE_LOOPBACK                = 0x9000
397
+	ETHERTYPE_MACSEC                  = 0x88e5
329 398
 	ETHERTYPE_MATRA                   = 0x807a
330 399
 	ETHERTYPE_MAX                     = 0xffff
331 400
 	ETHERTYPE_MERIT                   = 0x807c
@@ -354,15 +423,16 @@ const (
354 423
 	ETHERTYPE_NCD                     = 0x8149
355 424
 	ETHERTYPE_NESTAR                  = 0x8006
356 425
 	ETHERTYPE_NETBEUI                 = 0x8191
426
+	ETHERTYPE_NHRP                    = 0x2001
357 427
 	ETHERTYPE_NOVELL                  = 0x8138
358 428
 	ETHERTYPE_NS                      = 0x600
359 429
 	ETHERTYPE_NSAT                    = 0x601
360 430
 	ETHERTYPE_NSCOMPAT                = 0x807
431
+	ETHERTYPE_NSH                     = 0x984f
361 432
 	ETHERTYPE_NTRAILER                = 0x10
362 433
 	ETHERTYPE_OS9                     = 0x7007
363 434
 	ETHERTYPE_OS9NET                  = 0x7009
364 435
 	ETHERTYPE_PACER                   = 0x80c6
365
-	ETHERTYPE_PAE                     = 0x888e
366 436
 	ETHERTYPE_PBB                     = 0x88e7
367 437
 	ETHERTYPE_PCS                     = 0x4242
368 438
 	ETHERTYPE_PLANNING                = 0x8044
@@ -445,10 +515,11 @@ const (
445 515
 	ETHER_VLAN_ENCAP_LEN              = 0x4
446 516
 	EVFILT_AIO                        = -0x3
447 517
 	EVFILT_DEVICE                     = -0x8
518
+	EVFILT_EXCEPT                     = -0x9
448 519
 	EVFILT_PROC                       = -0x5
449 520
 	EVFILT_READ                       = -0x1
450 521
 	EVFILT_SIGNAL                     = -0x6
451
-	EVFILT_SYSCOUNT                   = 0x8
522
+	EVFILT_SYSCOUNT                   = 0x9
452 523
 	EVFILT_TIMER                      = -0x7
453 524
 	EVFILT_VNODE                      = -0x4
454 525
 	EVFILT_WRITE                      = -0x2
@@ -470,7 +541,7 @@ const (
470 541
 	EV_FLAG1                          = 0x2000
471 542
 	EV_ONESHOT                        = 0x10
472 543
 	EV_RECEIPT                        = 0x40
473
-	EV_SYSFLAGS                       = 0xf000
544
+	EV_SYSFLAGS                       = 0xf800
474 545
 	EXTA                              = 0x4b00
475 546
 	EXTB                              = 0x9600
476 547
 	EXTPROC                           = 0x800
@@ -736,6 +807,7 @@ const (
736 807
 	IFT_VOICEOVERCABLE                = 0xc6
737 808
 	IFT_VOICEOVERFRAMERELAY           = 0x99
738 809
 	IFT_VOICEOVERIP                   = 0x68
810
+	IFT_WIREGUARD                     = 0xfb
739 811
 	IFT_X213                          = 0x5d
740 812
 	IFT_X25                           = 0x5
741 813
 	IFT_X25DDN                        = 0x4
@@ -801,9 +873,11 @@ const (
801 873
 	IPPROTO_RAW                       = 0xff
802 874
 	IPPROTO_ROUTING                   = 0x2b
803 875
 	IPPROTO_RSVP                      = 0x2e
876
+	IPPROTO_SCTP                      = 0x84
804 877
 	IPPROTO_TCP                       = 0x6
805 878
 	IPPROTO_TP                        = 0x1d
806 879
 	IPPROTO_UDP                       = 0x11
880
+	IPPROTO_UDPLITE                   = 0x88
807 881
 	IPV6_AUTH_LEVEL                   = 0x35
808 882
 	IPV6_AUTOFLOWLABEL                = 0x3b
809 883
 	IPV6_CHECKSUM                     = 0x1a
@@ -910,6 +984,9 @@ const (
910 984
 	IP_TTL                            = 0x4
911 985
 	ISIG                              = 0x80
912 986
 	ISTRIP                            = 0x20
987
+	ITIMER_PROF                       = 0x2
988
+	ITIMER_REAL                       = 0x0
989
+	ITIMER_VIRTUAL                    = 0x1
913 990
 	IUCLC                             = 0x1000
914 991
 	IXANY                             = 0x800
915 992
 	IXOFF                             = 0x400
@@ -981,6 +1058,19 @@ const (
981 1058
 	MNT_WAIT                          = 0x1
982 1059
 	MNT_WANTRDWR                      = 0x2000000
983 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 1074
 	MSG_BCAST                         = 0x100
985 1075
 	MSG_CMSG_CLOEXEC                  = 0x800
986 1076
 	MSG_CTRUNC                        = 0x20
@@ -993,6 +1083,7 @@ const (
993 1083
 	MSG_PEEK                          = 0x2
994 1084
 	MSG_TRUNC                         = 0x10
995 1085
 	MSG_WAITALL                       = 0x40
1086
+	MSG_WAITFORONE                    = 0x1000
996 1087
 	MS_ASYNC                          = 0x1
997 1088
 	MS_INVALIDATE                     = 0x4
998 1089
 	MS_SYNC                           = 0x2
@@ -1001,7 +1092,8 @@ const (
1001 1092
 	NET_RT_FLAGS                      = 0x2
1002 1093
 	NET_RT_IFLIST                     = 0x3
1003 1094
 	NET_RT_IFNAMES                    = 0x6
1004
-	NET_RT_MAXID                      = 0x7
1095
+	NET_RT_MAXID                      = 0x8
1096
+	NET_RT_SOURCE                     = 0x7
1005 1097
 	NET_RT_STATS                      = 0x4
1006 1098
 	NET_RT_TABLE                      = 0x5
1007 1099
 	NFDBITS                           = 0x20
@@ -1018,6 +1110,7 @@ const (
1018 1110
 	NOTE_FORK                         = 0x40000000
1019 1111
 	NOTE_LINK                         = 0x10
1020 1112
 	NOTE_LOWAT                        = 0x1
1113
+	NOTE_OOB                          = 0x4
1021 1114
 	NOTE_PCTRLMASK                    = 0xf0000000
1022 1115
 	NOTE_PDATAMASK                    = 0xfffff
1023 1116
 	NOTE_RENAME                       = 0x20
@@ -1154,7 +1247,7 @@ const (
1154 1247
 	RTM_PROPOSAL                      = 0x13
1155 1248
 	RTM_REDIRECT                      = 0x6
1156 1249
 	RTM_RESOLVE                       = 0xb
1157
-	RTM_RTTUNIT                       = 0xf4240
1250
+	RTM_SOURCE                        = 0x16
1158 1251
 	RTM_VERSION                       = 0x5
1159 1252
 	RTV_EXPIRE                        = 0x4
1160 1253
 	RTV_HOPCOUNT                      = 0x2
@@ -1172,6 +1265,9 @@ const (
1172 1265
 	RUSAGE_THREAD                     = 0x1
1173 1266
 	SCM_RIGHTS                        = 0x1
1174 1267
 	SCM_TIMESTAMP                     = 0x4
1268
+	SEEK_CUR                          = 0x1
1269
+	SEEK_END                          = 0x2
1270
+	SEEK_SET                          = 0x0
1175 1271
 	SHUT_RD                           = 0x0
1176 1272
 	SHUT_RDWR                         = 0x2
1177 1273
 	SHUT_WR                           = 0x1
@@ -1188,30 +1284,30 @@ const (
1188 1284
 	SIOCBRDGDELS                      = 0x80606942
1189 1285
 	SIOCBRDGFLUSH                     = 0x80606948
1190 1286
 	SIOCBRDGFRL                       = 0x808c694e
1191
-	SIOCBRDGGCACHE                    = 0xc0186941
1192
-	SIOCBRDGGFD                       = 0xc0186952
1193
-	SIOCBRDGGHT                       = 0xc0186951
1287
+	SIOCBRDGGCACHE                    = 0xc0146941
1288
+	SIOCBRDGGFD                       = 0xc0146952
1289
+	SIOCBRDGGHT                       = 0xc0146951
1194 1290
 	SIOCBRDGGIFFLGS                   = 0xc060693e
1195
-	SIOCBRDGGMA                       = 0xc0186953
1291
+	SIOCBRDGGMA                       = 0xc0146953
1196 1292
 	SIOCBRDGGPARAM                    = 0xc0406958
1197
-	SIOCBRDGGPRI                      = 0xc0186950
1293
+	SIOCBRDGGPRI                      = 0xc0146950
1198 1294
 	SIOCBRDGGRL                       = 0xc030694f
1199
-	SIOCBRDGGTO                       = 0xc0186946
1295
+	SIOCBRDGGTO                       = 0xc0146946
1200 1296
 	SIOCBRDGIFS                       = 0xc0606942
1201 1297
 	SIOCBRDGRTS                       = 0xc0206943
1202 1298
 	SIOCBRDGSADDR                     = 0xc1286944
1203
-	SIOCBRDGSCACHE                    = 0x80186940
1204
-	SIOCBRDGSFD                       = 0x80186952
1205
-	SIOCBRDGSHT                       = 0x80186951
1299
+	SIOCBRDGSCACHE                    = 0x80146940
1300
+	SIOCBRDGSFD                       = 0x80146952
1301
+	SIOCBRDGSHT                       = 0x80146951
1206 1302
 	SIOCBRDGSIFCOST                   = 0x80606955
1207 1303
 	SIOCBRDGSIFFLGS                   = 0x8060693f
1208 1304
 	SIOCBRDGSIFPRIO                   = 0x80606954
1209 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 1311
 	SIOCDELLABEL                      = 0x80206997
1216 1312
 	SIOCDELMULTI                      = 0x80206932
1217 1313
 	SIOCDIFADDR                       = 0x80206919
@@ -1264,6 +1360,7 @@ const (
1264 1360
 	SIOCGPWE3CTRLWORD                 = 0xc02069dc
1265 1361
 	SIOCGPWE3FAT                      = 0xc02069dd
1266 1362
 	SIOCGPWE3NEIGHBOR                 = 0xc21869de
1363
+	SIOCGRXHPRIO                      = 0xc02069db
1267 1364
 	SIOCGSPPPPARAMS                   = 0xc0206994
1268 1365
 	SIOCGTXHPRIO                      = 0xc02069c6
1269 1366
 	SIOCGUMBINFO                      = 0xc02069be
@@ -1310,17 +1407,13 @@ const (
1310 1407
 	SIOCSPWE3CTRLWORD                 = 0x802069dc
1311 1408
 	SIOCSPWE3FAT                      = 0x802069dd
1312 1409
 	SIOCSPWE3NEIGHBOR                 = 0x821869de
1410
+	SIOCSRXHPRIO                      = 0x802069db
1313 1411
 	SIOCSSPPPPARAMS                   = 0x80206993
1314 1412
 	SIOCSTXHPRIO                      = 0x802069c5
1315 1413
 	SIOCSUMBPARAM                     = 0x802069bf
1316 1414
 	SIOCSVH                           = 0xc02069f5
1317 1415
 	SIOCSVNETFLOWID                   = 0x802069c3
1318 1416
 	SIOCSVNETID                       = 0x802069a6
1319
-	SIOCSWGDPID                       = 0xc018695b
1320
-	SIOCSWGMAXFLOW                    = 0xc0186960
1321
-	SIOCSWGMAXGROUP                   = 0xc018695d
1322
-	SIOCSWSDPID                       = 0x8018695c
1323
-	SIOCSWSPORTNO                     = 0xc060695f
1324 1417
 	SOCK_CLOEXEC                      = 0x8000
1325 1418
 	SOCK_DGRAM                        = 0x2
1326 1419
 	SOCK_DNS                          = 0x1000
@@ -1335,6 +1428,7 @@ const (
1335 1428
 	SO_BINDANY                        = 0x1000
1336 1429
 	SO_BROADCAST                      = 0x20
1337 1430
 	SO_DEBUG                          = 0x1
1431
+	SO_DOMAIN                         = 0x1024
1338 1432
 	SO_DONTROUTE                      = 0x10
1339 1433
 	SO_ERROR                          = 0x1007
1340 1434
 	SO_KEEPALIVE                      = 0x8
@@ -1342,6 +1436,7 @@ const (
1342 1436
 	SO_NETPROC                        = 0x1020
1343 1437
 	SO_OOBINLINE                      = 0x100
1344 1438
 	SO_PEERCRED                       = 0x1022
1439
+	SO_PROTOCOL                       = 0x1025
1345 1440
 	SO_RCVBUF                         = 0x1002
1346 1441
 	SO_RCVLOWAT                       = 0x1004
1347 1442
 	SO_RCVTIMEO                       = 0x1006
@@ -1391,7 +1486,18 @@ const (
1391 1486
 	TCOFLUSH                          = 0x2
1392 1487
 	TCOOFF                            = 0x1
1393 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 1501
 	TCP_MAXSEG                        = 0x2
1396 1502
 	TCP_MAXWIN                        = 0xffff
1397 1503
 	TCP_MAX_SACK                      = 0x3
@@ -1400,6 +1506,7 @@ const (
1400 1506
 	TCP_MSS                           = 0x200
1401 1507
 	TCP_NODELAY                       = 0x1
1402 1508
 	TCP_NOPUSH                        = 0x10
1509
+	TCP_SACKHOLE_LIMIT                = 0x80
1403 1510
 	TCP_SACK_ENABLE                   = 0x8
1404 1511
 	TCSAFLUSH                         = 0x2
1405 1512
 	TIMER_ABSTIME                     = 0x1
@@ -1768,7 +1875,7 @@ var signalList = [...]struct {
1768 1875
 	{3, "SIGQUIT", "quit"},
1769 1876
 	{4, "SIGILL", "illegal instruction"},
1770 1877
 	{5, "SIGTRAP", "trace/BPT trap"},
1771
-	{6, "SIGABRT", "abort trap"},
1878
+	{6, "SIGIOT", "abort trap"},
1772 1879
 	{7, "SIGEMT", "EMT trap"},
1773 1880
 	{8, "SIGFPE", "floating point exception"},
1774 1881
 	{9, "SIGKILL", "killed"},
@@ -1795,4 +1902,5 @@ var signalList = [...]struct {
1795 1902
 	{30, "SIGUSR1", "user defined signal 1"},
1796 1903
 	{31, "SIGUSR2", "user defined signal 2"},
1797 1904
 	{32, "SIGTHR", "thread AST"},
1905
+	{28672, "SIGSTKSZ", "unknown signal"},
1798 1906
 }

+ 69
- 26
vendor/golang.org/x/sys/unix/zerrors_openbsd_mips64.go View File

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

+ 1905
- 0
vendor/golang.org/x/sys/unix/zerrors_openbsd_ppc64.go
File diff suppressed because it is too large
View File


+ 1904
- 0
vendor/golang.org/x/sys/unix/zerrors_openbsd_riscv64.go
File diff suppressed because it is too large
View File


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

@@ -1,40 +0,0 @@
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 View File

@@ -1,25 +0,0 @@
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 View File

@@ -1,8 +1,8 @@
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 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 7
 package unix
8 8
 
@@ -463,6 +463,32 @@ var libc_munlockall_trampoline_addr uintptr
463 463
 
464 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 492
 func pipe(p *[2]int32) (err error) {
467 493
 	_, _, e1 := syscall_rawSyscall(libc_pipe_trampoline_addr, uintptr(unsafe.Pointer(p)), 0, 0)
468 494
 	if e1 != 0 {

+ 19
- 4
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s View File

@@ -1,11 +1,14 @@
1
-// go run mkasm_darwin.go amd64
1
+// go run mkasm.go darwin amd64
2 2
 // Code generated by the command above; DO NOT EDIT.
3 3
 
4
-//go:build go1.12
5
-// +build go1.12
6
-
7 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 12
 TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0
10 13
 	JMP	libc_getgroups(SB)
11 14
 
@@ -174,6 +177,18 @@ TEXT libc_munlockall_trampoline<>(SB),NOSPLIT,$0-0
174 177
 GLOBL	·libc_munlockall_trampoline_addr(SB), RODATA, $8
175 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 192
 TEXT libc_pipe_trampoline<>(SB),NOSPLIT,$0-0
178 193
 	JMP	libc_pipe(SB)
179 194
 

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

@@ -1,40 +0,0 @@
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 View File

@@ -1,25 +0,0 @@
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 View File

@@ -1,8 +1,8 @@
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 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 7
 package unix
8 8
 
@@ -463,6 +463,32 @@ var libc_munlockall_trampoline_addr uintptr
463 463
 
464 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 492
 func pipe(p *[2]int32) (err error) {
467 493
 	_, _, e1 := syscall_rawSyscall(libc_pipe_trampoline_addr, uintptr(unsafe.Pointer(p)), 0, 0)
468 494
 	if e1 != 0 {

+ 19
- 4
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s View File

@@ -1,11 +1,14 @@
1
-// go run mkasm_darwin.go arm64
1
+// go run mkasm.go darwin arm64
2 2
 // Code generated by the command above; DO NOT EDIT.
3 3
 
4
-//go:build go1.12
5
-// +build go1.12
6
-
7 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 12
 TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0
10 13
 	JMP	libc_getgroups(SB)
11 14
 
@@ -174,6 +177,18 @@ TEXT libc_munlockall_trampoline<>(SB),NOSPLIT,$0-0
174 177
 GLOBL	·libc_munlockall_trampoline_addr(SB), RODATA, $8
175 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 192
 TEXT libc_pipe_trampoline<>(SB),NOSPLIT,$0-0
178 193
 	JMP	libc_pipe(SB)
179 194
 

+ 10
- 0
vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go View File

@@ -552,6 +552,16 @@ func Chroot(path string) (err error) {
552 552
 
553 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 565
 func Close(fd int) (err error) {
556 566
 	_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
557 567
 	if e1 != 0 {

+ 10
- 0
vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go View File

@@ -544,6 +544,16 @@ func Chroot(path string) (err error) {
544 544
 
545 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 557
 func Close(fd int) (err error) {
548 558
 	_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
549 559
 	if e1 != 0 {

+ 10
- 0
vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go View File

@@ -544,6 +544,16 @@ func Chroot(path string) (err error) {
544 544
 
545 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 557
 func Close(fd int) (err error) {
548 558
 	_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
549 559
 	if e1 != 0 {

+ 0
- 0
vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save