Browse Source

bump golang.org/x/sys

tags/v2.2.0-rc1
Shivaram Lingamneni 4 years ago
parent
commit
7202f56322
100 changed files with 7861 additions and 60339 deletions
  1. 1
    0
      go.mod
  2. 2
    0
      go.sum
  3. 9
    0
      vendor/golang.org/x/sys/cpu/cpu.go
  4. 0
    34
      vendor/golang.org/x/sys/cpu/cpu_aix_ppc64.go
  5. 0
    43
      vendor/golang.org/x/sys/cpu/cpu_gccgo.c
  6. 0
    26
      vendor/golang.org/x/sys/cpu/cpu_gccgo.go
  7. 2
    46
      vendor/golang.org/x/sys/cpu/cpu_linux.go
  8. 6
    2
      vendor/golang.org/x/sys/cpu/cpu_linux_arm64.go
  9. 1
    1
      vendor/golang.org/x/sys/cpu/cpu_linux_noinit.go
  10. 1
    1
      vendor/golang.org/x/sys/cpu/cpu_other_arm64.go
  11. 13
    2
      vendor/golang.org/x/sys/unix/README.md
  12. 0
    7
      vendor/golang.org/x/sys/unix/asm_linux_riscv64.s
  13. 6
    0
      vendor/golang.org/x/sys/unix/errors_freebsd_386.go
  14. 6
    0
      vendor/golang.org/x/sys/unix/errors_freebsd_amd64.go
  15. 8
    4
      vendor/golang.org/x/sys/unix/fcntl.go
  16. 13
    2
      vendor/golang.org/x/sys/unix/mkall.sh
  17. 19
    3
      vendor/golang.org/x/sys/unix/mkerrors.sh
  18. 17
    2
      vendor/golang.org/x/sys/unix/syscall_bsd.go
  19. 14
    7
      vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go
  20. 3
    17
      vendor/golang.org/x/sys/unix/syscall_darwin.go
  21. 0
    11
      vendor/golang.org/x/sys/unix/syscall_darwin_386.go
  22. 0
    11
      vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go
  23. 1
    1
      vendor/golang.org/x/sys/unix/syscall_darwin_arm.1_11.go
  24. 0
    11
      vendor/golang.org/x/sys/unix/syscall_darwin_arm.go
  25. 0
    11
      vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go
  26. 0
    10
      vendor/golang.org/x/sys/unix/syscall_freebsd.go
  27. 10
    0
      vendor/golang.org/x/sys/unix/syscall_freebsd_386.go
  28. 10
    0
      vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
  29. 6
    0
      vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
  30. 6
    0
      vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
  31. 248
    19
      vendor/golang.org/x/sys/unix/syscall_linux.go
  32. 3
    3
      vendor/golang.org/x/sys/unix/syscall_linux_386.go
  33. 3
    3
      vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
  34. 3
    3
      vendor/golang.org/x/sys/unix/syscall_linux_arm.go
  35. 25
    7
      vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
  36. 7
    3
      vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
  37. 3
    3
      vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
  38. 3
    3
      vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
  39. 6
    6
      vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
  40. 3
    3
      vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
  41. 3
    3
      vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
  42. 11
    17
      vendor/golang.org/x/sys/unix/syscall_netbsd.go
  43. 8
    21
      vendor/golang.org/x/sys/unix/syscall_openbsd.go
  44. 9
    10
      vendor/golang.org/x/sys/unix/syscall_unix.go
  45. 148
    12
      vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go
  46. 146
    12
      vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go
  47. 16
    0
      vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go
  48. 147
    12
      vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go
  49. 466
    2809
      vendor/golang.org/x/sys/unix/zerrors_linux_386.go
  50. 466
    2809
      vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
  51. 472
    2815
      vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
  52. 459
    2802
      vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
  53. 468
    2811
      vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
  54. 468
    2811
      vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
  55. 468
    2811
      vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
  56. 468
    2811
      vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
  57. 528
    2870
      vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
  58. 528
    2870
      vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
  59. 453
    2796
      vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
  60. 526
    2869
      vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
  61. 517
    2859
      vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
  62. 0
    80
      vendor/golang.org/x/sys/unix/zptrace386_linux.go
  63. 0
    41
      vendor/golang.org/x/sys/unix/zptracearm_linux.go
  64. 0
    50
      vendor/golang.org/x/sys/unix/zptracemips_linux.go
  65. 0
    50
      vendor/golang.org/x/sys/unix/zptracemipsle_linux.go
  66. 21
    23
      vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go
  67. 31
    33
      vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
  68. 4
    2
      vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s
  69. 21
    23
      vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_11.go
  70. 31
    33
      vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
  71. 2
    2
      vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
  72. 21
    23
      vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go
  73. 31
    33
      vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
  74. 4
    2
      vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s
  75. 21
    23
      vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_11.go
  76. 31
    33
      vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
  77. 4
    2
      vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
  78. 0
    11
      vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
  79. 26
    37
      vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
  80. 16
    27
      vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
  81. 0
    11
      vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
  82. 17
    28
      vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go
  83. 11
    1733
      vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
  84. 11
    1733
      vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
  85. 11
    1733
      vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
  86. 12
    1734
      vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
  87. 11
    1733
      vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
  88. 11
    1733
      vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
  89. 11
    1733
      vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
  90. 11
    1733
      vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
  91. 11
    1733
      vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
  92. 11
    1733
      vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
  93. 10
    1732
      vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
  94. 11
    1733
      vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
  95. 11
    1733
      vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go
  96. 51
    27
      vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
  97. 51
    27
      vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
  98. 51
    27
      vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
  99. 51
    27
      vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go
  100. 0
    0
      vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go

+ 1
- 0
go.mod View File

@@ -18,6 +18,7 @@ require (
18 18
 	github.com/tidwall/buntdb v1.1.2
19 19
 	github.com/toorop/go-dkim v0.0.0-20200526084421-76378ae5207e
20 20
 	golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073
21
+	golang.org/x/sys v0.0.0-20200523222454-059865788121 // indirect
21 22
 	golang.org/x/text v0.3.2
22 23
 	gopkg.in/yaml.v2 v2.3.0
23 24
 )

+ 2
- 0
go.sum View File

@@ -92,6 +92,8 @@ golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7w
92 92
 golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
93 93
 golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e h1:N7DeIrjYszNmSW409R3frPPwglRwMkXSBzwVbkOjLLA=
94 94
 golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
95
+golang.org/x/sys v0.0.0-20200523222454-059865788121 h1:rITEj+UZHYC927n8GT97eC3zrpzXdb/voyeOuVKS46o=
96
+golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
95 97
 golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
96 98
 golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
97 99
 golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=

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

@@ -114,6 +114,15 @@ var ARM struct {
114 114
 	_           CacheLinePad
115 115
 }
116 116
 
117
+// MIPS64X contains the supported CPU features of the current mips64/mips64le
118
+// platforms. If the current platform is not mips64/mips64le or the current
119
+// operating system is not Linux then all feature flags are false.
120
+var MIPS64X struct {
121
+	_      CacheLinePad
122
+	HasMSA bool // MIPS SIMD architecture
123
+	_      CacheLinePad
124
+}
125
+
117 126
 // PPC64 contains the supported CPU features of the current ppc64/ppc64le platforms.
118 127
 // If the current platform is not ppc64/ppc64le then all feature flags are false.
119 128
 //

+ 0
- 34
vendor/golang.org/x/sys/cpu/cpu_aix_ppc64.go View File

@@ -1,34 +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
-// +build aix,ppc64
6
-
7
-package cpu
8
-
9
-const cacheLineSize = 128
10
-
11
-const (
12
-	// getsystemcfg constants
13
-	_SC_IMPL     = 2
14
-	_IMPL_POWER8 = 0x10000
15
-	_IMPL_POWER9 = 0x20000
16
-)
17
-
18
-func init() {
19
-	impl := getsystemcfg(_SC_IMPL)
20
-	if impl&_IMPL_POWER8 != 0 {
21
-		PPC64.IsPOWER8 = true
22
-	}
23
-	if impl&_IMPL_POWER9 != 0 {
24
-		PPC64.IsPOWER9 = true
25
-	}
26
-
27
-	Initialized = true
28
-}
29
-
30
-func getsystemcfg(label int) (n uint64) {
31
-	r0, _ := callgetsystemcfg(label)
32
-	n = uint64(r0)
33
-	return
34
-}

+ 0
- 43
vendor/golang.org/x/sys/cpu/cpu_gccgo.c View File

@@ -1,43 +0,0 @@
1
-// Copyright 2018 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
-// +build 386 amd64 amd64p32
6
-// +build gccgo
7
-
8
-#include <cpuid.h>
9
-#include <stdint.h>
10
-
11
-// Need to wrap __get_cpuid_count because it's declared as static.
12
-int
13
-gccgoGetCpuidCount(uint32_t leaf, uint32_t subleaf,
14
-                   uint32_t *eax, uint32_t *ebx,
15
-                   uint32_t *ecx, uint32_t *edx)
16
-{
17
-	return __get_cpuid_count(leaf, subleaf, eax, ebx, ecx, edx);
18
-}
19
-
20
-// xgetbv reads the contents of an XCR (Extended Control Register)
21
-// specified in the ECX register into registers EDX:EAX.
22
-// Currently, the only supported value for XCR is 0.
23
-//
24
-// TODO: Replace with a better alternative:
25
-//
26
-//     #include <xsaveintrin.h>
27
-//
28
-//     #pragma GCC target("xsave")
29
-//
30
-//     void gccgoXgetbv(uint32_t *eax, uint32_t *edx) {
31
-//       unsigned long long x = _xgetbv(0);
32
-//       *eax = x & 0xffffffff;
33
-//       *edx = (x >> 32) & 0xffffffff;
34
-//     }
35
-//
36
-// Note that _xgetbv is defined starting with GCC 8.
37
-void
38
-gccgoXgetbv(uint32_t *eax, uint32_t *edx)
39
-{
40
-	__asm("  xorl %%ecx, %%ecx\n"
41
-	      "  xgetbv"
42
-	    : "=a"(*eax), "=d"(*edx));
43
-}

+ 0
- 26
vendor/golang.org/x/sys/cpu/cpu_gccgo.go View File

@@ -1,26 +0,0 @@
1
-// Copyright 2018 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
-// +build 386 amd64 amd64p32
6
-// +build gccgo
7
-
8
-package cpu
9
-
10
-//extern gccgoGetCpuidCount
11
-func gccgoGetCpuidCount(eaxArg, ecxArg uint32, eax, ebx, ecx, edx *uint32)
12
-
13
-func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) {
14
-	var a, b, c, d uint32
15
-	gccgoGetCpuidCount(eaxArg, ecxArg, &a, &b, &c, &d)
16
-	return a, b, c, d
17
-}
18
-
19
-//extern gccgoXgetbv
20
-func gccgoXgetbv(eax, edx *uint32)
21
-
22
-func xgetbv() (eax, edx uint32) {
23
-	var a, d uint32
24
-	gccgoXgetbv(&a, &d)
25
-	return a, d
26
-}

+ 2
- 46
vendor/golang.org/x/sys/cpu/cpu_linux.go View File

@@ -2,58 +2,14 @@
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 !amd64,!amd64p32,!386
5
+// +build !386,!amd64,!amd64p32,!arm64
6 6
 
7 7
 package cpu
8 8
 
9
-import (
10
-	"io/ioutil"
11
-)
12
-
13
-const (
14
-	_AT_HWCAP  = 16
15
-	_AT_HWCAP2 = 26
16
-
17
-	procAuxv = "/proc/self/auxv"
18
-
19
-	uintSize = int(32 << (^uint(0) >> 63))
20
-)
21
-
22
-// For those platforms don't have a 'cpuid' equivalent we use HWCAP/HWCAP2
23
-// These are initialized in cpu_$GOARCH.go
24
-// and should not be changed after they are initialized.
25
-var hwCap uint
26
-var hwCap2 uint
27
-
28 9
 func init() {
29
-	buf, err := ioutil.ReadFile(procAuxv)
30
-	if err != nil {
31
-		// e.g. on android /proc/self/auxv is not accessible, so silently
32
-		// ignore the error and leave Initialized = false
10
+	if err := readHWCAP(); err != nil {
33 11
 		return
34 12
 	}
35
-
36
-	bo := hostByteOrder()
37
-	for len(buf) >= 2*(uintSize/8) {
38
-		var tag, val uint
39
-		switch uintSize {
40
-		case 32:
41
-			tag = uint(bo.Uint32(buf[0:]))
42
-			val = uint(bo.Uint32(buf[4:]))
43
-			buf = buf[8:]
44
-		case 64:
45
-			tag = uint(bo.Uint64(buf[0:]))
46
-			val = uint(bo.Uint64(buf[8:]))
47
-			buf = buf[16:]
48
-		}
49
-		switch tag {
50
-		case _AT_HWCAP:
51
-			hwCap = val
52
-		case _AT_HWCAP2:
53
-			hwCap2 = val
54
-		}
55
-	}
56 13
 	doinit()
57
-
58 14
 	Initialized = true
59 15
 }

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

@@ -4,8 +4,6 @@
4 4
 
5 5
 package cpu
6 6
 
7
-const cacheLineSize = 64
8
-
9 7
 // HWCAP/HWCAP2 bits. These are exposed by Linux.
10 8
 const (
11 9
 	hwcap_FP       = 1 << 0
@@ -35,6 +33,12 @@ const (
35 33
 )
36 34
 
37 35
 func doinit() {
36
+	if err := readHWCAP(); err != nil {
37
+		// failed to read /proc/self/auxv, try reading registers directly
38
+		readARM64Registers()
39
+		return
40
+	}
41
+
38 42
 	// HWCAP feature bits
39 43
 	ARM64.HasFP = isSet(hwCap, hwcap_FP)
40 44
 	ARM64.HasASIMD = isSet(hwCap, hwcap_ASIMD)

+ 1
- 1
vendor/golang.org/x/sys/cpu/cpu_linux_noinit.go View File

@@ -2,7 +2,7 @@
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 linux,!arm,!arm64,!ppc64,!ppc64le,!s390x
5
+// +build linux,!arm,!arm64,!mips64,!mips64le,!ppc64,!ppc64le,!s390x
6 6
 
7 7
 package cpu
8 8
 

+ 1
- 1
vendor/golang.org/x/sys/cpu/cpu_other_arm64.go View File

@@ -6,4 +6,4 @@
6 6
 
7 7
 package cpu
8 8
 
9
-const cacheLineSize = 64
9
+func doinit() {}

+ 13
- 2
vendor/golang.org/x/sys/unix/README.md View File

@@ -89,7 +89,7 @@ constants.
89 89
 
90 90
 Adding new syscall numbers is mostly done by running the build on a sufficiently
91 91
 new installation of the target OS (or updating the source checkouts for the
92
-new build system). However, depending on the OS, you make need to update the
92
+new build system). However, depending on the OS, you may need to update the
93 93
 parsing in mksysnum.
94 94
 
95 95
 ### mksyscall.go
@@ -149,10 +149,21 @@ To add a constant, add the header that includes it to the appropriate variable.
149 149
 Then, edit the regex (if necessary) to match the desired constant. Avoid making
150 150
 the regex too broad to avoid matching unintended constants.
151 151
 
152
+### mkmerge.go
153
+
154
+This program is used to extract duplicate const, func, and type declarations
155
+from the generated architecture-specific files listed below, and merge these
156
+into a common file for each OS.
157
+
158
+The merge is performed in the following steps:
159
+1. Construct the set of common code that is idential in all architecture-specific files.
160
+2. Write this common code to the merged file.
161
+3. Remove the common code from all architecture-specific files.
162
+
152 163
 
153 164
 ## Generated files
154 165
 
155
-### `zerror_${GOOS}_${GOARCH}.go`
166
+### `zerrors_${GOOS}_${GOARCH}.go`
156 167
 
157 168
 A file containing all of the system's generated error numbers, error strings,
158 169
 signal numbers, and constants. Generated by `mkerrors.sh` (see above).

+ 0
- 7
vendor/golang.org/x/sys/unix/asm_linux_riscv64.s View File

@@ -23,10 +23,6 @@ TEXT ·SyscallNoError(SB),NOSPLIT,$0-48
23 23
 	MOV	a1+8(FP), A0
24 24
 	MOV	a2+16(FP), A1
25 25
 	MOV	a3+24(FP), A2
26
-	MOV	$0, A3
27
-	MOV	$0, A4
28
-	MOV	$0, A5
29
-	MOV	$0, A6
30 26
 	MOV	trap+0(FP), A7	// syscall entry
31 27
 	ECALL
32 28
 	MOV	A0, r1+32(FP)	// r1
@@ -44,9 +40,6 @@ TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48
44 40
 	MOV	a1+8(FP), A0
45 41
 	MOV	a2+16(FP), A1
46 42
 	MOV	a3+24(FP), A2
47
-	MOV	ZERO, A3
48
-	MOV	ZERO, A4
49
-	MOV	ZERO, A5
50 43
 	MOV	trap+0(FP), A7	// syscall entry
51 44
 	ECALL
52 45
 	MOV	A0, r1+32(FP)

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

@@ -8,6 +8,7 @@
8 8
 package unix
9 9
 
10 10
 const (
11
+	DLT_HHDLC                         = 0x79
11 12
 	IFF_SMART                         = 0x20
12 13
 	IFT_1822                          = 0x2
13 14
 	IFT_A12MPPSWITCH                  = 0x82
@@ -210,13 +211,18 @@ const (
210 211
 	IFT_XETHER                        = 0x1a
211 212
 	IPPROTO_MAXID                     = 0x34
212 213
 	IPV6_FAITH                        = 0x1d
214
+	IPV6_MIN_MEMBERSHIPS              = 0x1f
213 215
 	IP_FAITH                          = 0x16
216
+	IP_MAX_SOURCE_FILTER              = 0x400
217
+	IP_MIN_MEMBERSHIPS                = 0x1f
214 218
 	MAP_NORESERVE                     = 0x40
215 219
 	MAP_RENAME                        = 0x20
216 220
 	NET_RT_MAXID                      = 0x6
217 221
 	RTF_PRCLONING                     = 0x10000
218 222
 	RTM_OLDADD                        = 0x9
219 223
 	RTM_OLDDEL                        = 0xa
224
+	RT_CACHING_CONTEXT                = 0x1
225
+	RT_NORTREF                        = 0x2
220 226
 	SIOCADDRT                         = 0x8030720a
221 227
 	SIOCALIFADDR                      = 0x8118691b
222 228
 	SIOCDELRT                         = 0x8030720b

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

@@ -8,6 +8,7 @@
8 8
 package unix
9 9
 
10 10
 const (
11
+	DLT_HHDLC                         = 0x79
11 12
 	IFF_SMART                         = 0x20
12 13
 	IFT_1822                          = 0x2
13 14
 	IFT_A12MPPSWITCH                  = 0x82
@@ -210,13 +211,18 @@ const (
210 211
 	IFT_XETHER                        = 0x1a
211 212
 	IPPROTO_MAXID                     = 0x34
212 213
 	IPV6_FAITH                        = 0x1d
214
+	IPV6_MIN_MEMBERSHIPS              = 0x1f
213 215
 	IP_FAITH                          = 0x16
216
+	IP_MAX_SOURCE_FILTER              = 0x400
217
+	IP_MIN_MEMBERSHIPS                = 0x1f
214 218
 	MAP_NORESERVE                     = 0x40
215 219
 	MAP_RENAME                        = 0x20
216 220
 	NET_RT_MAXID                      = 0x6
217 221
 	RTF_PRCLONING                     = 0x10000
218 222
 	RTM_OLDADD                        = 0x9
219 223
 	RTM_OLDDEL                        = 0xa
224
+	RT_CACHING_CONTEXT                = 0x1
225
+	RT_NORTREF                        = 0x2
220 226
 	SIOCADDRT                         = 0x8040720a
221 227
 	SIOCALIFADDR                      = 0x8118691b
222 228
 	SIOCDELRT                         = 0x8040720b

+ 8
- 4
vendor/golang.org/x/sys/unix/fcntl.go View File

@@ -9,12 +9,11 @@ package unix
9 9
 import "unsafe"
10 10
 
11 11
 // fcntl64Syscall is usually SYS_FCNTL, but is overridden on 32-bit Linux
12
-// systems by flock_linux_32bit.go to be SYS_FCNTL64.
12
+// systems by fcntl_linux_32bit.go to be SYS_FCNTL64.
13 13
 var fcntl64Syscall uintptr = SYS_FCNTL
14 14
 
15
-// FcntlInt performs a fcntl syscall on fd with the provided command and argument.
16
-func FcntlInt(fd uintptr, cmd, arg int) (int, error) {
17
-	valptr, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(arg))
15
+func fcntl(fd int, cmd, arg int) (int, error) {
16
+	valptr, _, errno := Syscall(fcntl64Syscall, uintptr(fd), uintptr(cmd), uintptr(arg))
18 17
 	var err error
19 18
 	if errno != 0 {
20 19
 		err = errno
@@ -22,6 +21,11 @@ func FcntlInt(fd uintptr, cmd, arg int) (int, error) {
22 21
 	return int(valptr), err
23 22
 }
24 23
 
24
+// FcntlInt performs a fcntl syscall on fd with the provided command and argument.
25
+func FcntlInt(fd uintptr, cmd, arg int) (int, error) {
26
+	return fcntl(int(fd), cmd, arg)
27
+}
28
+
25 29
 // FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
26 30
 func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error {
27 31
 	_, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(unsafe.Pointer(lk)))

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

@@ -50,7 +50,7 @@ if [[ "$GOOS" = "linux" ]]; then
50 50
 	# Use the Docker-based build system
51 51
 	# Files generated through docker (use $cmd so you can Ctl-C the build or run)
52 52
 	$cmd docker build --tag generate:$GOOS $GOOS
53
-	$cmd docker run --interactive --tty --volume $(dirname "$(readlink -f "$0")"):/build generate:$GOOS
53
+	$cmd docker run --interactive --tty --volume $(cd -- "$(dirname -- "$0")" && /bin/pwd):/build generate:$GOOS
54 54
 	exit
55 55
 fi
56 56
 
@@ -124,7 +124,7 @@ freebsd_arm)
124 124
 freebsd_arm64)
125 125
 	mkerrors="$mkerrors -m64"
126 126
 	mksysnum="go run mksysnum.go 'https://svn.freebsd.org/base/stable/11/sys/kern/syscalls.master'"
127
-	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
127
+	mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
128 128
 	;;
129 129
 netbsd_386)
130 130
 	mkerrors="$mkerrors -m32"
@@ -190,6 +190,12 @@ solaris_amd64)
190 190
 	mksysnum=
191 191
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
192 192
 	;;
193
+illumos_amd64)
194
+        mksyscall="go run mksyscall_solaris.go"
195
+	mkerrors=
196
+	mksysnum=
197
+	mktypes=
198
+	;;
193 199
 *)
194 200
 	echo 'unrecognized $GOOS_$GOARCH: ' "$GOOSARCH" 1>&2
195 201
 	exit 1
@@ -217,6 +223,11 @@ esac
217 223
 				echo "$mksyscall -tags $GOOS,$GOARCH,go1.12 $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go";
218 224
 				# 1.13 and later, syscalls via libSystem (including syscallPtr)
219 225
 				echo "$mksyscall -tags $GOOS,$GOARCH,go1.13 syscall_darwin.1_13.go |gofmt >zsyscall_$GOOSARCH.1_13.go";
226
+			elif [ "$GOOS" == "illumos" ]; then
227
+			        # illumos code generation requires a --illumos switch
228
+			        echo "$mksyscall -illumos -tags illumos,$GOARCH syscall_illumos.go |gofmt > zsyscall_illumos_$GOARCH.go";
229
+			        # illumos implies solaris, so solaris code generation is also required
230
+				echo "$mksyscall -tags solaris,$GOARCH syscall_solaris.go syscall_solaris_$GOARCH.go |gofmt >zsyscall_solaris_$GOARCH.go";
220 231
 			else
221 232
 				echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go";
222 233
 			fi

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

@@ -105,6 +105,7 @@ includes_FreeBSD='
105 105
 #include <sys/capsicum.h>
106 106
 #include <sys/param.h>
107 107
 #include <sys/types.h>
108
+#include <sys/disk.h>
108 109
 #include <sys/event.h>
109 110
 #include <sys/select.h>
110 111
 #include <sys/socket.h>
@@ -186,6 +187,8 @@ struct ltchars {
186 187
 #include <sys/select.h>
187 188
 #include <sys/signalfd.h>
188 189
 #include <sys/socket.h>
190
+#include <sys/timerfd.h>
191
+#include <sys/uio.h>
189 192
 #include <sys/xattr.h>
190 193
 #include <linux/bpf.h>
191 194
 #include <linux/can.h>
@@ -197,6 +200,8 @@ struct ltchars {
197 200
 #include <linux/fanotify.h>
198 201
 #include <linux/filter.h>
199 202
 #include <linux/fs.h>
203
+#include <linux/fscrypt.h>
204
+#include <linux/fsverity.h>
200 205
 #include <linux/genetlink.h>
201 206
 #include <linux/hdreg.h>
202 207
 #include <linux/icmpv6.h>
@@ -278,6 +283,11 @@ struct ltchars {
278 283
 // for the tipc_subscr timeout __u32 field.
279 284
 #undef TIPC_WAIT_FOREVER
280 285
 #define TIPC_WAIT_FOREVER 0xffffffff
286
+
287
+// Copied from linux/l2tp.h
288
+// Including linux/l2tp.h here causes conflicts between linux/in.h
289
+// and netinet/in.h included via net/route.h above.
290
+#define IPPROTO_L2TP		115
281 291
 '
282 292
 
283 293
 includes_NetBSD='
@@ -471,12 +481,13 @@ ccflags="$@"
471 481
 		$2 ~ /^(MS|MNT|UMOUNT)_/ ||
472 482
 		$2 ~ /^NS_GET_/ ||
473 483
 		$2 ~ /^TUN(SET|GET|ATTACH|DETACH)/ ||
474
-		$2 ~ /^(O|F|[ES]?FD|NAME|S|PTRACE|PT)_/ ||
484
+		$2 ~ /^(O|F|[ES]?FD|NAME|S|PTRACE|PT|TFD)_/ ||
475 485
 		$2 ~ /^KEXEC_/ ||
476 486
 		$2 ~ /^LINUX_REBOOT_CMD_/ ||
477 487
 		$2 ~ /^LINUX_REBOOT_MAGIC[12]$/ ||
478 488
 		$2 ~ /^MODULE_INIT_/ ||
479 489
 		$2 !~ "NLA_TYPE_MASK" &&
490
+		$2 !~ /^RTC_VL_(ACCURACY|BACKUP|DATA)/ &&
480 491
 		$2 ~ /^(NETLINK|NLM|NLMSG|NLA|IFA|IFAN|RT|RTC|RTCF|RTN|RTPROT|RTNH|ARPHRD|ETH_P|NETNSA)_/ ||
481 492
 		$2 ~ /^SIOC/ ||
482 493
 		$2 ~ /^TIOC/ ||
@@ -484,8 +495,9 @@ ccflags="$@"
484 495
 		$2 ~ /^TCSET/ ||
485 496
 		$2 ~ /^TC(FLSH|SBRKP?|XONC)$/ ||
486 497
 		$2 !~ "RTF_BITS" &&
487
-		$2 ~ /^(IFF|IFT|NET_RT|RTM|RTF|RTV|RTA|RTAX)_/ ||
498
+		$2 ~ /^(IFF|IFT|NET_RT|RTM(GRP)?|RTF|RTV|RTA|RTAX)_/ ||
488 499
 		$2 ~ /^BIOC/ ||
500
+		$2 ~ /^DIOC/ ||
489 501
 		$2 ~ /^RUSAGE_(SELF|CHILDREN|THREAD)/ ||
490 502
 		$2 ~ /^RLIMIT_(AS|CORE|CPU|DATA|FSIZE|LOCKS|MEMLOCK|MSGQUEUE|NICE|NOFILE|NPROC|RSS|RTPRIO|RTTIME|SIGPENDING|STACK)|RLIM_INFINITY/ ||
491 503
 		$2 ~ /^PRIO_(PROCESS|PGRP|USER)/ ||
@@ -496,7 +508,10 @@ ccflags="$@"
496 508
 		$2 ~ /^CAN_/ ||
497 509
 		$2 ~ /^CAP_/ ||
498 510
 		$2 ~ /^ALG_/ ||
499
-		$2 ~ /^FS_(POLICY_FLAGS|KEY_DESC|ENCRYPTION_MODE|[A-Z0-9_]+_KEY_SIZE|IOC_(GET|SET)_ENCRYPTION)/ ||
511
+		$2 ~ /^FS_(POLICY_FLAGS|KEY_DESC|ENCRYPTION_MODE|[A-Z0-9_]+_KEY_SIZE)/ ||
512
+		$2 ~ /^FS_IOC_.*(ENCRYPTION|VERITY|GETFLAGS)/ ||
513
+		$2 ~ /^FS_VERITY_/ ||
514
+		$2 ~ /^FSCRYPT_/ ||
500 515
 		$2 ~ /^GRND_/ ||
501 516
 		$2 ~ /^RND/ ||
502 517
 		$2 ~ /^KEY_(SPEC|REQKEY_DEFL)_/ ||
@@ -523,6 +538,7 @@ ccflags="$@"
523 538
 		$2 ~ /^WDIOC_/ ||
524 539
 		$2 ~ /^NFN/ ||
525 540
 		$2 ~ /^XDP_/ ||
541
+		$2 ~ /^RWF_/ ||
526 542
 		$2 ~ /^(HDIO|WIN|SMART)_/ ||
527 543
 		$2 ~ /^CRYPTO_/ ||
528 544
 		$2 ~ /^TIPC_/ ||

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

@@ -510,6 +510,23 @@ func SysctlRaw(name string, args ...int) ([]byte, error) {
510 510
 	return buf[:n], nil
511 511
 }
512 512
 
513
+func SysctlClockinfo(name string) (*Clockinfo, error) {
514
+	mib, err := sysctlmib(name)
515
+	if err != nil {
516
+		return nil, err
517
+	}
518
+
519
+	n := uintptr(SizeofClockinfo)
520
+	var ci Clockinfo
521
+	if err := sysctl(mib, (*byte)(unsafe.Pointer(&ci)), &n, nil, 0); err != nil {
522
+		return nil, err
523
+	}
524
+	if n != SizeofClockinfo {
525
+		return nil, EIO
526
+	}
527
+	return &ci, nil
528
+}
529
+
513 530
 //sys	utimes(path string, timeval *[2]Timeval) (err error)
514 531
 
515 532
 func Utimes(path string, tv []Timeval) error {
@@ -577,8 +594,6 @@ func Futimes(fd int, tv []Timeval) error {
577 594
 	return futimes(fd, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
578 595
 }
579 596
 
580
-//sys	fcntl(fd int, cmd int, arg int) (val int, err error)
581
-
582 597
 //sys   poll(fds *PollFd, nfds int, timeout int) (n int, err error)
583 598
 
584 599
 func Poll(fds []PollFd, timeout int) (n int, err error) {

+ 14
- 7
vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go View File

@@ -6,7 +6,11 @@
6 6
 
7 7
 package unix
8 8
 
9
-import "unsafe"
9
+import (
10
+	"unsafe"
11
+
12
+	"golang.org/x/sys/internal/unsafeheader"
13
+)
10 14
 
11 15
 //sys	closedir(dir uintptr) (err error)
12 16
 //sys	readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno)
@@ -71,6 +75,7 @@ func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
71 75
 			cnt++
72 76
 			continue
73 77
 		}
78
+
74 79
 		reclen := int(entry.Reclen)
75 80
 		if reclen > len(buf) {
76 81
 			// Not enough room. Return for now.
@@ -79,13 +84,15 @@ func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
79 84
 			// restarting is O(n^2) in the length of the directory. Oh well.
80 85
 			break
81 86
 		}
87
+
82 88
 		// Copy entry into return buffer.
83
-		s := struct {
84
-			ptr unsafe.Pointer
85
-			siz int
86
-			cap int
87
-		}{ptr: unsafe.Pointer(&entry), siz: reclen, cap: reclen}
88
-		copy(buf, *(*[]byte)(unsafe.Pointer(&s)))
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
+
89 96
 		buf = buf[reclen:]
90 97
 		n += reclen
91 98
 		cnt++

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

@@ -155,23 +155,6 @@ func getAttrList(path string, attrList attrList, attrBuf []byte, options uint) (
155 155
 
156 156
 //sys getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error)
157 157
 
158
-func SysctlClockinfo(name string) (*Clockinfo, error) {
159
-	mib, err := sysctlmib(name)
160
-	if err != nil {
161
-		return nil, err
162
-	}
163
-
164
-	n := uintptr(SizeofClockinfo)
165
-	var ci Clockinfo
166
-	if err := sysctl(mib, (*byte)(unsafe.Pointer(&ci)), &n, nil, 0); err != nil {
167
-		return nil, err
168
-	}
169
-	if n != SizeofClockinfo {
170
-		return nil, EIO
171
-	}
172
-	return &ci, nil
173
-}
174
-
175 158
 //sysnb pipe() (r int, w int, err error)
176 159
 
177 160
 func Pipe(p []int) (err error) {
@@ -333,6 +316,8 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) error {
333 316
  * Wrapped
334 317
  */
335 318
 
319
+//sys	fcntl(fd int, cmd int, arg int) (val int, err error)
320
+
336 321
 //sys	kill(pid int, signum int, posix int) (err error)
337 322
 
338 323
 func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(signum), 1) }
@@ -438,6 +423,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
438 423
 //sysnb	Getrlimit(which int, lim *Rlimit) (err error)
439 424
 //sysnb	Getrusage(who int, rusage *Rusage) (err error)
440 425
 //sysnb	Getsid(pid int) (sid int, err error)
426
+//sysnb	Gettimeofday(tp *Timeval) (err error)
441 427
 //sysnb	Getuid() (uid int)
442 428
 //sysnb	Issetugid() (tainted bool)
443 429
 //sys	Kqueue() (fd int, err error)

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

@@ -20,17 +20,6 @@ func setTimeval(sec, usec int64) Timeval {
20 20
 	return Timeval{Sec: int32(sec), Usec: int32(usec)}
21 21
 }
22 22
 
23
-//sysnb	gettimeofday(tp *Timeval) (sec int32, usec int32, err error)
24
-func Gettimeofday(tv *Timeval) (err error) {
25
-	// The tv passed to gettimeofday must be non-nil
26
-	// but is otherwise unused. The answers come back
27
-	// in the two registers.
28
-	sec, usec, err := gettimeofday(tv)
29
-	tv.Sec = int32(sec)
30
-	tv.Usec = int32(usec)
31
-	return err
32
-}
33
-
34 23
 func SetKevent(k *Kevent_t, fd, mode, flags int) {
35 24
 	k.Ident = uint32(fd)
36 25
 	k.Filter = int16(mode)

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

@@ -20,17 +20,6 @@ func setTimeval(sec, usec int64) Timeval {
20 20
 	return Timeval{Sec: sec, Usec: int32(usec)}
21 21
 }
22 22
 
23
-//sysnb	gettimeofday(tp *Timeval) (sec int64, usec int32, err error)
24
-func Gettimeofday(tv *Timeval) (err error) {
25
-	// The tv passed to gettimeofday must be non-nil
26
-	// but is otherwise unused. The answers come back
27
-	// in the two registers.
28
-	sec, usec, err := gettimeofday(tv)
29
-	tv.Sec = sec
30
-	tv.Usec = usec
31
-	return err
32
-}
33
-
34 23
 func SetKevent(k *Kevent_t, fd, mode, flags int) {
35 24
 	k.Ident = uint64(fd)
36 25
 	k.Filter = int16(mode)

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

@@ -2,7 +2,7 @@
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 darwin,386,!go1.12
5
+// +build darwin,arm,!go1.12
6 6
 
7 7
 package unix
8 8
 

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

@@ -20,17 +20,6 @@ func setTimeval(sec, usec int64) Timeval {
20 20
 	return Timeval{Sec: int32(sec), Usec: int32(usec)}
21 21
 }
22 22
 
23
-//sysnb	gettimeofday(tp *Timeval) (sec int32, usec int32, err error)
24
-func Gettimeofday(tv *Timeval) (err error) {
25
-	// The tv passed to gettimeofday must be non-nil
26
-	// but is otherwise unused. The answers come back
27
-	// in the two registers.
28
-	sec, usec, err := gettimeofday(tv)
29
-	tv.Sec = int32(sec)
30
-	tv.Usec = int32(usec)
31
-	return err
32
-}
33
-
34 23
 func SetKevent(k *Kevent_t, fd, mode, flags int) {
35 24
 	k.Ident = uint32(fd)
36 25
 	k.Filter = int16(mode)

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

@@ -22,17 +22,6 @@ func setTimeval(sec, usec int64) Timeval {
22 22
 	return Timeval{Sec: sec, Usec: int32(usec)}
23 23
 }
24 24
 
25
-//sysnb	gettimeofday(tp *Timeval) (sec int64, usec int32, err error)
26
-func Gettimeofday(tv *Timeval) (err error) {
27
-	// The tv passed to gettimeofday must be non-nil
28
-	// but is otherwise unused. The answers come back
29
-	// in the two registers.
30
-	sec, usec, err := gettimeofday(tv)
31
-	tv.Sec = sec
32
-	tv.Usec = usec
33
-	return err
34
-}
35
-
36 25
 func SetKevent(k *Kevent_t, fd, mode, flags int) {
37 26
 	k.Ident = uint64(fd)
38 27
 	k.Filter = int16(mode)

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

@@ -521,20 +521,10 @@ func PtraceGetFpRegs(pid int, fpregsout *FpReg) (err error) {
521 521
 	return ptrace(PTRACE_GETFPREGS, pid, uintptr(unsafe.Pointer(fpregsout)), 0)
522 522
 }
523 523
 
524
-func PtraceGetFsBase(pid int, fsbase *int64) (err error) {
525
-	return ptrace(PTRACE_GETFSBASE, pid, uintptr(unsafe.Pointer(fsbase)), 0)
526
-}
527
-
528 524
 func PtraceGetRegs(pid int, regsout *Reg) (err error) {
529 525
 	return ptrace(PTRACE_GETREGS, pid, uintptr(unsafe.Pointer(regsout)), 0)
530 526
 }
531 527
 
532
-func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
533
-	ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint(countin)}
534
-	err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
535
-	return int(ioDesc.Len), err
536
-}
537
-
538 528
 func PtraceLwpEvents(pid int, enable int) (err error) {
539 529
 	return ptrace(PTRACE_LWPEVENTS, pid, 0, enable)
540 530
 }

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

@@ -54,3 +54,13 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
54 54
 }
55 55
 
56 56
 func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
57
+
58
+func PtraceGetFsBase(pid int, fsbase *int64) (err error) {
59
+	return ptrace(PTRACE_GETFSBASE, pid, uintptr(unsafe.Pointer(fsbase)), 0)
60
+}
61
+
62
+func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
63
+	ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint32(countin)}
64
+	err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
65
+	return int(ioDesc.Len), err
66
+}

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

@@ -54,3 +54,13 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
54 54
 }
55 55
 
56 56
 func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
57
+
58
+func PtraceGetFsBase(pid int, fsbase *int64) (err error) {
59
+	return ptrace(PTRACE_GETFSBASE, pid, uintptr(unsafe.Pointer(fsbase)), 0)
60
+}
61
+
62
+func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
63
+	ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint64(countin)}
64
+	err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
65
+	return int(ioDesc.Len), err
66
+}

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

@@ -54,3 +54,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
54 54
 }
55 55
 
56 56
 func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
57
+
58
+func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
59
+	ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint32(countin)}
60
+	err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
61
+	return int(ioDesc.Len), err
62
+}

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

@@ -54,3 +54,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
54 54
 }
55 55
 
56 56
 func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
57
+
58
+func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
59
+	ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint64(countin)}
60
+	err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
61
+	return int(ioDesc.Len), err
62
+}

+ 248
- 19
vendor/golang.org/x/sys/unix/syscall_linux.go View File

@@ -839,6 +839,40 @@ func (sa *SockaddrTIPC) sockaddr() (unsafe.Pointer, _Socklen, error) {
839 839
 	return unsafe.Pointer(&sa.raw), SizeofSockaddrTIPC, nil
840 840
 }
841 841
 
842
+// SockaddrL2TPIP implements the Sockaddr interface for IPPROTO_L2TP/AF_INET sockets.
843
+type SockaddrL2TPIP struct {
844
+	Addr   [4]byte
845
+	ConnId uint32
846
+	raw    RawSockaddrL2TPIP
847
+}
848
+
849
+func (sa *SockaddrL2TPIP) sockaddr() (unsafe.Pointer, _Socklen, error) {
850
+	sa.raw.Family = AF_INET
851
+	sa.raw.Conn_id = sa.ConnId
852
+	for i := 0; i < len(sa.Addr); i++ {
853
+		sa.raw.Addr[i] = sa.Addr[i]
854
+	}
855
+	return unsafe.Pointer(&sa.raw), SizeofSockaddrL2TPIP, nil
856
+}
857
+
858
+// SockaddrL2TPIP6 implements the Sockaddr interface for IPPROTO_L2TP/AF_INET6 sockets.
859
+type SockaddrL2TPIP6 struct {
860
+	Addr   [16]byte
861
+	ZoneId uint32
862
+	ConnId uint32
863
+	raw    RawSockaddrL2TPIP6
864
+}
865
+
866
+func (sa *SockaddrL2TPIP6) sockaddr() (unsafe.Pointer, _Socklen, error) {
867
+	sa.raw.Family = AF_INET6
868
+	sa.raw.Conn_id = sa.ConnId
869
+	sa.raw.Scope_id = sa.ZoneId
870
+	for i := 0; i < len(sa.Addr); i++ {
871
+		sa.raw.Addr[i] = sa.Addr[i]
872
+	}
873
+	return unsafe.Pointer(&sa.raw), SizeofSockaddrL2TPIP6, nil
874
+}
875
+
842 876
 func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
843 877
 	switch rsa.Addr.Family {
844 878
 	case AF_NETLINK:
@@ -889,25 +923,58 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
889 923
 		return sa, nil
890 924
 
891 925
 	case AF_INET:
892
-		pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa))
893
-		sa := new(SockaddrInet4)
894
-		p := (*[2]byte)(unsafe.Pointer(&pp.Port))
895
-		sa.Port = int(p[0])<<8 + int(p[1])
896
-		for i := 0; i < len(sa.Addr); i++ {
897
-			sa.Addr[i] = pp.Addr[i]
926
+		proto, err := GetsockoptInt(fd, SOL_SOCKET, SO_PROTOCOL)
927
+		if err != nil {
928
+			return nil, err
929
+		}
930
+
931
+		switch proto {
932
+		case IPPROTO_L2TP:
933
+			pp := (*RawSockaddrL2TPIP)(unsafe.Pointer(rsa))
934
+			sa := new(SockaddrL2TPIP)
935
+			sa.ConnId = pp.Conn_id
936
+			for i := 0; i < len(sa.Addr); i++ {
937
+				sa.Addr[i] = pp.Addr[i]
938
+			}
939
+			return sa, nil
940
+		default:
941
+			pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa))
942
+			sa := new(SockaddrInet4)
943
+			p := (*[2]byte)(unsafe.Pointer(&pp.Port))
944
+			sa.Port = int(p[0])<<8 + int(p[1])
945
+			for i := 0; i < len(sa.Addr); i++ {
946
+				sa.Addr[i] = pp.Addr[i]
947
+			}
948
+			return sa, nil
898 949
 		}
899
-		return sa, nil
900 950
 
901 951
 	case AF_INET6:
902
-		pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa))
903
-		sa := new(SockaddrInet6)
904
-		p := (*[2]byte)(unsafe.Pointer(&pp.Port))
905
-		sa.Port = int(p[0])<<8 + int(p[1])
906
-		sa.ZoneId = pp.Scope_id
907
-		for i := 0; i < len(sa.Addr); i++ {
908
-			sa.Addr[i] = pp.Addr[i]
952
+		proto, err := GetsockoptInt(fd, SOL_SOCKET, SO_PROTOCOL)
953
+		if err != nil {
954
+			return nil, err
955
+		}
956
+
957
+		switch proto {
958
+		case IPPROTO_L2TP:
959
+			pp := (*RawSockaddrL2TPIP6)(unsafe.Pointer(rsa))
960
+			sa := new(SockaddrL2TPIP6)
961
+			sa.ConnId = pp.Conn_id
962
+			sa.ZoneId = pp.Scope_id
963
+			for i := 0; i < len(sa.Addr); i++ {
964
+				sa.Addr[i] = pp.Addr[i]
965
+			}
966
+			return sa, nil
967
+		default:
968
+			pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa))
969
+			sa := new(SockaddrInet6)
970
+			p := (*[2]byte)(unsafe.Pointer(&pp.Port))
971
+			sa.Port = int(p[0])<<8 + int(p[1])
972
+			sa.ZoneId = pp.Scope_id
973
+			for i := 0; i < len(sa.Addr); i++ {
974
+				sa.Addr[i] = pp.Addr[i]
975
+			}
976
+			return sa, nil
909 977
 		}
910
-		return sa, nil
911 978
 
912 979
 	case AF_VSOCK:
913 980
 		pp := (*RawSockaddrVM)(unsafe.Pointer(rsa))
@@ -1555,8 +1622,8 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
1555 1622
 //sys	Acct(path string) (err error)
1556 1623
 //sys	AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error)
1557 1624
 //sys	Adjtimex(buf *Timex) (state int, err error)
1558
-//sys	Capget(hdr *CapUserHeader, data *CapUserData) (err error)
1559
-//sys	Capset(hdr *CapUserHeader, data *CapUserData) (err error)
1625
+//sysnb	Capget(hdr *CapUserHeader, data *CapUserData) (err error)
1626
+//sysnb	Capset(hdr *CapUserHeader, data *CapUserData) (err error)
1560 1627
 //sys	Chdir(path string) (err error)
1561 1628
 //sys	Chroot(path string) (err error)
1562 1629
 //sys	ClockGetres(clockid int32, res *Timespec) (err error)
@@ -1566,6 +1633,15 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
1566 1633
 //sys	CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
1567 1634
 //sys	DeleteModule(name string, flags int) (err error)
1568 1635
 //sys	Dup(oldfd int) (fd int, err error)
1636
+
1637
+func Dup2(oldfd, newfd int) error {
1638
+	// Android O and newer blocks dup2; riscv and arm64 don't implement dup2.
1639
+	if runtime.GOOS == "android" || runtime.GOARCH == "riscv64" || runtime.GOARCH == "arm64" {
1640
+		return Dup3(oldfd, newfd, 0)
1641
+	}
1642
+	return dup2(oldfd, newfd)
1643
+}
1644
+
1569 1645
 //sys	Dup3(oldfd int, newfd int, flags int) (err error)
1570 1646
 //sysnb	EpollCreate1(flag int) (fd int, err error)
1571 1647
 //sysnb	EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error)
@@ -1575,7 +1651,6 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
1575 1651
 //sys	Fchdir(fd int) (err error)
1576 1652
 //sys	Fchmod(fd int, mode uint32) (err error)
1577 1653
 //sys	Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
1578
-//sys	fcntl(fd int, cmd int, arg int) (val int, err error)
1579 1654
 //sys	Fdatasync(fd int) (err error)
1580 1655
 //sys	Fgetxattr(fd int, attr string, dest []byte) (sz int, err error)
1581 1656
 //sys	FinitModule(fd int, params string, flags int) (err error)
@@ -1631,6 +1706,17 @@ func Getpgrp() (pid int) {
1631 1706
 //sysnb	Settimeofday(tv *Timeval) (err error)
1632 1707
 //sys	Setns(fd int, nstype int) (err error)
1633 1708
 
1709
+// PrctlRetInt performs a prctl operation specified by option and further
1710
+// optional arguments arg2 through arg5 depending on option. It returns a
1711
+// non-negative integer that is returned by the prctl syscall.
1712
+func PrctlRetInt(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (int, error) {
1713
+	ret, _, err := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
1714
+	if err != 0 {
1715
+		return 0, err
1716
+	}
1717
+	return int(ret), nil
1718
+}
1719
+
1634 1720
 // issue 1435.
1635 1721
 // On linux Setuid and Setgid only affects the current thread, not the process.
1636 1722
 // This does not match what most callers expect so we must return an error
@@ -1644,6 +1730,30 @@ func Setgid(uid int) (err error) {
1644 1730
 	return EOPNOTSUPP
1645 1731
 }
1646 1732
 
1733
+// SetfsgidRetGid sets fsgid for current thread and returns previous fsgid set.
1734
+// setfsgid(2) will return a non-nil error only if its caller lacks CAP_SETUID capability.
1735
+// If the call fails due to other reasons, current fsgid will be returned.
1736
+func SetfsgidRetGid(gid int) (int, error) {
1737
+	return setfsgid(gid)
1738
+}
1739
+
1740
+// SetfsuidRetUid sets fsuid for current thread and returns previous fsuid set.
1741
+// setfsgid(2) will return a non-nil error only if its caller lacks CAP_SETUID capability
1742
+// If the call fails due to other reasons, current fsuid will be returned.
1743
+func SetfsuidRetUid(uid int) (int, error) {
1744
+	return setfsuid(uid)
1745
+}
1746
+
1747
+func Setfsgid(gid int) error {
1748
+	_, err := setfsgid(gid)
1749
+	return err
1750
+}
1751
+
1752
+func Setfsuid(uid int) error {
1753
+	_, err := setfsuid(uid)
1754
+	return err
1755
+}
1756
+
1647 1757
 func Signalfd(fd int, sigmask *Sigset_t, flags int) (newfd int, err error) {
1648 1758
 	return signalfd(fd, sigmask, _C__NSIG/8, flags)
1649 1759
 }
@@ -1656,6 +1766,9 @@ func Signalfd(fd int, sigmask *Sigset_t, flags int) (newfd int, err error) {
1656 1766
 //sys	Syncfs(fd int) (err error)
1657 1767
 //sysnb	Sysinfo(info *Sysinfo_t) (err error)
1658 1768
 //sys	Tee(rfd int, wfd int, len int, flags int) (n int64, err error)
1769
+//sysnb TimerfdCreate(clockid int, flags int) (fd int, err error)
1770
+//sysnb TimerfdGettime(fd int, currValue *ItimerSpec) (err error)
1771
+//sysnb TimerfdSettime(fd int, flags int, newValue *ItimerSpec, oldValue *ItimerSpec) (err error)
1659 1772
 //sysnb	Tgkill(tgid int, tid int, sig syscall.Signal) (err error)
1660 1773
 //sysnb	Times(tms *Tms) (ticks uintptr, err error)
1661 1774
 //sysnb	Umask(mask int) (oldmask int)
@@ -1666,6 +1779,123 @@ func Signalfd(fd int, sigmask *Sigset_t, flags int) (newfd int, err error) {
1666 1779
 //sys	exitThread(code int) (err error) = SYS_EXIT
1667 1780
 //sys	readlen(fd int, p *byte, np int) (n int, err error) = SYS_READ
1668 1781
 //sys	writelen(fd int, p *byte, np int) (n int, err error) = SYS_WRITE
1782
+//sys	readv(fd int, iovs []Iovec) (n int, err error) = SYS_READV
1783
+//sys	writev(fd int, iovs []Iovec) (n int, err error) = SYS_WRITEV
1784
+//sys	preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) = SYS_PREADV
1785
+//sys	pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) = SYS_PWRITEV
1786
+//sys	preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PREADV2
1787
+//sys	pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PWRITEV2
1788
+
1789
+func bytes2iovec(bs [][]byte) []Iovec {
1790
+	iovecs := make([]Iovec, len(bs))
1791
+	for i, b := range bs {
1792
+		iovecs[i].SetLen(len(b))
1793
+		if len(b) > 0 {
1794
+			iovecs[i].Base = &b[0]
1795
+		} else {
1796
+			iovecs[i].Base = (*byte)(unsafe.Pointer(&_zero))
1797
+		}
1798
+	}
1799
+	return iovecs
1800
+}
1801
+
1802
+// offs2lohi splits offs into its lower and upper unsigned long. On 64-bit
1803
+// systems, hi will always be 0. On 32-bit systems, offs will be split in half.
1804
+// preadv/pwritev chose this calling convention so they don't need to add a
1805
+// padding-register for alignment on ARM.
1806
+func offs2lohi(offs int64) (lo, hi uintptr) {
1807
+	return uintptr(offs), uintptr(uint64(offs) >> SizeofLong)
1808
+}
1809
+
1810
+func Readv(fd int, iovs [][]byte) (n int, err error) {
1811
+	iovecs := bytes2iovec(iovs)
1812
+	n, err = readv(fd, iovecs)
1813
+	readvRacedetect(iovecs, n, err)
1814
+	return n, err
1815
+}
1816
+
1817
+func Preadv(fd int, iovs [][]byte, offset int64) (n int, err error) {
1818
+	iovecs := bytes2iovec(iovs)
1819
+	lo, hi := offs2lohi(offset)
1820
+	n, err = preadv(fd, iovecs, lo, hi)
1821
+	readvRacedetect(iovecs, n, err)
1822
+	return n, err
1823
+}
1824
+
1825
+func Preadv2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) {
1826
+	iovecs := bytes2iovec(iovs)
1827
+	lo, hi := offs2lohi(offset)
1828
+	n, err = preadv2(fd, iovecs, lo, hi, flags)
1829
+	readvRacedetect(iovecs, n, err)
1830
+	return n, err
1831
+}
1832
+
1833
+func readvRacedetect(iovecs []Iovec, n int, err error) {
1834
+	if !raceenabled {
1835
+		return
1836
+	}
1837
+	for i := 0; n > 0 && i < len(iovecs); i++ {
1838
+		m := int(iovecs[i].Len)
1839
+		if m > n {
1840
+			m = n
1841
+		}
1842
+		n -= m
1843
+		if m > 0 {
1844
+			raceWriteRange(unsafe.Pointer(iovecs[i].Base), m)
1845
+		}
1846
+	}
1847
+	if err == nil {
1848
+		raceAcquire(unsafe.Pointer(&ioSync))
1849
+	}
1850
+}
1851
+
1852
+func Writev(fd int, iovs [][]byte) (n int, err error) {
1853
+	iovecs := bytes2iovec(iovs)
1854
+	if raceenabled {
1855
+		raceReleaseMerge(unsafe.Pointer(&ioSync))
1856
+	}
1857
+	n, err = writev(fd, iovecs)
1858
+	writevRacedetect(iovecs, n)
1859
+	return n, err
1860
+}
1861
+
1862
+func Pwritev(fd int, iovs [][]byte, offset int64) (n int, err error) {
1863
+	iovecs := bytes2iovec(iovs)
1864
+	if raceenabled {
1865
+		raceReleaseMerge(unsafe.Pointer(&ioSync))
1866
+	}
1867
+	lo, hi := offs2lohi(offset)
1868
+	n, err = pwritev(fd, iovecs, lo, hi)
1869
+	writevRacedetect(iovecs, n)
1870
+	return n, err
1871
+}
1872
+
1873
+func Pwritev2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) {
1874
+	iovecs := bytes2iovec(iovs)
1875
+	if raceenabled {
1876
+		raceReleaseMerge(unsafe.Pointer(&ioSync))
1877
+	}
1878
+	lo, hi := offs2lohi(offset)
1879
+	n, err = pwritev2(fd, iovecs, lo, hi, flags)
1880
+	writevRacedetect(iovecs, n)
1881
+	return n, err
1882
+}
1883
+
1884
+func writevRacedetect(iovecs []Iovec, n int) {
1885
+	if !raceenabled {
1886
+		return
1887
+	}
1888
+	for i := 0; n > 0 && i < len(iovecs); i++ {
1889
+		m := int(iovecs[i].Len)
1890
+		if m > n {
1891
+			m = n
1892
+		}
1893
+		n -= m
1894
+		if m > 0 {
1895
+			raceReadRange(unsafe.Pointer(iovecs[i].Base), m)
1896
+		}
1897
+	}
1898
+}
1669 1899
 
1670 1900
 // mmap varies by architecture; see syscall_linux_*.go.
1671 1901
 //sys	munmap(addr uintptr, length uintptr) (err error)
@@ -1960,7 +2190,6 @@ func Klogset(typ int, arg int) (err error) {
1960 2190
 // TimerGetoverrun
1961 2191
 // TimerGettime
1962 2192
 // TimerSettime
1963
-// Timerfd
1964 2193
 // Tkill (obsolete)
1965 2194
 // Tuxcall
1966 2195
 // Umount2

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

@@ -49,7 +49,7 @@ func Pipe2(p []int, flags int) (err error) {
49 49
 
50 50
 // 64-bit file system and 32-bit uid calls
51 51
 // (386 default is 32-bit file system and 16-bit uid).
52
-//sys	Dup2(oldfd int, newfd int) (err error)
52
+//sys	dup2(oldfd int, newfd int) (err error)
53 53
 //sysnb	EpollCreate(size int) (fd int, err error)
54 54
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
55 55
 //sys	Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64_64
@@ -70,8 +70,8 @@ func Pipe2(p []int, flags int) (err error) {
70 70
 //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
71 71
 //sys	Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
72 72
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
73
-//sys	Setfsgid(gid int) (err error) = SYS_SETFSGID32
74
-//sys	Setfsuid(uid int) (err error) = SYS_SETFSUID32
73
+//sys	setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32
74
+//sys	setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32
75 75
 //sysnb	Setregid(rgid int, egid int) (err error) = SYS_SETREGID32
76 76
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID32
77 77
 //sysnb	Setresuid(ruid int, euid int, suid int) (err error) = SYS_SETRESUID32

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

@@ -6,7 +6,7 @@
6 6
 
7 7
 package unix
8 8
 
9
-//sys	Dup2(oldfd int, newfd int) (err error)
9
+//sys	dup2(oldfd int, newfd int) (err error)
10 10
 //sysnb	EpollCreate(size int) (fd int, err error)
11 11
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
12 12
 //sys	Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
@@ -55,8 +55,8 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
55 55
 }
56 56
 
57 57
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
58
-//sys	Setfsgid(gid int) (err error)
59
-//sys	Setfsuid(uid int) (err error)
58
+//sys	setfsgid(gid int) (prev int, err error)
59
+//sys	setfsuid(uid int) (prev int, err error)
60 60
 //sysnb	Setregid(rgid int, egid int) (err error)
61 61
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
62 62
 //sysnb	Setresuid(ruid int, euid int, suid int) (err error)

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

@@ -80,7 +80,7 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
80 80
 
81 81
 // 64-bit file system and 32-bit uid calls
82 82
 // (16-bit uid calls are not always supported in newer kernels)
83
-//sys	Dup2(oldfd int, newfd int) (err error)
83
+//sys	dup2(oldfd int, newfd int) (err error)
84 84
 //sysnb	EpollCreate(size int) (fd int, err error)
85 85
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
86 86
 //sys	Fchown(fd int, uid int, gid int) (err error) = SYS_FCHOWN32
@@ -98,8 +98,8 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
98 98
 //sys	Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
99 99
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
100 100
 //sys	Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
101
-//sys	Setfsgid(gid int) (err error) = SYS_SETFSGID32
102
-//sys	Setfsuid(uid int) (err error) = SYS_SETFSUID32
101
+//sys	setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32
102
+//sys	setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32
103 103
 //sysnb	Setregid(rgid int, egid int) (err error) = SYS_SETREGID32
104 104
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID32
105 105
 //sysnb	Setresuid(ruid int, euid int, suid int) (err error) = SYS_SETRESUID32

+ 25
- 7
vendor/golang.org/x/sys/unix/syscall_linux_arm64.go View File

@@ -25,7 +25,7 @@ func EpollCreate(size int) (fd int, err error) {
25 25
 //sysnb	Getegid() (egid int)
26 26
 //sysnb	Geteuid() (euid int)
27 27
 //sysnb	Getgid() (gid int)
28
-//sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
28
+//sysnb	getrlimit(resource int, rlim *Rlimit) (err error)
29 29
 //sysnb	Getuid() (uid int)
30 30
 //sys	Listen(s int, n int) (err error)
31 31
 //sys	Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
@@ -42,12 +42,12 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
42 42
 }
43 43
 
44 44
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
45
-//sys	Setfsgid(gid int) (err error)
46
-//sys	Setfsuid(uid int) (err error)
45
+//sys	setfsgid(gid int) (prev int, err error)
46
+//sys	setfsuid(uid int) (prev int, err error)
47 47
 //sysnb	Setregid(rgid int, egid int) (err error)
48 48
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
49 49
 //sysnb	Setresuid(ruid int, euid int, suid int) (err error)
50
-//sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
50
+//sysnb	setrlimit(resource int, rlim *Rlimit) (err error)
51 51
 //sysnb	Setreuid(ruid int, euid int) (err error)
52 52
 //sys	Shutdown(fd int, how int) (err error)
53 53
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
@@ -168,6 +168,24 @@ func Pipe2(p []int, flags int) (err error) {
168 168
 	return
169 169
 }
170 170
 
171
+// Getrlimit prefers the prlimit64 system call. See issue 38604.
172
+func Getrlimit(resource int, rlim *Rlimit) error {
173
+	err := prlimit(0, resource, nil, rlim)
174
+	if err != ENOSYS {
175
+		return err
176
+	}
177
+	return getrlimit(resource, rlim)
178
+}
179
+
180
+// Setrlimit prefers the prlimit64 system call. See issue 38604.
181
+func Setrlimit(resource int, rlim *Rlimit) error {
182
+	err := prlimit(0, resource, rlim, nil)
183
+	if err != ENOSYS {
184
+		return err
185
+	}
186
+	return setrlimit(resource, rlim)
187
+}
188
+
171 189
 func (r *PtraceRegs) PC() uint64 { return r.Pc }
172 190
 
173 191
 func (r *PtraceRegs) SetPC(pc uint64) { r.Pc = pc }
@@ -192,9 +210,9 @@ func InotifyInit() (fd int, err error) {
192 210
 	return InotifyInit1(0)
193 211
 }
194 212
 
195
-func Dup2(oldfd int, newfd int) (err error) {
196
-	return Dup3(oldfd, newfd, 0)
197
-}
213
+// dup2 exists because func Dup3 in syscall_linux.go references
214
+// it in an unreachable path. dup2 isn't available on arm64.
215
+func dup2(oldfd int, newfd int) error
198 216
 
199 217
 func Pause() error {
200 218
 	_, err := ppoll(nil, 0, nil, nil)

+ 7
- 3
vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go View File

@@ -7,7 +7,7 @@
7 7
 
8 8
 package unix
9 9
 
10
-//sys	Dup2(oldfd int, newfd int) (err error)
10
+//sys	dup2(oldfd int, newfd int) (err error)
11 11
 //sysnb	EpollCreate(size int) (fd int, err error)
12 12
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
13 13
 //sys	Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
@@ -36,8 +36,8 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
36 36
 }
37 37
 
38 38
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
39
-//sys	Setfsgid(gid int) (err error)
40
-//sys	Setfsuid(uid int) (err error)
39
+//sys	setfsgid(gid int) (prev int, err error)
40
+//sys	setfsuid(uid int) (prev int, err error)
41 41
 //sysnb	Setregid(rgid int, egid int) (err error)
42 42
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
43 43
 //sysnb	Setresuid(ruid int, euid int, suid int) (err error)
@@ -216,6 +216,10 @@ func (cmsg *Cmsghdr) SetLen(length int) {
216 216
 	cmsg.Len = uint64(length)
217 217
 }
218 218
 
219
+func InotifyInit() (fd int, err error) {
220
+	return InotifyInit1(0)
221
+}
222
+
219 223
 //sys	poll(fds *PollFd, nfds int, timeout int) (n int, err error)
220 224
 
221 225
 func Poll(fds []PollFd, timeout int) (n int, err error) {

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

@@ -14,7 +14,7 @@ import (
14 14
 
15 15
 func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
16 16
 
17
-//sys	Dup2(oldfd int, newfd int) (err error)
17
+//sys	dup2(oldfd int, newfd int) (err error)
18 18
 //sysnb	EpollCreate(size int) (fd int, err error)
19 19
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
20 20
 //sys	Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
@@ -31,8 +31,8 @@ func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr,
31 31
 //sys	Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
32 32
 //sys	Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
33 33
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
34
-//sys	Setfsgid(gid int) (err error)
35
-//sys	Setfsuid(uid int) (err error)
34
+//sys	setfsgid(gid int) (prev int, err error)
35
+//sys	setfsuid(uid int) (prev int, err error)
36 36
 //sysnb	Setregid(rgid int, egid int) (err error)
37 37
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
38 38
 //sysnb	Setresuid(ruid int, euid int, suid int) (err error)

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

@@ -7,7 +7,7 @@
7 7
 
8 8
 package unix
9 9
 
10
-//sys	Dup2(oldfd int, newfd int) (err error)
10
+//sys	dup2(oldfd int, newfd int) (err error)
11 11
 //sysnb	EpollCreate(size int) (fd int, err error)
12 12
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
13 13
 //sys	Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
@@ -34,8 +34,8 @@ package unix
34 34
 //sys	Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
35 35
 //sys	Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
36 36
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
37
-//sys	Setfsgid(gid int) (err error)
38
-//sys	Setfsuid(uid int) (err error)
37
+//sys	setfsgid(gid int) (prev int, err error)
38
+//sys	setfsuid(uid int) (prev int, err error)
39 39
 //sysnb	Setregid(rgid int, egid int) (err error)
40 40
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
41 41
 //sysnb	Setresuid(ruid int, euid int, suid int) (err error)

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

@@ -41,8 +41,8 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
41 41
 }
42 42
 
43 43
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
44
-//sys	Setfsgid(gid int) (err error)
45
-//sys	Setfsuid(uid int) (err error)
44
+//sys	setfsgid(gid int) (prev int, err error)
45
+//sys	setfsuid(uid int) (prev int, err error)
46 46
 //sysnb	Setregid(rgid int, egid int) (err error)
47 47
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
48 48
 //sysnb	Setresuid(ruid int, euid int, suid int) (err error)
@@ -191,10 +191,6 @@ func InotifyInit() (fd int, err error) {
191 191
 	return InotifyInit1(0)
192 192
 }
193 193
 
194
-func Dup2(oldfd int, newfd int) (err error) {
195
-	return Dup3(oldfd, newfd, 0)
196
-}
197
-
198 194
 func Pause() error {
199 195
 	_, err := ppoll(nil, 0, nil, nil)
200 196
 	return err
@@ -228,3 +224,7 @@ func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error
228 224
 	}
229 225
 	return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
230 226
 }
227
+
228
+// dup2 exists because func Dup3 in syscall_linux.go references
229
+// it in an unreachable path. dup2 isn't available on arm64.
230
+func dup2(oldfd int, newfd int) error

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

@@ -10,7 +10,7 @@ import (
10 10
 	"unsafe"
11 11
 )
12 12
 
13
-//sys	Dup2(oldfd int, newfd int) (err error)
13
+//sys	dup2(oldfd int, newfd int) (err error)
14 14
 //sysnb	EpollCreate(size int) (fd int, err error)
15 15
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
16 16
 //sys	Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
@@ -34,8 +34,8 @@ import (
34 34
 //sys	Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
35 35
 //sys	Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
36 36
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
37
-//sys	Setfsgid(gid int) (err error)
38
-//sys	Setfsuid(uid int) (err error)
37
+//sys	setfsgid(gid int) (prev int, err error)
38
+//sys	setfsuid(uid int) (prev int, err error)
39 39
 //sysnb	Setregid(rgid int, egid int) (err error)
40 40
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
41 41
 //sysnb	Setresuid(ruid int, euid int, suid int) (err error)

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

@@ -8,7 +8,7 @@ package unix
8 8
 
9 9
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
10 10
 //sys	Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
11
-//sys	Dup2(oldfd int, newfd int) (err error)
11
+//sys	dup2(oldfd int, newfd int) (err error)
12 12
 //sys	Fchown(fd int, uid int, gid int) (err error)
13 13
 //sys	Fstat(fd int, stat *Stat_t) (err error)
14 14
 //sys	Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
@@ -30,8 +30,8 @@ package unix
30 30
 //sys	Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
31 31
 //sys	Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
32 32
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
33
-//sys	Setfsgid(gid int) (err error)
34
-//sys	Setfsuid(uid int) (err error)
33
+//sys	setfsgid(gid int) (prev int, err error)
34
+//sys	setfsuid(uid int) (prev int, err error)
35 35
 //sysnb	Setregid(rgid int, egid int) (err error)
36 36
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
37 37
 //sysnb	Setresuid(ruid int, euid int, suid int) (err error)

+ 11
- 17
vendor/golang.org/x/sys/unix/syscall_netbsd.go View File

@@ -106,23 +106,6 @@ func direntNamlen(buf []byte) (uint64, bool) {
106 106
 	return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
107 107
 }
108 108
 
109
-func SysctlClockinfo(name string) (*Clockinfo, error) {
110
-	mib, err := sysctlmib(name)
111
-	if err != nil {
112
-		return nil, err
113
-	}
114
-
115
-	n := uintptr(SizeofClockinfo)
116
-	var ci Clockinfo
117
-	if err := sysctl(mib, (*byte)(unsafe.Pointer(&ci)), &n, nil, 0); err != nil {
118
-		return nil, err
119
-	}
120
-	if n != SizeofClockinfo {
121
-		return nil, EIO
122
-	}
123
-	return &ci, nil
124
-}
125
-
126 109
 //sysnb pipe() (fd1 int, fd2 int, err error)
127 110
 func Pipe(p []int) (err error) {
128 111
 	if len(p) != 2 {
@@ -249,6 +232,14 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
249 232
 	return sendfile(outfd, infd, offset, count)
250 233
 }
251 234
 
235
+func Fstatvfs(fd int, buf *Statvfs_t) (err error) {
236
+	return Fstatvfs1(fd, buf, ST_WAIT)
237
+}
238
+
239
+func Statvfs(path string, buf *Statvfs_t) (err error) {
240
+	return Statvfs1(path, buf, ST_WAIT)
241
+}
242
+
252 243
 /*
253 244
  * Exposed directly
254 245
  */
@@ -262,6 +253,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
262 253
 //sys	Close(fd int) (err error)
263 254
 //sys	Dup(fd int) (nfd int, err error)
264 255
 //sys	Dup2(from int, to int) (err error)
256
+//sys	Dup3(from int, to int, flags int) (err error)
265 257
 //sys	Exit(code int)
266 258
 //sys	ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
267 259
 //sys	ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
@@ -287,6 +279,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
287 279
 //sys	Fpathconf(fd int, name int) (val int, err error)
288 280
 //sys	Fstat(fd int, stat *Stat_t) (err error)
289 281
 //sys	Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
282
+//sys	Fstatvfs1(fd int, buf *Statvfs_t, flags int) (err error) = SYS_FSTATVFS1
290 283
 //sys	Fsync(fd int) (err error)
291 284
 //sys	Ftruncate(fd int, length int64) (err error)
292 285
 //sysnb	Getegid() (egid int)
@@ -343,6 +336,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
343 336
 //sysnb	Settimeofday(tp *Timeval) (err error)
344 337
 //sysnb	Setuid(uid int) (err error)
345 338
 //sys	Stat(path string, stat *Stat_t) (err error)
339
+//sys	Statvfs1(path string, buf *Statvfs_t, flags int) (err error) = SYS_STATVFS1
346 340
 //sys	Symlink(path string, link string) (err error)
347 341
 //sys	Symlinkat(oldpath string, newdirfd int, newpath string) (err error)
348 342
 //sys	Sync() (err error)

+ 8
- 21
vendor/golang.org/x/sys/unix/syscall_openbsd.go View File

@@ -55,23 +55,6 @@ func direntNamlen(buf []byte) (uint64, bool) {
55 55
 	return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
56 56
 }
57 57
 
58
-func SysctlClockinfo(name string) (*Clockinfo, error) {
59
-	mib, err := sysctlmib(name)
60
-	if err != nil {
61
-		return nil, err
62
-	}
63
-
64
-	n := uintptr(SizeofClockinfo)
65
-	var ci Clockinfo
66
-	if err := sysctl(mib, (*byte)(unsafe.Pointer(&ci)), &n, nil, 0); err != nil {
67
-		return nil, err
68
-	}
69
-	if n != SizeofClockinfo {
70
-		return nil, EIO
71
-	}
72
-	return &ci, nil
73
-}
74
-
75 58
 func SysctlUvmexp(name string) (*Uvmexp, error) {
76 59
 	mib, err := sysctlmib(name)
77 60
 	if err != nil {
@@ -89,16 +72,20 @@ func SysctlUvmexp(name string) (*Uvmexp, error) {
89 72
 	return &u, nil
90 73
 }
91 74
 
92
-//sysnb pipe(p *[2]_C_int) (err error)
93 75
 func Pipe(p []int) (err error) {
76
+	return Pipe2(p, 0)
77
+}
78
+
79
+//sysnb	pipe2(p *[2]_C_int, flags int) (err error)
80
+func Pipe2(p []int, flags int) error {
94 81
 	if len(p) != 2 {
95 82
 		return EINVAL
96 83
 	}
97 84
 	var pp [2]_C_int
98
-	err = pipe(&pp)
85
+	err := pipe2(&pp, flags)
99 86
 	p[0] = int(pp[0])
100 87
 	p[1] = int(pp[1])
101
-	return
88
+	return err
102 89
 }
103 90
 
104 91
 //sys Getdents(fd int, buf []byte) (n int, err error)
@@ -248,6 +235,7 @@ func Uname(uname *Utsname) error {
248 235
 //sys	Close(fd int) (err error)
249 236
 //sys	Dup(fd int) (nfd int, err error)
250 237
 //sys	Dup2(from int, to int) (err error)
238
+//sys	Dup3(from int, to int, flags int) (err error)
251 239
 //sys	Exit(code int)
252 240
 //sys	Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
253 241
 //sys	Fchdir(fd int) (err error)
@@ -352,7 +340,6 @@ func Uname(uname *Utsname) error {
352 340
 // clock_settime
353 341
 // closefrom
354 342
 // execve
355
-// fcntl
356 343
 // fhopen
357 344
 // fhstat
358 345
 // fhstatfs

+ 9
- 10
vendor/golang.org/x/sys/unix/syscall_unix.go View File

@@ -12,6 +12,8 @@ import (
12 12
 	"sync"
13 13
 	"syscall"
14 14
 	"unsafe"
15
+
16
+	"golang.org/x/sys/internal/unsafeheader"
15 17
 )
16 18
 
17 19
 var (
@@ -76,7 +78,7 @@ func SignalName(s syscall.Signal) string {
76 78
 // The signal name should start with "SIG".
77 79
 func SignalNum(s string) syscall.Signal {
78 80
 	signalNameMapOnce.Do(func() {
79
-		signalNameMap = make(map[string]syscall.Signal)
81
+		signalNameMap = make(map[string]syscall.Signal, len(signalList))
80 82
 		for _, signal := range signalList {
81 83
 			signalNameMap[signal.name] = signal.num
82 84
 		}
@@ -113,15 +115,12 @@ func (m *mmapper) Mmap(fd int, offset int64, length int, prot int, flags int) (d
113 115
 		return nil, errno
114 116
 	}
115 117
 
116
-	// Slice memory layout
117
-	var sl = struct {
118
-		addr uintptr
119
-		len  int
120
-		cap  int
121
-	}{addr, length, length}
122
-
123
-	// Use unsafe to turn sl into a []byte.
124
-	b := *(*[]byte)(unsafe.Pointer(&sl))
118
+	// Use unsafe to convert addr into a []byte.
119
+	var b []byte
120
+	hdr := (*unsafeheader.Slice)(unsafe.Pointer(&b))
121
+	hdr.Data = unsafe.Pointer(addr)
122
+	hdr.Cap = length
123
+	hdr.Len = length
125 124
 
126 125
 	// Register mapping in m and return it.
127 126
 	p := &b[cap(b)-1]

+ 148
- 12
vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go View File

@@ -355,6 +355,22 @@ const (
355 355
 	CTL_KERN                       = 0x1
356 356
 	CTL_MAXNAME                    = 0x18
357 357
 	CTL_NET                        = 0x4
358
+	DIOCGATTR                      = 0xc144648e
359
+	DIOCGDELETE                    = 0x80106488
360
+	DIOCGFLUSH                     = 0x20006487
361
+	DIOCGFRONTSTUFF                = 0x40086486
362
+	DIOCGFWHEADS                   = 0x40046483
363
+	DIOCGFWSECTORS                 = 0x40046482
364
+	DIOCGIDENT                     = 0x41006489
365
+	DIOCGMEDIASIZE                 = 0x40086481
366
+	DIOCGPHYSPATH                  = 0x4400648d
367
+	DIOCGPROVIDERNAME              = 0x4400648a
368
+	DIOCGSECTORSIZE                = 0x40046480
369
+	DIOCGSTRIPEOFFSET              = 0x4008648c
370
+	DIOCGSTRIPESIZE                = 0x4008648b
371
+	DIOCSKERNELDUMP                = 0x804c6490
372
+	DIOCSKERNELDUMP_FREEBSD11      = 0x80046485
373
+	DIOCZONECMD                    = 0xc06c648f
358 374
 	DLT_A429                       = 0xb8
359 375
 	DLT_A653_ICM                   = 0xb9
360 376
 	DLT_AIRONET_HEADER             = 0x78
@@ -379,11 +395,14 @@ const (
379 395
 	DLT_CHAOS                      = 0x5
380 396
 	DLT_CHDLC                      = 0x68
381 397
 	DLT_CISCO_IOS                  = 0x76
398
+	DLT_CLASS_NETBSD_RAWAF         = 0x2240000
382 399
 	DLT_C_HDLC                     = 0x68
383 400
 	DLT_C_HDLC_WITH_DIR            = 0xcd
384 401
 	DLT_DBUS                       = 0xe7
385 402
 	DLT_DECT                       = 0xdd
403
+	DLT_DISPLAYPORT_AUX            = 0x113
386 404
 	DLT_DOCSIS                     = 0x8f
405
+	DLT_DOCSIS31_XRA31             = 0x111
387 406
 	DLT_DVB_CI                     = 0xeb
388 407
 	DLT_ECONET                     = 0x73
389 408
 	DLT_EN10MB                     = 0x1
@@ -393,6 +412,7 @@ const (
393 412
 	DLT_ERF                        = 0xc5
394 413
 	DLT_ERF_ETH                    = 0xaf
395 414
 	DLT_ERF_POS                    = 0xb0
415
+	DLT_ETHERNET_MPACKET           = 0x112
396 416
 	DLT_FC_2                       = 0xe0
397 417
 	DLT_FC_2_WITH_FRAME_DELIMS     = 0xe1
398 418
 	DLT_FDDI                       = 0xa
@@ -406,7 +426,6 @@ const (
406 426
 	DLT_GPRS_LLC                   = 0xa9
407 427
 	DLT_GSMTAP_ABIS                = 0xda
408 428
 	DLT_GSMTAP_UM                  = 0xd9
409
-	DLT_HHDLC                      = 0x79
410 429
 	DLT_IBM_SN                     = 0x92
411 430
 	DLT_IBM_SP                     = 0x91
412 431
 	DLT_IEEE802                    = 0x6
@@ -429,6 +448,7 @@ const (
429 448
 	DLT_IPV4                       = 0xe4
430 449
 	DLT_IPV6                       = 0xe5
431 450
 	DLT_IP_OVER_FC                 = 0x7a
451
+	DLT_ISO_14443                  = 0x108
432 452
 	DLT_JUNIPER_ATM1               = 0x89
433 453
 	DLT_JUNIPER_ATM2               = 0x87
434 454
 	DLT_JUNIPER_ATM_CEMIC          = 0xee
@@ -461,8 +481,9 @@ const (
461 481
 	DLT_LINUX_PPP_WITHDIRECTION    = 0xa6
462 482
 	DLT_LINUX_SLL                  = 0x71
463 483
 	DLT_LOOP                       = 0x6c
484
+	DLT_LORATAP                    = 0x10e
464 485
 	DLT_LTALK                      = 0x72
465
-	DLT_MATCHING_MAX               = 0x104
486
+	DLT_MATCHING_MAX               = 0x113
466 487
 	DLT_MATCHING_MIN               = 0x68
467 488
 	DLT_MFR                        = 0xb6
468 489
 	DLT_MOST                       = 0xd3
@@ -478,14 +499,16 @@ const (
478 499
 	DLT_NFC_LLCP                   = 0xf5
479 500
 	DLT_NFLOG                      = 0xef
480 501
 	DLT_NG40                       = 0xf4
502
+	DLT_NORDIC_BLE                 = 0x110
481 503
 	DLT_NULL                       = 0x0
504
+	DLT_OPENFLOW                   = 0x10b
482 505
 	DLT_PCI_EXP                    = 0x7d
483 506
 	DLT_PFLOG                      = 0x75
484 507
 	DLT_PFSYNC                     = 0x79
485 508
 	DLT_PKTAP                      = 0x102
486 509
 	DLT_PPI                        = 0xc0
487 510
 	DLT_PPP                        = 0x9
488
-	DLT_PPP_BSDOS                  = 0x10
511
+	DLT_PPP_BSDOS                  = 0xe
489 512
 	DLT_PPP_ETHER                  = 0x33
490 513
 	DLT_PPP_PPPD                   = 0xa6
491 514
 	DLT_PPP_SERIAL                 = 0x32
@@ -496,19 +519,25 @@ const (
496 519
 	DLT_PRONET                     = 0x4
497 520
 	DLT_RAIF1                      = 0xc6
498 521
 	DLT_RAW                        = 0xc
522
+	DLT_RDS                        = 0x109
523
+	DLT_REDBACK_SMARTEDGE          = 0x20
499 524
 	DLT_RIO                        = 0x7c
500 525
 	DLT_RTAC_SERIAL                = 0xfa
501 526
 	DLT_SCCP                       = 0x8e
502 527
 	DLT_SCTP                       = 0xf8
528
+	DLT_SDLC                       = 0x10c
503 529
 	DLT_SITA                       = 0xc4
504 530
 	DLT_SLIP                       = 0x8
505
-	DLT_SLIP_BSDOS                 = 0xf
531
+	DLT_SLIP_BSDOS                 = 0xd
506 532
 	DLT_STANAG_5066_D_PDU          = 0xed
507 533
 	DLT_SUNATM                     = 0x7b
508 534
 	DLT_SYMANTEC_FIREWALL          = 0x63
535
+	DLT_TI_LLN_SNIFFER             = 0x10d
509 536
 	DLT_TZSP                       = 0x80
510 537
 	DLT_USB                        = 0xba
511 538
 	DLT_USBPCAP                    = 0xf9
539
+	DLT_USB_DARWIN                 = 0x10a
540
+	DLT_USB_FREEBSD                = 0xba
512 541
 	DLT_USB_LINUX                  = 0xbd
513 542
 	DLT_USB_LINUX_MMAPPED          = 0xdc
514 543
 	DLT_USER0                      = 0x93
@@ -527,10 +556,14 @@ const (
527 556
 	DLT_USER7                      = 0x9a
528 557
 	DLT_USER8                      = 0x9b
529 558
 	DLT_USER9                      = 0x9c
559
+	DLT_VSOCK                      = 0x10f
560
+	DLT_WATTSTOPPER_DLM            = 0x107
530 561
 	DLT_WIHART                     = 0xdf
531 562
 	DLT_WIRESHARK_UPPER_PDU        = 0xfc
532 563
 	DLT_X2E_SERIAL                 = 0xd5
533 564
 	DLT_X2E_XORAYA                 = 0xd6
565
+	DLT_ZWAVE_R1_R2                = 0x105
566
+	DLT_ZWAVE_R3                   = 0x106
534 567
 	DT_BLK                         = 0x6
535 568
 	DT_CHR                         = 0x2
536 569
 	DT_DIR                         = 0x4
@@ -548,6 +581,7 @@ const (
548 581
 	ECHONL                         = 0x10
549 582
 	ECHOPRT                        = 0x20
550 583
 	EVFILT_AIO                     = -0x3
584
+	EVFILT_EMPTY                   = -0xd
551 585
 	EVFILT_FS                      = -0x9
552 586
 	EVFILT_LIO                     = -0xa
553 587
 	EVFILT_PROC                    = -0x5
@@ -555,11 +589,12 @@ const (
555 589
 	EVFILT_READ                    = -0x1
556 590
 	EVFILT_SENDFILE                = -0xc
557 591
 	EVFILT_SIGNAL                  = -0x6
558
-	EVFILT_SYSCOUNT                = 0xc
592
+	EVFILT_SYSCOUNT                = 0xd
559 593
 	EVFILT_TIMER                   = -0x7
560 594
 	EVFILT_USER                    = -0xb
561 595
 	EVFILT_VNODE                   = -0x4
562 596
 	EVFILT_WRITE                   = -0x2
597
+	EVNAMEMAP_NAME_SIZE            = 0x40
563 598
 	EV_ADD                         = 0x1
564 599
 	EV_CLEAR                       = 0x20
565 600
 	EV_DELETE                      = 0x2
@@ -576,6 +611,7 @@ const (
576 611
 	EV_RECEIPT                     = 0x40
577 612
 	EV_SYSFLAGS                    = 0xf000
578 613
 	EXTA                           = 0x4b00
614
+	EXTATTR_MAXNAMELEN             = 0xff
579 615
 	EXTATTR_NAMESPACE_EMPTY        = 0x0
580 616
 	EXTATTR_NAMESPACE_SYSTEM       = 0x2
581 617
 	EXTATTR_NAMESPACE_USER         = 0x1
@@ -617,6 +653,7 @@ const (
617 653
 	IEXTEN                         = 0x400
618 654
 	IFAN_ARRIVAL                   = 0x0
619 655
 	IFAN_DEPARTURE                 = 0x1
656
+	IFCAP_WOL_MAGIC                = 0x2000
620 657
 	IFF_ALLMULTI                   = 0x200
621 658
 	IFF_ALTPHYS                    = 0x4000
622 659
 	IFF_BROADCAST                  = 0x2
@@ -633,6 +670,7 @@ const (
633 670
 	IFF_MONITOR                    = 0x40000
634 671
 	IFF_MULTICAST                  = 0x8000
635 672
 	IFF_NOARP                      = 0x80
673
+	IFF_NOGROUP                    = 0x800000
636 674
 	IFF_OACTIVE                    = 0x400
637 675
 	IFF_POINTOPOINT                = 0x10
638 676
 	IFF_PPROMISC                   = 0x20000
@@ -807,6 +845,7 @@ const (
807 845
 	IPV6_DSTOPTS                   = 0x32
808 846
 	IPV6_FLOWID                    = 0x43
809 847
 	IPV6_FLOWINFO_MASK             = 0xffffff0f
848
+	IPV6_FLOWLABEL_LEN             = 0x14
810 849
 	IPV6_FLOWLABEL_MASK            = 0xffff0f00
811 850
 	IPV6_FLOWTYPE                  = 0x44
812 851
 	IPV6_FRAGTTL                   = 0x78
@@ -827,13 +866,13 @@ const (
827 866
 	IPV6_MAX_GROUP_SRC_FILTER      = 0x200
828 867
 	IPV6_MAX_MEMBERSHIPS           = 0xfff
829 868
 	IPV6_MAX_SOCK_SRC_FILTER       = 0x80
830
-	IPV6_MIN_MEMBERSHIPS           = 0x1f
831 869
 	IPV6_MMTU                      = 0x500
832 870
 	IPV6_MSFILTER                  = 0x4a
833 871
 	IPV6_MULTICAST_HOPS            = 0xa
834 872
 	IPV6_MULTICAST_IF              = 0x9
835 873
 	IPV6_MULTICAST_LOOP            = 0xb
836 874
 	IPV6_NEXTHOP                   = 0x30
875
+	IPV6_ORIGDSTADDR               = 0x48
837 876
 	IPV6_PATHMTU                   = 0x2c
838 877
 	IPV6_PKTINFO                   = 0x2e
839 878
 	IPV6_PORTRANGE                 = 0xe
@@ -845,6 +884,7 @@ const (
845 884
 	IPV6_RECVFLOWID                = 0x46
846 885
 	IPV6_RECVHOPLIMIT              = 0x25
847 886
 	IPV6_RECVHOPOPTS               = 0x27
887
+	IPV6_RECVORIGDSTADDR           = 0x48
848 888
 	IPV6_RECVPATHMTU               = 0x2b
849 889
 	IPV6_RECVPKTINFO               = 0x24
850 890
 	IPV6_RECVRSSBUCKETID           = 0x47
@@ -905,10 +945,8 @@ const (
905 945
 	IP_MAX_MEMBERSHIPS             = 0xfff
906 946
 	IP_MAX_SOCK_MUTE_FILTER        = 0x80
907 947
 	IP_MAX_SOCK_SRC_FILTER         = 0x80
908
-	IP_MAX_SOURCE_FILTER           = 0x400
909 948
 	IP_MF                          = 0x2000
910 949
 	IP_MINTTL                      = 0x42
911
-	IP_MIN_MEMBERSHIPS             = 0x1f
912 950
 	IP_MSFILTER                    = 0x4a
913 951
 	IP_MSS                         = 0x240
914 952
 	IP_MULTICAST_IF                = 0x9
@@ -918,6 +956,7 @@ const (
918 956
 	IP_OFFMASK                     = 0x1fff
919 957
 	IP_ONESBCAST                   = 0x17
920 958
 	IP_OPTIONS                     = 0x1
959
+	IP_ORIGDSTADDR                 = 0x1b
921 960
 	IP_PORTRANGE                   = 0x13
922 961
 	IP_PORTRANGE_DEFAULT           = 0x0
923 962
 	IP_PORTRANGE_HIGH              = 0x1
@@ -926,6 +965,7 @@ const (
926 965
 	IP_RECVFLOWID                  = 0x5d
927 966
 	IP_RECVIF                      = 0x14
928 967
 	IP_RECVOPTS                    = 0x5
968
+	IP_RECVORIGDSTADDR             = 0x1b
929 969
 	IP_RECVRETOPTS                 = 0x6
930 970
 	IP_RECVRSSBUCKETID             = 0x5e
931 971
 	IP_RECVTOS                     = 0x44
@@ -975,6 +1015,7 @@ const (
975 1015
 	MAP_EXCL                       = 0x4000
976 1016
 	MAP_FILE                       = 0x0
977 1017
 	MAP_FIXED                      = 0x10
1018
+	MAP_GUARD                      = 0x2000
978 1019
 	MAP_HASSEMAPHORE               = 0x200
979 1020
 	MAP_NOCORE                     = 0x20000
980 1021
 	MAP_NOSYNC                     = 0x800
@@ -986,6 +1027,15 @@ const (
986 1027
 	MAP_RESERVED0100               = 0x100
987 1028
 	MAP_SHARED                     = 0x1
988 1029
 	MAP_STACK                      = 0x400
1030
+	MCAST_BLOCK_SOURCE             = 0x54
1031
+	MCAST_EXCLUDE                  = 0x2
1032
+	MCAST_INCLUDE                  = 0x1
1033
+	MCAST_JOIN_GROUP               = 0x50
1034
+	MCAST_JOIN_SOURCE_GROUP        = 0x52
1035
+	MCAST_LEAVE_GROUP              = 0x51
1036
+	MCAST_LEAVE_SOURCE_GROUP       = 0x53
1037
+	MCAST_UNBLOCK_SOURCE           = 0x55
1038
+	MCAST_UNDEFINED                = 0x0
989 1039
 	MCL_CURRENT                    = 0x1
990 1040
 	MCL_FUTURE                     = 0x2
991 1041
 	MNT_ACLS                       = 0x8000000
@@ -1026,10 +1076,12 @@ const (
1026 1076
 	MNT_SUSPEND                    = 0x4
1027 1077
 	MNT_SYNCHRONOUS                = 0x2
1028 1078
 	MNT_UNION                      = 0x20
1079
+	MNT_UNTRUSTED                  = 0x800000000
1029 1080
 	MNT_UPDATE                     = 0x10000
1030
-	MNT_UPDATEMASK                 = 0x2d8d0807e
1081
+	MNT_UPDATEMASK                 = 0xad8d0807e
1031 1082
 	MNT_USER                       = 0x8000
1032
-	MNT_VISFLAGMASK                = 0x3fef0ffff
1083
+	MNT_VERIFIED                   = 0x400000000
1084
+	MNT_VISFLAGMASK                = 0xffef0ffff
1033 1085
 	MNT_WAIT                       = 0x1
1034 1086
 	MSG_CMSG_CLOEXEC               = 0x40000
1035 1087
 	MSG_COMPAT                     = 0x8000
@@ -1058,6 +1110,7 @@ const (
1058 1110
 	NFDBITS                        = 0x20
1059 1111
 	NOFLSH                         = 0x80000000
1060 1112
 	NOKERNINFO                     = 0x2000000
1113
+	NOTE_ABSTIME                   = 0x10
1061 1114
 	NOTE_ATTRIB                    = 0x8
1062 1115
 	NOTE_CHILD                     = 0x4
1063 1116
 	NOTE_CLOSE                     = 0x100
@@ -1212,7 +1265,6 @@ const (
1212 1265
 	RTV_WEIGHT                     = 0x100
1213 1266
 	RT_ALL_FIBS                    = -0x1
1214 1267
 	RT_BLACKHOLE                   = 0x40
1215
-	RT_CACHING_CONTEXT             = 0x1
1216 1268
 	RT_DEFAULT_FIB                 = 0x0
1217 1269
 	RT_HAS_GW                      = 0x80
1218 1270
 	RT_HAS_HEADER                  = 0x10
@@ -1222,15 +1274,17 @@ const (
1222 1274
 	RT_LLE_CACHE                   = 0x100
1223 1275
 	RT_MAY_LOOP                    = 0x8
1224 1276
 	RT_MAY_LOOP_BIT                = 0x3
1225
-	RT_NORTREF                     = 0x2
1226 1277
 	RT_REJECT                      = 0x20
1227 1278
 	RUSAGE_CHILDREN                = -0x1
1228 1279
 	RUSAGE_SELF                    = 0x0
1229 1280
 	RUSAGE_THREAD                  = 0x1
1230 1281
 	SCM_BINTIME                    = 0x4
1231 1282
 	SCM_CREDS                      = 0x3
1283
+	SCM_MONOTONIC                  = 0x6
1284
+	SCM_REALTIME                   = 0x5
1232 1285
 	SCM_RIGHTS                     = 0x1
1233 1286
 	SCM_TIMESTAMP                  = 0x2
1287
+	SCM_TIME_INFO                  = 0x7
1234 1288
 	SHUT_RD                        = 0x0
1235 1289
 	SHUT_RDWR                      = 0x2
1236 1290
 	SHUT_WR                        = 0x1
@@ -1246,6 +1300,7 @@ const (
1246 1300
 	SIOCGETSGCNT                   = 0xc0147210
1247 1301
 	SIOCGETVIFCNT                  = 0xc014720f
1248 1302
 	SIOCGHIWAT                     = 0x40047301
1303
+	SIOCGHWADDR                    = 0xc020693e
1249 1304
 	SIOCGI2C                       = 0xc020693d
1250 1305
 	SIOCGIFADDR                    = 0xc0206921
1251 1306
 	SIOCGIFBRDADDR                 = 0xc0206923
@@ -1267,8 +1322,11 @@ const (
1267 1322
 	SIOCGIFPDSTADDR                = 0xc0206948
1268 1323
 	SIOCGIFPHYS                    = 0xc0206935
1269 1324
 	SIOCGIFPSRCADDR                = 0xc0206947
1325
+	SIOCGIFRSSHASH                 = 0xc0186997
1326
+	SIOCGIFRSSKEY                  = 0xc0946996
1270 1327
 	SIOCGIFSTATUS                  = 0xc331693b
1271 1328
 	SIOCGIFXMEDIA                  = 0xc028698b
1329
+	SIOCGLANPCP                    = 0xc0206998
1272 1330
 	SIOCGLOWAT                     = 0x40047303
1273 1331
 	SIOCGPGRP                      = 0x40047309
1274 1332
 	SIOCGPRIVATE_0                 = 0xc0206950
@@ -1299,6 +1357,7 @@ const (
1299 1357
 	SIOCSIFPHYS                    = 0x80206936
1300 1358
 	SIOCSIFRVNET                   = 0xc020695b
1301 1359
 	SIOCSIFVNET                    = 0xc020695a
1360
+	SIOCSLANPCP                    = 0x80206999
1302 1361
 	SIOCSLOWAT                     = 0x80047302
1303 1362
 	SIOCSPGRP                      = 0x80047308
1304 1363
 	SIOCSTUNFIB                    = 0x8020695f
@@ -1317,6 +1376,7 @@ const (
1317 1376
 	SO_BINTIME                     = 0x2000
1318 1377
 	SO_BROADCAST                   = 0x20
1319 1378
 	SO_DEBUG                       = 0x1
1379
+	SO_DOMAIN                      = 0x1019
1320 1380
 	SO_DONTROUTE                   = 0x10
1321 1381
 	SO_ERROR                       = 0x1007
1322 1382
 	SO_KEEPALIVE                   = 0x8
@@ -1325,6 +1385,7 @@ const (
1325 1385
 	SO_LISTENINCQLEN               = 0x1013
1326 1386
 	SO_LISTENQLEN                  = 0x1012
1327 1387
 	SO_LISTENQLIMIT                = 0x1011
1388
+	SO_MAX_PACING_RATE             = 0x1018
1328 1389
 	SO_NOSIGPIPE                   = 0x800
1329 1390
 	SO_NO_DDP                      = 0x8000
1330 1391
 	SO_NO_OFFLOAD                  = 0x4000
@@ -1337,11 +1398,19 @@ const (
1337 1398
 	SO_RCVTIMEO                    = 0x1006
1338 1399
 	SO_REUSEADDR                   = 0x4
1339 1400
 	SO_REUSEPORT                   = 0x200
1401
+	SO_REUSEPORT_LB                = 0x10000
1340 1402
 	SO_SETFIB                      = 0x1014
1341 1403
 	SO_SNDBUF                      = 0x1001
1342 1404
 	SO_SNDLOWAT                    = 0x1003
1343 1405
 	SO_SNDTIMEO                    = 0x1005
1344 1406
 	SO_TIMESTAMP                   = 0x400
1407
+	SO_TS_BINTIME                  = 0x1
1408
+	SO_TS_CLOCK                    = 0x1017
1409
+	SO_TS_CLOCK_MAX                = 0x3
1410
+	SO_TS_DEFAULT                  = 0x0
1411
+	SO_TS_MONOTONIC                = 0x3
1412
+	SO_TS_REALTIME                 = 0x2
1413
+	SO_TS_REALTIME_MICRO           = 0x0
1345 1414
 	SO_TYPE                        = 0x1008
1346 1415
 	SO_USELOOPBACK                 = 0x40
1347 1416
 	SO_USER_COOKIE                 = 0x1015
@@ -1385,10 +1454,45 @@ const (
1385 1454
 	TCOFLUSH                       = 0x2
1386 1455
 	TCOOFF                         = 0x1
1387 1456
 	TCOON                          = 0x2
1457
+	TCP_BBR_ACK_COMP_ALG           = 0x448
1458
+	TCP_BBR_DRAIN_INC_EXTRA        = 0x43c
1459
+	TCP_BBR_DRAIN_PG               = 0x42e
1460
+	TCP_BBR_EXTRA_GAIN             = 0x449
1461
+	TCP_BBR_IWINTSO                = 0x42b
1462
+	TCP_BBR_LOWGAIN_FD             = 0x436
1463
+	TCP_BBR_LOWGAIN_HALF           = 0x435
1464
+	TCP_BBR_LOWGAIN_THRESH         = 0x434
1465
+	TCP_BBR_MAX_RTO                = 0x439
1466
+	TCP_BBR_MIN_RTO                = 0x438
1467
+	TCP_BBR_ONE_RETRAN             = 0x431
1468
+	TCP_BBR_PACE_CROSS             = 0x442
1469
+	TCP_BBR_PACE_DEL_TAR           = 0x43f
1470
+	TCP_BBR_PACE_PER_SEC           = 0x43e
1471
+	TCP_BBR_PACE_SEG_MAX           = 0x440
1472
+	TCP_BBR_PACE_SEG_MIN           = 0x441
1473
+	TCP_BBR_PROBE_RTT_GAIN         = 0x44d
1474
+	TCP_BBR_PROBE_RTT_INT          = 0x430
1475
+	TCP_BBR_PROBE_RTT_LEN          = 0x44e
1476
+	TCP_BBR_RACK_RTT_USE           = 0x44a
1477
+	TCP_BBR_RECFORCE               = 0x42c
1478
+	TCP_BBR_REC_OVER_HPTS          = 0x43a
1479
+	TCP_BBR_RETRAN_WTSO            = 0x44b
1480
+	TCP_BBR_RWND_IS_APP            = 0x42f
1481
+	TCP_BBR_STARTUP_EXIT_EPOCH     = 0x43d
1482
+	TCP_BBR_STARTUP_LOSS_EXIT      = 0x432
1483
+	TCP_BBR_STARTUP_PG             = 0x42d
1484
+	TCP_BBR_UNLIMITED              = 0x43b
1485
+	TCP_BBR_USEDEL_RATE            = 0x437
1486
+	TCP_BBR_USE_LOWGAIN            = 0x433
1388 1487
 	TCP_CA_NAME_MAX                = 0x10
1389 1488
 	TCP_CCALGOOPT                  = 0x41
1390 1489
 	TCP_CONGESTION                 = 0x40
1490
+	TCP_DATA_AFTER_CLOSE           = 0x44c
1491
+	TCP_DELACK                     = 0x48
1391 1492
 	TCP_FASTOPEN                   = 0x401
1493
+	TCP_FASTOPEN_MAX_COOKIE_LEN    = 0x10
1494
+	TCP_FASTOPEN_MIN_COOKIE_LEN    = 0x4
1495
+	TCP_FASTOPEN_PSK_LEN           = 0x10
1392 1496
 	TCP_FUNCTION_BLK               = 0x2000
1393 1497
 	TCP_FUNCTION_NAME_LEN_MAX      = 0x20
1394 1498
 	TCP_INFO                       = 0x20
@@ -1396,6 +1500,12 @@ const (
1396 1500
 	TCP_KEEPIDLE                   = 0x100
1397 1501
 	TCP_KEEPINIT                   = 0x80
1398 1502
 	TCP_KEEPINTVL                  = 0x200
1503
+	TCP_LOG                        = 0x22
1504
+	TCP_LOGBUF                     = 0x23
1505
+	TCP_LOGDUMP                    = 0x25
1506
+	TCP_LOGDUMPID                  = 0x26
1507
+	TCP_LOGID                      = 0x24
1508
+	TCP_LOG_ID_LEN                 = 0x40
1399 1509
 	TCP_MAXBURST                   = 0x4
1400 1510
 	TCP_MAXHLEN                    = 0x3c
1401 1511
 	TCP_MAXOLEN                    = 0x28
@@ -1411,8 +1521,30 @@ const (
1411 1521
 	TCP_NOPUSH                     = 0x4
1412 1522
 	TCP_PCAP_IN                    = 0x1000
1413 1523
 	TCP_PCAP_OUT                   = 0x800
1524
+	TCP_RACK_EARLY_RECOV           = 0x423
1525
+	TCP_RACK_EARLY_SEG             = 0x424
1526
+	TCP_RACK_IDLE_REDUCE_HIGH      = 0x444
1527
+	TCP_RACK_MIN_PACE              = 0x445
1528
+	TCP_RACK_MIN_PACE_SEG          = 0x446
1529
+	TCP_RACK_MIN_TO                = 0x422
1530
+	TCP_RACK_PACE_ALWAYS           = 0x41f
1531
+	TCP_RACK_PACE_MAX_SEG          = 0x41e
1532
+	TCP_RACK_PACE_REDUCE           = 0x41d
1533
+	TCP_RACK_PKT_DELAY             = 0x428
1534
+	TCP_RACK_PROP                  = 0x41b
1535
+	TCP_RACK_PROP_RATE             = 0x420
1536
+	TCP_RACK_PRR_SENDALOT          = 0x421
1537
+	TCP_RACK_REORD_FADE            = 0x426
1538
+	TCP_RACK_REORD_THRESH          = 0x425
1539
+	TCP_RACK_SESS_CWV              = 0x42a
1540
+	TCP_RACK_TLP_INC_VAR           = 0x429
1541
+	TCP_RACK_TLP_REDUCE            = 0x41c
1542
+	TCP_RACK_TLP_THRESH            = 0x427
1543
+	TCP_RACK_TLP_USE               = 0x447
1414 1544
 	TCP_VENDOR                     = 0x80000000
1415 1545
 	TCSAFLUSH                      = 0x2
1546
+	TIMER_ABSTIME                  = 0x1
1547
+	TIMER_RELTIME                  = 0x0
1416 1548
 	TIOCCBRK                       = 0x2000747a
1417 1549
 	TIOCCDTR                       = 0x20007478
1418 1550
 	TIOCCONS                       = 0x80047462
@@ -1476,6 +1608,8 @@ const (
1476 1608
 	TIOCTIMESTAMP                  = 0x40087459
1477 1609
 	TIOCUCNTL                      = 0x80047466
1478 1610
 	TOSTOP                         = 0x400000
1611
+	UTIME_NOW                      = -0x1
1612
+	UTIME_OMIT                     = -0x2
1479 1613
 	VDISCARD                       = 0xf
1480 1614
 	VDSUSP                         = 0xb
1481 1615
 	VEOF                           = 0x0
@@ -1487,6 +1621,8 @@ const (
1487 1621
 	VKILL                          = 0x5
1488 1622
 	VLNEXT                         = 0xe
1489 1623
 	VMIN                           = 0x10
1624
+	VM_BCACHE_SIZE_MAX             = 0x70e0000
1625
+	VM_SWZONE_SIZE_MAX             = 0x2280000
1490 1626
 	VQUIT                          = 0x9
1491 1627
 	VREPRINT                       = 0x6
1492 1628
 	VSTART                         = 0xc

+ 146
- 12
vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go View File

@@ -355,6 +355,22 @@ const (
355 355
 	CTL_KERN                       = 0x1
356 356
 	CTL_MAXNAME                    = 0x18
357 357
 	CTL_NET                        = 0x4
358
+	DIOCGATTR                      = 0xc148648e
359
+	DIOCGDELETE                    = 0x80106488
360
+	DIOCGFLUSH                     = 0x20006487
361
+	DIOCGFRONTSTUFF                = 0x40086486
362
+	DIOCGFWHEADS                   = 0x40046483
363
+	DIOCGFWSECTORS                 = 0x40046482
364
+	DIOCGIDENT                     = 0x41006489
365
+	DIOCGMEDIASIZE                 = 0x40086481
366
+	DIOCGPHYSPATH                  = 0x4400648d
367
+	DIOCGPROVIDERNAME              = 0x4400648a
368
+	DIOCGSECTORSIZE                = 0x40046480
369
+	DIOCGSTRIPEOFFSET              = 0x4008648c
370
+	DIOCGSTRIPESIZE                = 0x4008648b
371
+	DIOCSKERNELDUMP                = 0x80506490
372
+	DIOCSKERNELDUMP_FREEBSD11      = 0x80046485
373
+	DIOCZONECMD                    = 0xc080648f
358 374
 	DLT_A429                       = 0xb8
359 375
 	DLT_A653_ICM                   = 0xb9
360 376
 	DLT_AIRONET_HEADER             = 0x78
@@ -379,11 +395,14 @@ const (
379 395
 	DLT_CHAOS                      = 0x5
380 396
 	DLT_CHDLC                      = 0x68
381 397
 	DLT_CISCO_IOS                  = 0x76
398
+	DLT_CLASS_NETBSD_RAWAF         = 0x2240000
382 399
 	DLT_C_HDLC                     = 0x68
383 400
 	DLT_C_HDLC_WITH_DIR            = 0xcd
384 401
 	DLT_DBUS                       = 0xe7
385 402
 	DLT_DECT                       = 0xdd
403
+	DLT_DISPLAYPORT_AUX            = 0x113
386 404
 	DLT_DOCSIS                     = 0x8f
405
+	DLT_DOCSIS31_XRA31             = 0x111
387 406
 	DLT_DVB_CI                     = 0xeb
388 407
 	DLT_ECONET                     = 0x73
389 408
 	DLT_EN10MB                     = 0x1
@@ -393,6 +412,7 @@ const (
393 412
 	DLT_ERF                        = 0xc5
394 413
 	DLT_ERF_ETH                    = 0xaf
395 414
 	DLT_ERF_POS                    = 0xb0
415
+	DLT_ETHERNET_MPACKET           = 0x112
396 416
 	DLT_FC_2                       = 0xe0
397 417
 	DLT_FC_2_WITH_FRAME_DELIMS     = 0xe1
398 418
 	DLT_FDDI                       = 0xa
@@ -406,7 +426,6 @@ const (
406 426
 	DLT_GPRS_LLC                   = 0xa9
407 427
 	DLT_GSMTAP_ABIS                = 0xda
408 428
 	DLT_GSMTAP_UM                  = 0xd9
409
-	DLT_HHDLC                      = 0x79
410 429
 	DLT_IBM_SN                     = 0x92
411 430
 	DLT_IBM_SP                     = 0x91
412 431
 	DLT_IEEE802                    = 0x6
@@ -429,6 +448,7 @@ const (
429 448
 	DLT_IPV4                       = 0xe4
430 449
 	DLT_IPV6                       = 0xe5
431 450
 	DLT_IP_OVER_FC                 = 0x7a
451
+	DLT_ISO_14443                  = 0x108
432 452
 	DLT_JUNIPER_ATM1               = 0x89
433 453
 	DLT_JUNIPER_ATM2               = 0x87
434 454
 	DLT_JUNIPER_ATM_CEMIC          = 0xee
@@ -461,8 +481,9 @@ const (
461 481
 	DLT_LINUX_PPP_WITHDIRECTION    = 0xa6
462 482
 	DLT_LINUX_SLL                  = 0x71
463 483
 	DLT_LOOP                       = 0x6c
484
+	DLT_LORATAP                    = 0x10e
464 485
 	DLT_LTALK                      = 0x72
465
-	DLT_MATCHING_MAX               = 0x104
486
+	DLT_MATCHING_MAX               = 0x113
466 487
 	DLT_MATCHING_MIN               = 0x68
467 488
 	DLT_MFR                        = 0xb6
468 489
 	DLT_MOST                       = 0xd3
@@ -478,14 +499,16 @@ const (
478 499
 	DLT_NFC_LLCP                   = 0xf5
479 500
 	DLT_NFLOG                      = 0xef
480 501
 	DLT_NG40                       = 0xf4
502
+	DLT_NORDIC_BLE                 = 0x110
481 503
 	DLT_NULL                       = 0x0
504
+	DLT_OPENFLOW                   = 0x10b
482 505
 	DLT_PCI_EXP                    = 0x7d
483 506
 	DLT_PFLOG                      = 0x75
484 507
 	DLT_PFSYNC                     = 0x79
485 508
 	DLT_PKTAP                      = 0x102
486 509
 	DLT_PPI                        = 0xc0
487 510
 	DLT_PPP                        = 0x9
488
-	DLT_PPP_BSDOS                  = 0x10
511
+	DLT_PPP_BSDOS                  = 0xe
489 512
 	DLT_PPP_ETHER                  = 0x33
490 513
 	DLT_PPP_PPPD                   = 0xa6
491 514
 	DLT_PPP_SERIAL                 = 0x32
@@ -496,19 +519,25 @@ const (
496 519
 	DLT_PRONET                     = 0x4
497 520
 	DLT_RAIF1                      = 0xc6
498 521
 	DLT_RAW                        = 0xc
522
+	DLT_RDS                        = 0x109
523
+	DLT_REDBACK_SMARTEDGE          = 0x20
499 524
 	DLT_RIO                        = 0x7c
500 525
 	DLT_RTAC_SERIAL                = 0xfa
501 526
 	DLT_SCCP                       = 0x8e
502 527
 	DLT_SCTP                       = 0xf8
528
+	DLT_SDLC                       = 0x10c
503 529
 	DLT_SITA                       = 0xc4
504 530
 	DLT_SLIP                       = 0x8
505
-	DLT_SLIP_BSDOS                 = 0xf
531
+	DLT_SLIP_BSDOS                 = 0xd
506 532
 	DLT_STANAG_5066_D_PDU          = 0xed
507 533
 	DLT_SUNATM                     = 0x7b
508 534
 	DLT_SYMANTEC_FIREWALL          = 0x63
535
+	DLT_TI_LLN_SNIFFER             = 0x10d
509 536
 	DLT_TZSP                       = 0x80
510 537
 	DLT_USB                        = 0xba
511 538
 	DLT_USBPCAP                    = 0xf9
539
+	DLT_USB_DARWIN                 = 0x10a
540
+	DLT_USB_FREEBSD                = 0xba
512 541
 	DLT_USB_LINUX                  = 0xbd
513 542
 	DLT_USB_LINUX_MMAPPED          = 0xdc
514 543
 	DLT_USER0                      = 0x93
@@ -527,10 +556,14 @@ const (
527 556
 	DLT_USER7                      = 0x9a
528 557
 	DLT_USER8                      = 0x9b
529 558
 	DLT_USER9                      = 0x9c
559
+	DLT_VSOCK                      = 0x10f
560
+	DLT_WATTSTOPPER_DLM            = 0x107
530 561
 	DLT_WIHART                     = 0xdf
531 562
 	DLT_WIRESHARK_UPPER_PDU        = 0xfc
532 563
 	DLT_X2E_SERIAL                 = 0xd5
533 564
 	DLT_X2E_XORAYA                 = 0xd6
565
+	DLT_ZWAVE_R1_R2                = 0x105
566
+	DLT_ZWAVE_R3                   = 0x106
534 567
 	DT_BLK                         = 0x6
535 568
 	DT_CHR                         = 0x2
536 569
 	DT_DIR                         = 0x4
@@ -548,6 +581,7 @@ const (
548 581
 	ECHONL                         = 0x10
549 582
 	ECHOPRT                        = 0x20
550 583
 	EVFILT_AIO                     = -0x3
584
+	EVFILT_EMPTY                   = -0xd
551 585
 	EVFILT_FS                      = -0x9
552 586
 	EVFILT_LIO                     = -0xa
553 587
 	EVFILT_PROC                    = -0x5
@@ -555,11 +589,12 @@ const (
555 589
 	EVFILT_READ                    = -0x1
556 590
 	EVFILT_SENDFILE                = -0xc
557 591
 	EVFILT_SIGNAL                  = -0x6
558
-	EVFILT_SYSCOUNT                = 0xc
592
+	EVFILT_SYSCOUNT                = 0xd
559 593
 	EVFILT_TIMER                   = -0x7
560 594
 	EVFILT_USER                    = -0xb
561 595
 	EVFILT_VNODE                   = -0x4
562 596
 	EVFILT_WRITE                   = -0x2
597
+	EVNAMEMAP_NAME_SIZE            = 0x40
563 598
 	EV_ADD                         = 0x1
564 599
 	EV_CLEAR                       = 0x20
565 600
 	EV_DELETE                      = 0x2
@@ -576,6 +611,7 @@ const (
576 611
 	EV_RECEIPT                     = 0x40
577 612
 	EV_SYSFLAGS                    = 0xf000
578 613
 	EXTA                           = 0x4b00
614
+	EXTATTR_MAXNAMELEN             = 0xff
579 615
 	EXTATTR_NAMESPACE_EMPTY        = 0x0
580 616
 	EXTATTR_NAMESPACE_SYSTEM       = 0x2
581 617
 	EXTATTR_NAMESPACE_USER         = 0x1
@@ -617,6 +653,7 @@ const (
617 653
 	IEXTEN                         = 0x400
618 654
 	IFAN_ARRIVAL                   = 0x0
619 655
 	IFAN_DEPARTURE                 = 0x1
656
+	IFCAP_WOL_MAGIC                = 0x2000
620 657
 	IFF_ALLMULTI                   = 0x200
621 658
 	IFF_ALTPHYS                    = 0x4000
622 659
 	IFF_BROADCAST                  = 0x2
@@ -633,6 +670,7 @@ const (
633 670
 	IFF_MONITOR                    = 0x40000
634 671
 	IFF_MULTICAST                  = 0x8000
635 672
 	IFF_NOARP                      = 0x80
673
+	IFF_NOGROUP                    = 0x800000
636 674
 	IFF_OACTIVE                    = 0x400
637 675
 	IFF_POINTOPOINT                = 0x10
638 676
 	IFF_PPROMISC                   = 0x20000
@@ -807,6 +845,7 @@ const (
807 845
 	IPV6_DSTOPTS                   = 0x32
808 846
 	IPV6_FLOWID                    = 0x43
809 847
 	IPV6_FLOWINFO_MASK             = 0xffffff0f
848
+	IPV6_FLOWLABEL_LEN             = 0x14
810 849
 	IPV6_FLOWLABEL_MASK            = 0xffff0f00
811 850
 	IPV6_FLOWTYPE                  = 0x44
812 851
 	IPV6_FRAGTTL                   = 0x78
@@ -827,13 +866,13 @@ const (
827 866
 	IPV6_MAX_GROUP_SRC_FILTER      = 0x200
828 867
 	IPV6_MAX_MEMBERSHIPS           = 0xfff
829 868
 	IPV6_MAX_SOCK_SRC_FILTER       = 0x80
830
-	IPV6_MIN_MEMBERSHIPS           = 0x1f
831 869
 	IPV6_MMTU                      = 0x500
832 870
 	IPV6_MSFILTER                  = 0x4a
833 871
 	IPV6_MULTICAST_HOPS            = 0xa
834 872
 	IPV6_MULTICAST_IF              = 0x9
835 873
 	IPV6_MULTICAST_LOOP            = 0xb
836 874
 	IPV6_NEXTHOP                   = 0x30
875
+	IPV6_ORIGDSTADDR               = 0x48
837 876
 	IPV6_PATHMTU                   = 0x2c
838 877
 	IPV6_PKTINFO                   = 0x2e
839 878
 	IPV6_PORTRANGE                 = 0xe
@@ -845,6 +884,7 @@ const (
845 884
 	IPV6_RECVFLOWID                = 0x46
846 885
 	IPV6_RECVHOPLIMIT              = 0x25
847 886
 	IPV6_RECVHOPOPTS               = 0x27
887
+	IPV6_RECVORIGDSTADDR           = 0x48
848 888
 	IPV6_RECVPATHMTU               = 0x2b
849 889
 	IPV6_RECVPKTINFO               = 0x24
850 890
 	IPV6_RECVRSSBUCKETID           = 0x47
@@ -905,10 +945,8 @@ const (
905 945
 	IP_MAX_MEMBERSHIPS             = 0xfff
906 946
 	IP_MAX_SOCK_MUTE_FILTER        = 0x80
907 947
 	IP_MAX_SOCK_SRC_FILTER         = 0x80
908
-	IP_MAX_SOURCE_FILTER           = 0x400
909 948
 	IP_MF                          = 0x2000
910 949
 	IP_MINTTL                      = 0x42
911
-	IP_MIN_MEMBERSHIPS             = 0x1f
912 950
 	IP_MSFILTER                    = 0x4a
913 951
 	IP_MSS                         = 0x240
914 952
 	IP_MULTICAST_IF                = 0x9
@@ -918,6 +956,7 @@ const (
918 956
 	IP_OFFMASK                     = 0x1fff
919 957
 	IP_ONESBCAST                   = 0x17
920 958
 	IP_OPTIONS                     = 0x1
959
+	IP_ORIGDSTADDR                 = 0x1b
921 960
 	IP_PORTRANGE                   = 0x13
922 961
 	IP_PORTRANGE_DEFAULT           = 0x0
923 962
 	IP_PORTRANGE_HIGH              = 0x1
@@ -926,6 +965,7 @@ const (
926 965
 	IP_RECVFLOWID                  = 0x5d
927 966
 	IP_RECVIF                      = 0x14
928 967
 	IP_RECVOPTS                    = 0x5
968
+	IP_RECVORIGDSTADDR             = 0x1b
929 969
 	IP_RECVRETOPTS                 = 0x6
930 970
 	IP_RECVRSSBUCKETID             = 0x5e
931 971
 	IP_RECVTOS                     = 0x44
@@ -976,6 +1016,7 @@ const (
976 1016
 	MAP_EXCL                       = 0x4000
977 1017
 	MAP_FILE                       = 0x0
978 1018
 	MAP_FIXED                      = 0x10
1019
+	MAP_GUARD                      = 0x2000
979 1020
 	MAP_HASSEMAPHORE               = 0x200
980 1021
 	MAP_NOCORE                     = 0x20000
981 1022
 	MAP_NOSYNC                     = 0x800
@@ -987,6 +1028,15 @@ const (
987 1028
 	MAP_RESERVED0100               = 0x100
988 1029
 	MAP_SHARED                     = 0x1
989 1030
 	MAP_STACK                      = 0x400
1031
+	MCAST_BLOCK_SOURCE             = 0x54
1032
+	MCAST_EXCLUDE                  = 0x2
1033
+	MCAST_INCLUDE                  = 0x1
1034
+	MCAST_JOIN_GROUP               = 0x50
1035
+	MCAST_JOIN_SOURCE_GROUP        = 0x52
1036
+	MCAST_LEAVE_GROUP              = 0x51
1037
+	MCAST_LEAVE_SOURCE_GROUP       = 0x53
1038
+	MCAST_UNBLOCK_SOURCE           = 0x55
1039
+	MCAST_UNDEFINED                = 0x0
990 1040
 	MCL_CURRENT                    = 0x1
991 1041
 	MCL_FUTURE                     = 0x2
992 1042
 	MNT_ACLS                       = 0x8000000
@@ -1027,10 +1077,12 @@ const (
1027 1077
 	MNT_SUSPEND                    = 0x4
1028 1078
 	MNT_SYNCHRONOUS                = 0x2
1029 1079
 	MNT_UNION                      = 0x20
1080
+	MNT_UNTRUSTED                  = 0x800000000
1030 1081
 	MNT_UPDATE                     = 0x10000
1031
-	MNT_UPDATEMASK                 = 0x2d8d0807e
1082
+	MNT_UPDATEMASK                 = 0xad8d0807e
1032 1083
 	MNT_USER                       = 0x8000
1033
-	MNT_VISFLAGMASK                = 0x3fef0ffff
1084
+	MNT_VERIFIED                   = 0x400000000
1085
+	MNT_VISFLAGMASK                = 0xffef0ffff
1034 1086
 	MNT_WAIT                       = 0x1
1035 1087
 	MSG_CMSG_CLOEXEC               = 0x40000
1036 1088
 	MSG_COMPAT                     = 0x8000
@@ -1059,6 +1111,7 @@ const (
1059 1111
 	NFDBITS                        = 0x40
1060 1112
 	NOFLSH                         = 0x80000000
1061 1113
 	NOKERNINFO                     = 0x2000000
1114
+	NOTE_ABSTIME                   = 0x10
1062 1115
 	NOTE_ATTRIB                    = 0x8
1063 1116
 	NOTE_CHILD                     = 0x4
1064 1117
 	NOTE_CLOSE                     = 0x100
@@ -1213,7 +1266,6 @@ const (
1213 1266
 	RTV_WEIGHT                     = 0x100
1214 1267
 	RT_ALL_FIBS                    = -0x1
1215 1268
 	RT_BLACKHOLE                   = 0x40
1216
-	RT_CACHING_CONTEXT             = 0x1
1217 1269
 	RT_DEFAULT_FIB                 = 0x0
1218 1270
 	RT_HAS_GW                      = 0x80
1219 1271
 	RT_HAS_HEADER                  = 0x10
@@ -1223,15 +1275,17 @@ const (
1223 1275
 	RT_LLE_CACHE                   = 0x100
1224 1276
 	RT_MAY_LOOP                    = 0x8
1225 1277
 	RT_MAY_LOOP_BIT                = 0x3
1226
-	RT_NORTREF                     = 0x2
1227 1278
 	RT_REJECT                      = 0x20
1228 1279
 	RUSAGE_CHILDREN                = -0x1
1229 1280
 	RUSAGE_SELF                    = 0x0
1230 1281
 	RUSAGE_THREAD                  = 0x1
1231 1282
 	SCM_BINTIME                    = 0x4
1232 1283
 	SCM_CREDS                      = 0x3
1284
+	SCM_MONOTONIC                  = 0x6
1285
+	SCM_REALTIME                   = 0x5
1233 1286
 	SCM_RIGHTS                     = 0x1
1234 1287
 	SCM_TIMESTAMP                  = 0x2
1288
+	SCM_TIME_INFO                  = 0x7
1235 1289
 	SHUT_RD                        = 0x0
1236 1290
 	SHUT_RDWR                      = 0x2
1237 1291
 	SHUT_WR                        = 0x1
@@ -1247,6 +1301,7 @@ const (
1247 1301
 	SIOCGETSGCNT                   = 0xc0207210
1248 1302
 	SIOCGETVIFCNT                  = 0xc028720f
1249 1303
 	SIOCGHIWAT                     = 0x40047301
1304
+	SIOCGHWADDR                    = 0xc020693e
1250 1305
 	SIOCGI2C                       = 0xc020693d
1251 1306
 	SIOCGIFADDR                    = 0xc0206921
1252 1307
 	SIOCGIFBRDADDR                 = 0xc0206923
@@ -1268,8 +1323,11 @@ const (
1268 1323
 	SIOCGIFPDSTADDR                = 0xc0206948
1269 1324
 	SIOCGIFPHYS                    = 0xc0206935
1270 1325
 	SIOCGIFPSRCADDR                = 0xc0206947
1326
+	SIOCGIFRSSHASH                 = 0xc0186997
1327
+	SIOCGIFRSSKEY                  = 0xc0946996
1271 1328
 	SIOCGIFSTATUS                  = 0xc331693b
1272 1329
 	SIOCGIFXMEDIA                  = 0xc030698b
1330
+	SIOCGLANPCP                    = 0xc0206998
1273 1331
 	SIOCGLOWAT                     = 0x40047303
1274 1332
 	SIOCGPGRP                      = 0x40047309
1275 1333
 	SIOCGPRIVATE_0                 = 0xc0206950
@@ -1300,6 +1358,7 @@ const (
1300 1358
 	SIOCSIFPHYS                    = 0x80206936
1301 1359
 	SIOCSIFRVNET                   = 0xc020695b
1302 1360
 	SIOCSIFVNET                    = 0xc020695a
1361
+	SIOCSLANPCP                    = 0x80206999
1303 1362
 	SIOCSLOWAT                     = 0x80047302
1304 1363
 	SIOCSPGRP                      = 0x80047308
1305 1364
 	SIOCSTUNFIB                    = 0x8020695f
@@ -1318,6 +1377,7 @@ const (
1318 1377
 	SO_BINTIME                     = 0x2000
1319 1378
 	SO_BROADCAST                   = 0x20
1320 1379
 	SO_DEBUG                       = 0x1
1380
+	SO_DOMAIN                      = 0x1019
1321 1381
 	SO_DONTROUTE                   = 0x10
1322 1382
 	SO_ERROR                       = 0x1007
1323 1383
 	SO_KEEPALIVE                   = 0x8
@@ -1326,6 +1386,7 @@ const (
1326 1386
 	SO_LISTENINCQLEN               = 0x1013
1327 1387
 	SO_LISTENQLEN                  = 0x1012
1328 1388
 	SO_LISTENQLIMIT                = 0x1011
1389
+	SO_MAX_PACING_RATE             = 0x1018
1329 1390
 	SO_NOSIGPIPE                   = 0x800
1330 1391
 	SO_NO_DDP                      = 0x8000
1331 1392
 	SO_NO_OFFLOAD                  = 0x4000
@@ -1338,11 +1399,19 @@ const (
1338 1399
 	SO_RCVTIMEO                    = 0x1006
1339 1400
 	SO_REUSEADDR                   = 0x4
1340 1401
 	SO_REUSEPORT                   = 0x200
1402
+	SO_REUSEPORT_LB                = 0x10000
1341 1403
 	SO_SETFIB                      = 0x1014
1342 1404
 	SO_SNDBUF                      = 0x1001
1343 1405
 	SO_SNDLOWAT                    = 0x1003
1344 1406
 	SO_SNDTIMEO                    = 0x1005
1345 1407
 	SO_TIMESTAMP                   = 0x400
1408
+	SO_TS_BINTIME                  = 0x1
1409
+	SO_TS_CLOCK                    = 0x1017
1410
+	SO_TS_CLOCK_MAX                = 0x3
1411
+	SO_TS_DEFAULT                  = 0x0
1412
+	SO_TS_MONOTONIC                = 0x3
1413
+	SO_TS_REALTIME                 = 0x2
1414
+	SO_TS_REALTIME_MICRO           = 0x0
1346 1415
 	SO_TYPE                        = 0x1008
1347 1416
 	SO_USELOOPBACK                 = 0x40
1348 1417
 	SO_USER_COOKIE                 = 0x1015
@@ -1386,10 +1455,45 @@ const (
1386 1455
 	TCOFLUSH                       = 0x2
1387 1456
 	TCOOFF                         = 0x1
1388 1457
 	TCOON                          = 0x2
1458
+	TCP_BBR_ACK_COMP_ALG           = 0x448
1459
+	TCP_BBR_DRAIN_INC_EXTRA        = 0x43c
1460
+	TCP_BBR_DRAIN_PG               = 0x42e
1461
+	TCP_BBR_EXTRA_GAIN             = 0x449
1462
+	TCP_BBR_IWINTSO                = 0x42b
1463
+	TCP_BBR_LOWGAIN_FD             = 0x436
1464
+	TCP_BBR_LOWGAIN_HALF           = 0x435
1465
+	TCP_BBR_LOWGAIN_THRESH         = 0x434
1466
+	TCP_BBR_MAX_RTO                = 0x439
1467
+	TCP_BBR_MIN_RTO                = 0x438
1468
+	TCP_BBR_ONE_RETRAN             = 0x431
1469
+	TCP_BBR_PACE_CROSS             = 0x442
1470
+	TCP_BBR_PACE_DEL_TAR           = 0x43f
1471
+	TCP_BBR_PACE_PER_SEC           = 0x43e
1472
+	TCP_BBR_PACE_SEG_MAX           = 0x440
1473
+	TCP_BBR_PACE_SEG_MIN           = 0x441
1474
+	TCP_BBR_PROBE_RTT_GAIN         = 0x44d
1475
+	TCP_BBR_PROBE_RTT_INT          = 0x430
1476
+	TCP_BBR_PROBE_RTT_LEN          = 0x44e
1477
+	TCP_BBR_RACK_RTT_USE           = 0x44a
1478
+	TCP_BBR_RECFORCE               = 0x42c
1479
+	TCP_BBR_REC_OVER_HPTS          = 0x43a
1480
+	TCP_BBR_RETRAN_WTSO            = 0x44b
1481
+	TCP_BBR_RWND_IS_APP            = 0x42f
1482
+	TCP_BBR_STARTUP_EXIT_EPOCH     = 0x43d
1483
+	TCP_BBR_STARTUP_LOSS_EXIT      = 0x432
1484
+	TCP_BBR_STARTUP_PG             = 0x42d
1485
+	TCP_BBR_UNLIMITED              = 0x43b
1486
+	TCP_BBR_USEDEL_RATE            = 0x437
1487
+	TCP_BBR_USE_LOWGAIN            = 0x433
1389 1488
 	TCP_CA_NAME_MAX                = 0x10
1390 1489
 	TCP_CCALGOOPT                  = 0x41
1391 1490
 	TCP_CONGESTION                 = 0x40
1491
+	TCP_DATA_AFTER_CLOSE           = 0x44c
1492
+	TCP_DELACK                     = 0x48
1392 1493
 	TCP_FASTOPEN                   = 0x401
1494
+	TCP_FASTOPEN_MAX_COOKIE_LEN    = 0x10
1495
+	TCP_FASTOPEN_MIN_COOKIE_LEN    = 0x4
1496
+	TCP_FASTOPEN_PSK_LEN           = 0x10
1393 1497
 	TCP_FUNCTION_BLK               = 0x2000
1394 1498
 	TCP_FUNCTION_NAME_LEN_MAX      = 0x20
1395 1499
 	TCP_INFO                       = 0x20
@@ -1397,6 +1501,12 @@ const (
1397 1501
 	TCP_KEEPIDLE                   = 0x100
1398 1502
 	TCP_KEEPINIT                   = 0x80
1399 1503
 	TCP_KEEPINTVL                  = 0x200
1504
+	TCP_LOG                        = 0x22
1505
+	TCP_LOGBUF                     = 0x23
1506
+	TCP_LOGDUMP                    = 0x25
1507
+	TCP_LOGDUMPID                  = 0x26
1508
+	TCP_LOGID                      = 0x24
1509
+	TCP_LOG_ID_LEN                 = 0x40
1400 1510
 	TCP_MAXBURST                   = 0x4
1401 1511
 	TCP_MAXHLEN                    = 0x3c
1402 1512
 	TCP_MAXOLEN                    = 0x28
@@ -1412,8 +1522,30 @@ const (
1412 1522
 	TCP_NOPUSH                     = 0x4
1413 1523
 	TCP_PCAP_IN                    = 0x1000
1414 1524
 	TCP_PCAP_OUT                   = 0x800
1525
+	TCP_RACK_EARLY_RECOV           = 0x423
1526
+	TCP_RACK_EARLY_SEG             = 0x424
1527
+	TCP_RACK_IDLE_REDUCE_HIGH      = 0x444
1528
+	TCP_RACK_MIN_PACE              = 0x445
1529
+	TCP_RACK_MIN_PACE_SEG          = 0x446
1530
+	TCP_RACK_MIN_TO                = 0x422
1531
+	TCP_RACK_PACE_ALWAYS           = 0x41f
1532
+	TCP_RACK_PACE_MAX_SEG          = 0x41e
1533
+	TCP_RACK_PACE_REDUCE           = 0x41d
1534
+	TCP_RACK_PKT_DELAY             = 0x428
1535
+	TCP_RACK_PROP                  = 0x41b
1536
+	TCP_RACK_PROP_RATE             = 0x420
1537
+	TCP_RACK_PRR_SENDALOT          = 0x421
1538
+	TCP_RACK_REORD_FADE            = 0x426
1539
+	TCP_RACK_REORD_THRESH          = 0x425
1540
+	TCP_RACK_SESS_CWV              = 0x42a
1541
+	TCP_RACK_TLP_INC_VAR           = 0x429
1542
+	TCP_RACK_TLP_REDUCE            = 0x41c
1543
+	TCP_RACK_TLP_THRESH            = 0x427
1544
+	TCP_RACK_TLP_USE               = 0x447
1415 1545
 	TCP_VENDOR                     = 0x80000000
1416 1546
 	TCSAFLUSH                      = 0x2
1547
+	TIMER_ABSTIME                  = 0x1
1548
+	TIMER_RELTIME                  = 0x0
1417 1549
 	TIOCCBRK                       = 0x2000747a
1418 1550
 	TIOCCDTR                       = 0x20007478
1419 1551
 	TIOCCONS                       = 0x80047462
@@ -1477,6 +1609,8 @@ const (
1477 1609
 	TIOCTIMESTAMP                  = 0x40107459
1478 1610
 	TIOCUCNTL                      = 0x80047466
1479 1611
 	TOSTOP                         = 0x400000
1612
+	UTIME_NOW                      = -0x1
1613
+	UTIME_OMIT                     = -0x2
1480 1614
 	VDISCARD                       = 0xf
1481 1615
 	VDSUSP                         = 0xb
1482 1616
 	VEOF                           = 0x0

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

@@ -355,6 +355,22 @@ const (
355 355
 	CTL_KERN                       = 0x1
356 356
 	CTL_MAXNAME                    = 0x18
357 357
 	CTL_NET                        = 0x4
358
+	DIOCGATTR                      = 0xc144648e
359
+	DIOCGDELETE                    = 0x80106488
360
+	DIOCGFLUSH                     = 0x20006487
361
+	DIOCGFRONTSTUFF                = 0x40086486
362
+	DIOCGFWHEADS                   = 0x40046483
363
+	DIOCGFWSECTORS                 = 0x40046482
364
+	DIOCGIDENT                     = 0x41006489
365
+	DIOCGMEDIASIZE                 = 0x40086481
366
+	DIOCGPHYSPATH                  = 0x4400648d
367
+	DIOCGPROVIDERNAME              = 0x4400648a
368
+	DIOCGSECTORSIZE                = 0x40046480
369
+	DIOCGSTRIPEOFFSET              = 0x4008648c
370
+	DIOCGSTRIPESIZE                = 0x4008648b
371
+	DIOCSKERNELDUMP                = 0x804c6490
372
+	DIOCSKERNELDUMP_FREEBSD11      = 0x80046485
373
+	DIOCZONECMD                    = 0xc06c648f
358 374
 	DLT_A429                       = 0xb8
359 375
 	DLT_A653_ICM                   = 0xb9
360 376
 	DLT_AIRONET_HEADER             = 0x78

+ 147
- 12
vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go View File

@@ -355,6 +355,22 @@ const (
355 355
 	CTL_KERN                       = 0x1
356 356
 	CTL_MAXNAME                    = 0x18
357 357
 	CTL_NET                        = 0x4
358
+	DIOCGATTR                      = 0xc148648e
359
+	DIOCGDELETE                    = 0x80106488
360
+	DIOCGFLUSH                     = 0x20006487
361
+	DIOCGFRONTSTUFF                = 0x40086486
362
+	DIOCGFWHEADS                   = 0x40046483
363
+	DIOCGFWSECTORS                 = 0x40046482
364
+	DIOCGIDENT                     = 0x41006489
365
+	DIOCGMEDIASIZE                 = 0x40086481
366
+	DIOCGPHYSPATH                  = 0x4400648d
367
+	DIOCGPROVIDERNAME              = 0x4400648a
368
+	DIOCGSECTORSIZE                = 0x40046480
369
+	DIOCGSTRIPEOFFSET              = 0x4008648c
370
+	DIOCGSTRIPESIZE                = 0x4008648b
371
+	DIOCSKERNELDUMP                = 0x80506490
372
+	DIOCSKERNELDUMP_FREEBSD11      = 0x80046485
373
+	DIOCZONECMD                    = 0xc080648f
358 374
 	DLT_A429                       = 0xb8
359 375
 	DLT_A653_ICM                   = 0xb9
360 376
 	DLT_AIRONET_HEADER             = 0x78
@@ -379,11 +395,14 @@ const (
379 395
 	DLT_CHAOS                      = 0x5
380 396
 	DLT_CHDLC                      = 0x68
381 397
 	DLT_CISCO_IOS                  = 0x76
398
+	DLT_CLASS_NETBSD_RAWAF         = 0x2240000
382 399
 	DLT_C_HDLC                     = 0x68
383 400
 	DLT_C_HDLC_WITH_DIR            = 0xcd
384 401
 	DLT_DBUS                       = 0xe7
385 402
 	DLT_DECT                       = 0xdd
403
+	DLT_DISPLAYPORT_AUX            = 0x113
386 404
 	DLT_DOCSIS                     = 0x8f
405
+	DLT_DOCSIS31_XRA31             = 0x111
387 406
 	DLT_DVB_CI                     = 0xeb
388 407
 	DLT_ECONET                     = 0x73
389 408
 	DLT_EN10MB                     = 0x1
@@ -393,6 +412,7 @@ const (
393 412
 	DLT_ERF                        = 0xc5
394 413
 	DLT_ERF_ETH                    = 0xaf
395 414
 	DLT_ERF_POS                    = 0xb0
415
+	DLT_ETHERNET_MPACKET           = 0x112
396 416
 	DLT_FC_2                       = 0xe0
397 417
 	DLT_FC_2_WITH_FRAME_DELIMS     = 0xe1
398 418
 	DLT_FDDI                       = 0xa
@@ -406,7 +426,6 @@ const (
406 426
 	DLT_GPRS_LLC                   = 0xa9
407 427
 	DLT_GSMTAP_ABIS                = 0xda
408 428
 	DLT_GSMTAP_UM                  = 0xd9
409
-	DLT_HHDLC                      = 0x79
410 429
 	DLT_IBM_SN                     = 0x92
411 430
 	DLT_IBM_SP                     = 0x91
412 431
 	DLT_IEEE802                    = 0x6
@@ -429,6 +448,7 @@ const (
429 448
 	DLT_IPV4                       = 0xe4
430 449
 	DLT_IPV6                       = 0xe5
431 450
 	DLT_IP_OVER_FC                 = 0x7a
451
+	DLT_ISO_14443                  = 0x108
432 452
 	DLT_JUNIPER_ATM1               = 0x89
433 453
 	DLT_JUNIPER_ATM2               = 0x87
434 454
 	DLT_JUNIPER_ATM_CEMIC          = 0xee
@@ -461,8 +481,9 @@ const (
461 481
 	DLT_LINUX_PPP_WITHDIRECTION    = 0xa6
462 482
 	DLT_LINUX_SLL                  = 0x71
463 483
 	DLT_LOOP                       = 0x6c
484
+	DLT_LORATAP                    = 0x10e
464 485
 	DLT_LTALK                      = 0x72
465
-	DLT_MATCHING_MAX               = 0x104
486
+	DLT_MATCHING_MAX               = 0x113
466 487
 	DLT_MATCHING_MIN               = 0x68
467 488
 	DLT_MFR                        = 0xb6
468 489
 	DLT_MOST                       = 0xd3
@@ -478,14 +499,16 @@ const (
478 499
 	DLT_NFC_LLCP                   = 0xf5
479 500
 	DLT_NFLOG                      = 0xef
480 501
 	DLT_NG40                       = 0xf4
502
+	DLT_NORDIC_BLE                 = 0x110
481 503
 	DLT_NULL                       = 0x0
504
+	DLT_OPENFLOW                   = 0x10b
482 505
 	DLT_PCI_EXP                    = 0x7d
483 506
 	DLT_PFLOG                      = 0x75
484 507
 	DLT_PFSYNC                     = 0x79
485 508
 	DLT_PKTAP                      = 0x102
486 509
 	DLT_PPI                        = 0xc0
487 510
 	DLT_PPP                        = 0x9
488
-	DLT_PPP_BSDOS                  = 0x10
511
+	DLT_PPP_BSDOS                  = 0xe
489 512
 	DLT_PPP_ETHER                  = 0x33
490 513
 	DLT_PPP_PPPD                   = 0xa6
491 514
 	DLT_PPP_SERIAL                 = 0x32
@@ -496,19 +519,25 @@ const (
496 519
 	DLT_PRONET                     = 0x4
497 520
 	DLT_RAIF1                      = 0xc6
498 521
 	DLT_RAW                        = 0xc
522
+	DLT_RDS                        = 0x109
523
+	DLT_REDBACK_SMARTEDGE          = 0x20
499 524
 	DLT_RIO                        = 0x7c
500 525
 	DLT_RTAC_SERIAL                = 0xfa
501 526
 	DLT_SCCP                       = 0x8e
502 527
 	DLT_SCTP                       = 0xf8
528
+	DLT_SDLC                       = 0x10c
503 529
 	DLT_SITA                       = 0xc4
504 530
 	DLT_SLIP                       = 0x8
505
-	DLT_SLIP_BSDOS                 = 0xf
531
+	DLT_SLIP_BSDOS                 = 0xd
506 532
 	DLT_STANAG_5066_D_PDU          = 0xed
507 533
 	DLT_SUNATM                     = 0x7b
508 534
 	DLT_SYMANTEC_FIREWALL          = 0x63
535
+	DLT_TI_LLN_SNIFFER             = 0x10d
509 536
 	DLT_TZSP                       = 0x80
510 537
 	DLT_USB                        = 0xba
511 538
 	DLT_USBPCAP                    = 0xf9
539
+	DLT_USB_DARWIN                 = 0x10a
540
+	DLT_USB_FREEBSD                = 0xba
512 541
 	DLT_USB_LINUX                  = 0xbd
513 542
 	DLT_USB_LINUX_MMAPPED          = 0xdc
514 543
 	DLT_USER0                      = 0x93
@@ -527,10 +556,14 @@ const (
527 556
 	DLT_USER7                      = 0x9a
528 557
 	DLT_USER8                      = 0x9b
529 558
 	DLT_USER9                      = 0x9c
559
+	DLT_VSOCK                      = 0x10f
560
+	DLT_WATTSTOPPER_DLM            = 0x107
530 561
 	DLT_WIHART                     = 0xdf
531 562
 	DLT_WIRESHARK_UPPER_PDU        = 0xfc
532 563
 	DLT_X2E_SERIAL                 = 0xd5
533 564
 	DLT_X2E_XORAYA                 = 0xd6
565
+	DLT_ZWAVE_R1_R2                = 0x105
566
+	DLT_ZWAVE_R3                   = 0x106
534 567
 	DT_BLK                         = 0x6
535 568
 	DT_CHR                         = 0x2
536 569
 	DT_DIR                         = 0x4
@@ -548,6 +581,7 @@ const (
548 581
 	ECHONL                         = 0x10
549 582
 	ECHOPRT                        = 0x20
550 583
 	EVFILT_AIO                     = -0x3
584
+	EVFILT_EMPTY                   = -0xd
551 585
 	EVFILT_FS                      = -0x9
552 586
 	EVFILT_LIO                     = -0xa
553 587
 	EVFILT_PROC                    = -0x5
@@ -555,11 +589,12 @@ const (
555 589
 	EVFILT_READ                    = -0x1
556 590
 	EVFILT_SENDFILE                = -0xc
557 591
 	EVFILT_SIGNAL                  = -0x6
558
-	EVFILT_SYSCOUNT                = 0xc
592
+	EVFILT_SYSCOUNT                = 0xd
559 593
 	EVFILT_TIMER                   = -0x7
560 594
 	EVFILT_USER                    = -0xb
561 595
 	EVFILT_VNODE                   = -0x4
562 596
 	EVFILT_WRITE                   = -0x2
597
+	EVNAMEMAP_NAME_SIZE            = 0x40
563 598
 	EV_ADD                         = 0x1
564 599
 	EV_CLEAR                       = 0x20
565 600
 	EV_DELETE                      = 0x2
@@ -576,6 +611,7 @@ const (
576 611
 	EV_RECEIPT                     = 0x40
577 612
 	EV_SYSFLAGS                    = 0xf000
578 613
 	EXTA                           = 0x4b00
614
+	EXTATTR_MAXNAMELEN             = 0xff
579 615
 	EXTATTR_NAMESPACE_EMPTY        = 0x0
580 616
 	EXTATTR_NAMESPACE_SYSTEM       = 0x2
581 617
 	EXTATTR_NAMESPACE_USER         = 0x1
@@ -617,6 +653,7 @@ const (
617 653
 	IEXTEN                         = 0x400
618 654
 	IFAN_ARRIVAL                   = 0x0
619 655
 	IFAN_DEPARTURE                 = 0x1
656
+	IFCAP_WOL_MAGIC                = 0x2000
620 657
 	IFF_ALLMULTI                   = 0x200
621 658
 	IFF_ALTPHYS                    = 0x4000
622 659
 	IFF_BROADCAST                  = 0x2
@@ -633,6 +670,7 @@ const (
633 670
 	IFF_MONITOR                    = 0x40000
634 671
 	IFF_MULTICAST                  = 0x8000
635 672
 	IFF_NOARP                      = 0x80
673
+	IFF_NOGROUP                    = 0x800000
636 674
 	IFF_OACTIVE                    = 0x400
637 675
 	IFF_POINTOPOINT                = 0x10
638 676
 	IFF_PPROMISC                   = 0x20000
@@ -807,6 +845,7 @@ const (
807 845
 	IPV6_DSTOPTS                   = 0x32
808 846
 	IPV6_FLOWID                    = 0x43
809 847
 	IPV6_FLOWINFO_MASK             = 0xffffff0f
848
+	IPV6_FLOWLABEL_LEN             = 0x14
810 849
 	IPV6_FLOWLABEL_MASK            = 0xffff0f00
811 850
 	IPV6_FLOWTYPE                  = 0x44
812 851
 	IPV6_FRAGTTL                   = 0x78
@@ -827,13 +866,13 @@ const (
827 866
 	IPV6_MAX_GROUP_SRC_FILTER      = 0x200
828 867
 	IPV6_MAX_MEMBERSHIPS           = 0xfff
829 868
 	IPV6_MAX_SOCK_SRC_FILTER       = 0x80
830
-	IPV6_MIN_MEMBERSHIPS           = 0x1f
831 869
 	IPV6_MMTU                      = 0x500
832 870
 	IPV6_MSFILTER                  = 0x4a
833 871
 	IPV6_MULTICAST_HOPS            = 0xa
834 872
 	IPV6_MULTICAST_IF              = 0x9
835 873
 	IPV6_MULTICAST_LOOP            = 0xb
836 874
 	IPV6_NEXTHOP                   = 0x30
875
+	IPV6_ORIGDSTADDR               = 0x48
837 876
 	IPV6_PATHMTU                   = 0x2c
838 877
 	IPV6_PKTINFO                   = 0x2e
839 878
 	IPV6_PORTRANGE                 = 0xe
@@ -845,6 +884,7 @@ const (
845 884
 	IPV6_RECVFLOWID                = 0x46
846 885
 	IPV6_RECVHOPLIMIT              = 0x25
847 886
 	IPV6_RECVHOPOPTS               = 0x27
887
+	IPV6_RECVORIGDSTADDR           = 0x48
848 888
 	IPV6_RECVPATHMTU               = 0x2b
849 889
 	IPV6_RECVPKTINFO               = 0x24
850 890
 	IPV6_RECVRSSBUCKETID           = 0x47
@@ -905,10 +945,8 @@ const (
905 945
 	IP_MAX_MEMBERSHIPS             = 0xfff
906 946
 	IP_MAX_SOCK_MUTE_FILTER        = 0x80
907 947
 	IP_MAX_SOCK_SRC_FILTER         = 0x80
908
-	IP_MAX_SOURCE_FILTER           = 0x400
909 948
 	IP_MF                          = 0x2000
910 949
 	IP_MINTTL                      = 0x42
911
-	IP_MIN_MEMBERSHIPS             = 0x1f
912 950
 	IP_MSFILTER                    = 0x4a
913 951
 	IP_MSS                         = 0x240
914 952
 	IP_MULTICAST_IF                = 0x9
@@ -918,6 +956,7 @@ const (
918 956
 	IP_OFFMASK                     = 0x1fff
919 957
 	IP_ONESBCAST                   = 0x17
920 958
 	IP_OPTIONS                     = 0x1
959
+	IP_ORIGDSTADDR                 = 0x1b
921 960
 	IP_PORTRANGE                   = 0x13
922 961
 	IP_PORTRANGE_DEFAULT           = 0x0
923 962
 	IP_PORTRANGE_HIGH              = 0x1
@@ -926,6 +965,7 @@ const (
926 965
 	IP_RECVFLOWID                  = 0x5d
927 966
 	IP_RECVIF                      = 0x14
928 967
 	IP_RECVOPTS                    = 0x5
968
+	IP_RECVORIGDSTADDR             = 0x1b
929 969
 	IP_RECVRETOPTS                 = 0x6
930 970
 	IP_RECVRSSBUCKETID             = 0x5e
931 971
 	IP_RECVTOS                     = 0x44
@@ -976,6 +1016,7 @@ const (
976 1016
 	MAP_EXCL                       = 0x4000
977 1017
 	MAP_FILE                       = 0x0
978 1018
 	MAP_FIXED                      = 0x10
1019
+	MAP_GUARD                      = 0x2000
979 1020
 	MAP_HASSEMAPHORE               = 0x200
980 1021
 	MAP_NOCORE                     = 0x20000
981 1022
 	MAP_NOSYNC                     = 0x800
@@ -987,6 +1028,15 @@ const (
987 1028
 	MAP_RESERVED0100               = 0x100
988 1029
 	MAP_SHARED                     = 0x1
989 1030
 	MAP_STACK                      = 0x400
1031
+	MCAST_BLOCK_SOURCE             = 0x54
1032
+	MCAST_EXCLUDE                  = 0x2
1033
+	MCAST_INCLUDE                  = 0x1
1034
+	MCAST_JOIN_GROUP               = 0x50
1035
+	MCAST_JOIN_SOURCE_GROUP        = 0x52
1036
+	MCAST_LEAVE_GROUP              = 0x51
1037
+	MCAST_LEAVE_SOURCE_GROUP       = 0x53
1038
+	MCAST_UNBLOCK_SOURCE           = 0x55
1039
+	MCAST_UNDEFINED                = 0x0
990 1040
 	MCL_CURRENT                    = 0x1
991 1041
 	MCL_FUTURE                     = 0x2
992 1042
 	MNT_ACLS                       = 0x8000000
@@ -1027,10 +1077,12 @@ const (
1027 1077
 	MNT_SUSPEND                    = 0x4
1028 1078
 	MNT_SYNCHRONOUS                = 0x2
1029 1079
 	MNT_UNION                      = 0x20
1080
+	MNT_UNTRUSTED                  = 0x800000000
1030 1081
 	MNT_UPDATE                     = 0x10000
1031
-	MNT_UPDATEMASK                 = 0x2d8d0807e
1082
+	MNT_UPDATEMASK                 = 0xad8d0807e
1032 1083
 	MNT_USER                       = 0x8000
1033
-	MNT_VISFLAGMASK                = 0x3fef0ffff
1084
+	MNT_VERIFIED                   = 0x400000000
1085
+	MNT_VISFLAGMASK                = 0xffef0ffff
1034 1086
 	MNT_WAIT                       = 0x1
1035 1087
 	MSG_CMSG_CLOEXEC               = 0x40000
1036 1088
 	MSG_COMPAT                     = 0x8000
@@ -1059,6 +1111,7 @@ const (
1059 1111
 	NFDBITS                        = 0x40
1060 1112
 	NOFLSH                         = 0x80000000
1061 1113
 	NOKERNINFO                     = 0x2000000
1114
+	NOTE_ABSTIME                   = 0x10
1062 1115
 	NOTE_ATTRIB                    = 0x8
1063 1116
 	NOTE_CHILD                     = 0x4
1064 1117
 	NOTE_CLOSE                     = 0x100
@@ -1213,7 +1266,6 @@ const (
1213 1266
 	RTV_WEIGHT                     = 0x100
1214 1267
 	RT_ALL_FIBS                    = -0x1
1215 1268
 	RT_BLACKHOLE                   = 0x40
1216
-	RT_CACHING_CONTEXT             = 0x1
1217 1269
 	RT_DEFAULT_FIB                 = 0x0
1218 1270
 	RT_HAS_GW                      = 0x80
1219 1271
 	RT_HAS_HEADER                  = 0x10
@@ -1223,15 +1275,17 @@ const (
1223 1275
 	RT_LLE_CACHE                   = 0x100
1224 1276
 	RT_MAY_LOOP                    = 0x8
1225 1277
 	RT_MAY_LOOP_BIT                = 0x3
1226
-	RT_NORTREF                     = 0x2
1227 1278
 	RT_REJECT                      = 0x20
1228 1279
 	RUSAGE_CHILDREN                = -0x1
1229 1280
 	RUSAGE_SELF                    = 0x0
1230 1281
 	RUSAGE_THREAD                  = 0x1
1231 1282
 	SCM_BINTIME                    = 0x4
1232 1283
 	SCM_CREDS                      = 0x3
1284
+	SCM_MONOTONIC                  = 0x6
1285
+	SCM_REALTIME                   = 0x5
1233 1286
 	SCM_RIGHTS                     = 0x1
1234 1287
 	SCM_TIMESTAMP                  = 0x2
1288
+	SCM_TIME_INFO                  = 0x7
1235 1289
 	SHUT_RD                        = 0x0
1236 1290
 	SHUT_RDWR                      = 0x2
1237 1291
 	SHUT_WR                        = 0x1
@@ -1247,6 +1301,7 @@ const (
1247 1301
 	SIOCGETSGCNT                   = 0xc0207210
1248 1302
 	SIOCGETVIFCNT                  = 0xc028720f
1249 1303
 	SIOCGHIWAT                     = 0x40047301
1304
+	SIOCGHWADDR                    = 0xc020693e
1250 1305
 	SIOCGI2C                       = 0xc020693d
1251 1306
 	SIOCGIFADDR                    = 0xc0206921
1252 1307
 	SIOCGIFBRDADDR                 = 0xc0206923
@@ -1268,8 +1323,11 @@ const (
1268 1323
 	SIOCGIFPDSTADDR                = 0xc0206948
1269 1324
 	SIOCGIFPHYS                    = 0xc0206935
1270 1325
 	SIOCGIFPSRCADDR                = 0xc0206947
1326
+	SIOCGIFRSSHASH                 = 0xc0186997
1327
+	SIOCGIFRSSKEY                  = 0xc0946996
1271 1328
 	SIOCGIFSTATUS                  = 0xc331693b
1272 1329
 	SIOCGIFXMEDIA                  = 0xc030698b
1330
+	SIOCGLANPCP                    = 0xc0206998
1273 1331
 	SIOCGLOWAT                     = 0x40047303
1274 1332
 	SIOCGPGRP                      = 0x40047309
1275 1333
 	SIOCGPRIVATE_0                 = 0xc0206950
@@ -1300,6 +1358,7 @@ const (
1300 1358
 	SIOCSIFPHYS                    = 0x80206936
1301 1359
 	SIOCSIFRVNET                   = 0xc020695b
1302 1360
 	SIOCSIFVNET                    = 0xc020695a
1361
+	SIOCSLANPCP                    = 0x80206999
1303 1362
 	SIOCSLOWAT                     = 0x80047302
1304 1363
 	SIOCSPGRP                      = 0x80047308
1305 1364
 	SIOCSTUNFIB                    = 0x8020695f
@@ -1318,6 +1377,7 @@ const (
1318 1377
 	SO_BINTIME                     = 0x2000
1319 1378
 	SO_BROADCAST                   = 0x20
1320 1379
 	SO_DEBUG                       = 0x1
1380
+	SO_DOMAIN                      = 0x1019
1321 1381
 	SO_DONTROUTE                   = 0x10
1322 1382
 	SO_ERROR                       = 0x1007
1323 1383
 	SO_KEEPALIVE                   = 0x8
@@ -1326,6 +1386,7 @@ const (
1326 1386
 	SO_LISTENINCQLEN               = 0x1013
1327 1387
 	SO_LISTENQLEN                  = 0x1012
1328 1388
 	SO_LISTENQLIMIT                = 0x1011
1389
+	SO_MAX_PACING_RATE             = 0x1018
1329 1390
 	SO_NOSIGPIPE                   = 0x800
1330 1391
 	SO_NO_DDP                      = 0x8000
1331 1392
 	SO_NO_OFFLOAD                  = 0x4000
@@ -1338,11 +1399,19 @@ const (
1338 1399
 	SO_RCVTIMEO                    = 0x1006
1339 1400
 	SO_REUSEADDR                   = 0x4
1340 1401
 	SO_REUSEPORT                   = 0x200
1402
+	SO_REUSEPORT_LB                = 0x10000
1341 1403
 	SO_SETFIB                      = 0x1014
1342 1404
 	SO_SNDBUF                      = 0x1001
1343 1405
 	SO_SNDLOWAT                    = 0x1003
1344 1406
 	SO_SNDTIMEO                    = 0x1005
1345 1407
 	SO_TIMESTAMP                   = 0x400
1408
+	SO_TS_BINTIME                  = 0x1
1409
+	SO_TS_CLOCK                    = 0x1017
1410
+	SO_TS_CLOCK_MAX                = 0x3
1411
+	SO_TS_DEFAULT                  = 0x0
1412
+	SO_TS_MONOTONIC                = 0x3
1413
+	SO_TS_REALTIME                 = 0x2
1414
+	SO_TS_REALTIME_MICRO           = 0x0
1346 1415
 	SO_TYPE                        = 0x1008
1347 1416
 	SO_USELOOPBACK                 = 0x40
1348 1417
 	SO_USER_COOKIE                 = 0x1015
@@ -1386,10 +1455,45 @@ const (
1386 1455
 	TCOFLUSH                       = 0x2
1387 1456
 	TCOOFF                         = 0x1
1388 1457
 	TCOON                          = 0x2
1458
+	TCP_BBR_ACK_COMP_ALG           = 0x448
1459
+	TCP_BBR_DRAIN_INC_EXTRA        = 0x43c
1460
+	TCP_BBR_DRAIN_PG               = 0x42e
1461
+	TCP_BBR_EXTRA_GAIN             = 0x449
1462
+	TCP_BBR_IWINTSO                = 0x42b
1463
+	TCP_BBR_LOWGAIN_FD             = 0x436
1464
+	TCP_BBR_LOWGAIN_HALF           = 0x435
1465
+	TCP_BBR_LOWGAIN_THRESH         = 0x434
1466
+	TCP_BBR_MAX_RTO                = 0x439
1467
+	TCP_BBR_MIN_RTO                = 0x438
1468
+	TCP_BBR_ONE_RETRAN             = 0x431
1469
+	TCP_BBR_PACE_CROSS             = 0x442
1470
+	TCP_BBR_PACE_DEL_TAR           = 0x43f
1471
+	TCP_BBR_PACE_PER_SEC           = 0x43e
1472
+	TCP_BBR_PACE_SEG_MAX           = 0x440
1473
+	TCP_BBR_PACE_SEG_MIN           = 0x441
1474
+	TCP_BBR_PROBE_RTT_GAIN         = 0x44d
1475
+	TCP_BBR_PROBE_RTT_INT          = 0x430
1476
+	TCP_BBR_PROBE_RTT_LEN          = 0x44e
1477
+	TCP_BBR_RACK_RTT_USE           = 0x44a
1478
+	TCP_BBR_RECFORCE               = 0x42c
1479
+	TCP_BBR_REC_OVER_HPTS          = 0x43a
1480
+	TCP_BBR_RETRAN_WTSO            = 0x44b
1481
+	TCP_BBR_RWND_IS_APP            = 0x42f
1482
+	TCP_BBR_STARTUP_EXIT_EPOCH     = 0x43d
1483
+	TCP_BBR_STARTUP_LOSS_EXIT      = 0x432
1484
+	TCP_BBR_STARTUP_PG             = 0x42d
1485
+	TCP_BBR_UNLIMITED              = 0x43b
1486
+	TCP_BBR_USEDEL_RATE            = 0x437
1487
+	TCP_BBR_USE_LOWGAIN            = 0x433
1389 1488
 	TCP_CA_NAME_MAX                = 0x10
1390 1489
 	TCP_CCALGOOPT                  = 0x41
1391 1490
 	TCP_CONGESTION                 = 0x40
1491
+	TCP_DATA_AFTER_CLOSE           = 0x44c
1492
+	TCP_DELACK                     = 0x48
1392 1493
 	TCP_FASTOPEN                   = 0x401
1494
+	TCP_FASTOPEN_MAX_COOKIE_LEN    = 0x10
1495
+	TCP_FASTOPEN_MIN_COOKIE_LEN    = 0x4
1496
+	TCP_FASTOPEN_PSK_LEN           = 0x10
1393 1497
 	TCP_FUNCTION_BLK               = 0x2000
1394 1498
 	TCP_FUNCTION_NAME_LEN_MAX      = 0x20
1395 1499
 	TCP_INFO                       = 0x20
@@ -1397,6 +1501,12 @@ const (
1397 1501
 	TCP_KEEPIDLE                   = 0x100
1398 1502
 	TCP_KEEPINIT                   = 0x80
1399 1503
 	TCP_KEEPINTVL                  = 0x200
1504
+	TCP_LOG                        = 0x22
1505
+	TCP_LOGBUF                     = 0x23
1506
+	TCP_LOGDUMP                    = 0x25
1507
+	TCP_LOGDUMPID                  = 0x26
1508
+	TCP_LOGID                      = 0x24
1509
+	TCP_LOG_ID_LEN                 = 0x40
1400 1510
 	TCP_MAXBURST                   = 0x4
1401 1511
 	TCP_MAXHLEN                    = 0x3c
1402 1512
 	TCP_MAXOLEN                    = 0x28
@@ -1412,8 +1522,30 @@ const (
1412 1522
 	TCP_NOPUSH                     = 0x4
1413 1523
 	TCP_PCAP_IN                    = 0x1000
1414 1524
 	TCP_PCAP_OUT                   = 0x800
1525
+	TCP_RACK_EARLY_RECOV           = 0x423
1526
+	TCP_RACK_EARLY_SEG             = 0x424
1527
+	TCP_RACK_IDLE_REDUCE_HIGH      = 0x444
1528
+	TCP_RACK_MIN_PACE              = 0x445
1529
+	TCP_RACK_MIN_PACE_SEG          = 0x446
1530
+	TCP_RACK_MIN_TO                = 0x422
1531
+	TCP_RACK_PACE_ALWAYS           = 0x41f
1532
+	TCP_RACK_PACE_MAX_SEG          = 0x41e
1533
+	TCP_RACK_PACE_REDUCE           = 0x41d
1534
+	TCP_RACK_PKT_DELAY             = 0x428
1535
+	TCP_RACK_PROP                  = 0x41b
1536
+	TCP_RACK_PROP_RATE             = 0x420
1537
+	TCP_RACK_PRR_SENDALOT          = 0x421
1538
+	TCP_RACK_REORD_FADE            = 0x426
1539
+	TCP_RACK_REORD_THRESH          = 0x425
1540
+	TCP_RACK_SESS_CWV              = 0x42a
1541
+	TCP_RACK_TLP_INC_VAR           = 0x429
1542
+	TCP_RACK_TLP_REDUCE            = 0x41c
1543
+	TCP_RACK_TLP_THRESH            = 0x427
1544
+	TCP_RACK_TLP_USE               = 0x447
1415 1545
 	TCP_VENDOR                     = 0x80000000
1416 1546
 	TCSAFLUSH                      = 0x2
1547
+	TIMER_ABSTIME                  = 0x1
1548
+	TIMER_RELTIME                  = 0x0
1417 1549
 	TIOCCBRK                       = 0x2000747a
1418 1550
 	TIOCCDTR                       = 0x20007478
1419 1551
 	TIOCCONS                       = 0x80047462
@@ -1477,6 +1609,8 @@ const (
1477 1609
 	TIOCTIMESTAMP                  = 0x40107459
1478 1610
 	TIOCUCNTL                      = 0x80047466
1479 1611
 	TOSTOP                         = 0x400000
1612
+	UTIME_NOW                      = -0x1
1613
+	UTIME_OMIT                     = -0x2
1480 1614
 	VDISCARD                       = 0xf
1481 1615
 	VDSUSP                         = 0xb
1482 1616
 	VEOF                           = 0x0
@@ -1488,6 +1622,7 @@ const (
1488 1622
 	VKILL                          = 0x5
1489 1623
 	VLNEXT                         = 0xe
1490 1624
 	VMIN                           = 0x10
1625
+	VM_BCACHE_SIZE_MAX             = 0x19000000
1491 1626
 	VQUIT                          = 0x9
1492 1627
 	VREPRINT                       = 0x6
1493 1628
 	VSTART                         = 0xc

+ 466
- 2809
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
File diff suppressed because it is too large
View File


+ 466
- 2809
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
File diff suppressed because it is too large
View File


+ 472
- 2815
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
File diff suppressed because it is too large
View File


+ 459
- 2802
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
File diff suppressed because it is too large
View File


+ 468
- 2811
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
File diff suppressed because it is too large
View File


+ 468
- 2811
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
File diff suppressed because it is too large
View File


+ 468
- 2811
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
File diff suppressed because it is too large
View File


+ 468
- 2811
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
File diff suppressed because it is too large
View File


+ 528
- 2870
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
File diff suppressed because it is too large
View File


+ 528
- 2870
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
File diff suppressed because it is too large
View File


+ 453
- 2796
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
File diff suppressed because it is too large
View File


+ 526
- 2869
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
File diff suppressed because it is too large
View File


+ 517
- 2859
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
File diff suppressed because it is too large
View File


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

@@ -1,80 +0,0 @@
1
-// Code generated by linux/mkall.go generatePtracePair(386, amd64). DO NOT EDIT.
2
-
3
-// +build linux
4
-// +build 386 amd64
5
-
6
-package unix
7
-
8
-import "unsafe"
9
-
10
-// PtraceRegs386 is the registers used by 386 binaries.
11
-type PtraceRegs386 struct {
12
-	Ebx      int32
13
-	Ecx      int32
14
-	Edx      int32
15
-	Esi      int32
16
-	Edi      int32
17
-	Ebp      int32
18
-	Eax      int32
19
-	Xds      int32
20
-	Xes      int32
21
-	Xfs      int32
22
-	Xgs      int32
23
-	Orig_eax int32
24
-	Eip      int32
25
-	Xcs      int32
26
-	Eflags   int32
27
-	Esp      int32
28
-	Xss      int32
29
-}
30
-
31
-// PtraceGetRegs386 fetches the registers used by 386 binaries.
32
-func PtraceGetRegs386(pid int, regsout *PtraceRegs386) error {
33
-	return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
34
-}
35
-
36
-// PtraceSetRegs386 sets the registers used by 386 binaries.
37
-func PtraceSetRegs386(pid int, regs *PtraceRegs386) error {
38
-	return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
39
-}
40
-
41
-// PtraceRegsAmd64 is the registers used by amd64 binaries.
42
-type PtraceRegsAmd64 struct {
43
-	R15      uint64
44
-	R14      uint64
45
-	R13      uint64
46
-	R12      uint64
47
-	Rbp      uint64
48
-	Rbx      uint64
49
-	R11      uint64
50
-	R10      uint64
51
-	R9       uint64
52
-	R8       uint64
53
-	Rax      uint64
54
-	Rcx      uint64
55
-	Rdx      uint64
56
-	Rsi      uint64
57
-	Rdi      uint64
58
-	Orig_rax uint64
59
-	Rip      uint64
60
-	Cs       uint64
61
-	Eflags   uint64
62
-	Rsp      uint64
63
-	Ss       uint64
64
-	Fs_base  uint64
65
-	Gs_base  uint64
66
-	Ds       uint64
67
-	Es       uint64
68
-	Fs       uint64
69
-	Gs       uint64
70
-}
71
-
72
-// PtraceGetRegsAmd64 fetches the registers used by amd64 binaries.
73
-func PtraceGetRegsAmd64(pid int, regsout *PtraceRegsAmd64) error {
74
-	return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
75
-}
76
-
77
-// PtraceSetRegsAmd64 sets the registers used by amd64 binaries.
78
-func PtraceSetRegsAmd64(pid int, regs *PtraceRegsAmd64) error {
79
-	return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
80
-}

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

@@ -1,41 +0,0 @@
1
-// Code generated by linux/mkall.go generatePtracePair(arm, arm64). DO NOT EDIT.
2
-
3
-// +build linux
4
-// +build arm arm64
5
-
6
-package unix
7
-
8
-import "unsafe"
9
-
10
-// PtraceRegsArm is the registers used by arm binaries.
11
-type PtraceRegsArm struct {
12
-	Uregs [18]uint32
13
-}
14
-
15
-// PtraceGetRegsArm fetches the registers used by arm binaries.
16
-func PtraceGetRegsArm(pid int, regsout *PtraceRegsArm) error {
17
-	return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
18
-}
19
-
20
-// PtraceSetRegsArm sets the registers used by arm binaries.
21
-func PtraceSetRegsArm(pid int, regs *PtraceRegsArm) error {
22
-	return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
23
-}
24
-
25
-// PtraceRegsArm64 is the registers used by arm64 binaries.
26
-type PtraceRegsArm64 struct {
27
-	Regs   [31]uint64
28
-	Sp     uint64
29
-	Pc     uint64
30
-	Pstate uint64
31
-}
32
-
33
-// PtraceGetRegsArm64 fetches the registers used by arm64 binaries.
34
-func PtraceGetRegsArm64(pid int, regsout *PtraceRegsArm64) error {
35
-	return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
36
-}
37
-
38
-// PtraceSetRegsArm64 sets the registers used by arm64 binaries.
39
-func PtraceSetRegsArm64(pid int, regs *PtraceRegsArm64) error {
40
-	return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
41
-}

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

@@ -1,50 +0,0 @@
1
-// Code generated by linux/mkall.go generatePtracePair(mips, mips64). DO NOT EDIT.
2
-
3
-// +build linux
4
-// +build mips mips64
5
-
6
-package unix
7
-
8
-import "unsafe"
9
-
10
-// PtraceRegsMips is the registers used by mips binaries.
11
-type PtraceRegsMips struct {
12
-	Regs     [32]uint64
13
-	Lo       uint64
14
-	Hi       uint64
15
-	Epc      uint64
16
-	Badvaddr uint64
17
-	Status   uint64
18
-	Cause    uint64
19
-}
20
-
21
-// PtraceGetRegsMips fetches the registers used by mips binaries.
22
-func PtraceGetRegsMips(pid int, regsout *PtraceRegsMips) error {
23
-	return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
24
-}
25
-
26
-// PtraceSetRegsMips sets the registers used by mips binaries.
27
-func PtraceSetRegsMips(pid int, regs *PtraceRegsMips) error {
28
-	return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
29
-}
30
-
31
-// PtraceRegsMips64 is the registers used by mips64 binaries.
32
-type PtraceRegsMips64 struct {
33
-	Regs     [32]uint64
34
-	Lo       uint64
35
-	Hi       uint64
36
-	Epc      uint64
37
-	Badvaddr uint64
38
-	Status   uint64
39
-	Cause    uint64
40
-}
41
-
42
-// PtraceGetRegsMips64 fetches the registers used by mips64 binaries.
43
-func PtraceGetRegsMips64(pid int, regsout *PtraceRegsMips64) error {
44
-	return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
45
-}
46
-
47
-// PtraceSetRegsMips64 sets the registers used by mips64 binaries.
48
-func PtraceSetRegsMips64(pid int, regs *PtraceRegsMips64) error {
49
-	return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
50
-}

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

@@ -1,50 +0,0 @@
1
-// Code generated by linux/mkall.go generatePtracePair(mipsle, mips64le). DO NOT EDIT.
2
-
3
-// +build linux
4
-// +build mipsle mips64le
5
-
6
-package unix
7
-
8
-import "unsafe"
9
-
10
-// PtraceRegsMipsle is the registers used by mipsle binaries.
11
-type PtraceRegsMipsle struct {
12
-	Regs     [32]uint64
13
-	Lo       uint64
14
-	Hi       uint64
15
-	Epc      uint64
16
-	Badvaddr uint64
17
-	Status   uint64
18
-	Cause    uint64
19
-}
20
-
21
-// PtraceGetRegsMipsle fetches the registers used by mipsle binaries.
22
-func PtraceGetRegsMipsle(pid int, regsout *PtraceRegsMipsle) error {
23
-	return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
24
-}
25
-
26
-// PtraceSetRegsMipsle sets the registers used by mipsle binaries.
27
-func PtraceSetRegsMipsle(pid int, regs *PtraceRegsMipsle) error {
28
-	return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
29
-}
30
-
31
-// PtraceRegsMips64le is the registers used by mips64le binaries.
32
-type PtraceRegsMips64le struct {
33
-	Regs     [32]uint64
34
-	Lo       uint64
35
-	Hi       uint64
36
-	Epc      uint64
37
-	Badvaddr uint64
38
-	Status   uint64
39
-	Cause    uint64
40
-}
41
-
42
-// PtraceGetRegsMips64le fetches the registers used by mips64le binaries.
43
-func PtraceGetRegsMips64le(pid int, regsout *PtraceRegsMips64le) error {
44
-	return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
45
-}
46
-
47
-// PtraceSetRegsMips64le sets the registers used by mips64le binaries.
48
-func PtraceSetRegsMips64le(pid int, regs *PtraceRegsMips64le) error {
49
-	return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
50
-}

+ 21
- 23
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go View File

@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
239 239
 
240 240
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
241 241
 
242
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
243
-	r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
244
-	val = int(r0)
245
-	if e1 != 0 {
246
-		err = errnoErr(e1)
247
-	}
248
-	return
249
-}
250
-
251
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
252
-
253 242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
254 243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
255 244
 	n = int(r0)
@@ -527,6 +516,17 @@ func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintp
527 516
 
528 517
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
529 518
 
519
+func fcntl(fd int, cmd int, arg int) (val int, err error) {
520
+	r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
521
+	val = int(r0)
522
+	if e1 != 0 {
523
+		err = errnoErr(e1)
524
+	}
525
+	return
526
+}
527
+
528
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
529
+
530 530
 func kill(pid int, signum int, posix int) (err error) {
531 531
 	_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
532 532
 	if e1 != 0 {
@@ -966,6 +966,16 @@ func Getsid(pid int) (sid int, err error) {
966 966
 
967 967
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
968 968
 
969
+func Gettimeofday(tp *Timeval) (err error) {
970
+	_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
971
+	if e1 != 0 {
972
+		err = errnoErr(e1)
973
+	}
974
+	return
975
+}
976
+
977
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
978
+
969 979
 func Getuid() (uid int) {
970 980
 	r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
971 981
 	uid = int(r0)
@@ -1709,18 +1719,6 @@ func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
1709 1719
 
1710 1720
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1711 1721
 
1712
-func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) {
1713
-	r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1714
-	sec = int32(r0)
1715
-	usec = int32(r1)
1716
-	if e1 != 0 {
1717
-		err = errnoErr(e1)
1718
-	}
1719
-	return
1720
-}
1721
-
1722
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1723
-
1724 1722
 func Fstat(fd int, stat *Stat_t) (err error) {
1725 1723
 	_, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
1726 1724
 	if e1 != 0 {

+ 31
- 33
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go View File

@@ -339,22 +339,6 @@ func libc_futimes_trampoline()
339 339
 
340 340
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
341 341
 
342
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
343
-	r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
344
-	val = int(r0)
345
-	if e1 != 0 {
346
-		err = errnoErr(e1)
347
-	}
348
-	return
349
-}
350
-
351
-func libc_fcntl_trampoline()
352
-
353
-//go:linkname libc_fcntl libc_fcntl
354
-//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
355
-
356
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
357
-
358 342
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
359 343
 	r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
360 344
 	n = int(r0)
@@ -727,6 +711,22 @@ func libc_setattrlist_trampoline()
727 711
 
728 712
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
729 713
 
714
+func fcntl(fd int, cmd int, arg int) (val int, err error) {
715
+	r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
716
+	val = int(r0)
717
+	if e1 != 0 {
718
+		err = errnoErr(e1)
719
+	}
720
+	return
721
+}
722
+
723
+func libc_fcntl_trampoline()
724
+
725
+//go:linkname libc_fcntl libc_fcntl
726
+//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
727
+
728
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
729
+
730 730
 func kill(pid int, signum int, posix int) (err error) {
731 731
 	_, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix))
732 732
 	if e1 != 0 {
@@ -1376,6 +1376,21 @@ func libc_getsid_trampoline()
1376 1376
 
1377 1377
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1378 1378
 
1379
+func Gettimeofday(tp *Timeval) (err error) {
1380
+	_, _, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0)
1381
+	if e1 != 0 {
1382
+		err = errnoErr(e1)
1383
+	}
1384
+	return
1385
+}
1386
+
1387
+func libc_gettimeofday_trampoline()
1388
+
1389
+//go:linkname libc_gettimeofday libc_gettimeofday
1390
+//go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib"
1391
+
1392
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1393
+
1379 1394
 func Getuid() (uid int) {
1380 1395
 	r0, _, _ := syscall_rawSyscall(funcPC(libc_getuid_trampoline), 0, 0, 0)
1381 1396
 	uid = int(r0)
@@ -2357,23 +2372,6 @@ func libc_ptrace_trampoline()
2357 2372
 
2358 2373
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2359 2374
 
2360
-func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) {
2361
-	r0, r1, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0)
2362
-	sec = int32(r0)
2363
-	usec = int32(r1)
2364
-	if e1 != 0 {
2365
-		err = errnoErr(e1)
2366
-	}
2367
-	return
2368
-}
2369
-
2370
-func libc_gettimeofday_trampoline()
2371
-
2372
-//go:linkname libc_gettimeofday libc_gettimeofday
2373
-//go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib"
2374
-
2375
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2376
-
2377 2375
 func Fstat(fd int, stat *Stat_t) (err error) {
2378 2376
 	_, _, e1 := syscall_syscall(funcPC(libc_fstat64_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
2379 2377
 	if e1 != 0 {

+ 4
- 2
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s View File

@@ -44,8 +44,6 @@ TEXT ·libc_utimes_trampoline(SB),NOSPLIT,$0-0
44 44
 	JMP	libc_utimes(SB)
45 45
 TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0
46 46
 	JMP	libc_futimes(SB)
47
-TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
48
-	JMP	libc_fcntl(SB)
49 47
 TEXT ·libc_poll_trampoline(SB),NOSPLIT,$0-0
50 48
 	JMP	libc_poll(SB)
51 49
 TEXT ·libc_madvise_trampoline(SB),NOSPLIT,$0-0
@@ -84,6 +82,8 @@ TEXT ·libc_flistxattr_trampoline(SB),NOSPLIT,$0-0
84 82
 	JMP	libc_flistxattr(SB)
85 83
 TEXT ·libc_setattrlist_trampoline(SB),NOSPLIT,$0-0
86 84
 	JMP	libc_setattrlist(SB)
85
+TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
86
+	JMP	libc_fcntl(SB)
87 87
 TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0
88 88
 	JMP	libc_kill(SB)
89 89
 TEXT ·libc_ioctl_trampoline(SB),NOSPLIT,$0-0
@@ -106,6 +106,8 @@ TEXT ·libc_chown_trampoline(SB),NOSPLIT,$0-0
106 106
 	JMP	libc_chown(SB)
107 107
 TEXT ·libc_chroot_trampoline(SB),NOSPLIT,$0-0
108 108
 	JMP	libc_chroot(SB)
109
+TEXT ·libc_clock_gettime_trampoline(SB),NOSPLIT,$0-0
110
+	JMP	libc_clock_gettime(SB)
109 111
 TEXT ·libc_close_trampoline(SB),NOSPLIT,$0-0
110 112
 	JMP	libc_close(SB)
111 113
 TEXT ·libc_dup_trampoline(SB),NOSPLIT,$0-0

+ 21
- 23
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_11.go View File

@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
239 239
 
240 240
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
241 241
 
242
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
243
-	r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
244
-	val = int(r0)
245
-	if e1 != 0 {
246
-		err = errnoErr(e1)
247
-	}
248
-	return
249
-}
250
-
251
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
252
-
253 242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
254 243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
255 244
 	n = int(r0)
@@ -527,6 +516,17 @@ func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintp
527 516
 
528 517
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
529 518
 
519
+func fcntl(fd int, cmd int, arg int) (val int, err error) {
520
+	r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
521
+	val = int(r0)
522
+	if e1 != 0 {
523
+		err = errnoErr(e1)
524
+	}
525
+	return
526
+}
527
+
528
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
529
+
530 530
 func kill(pid int, signum int, posix int) (err error) {
531 531
 	_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
532 532
 	if e1 != 0 {
@@ -966,6 +966,16 @@ func Getsid(pid int) (sid int, err error) {
966 966
 
967 967
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
968 968
 
969
+func Gettimeofday(tp *Timeval) (err error) {
970
+	_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
971
+	if e1 != 0 {
972
+		err = errnoErr(e1)
973
+	}
974
+	return
975
+}
976
+
977
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
978
+
969 979
 func Getuid() (uid int) {
970 980
 	r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
971 981
 	uid = int(r0)
@@ -1709,18 +1719,6 @@ func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
1709 1719
 
1710 1720
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1711 1721
 
1712
-func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) {
1713
-	r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1714
-	sec = int64(r0)
1715
-	usec = int32(r1)
1716
-	if e1 != 0 {
1717
-		err = errnoErr(e1)
1718
-	}
1719
-	return
1720
-}
1721
-
1722
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1723
-
1724 1722
 func Fstat(fd int, stat *Stat_t) (err error) {
1725 1723
 	_, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
1726 1724
 	if e1 != 0 {

+ 31
- 33
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go View File

@@ -339,22 +339,6 @@ func libc_futimes_trampoline()
339 339
 
340 340
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
341 341
 
342
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
343
-	r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
344
-	val = int(r0)
345
-	if e1 != 0 {
346
-		err = errnoErr(e1)
347
-	}
348
-	return
349
-}
350
-
351
-func libc_fcntl_trampoline()
352
-
353
-//go:linkname libc_fcntl libc_fcntl
354
-//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
355
-
356
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
357
-
358 342
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
359 343
 	r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
360 344
 	n = int(r0)
@@ -727,6 +711,22 @@ func libc_setattrlist_trampoline()
727 711
 
728 712
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
729 713
 
714
+func fcntl(fd int, cmd int, arg int) (val int, err error) {
715
+	r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
716
+	val = int(r0)
717
+	if e1 != 0 {
718
+		err = errnoErr(e1)
719
+	}
720
+	return
721
+}
722
+
723
+func libc_fcntl_trampoline()
724
+
725
+//go:linkname libc_fcntl libc_fcntl
726
+//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
727
+
728
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
729
+
730 730
 func kill(pid int, signum int, posix int) (err error) {
731 731
 	_, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix))
732 732
 	if e1 != 0 {
@@ -1376,6 +1376,21 @@ func libc_getsid_trampoline()
1376 1376
 
1377 1377
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1378 1378
 
1379
+func Gettimeofday(tp *Timeval) (err error) {
1380
+	_, _, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0)
1381
+	if e1 != 0 {
1382
+		err = errnoErr(e1)
1383
+	}
1384
+	return
1385
+}
1386
+
1387
+func libc_gettimeofday_trampoline()
1388
+
1389
+//go:linkname libc_gettimeofday libc_gettimeofday
1390
+//go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib"
1391
+
1392
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1393
+
1379 1394
 func Getuid() (uid int) {
1380 1395
 	r0, _, _ := syscall_rawSyscall(funcPC(libc_getuid_trampoline), 0, 0, 0)
1381 1396
 	uid = int(r0)
@@ -2357,23 +2372,6 @@ func libc_ptrace_trampoline()
2357 2372
 
2358 2373
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2359 2374
 
2360
-func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) {
2361
-	r0, r1, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0)
2362
-	sec = int64(r0)
2363
-	usec = int32(r1)
2364
-	if e1 != 0 {
2365
-		err = errnoErr(e1)
2366
-	}
2367
-	return
2368
-}
2369
-
2370
-func libc_gettimeofday_trampoline()
2371
-
2372
-//go:linkname libc_gettimeofday libc_gettimeofday
2373
-//go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib"
2374
-
2375
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2376
-
2377 2375
 func Fstat(fd int, stat *Stat_t) (err error) {
2378 2376
 	_, _, e1 := syscall_syscall(funcPC(libc_fstat64_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
2379 2377
 	if e1 != 0 {

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

@@ -44,8 +44,6 @@ TEXT ·libc_utimes_trampoline(SB),NOSPLIT,$0-0
44 44
 	JMP	libc_utimes(SB)
45 45
 TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0
46 46
 	JMP	libc_futimes(SB)
47
-TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
48
-	JMP	libc_fcntl(SB)
49 47
 TEXT ·libc_poll_trampoline(SB),NOSPLIT,$0-0
50 48
 	JMP	libc_poll(SB)
51 49
 TEXT ·libc_madvise_trampoline(SB),NOSPLIT,$0-0
@@ -84,6 +82,8 @@ TEXT ·libc_flistxattr_trampoline(SB),NOSPLIT,$0-0
84 82
 	JMP	libc_flistxattr(SB)
85 83
 TEXT ·libc_setattrlist_trampoline(SB),NOSPLIT,$0-0
86 84
 	JMP	libc_setattrlist(SB)
85
+TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
86
+	JMP	libc_fcntl(SB)
87 87
 TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0
88 88
 	JMP	libc_kill(SB)
89 89
 TEXT ·libc_ioctl_trampoline(SB),NOSPLIT,$0-0

+ 21
- 23
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go View File

@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
239 239
 
240 240
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
241 241
 
242
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
243
-	r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
244
-	val = int(r0)
245
-	if e1 != 0 {
246
-		err = errnoErr(e1)
247
-	}
248
-	return
249
-}
250
-
251
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
252
-
253 242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
254 243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
255 244
 	n = int(r0)
@@ -527,6 +516,17 @@ func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintp
527 516
 
528 517
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
529 518
 
519
+func fcntl(fd int, cmd int, arg int) (val int, err error) {
520
+	r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
521
+	val = int(r0)
522
+	if e1 != 0 {
523
+		err = errnoErr(e1)
524
+	}
525
+	return
526
+}
527
+
528
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
529
+
530 530
 func kill(pid int, signum int, posix int) (err error) {
531 531
 	_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
532 532
 	if e1 != 0 {
@@ -966,6 +966,16 @@ func Getsid(pid int) (sid int, err error) {
966 966
 
967 967
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
968 968
 
969
+func Gettimeofday(tp *Timeval) (err error) {
970
+	_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
971
+	if e1 != 0 {
972
+		err = errnoErr(e1)
973
+	}
974
+	return
975
+}
976
+
977
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
978
+
969 979
 func Getuid() (uid int) {
970 980
 	r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
971 981
 	uid = int(r0)
@@ -1682,18 +1692,6 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
1682 1692
 
1683 1693
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1684 1694
 
1685
-func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) {
1686
-	r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1687
-	sec = int32(r0)
1688
-	usec = int32(r1)
1689
-	if e1 != 0 {
1690
-		err = errnoErr(e1)
1691
-	}
1692
-	return
1693
-}
1694
-
1695
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1696
-
1697 1695
 func Fstat(fd int, stat *Stat_t) (err error) {
1698 1696
 	_, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
1699 1697
 	if e1 != 0 {

+ 31
- 33
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go View File

@@ -339,22 +339,6 @@ func libc_futimes_trampoline()
339 339
 
340 340
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
341 341
 
342
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
343
-	r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
344
-	val = int(r0)
345
-	if e1 != 0 {
346
-		err = errnoErr(e1)
347
-	}
348
-	return
349
-}
350
-
351
-func libc_fcntl_trampoline()
352
-
353
-//go:linkname libc_fcntl libc_fcntl
354
-//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
355
-
356
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
357
-
358 342
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
359 343
 	r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
360 344
 	n = int(r0)
@@ -727,6 +711,22 @@ func libc_setattrlist_trampoline()
727 711
 
728 712
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
729 713
 
714
+func fcntl(fd int, cmd int, arg int) (val int, err error) {
715
+	r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
716
+	val = int(r0)
717
+	if e1 != 0 {
718
+		err = errnoErr(e1)
719
+	}
720
+	return
721
+}
722
+
723
+func libc_fcntl_trampoline()
724
+
725
+//go:linkname libc_fcntl libc_fcntl
726
+//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
727
+
728
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
729
+
730 730
 func kill(pid int, signum int, posix int) (err error) {
731 731
 	_, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix))
732 732
 	if e1 != 0 {
@@ -1376,6 +1376,21 @@ func libc_getsid_trampoline()
1376 1376
 
1377 1377
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1378 1378
 
1379
+func Gettimeofday(tp *Timeval) (err error) {
1380
+	_, _, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0)
1381
+	if e1 != 0 {
1382
+		err = errnoErr(e1)
1383
+	}
1384
+	return
1385
+}
1386
+
1387
+func libc_gettimeofday_trampoline()
1388
+
1389
+//go:linkname libc_gettimeofday libc_gettimeofday
1390
+//go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib"
1391
+
1392
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1393
+
1379 1394
 func Getuid() (uid int) {
1380 1395
 	r0, _, _ := syscall_rawSyscall(funcPC(libc_getuid_trampoline), 0, 0, 0)
1381 1396
 	uid = int(r0)
@@ -2342,23 +2357,6 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
2342 2357
 
2343 2358
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2344 2359
 
2345
-func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) {
2346
-	r0, r1, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0)
2347
-	sec = int32(r0)
2348
-	usec = int32(r1)
2349
-	if e1 != 0 {
2350
-		err = errnoErr(e1)
2351
-	}
2352
-	return
2353
-}
2354
-
2355
-func libc_gettimeofday_trampoline()
2356
-
2357
-//go:linkname libc_gettimeofday libc_gettimeofday
2358
-//go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib"
2359
-
2360
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2361
-
2362 2360
 func Fstat(fd int, stat *Stat_t) (err error) {
2363 2361
 	_, _, e1 := syscall_syscall(funcPC(libc_fstat_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
2364 2362
 	if e1 != 0 {

+ 4
- 2
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s View File

@@ -44,8 +44,6 @@ TEXT ·libc_utimes_trampoline(SB),NOSPLIT,$0-0
44 44
 	JMP	libc_utimes(SB)
45 45
 TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0
46 46
 	JMP	libc_futimes(SB)
47
-TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
48
-	JMP	libc_fcntl(SB)
49 47
 TEXT ·libc_poll_trampoline(SB),NOSPLIT,$0-0
50 48
 	JMP	libc_poll(SB)
51 49
 TEXT ·libc_madvise_trampoline(SB),NOSPLIT,$0-0
@@ -84,10 +82,14 @@ TEXT ·libc_flistxattr_trampoline(SB),NOSPLIT,$0-0
84 82
 	JMP	libc_flistxattr(SB)
85 83
 TEXT ·libc_setattrlist_trampoline(SB),NOSPLIT,$0-0
86 84
 	JMP	libc_setattrlist(SB)
85
+TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
86
+	JMP	libc_fcntl(SB)
87 87
 TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0
88 88
 	JMP	libc_kill(SB)
89 89
 TEXT ·libc_ioctl_trampoline(SB),NOSPLIT,$0-0
90 90
 	JMP	libc_ioctl(SB)
91
+TEXT ·libc_sysctl_trampoline(SB),NOSPLIT,$0-0
92
+	JMP	libc_sysctl(SB)
91 93
 TEXT ·libc_sendfile_trampoline(SB),NOSPLIT,$0-0
92 94
 	JMP	libc_sendfile(SB)
93 95
 TEXT ·libc_access_trampoline(SB),NOSPLIT,$0-0

+ 21
- 23
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_11.go View File

@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
239 239
 
240 240
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
241 241
 
242
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
243
-	r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
244
-	val = int(r0)
245
-	if e1 != 0 {
246
-		err = errnoErr(e1)
247
-	}
248
-	return
249
-}
250
-
251
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
252
-
253 242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
254 243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
255 244
 	n = int(r0)
@@ -527,6 +516,17 @@ func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintp
527 516
 
528 517
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
529 518
 
519
+func fcntl(fd int, cmd int, arg int) (val int, err error) {
520
+	r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
521
+	val = int(r0)
522
+	if e1 != 0 {
523
+		err = errnoErr(e1)
524
+	}
525
+	return
526
+}
527
+
528
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
529
+
530 530
 func kill(pid int, signum int, posix int) (err error) {
531 531
 	_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
532 532
 	if e1 != 0 {
@@ -966,6 +966,16 @@ func Getsid(pid int) (sid int, err error) {
966 966
 
967 967
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
968 968
 
969
+func Gettimeofday(tp *Timeval) (err error) {
970
+	_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
971
+	if e1 != 0 {
972
+		err = errnoErr(e1)
973
+	}
974
+	return
975
+}
976
+
977
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
978
+
969 979
 func Getuid() (uid int) {
970 980
 	r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
971 981
 	uid = int(r0)
@@ -1682,18 +1692,6 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
1682 1692
 
1683 1693
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1684 1694
 
1685
-func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) {
1686
-	r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1687
-	sec = int64(r0)
1688
-	usec = int32(r1)
1689
-	if e1 != 0 {
1690
-		err = errnoErr(e1)
1691
-	}
1692
-	return
1693
-}
1694
-
1695
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1696
-
1697 1695
 func Fstat(fd int, stat *Stat_t) (err error) {
1698 1696
 	_, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
1699 1697
 	if e1 != 0 {

+ 31
- 33
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go View File

@@ -339,22 +339,6 @@ func libc_futimes_trampoline()
339 339
 
340 340
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
341 341
 
342
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
343
-	r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
344
-	val = int(r0)
345
-	if e1 != 0 {
346
-		err = errnoErr(e1)
347
-	}
348
-	return
349
-}
350
-
351
-func libc_fcntl_trampoline()
352
-
353
-//go:linkname libc_fcntl libc_fcntl
354
-//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
355
-
356
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
357
-
358 342
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
359 343
 	r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
360 344
 	n = int(r0)
@@ -727,6 +711,22 @@ func libc_setattrlist_trampoline()
727 711
 
728 712
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
729 713
 
714
+func fcntl(fd int, cmd int, arg int) (val int, err error) {
715
+	r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
716
+	val = int(r0)
717
+	if e1 != 0 {
718
+		err = errnoErr(e1)
719
+	}
720
+	return
721
+}
722
+
723
+func libc_fcntl_trampoline()
724
+
725
+//go:linkname libc_fcntl libc_fcntl
726
+//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
727
+
728
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
729
+
730 730
 func kill(pid int, signum int, posix int) (err error) {
731 731
 	_, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix))
732 732
 	if e1 != 0 {
@@ -1376,6 +1376,21 @@ func libc_getsid_trampoline()
1376 1376
 
1377 1377
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1378 1378
 
1379
+func Gettimeofday(tp *Timeval) (err error) {
1380
+	_, _, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0)
1381
+	if e1 != 0 {
1382
+		err = errnoErr(e1)
1383
+	}
1384
+	return
1385
+}
1386
+
1387
+func libc_gettimeofday_trampoline()
1388
+
1389
+//go:linkname libc_gettimeofday libc_gettimeofday
1390
+//go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib"
1391
+
1392
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1393
+
1379 1394
 func Getuid() (uid int) {
1380 1395
 	r0, _, _ := syscall_rawSyscall(funcPC(libc_getuid_trampoline), 0, 0, 0)
1381 1396
 	uid = int(r0)
@@ -2342,23 +2357,6 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
2342 2357
 
2343 2358
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2344 2359
 
2345
-func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) {
2346
-	r0, r1, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0)
2347
-	sec = int64(r0)
2348
-	usec = int32(r1)
2349
-	if e1 != 0 {
2350
-		err = errnoErr(e1)
2351
-	}
2352
-	return
2353
-}
2354
-
2355
-func libc_gettimeofday_trampoline()
2356
-
2357
-//go:linkname libc_gettimeofday libc_gettimeofday
2358
-//go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib"
2359
-
2360
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2361
-
2362 2360
 func Fstat(fd int, stat *Stat_t) (err error) {
2363 2361
 	_, _, e1 := syscall_syscall(funcPC(libc_fstat_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
2364 2362
 	if e1 != 0 {

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

@@ -44,8 +44,6 @@ TEXT ·libc_utimes_trampoline(SB),NOSPLIT,$0-0
44 44
 	JMP	libc_utimes(SB)
45 45
 TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0
46 46
 	JMP	libc_futimes(SB)
47
-TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
48
-	JMP	libc_fcntl(SB)
49 47
 TEXT ·libc_poll_trampoline(SB),NOSPLIT,$0-0
50 48
 	JMP	libc_poll(SB)
51 49
 TEXT ·libc_madvise_trampoline(SB),NOSPLIT,$0-0
@@ -84,6 +82,8 @@ TEXT ·libc_flistxattr_trampoline(SB),NOSPLIT,$0-0
84 82
 	JMP	libc_flistxattr(SB)
85 83
 TEXT ·libc_setattrlist_trampoline(SB),NOSPLIT,$0-0
86 84
 	JMP	libc_setattrlist(SB)
85
+TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
86
+	JMP	libc_fcntl(SB)
87 87
 TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0
88 88
 	JMP	libc_kill(SB)
89 89
 TEXT ·libc_ioctl_trampoline(SB),NOSPLIT,$0-0
@@ -106,6 +106,8 @@ TEXT ·libc_chown_trampoline(SB),NOSPLIT,$0-0
106 106
 	JMP	libc_chown(SB)
107 107
 TEXT ·libc_chroot_trampoline(SB),NOSPLIT,$0-0
108 108
 	JMP	libc_chroot(SB)
109
+TEXT ·libc_clock_gettime_trampoline(SB),NOSPLIT,$0-0
110
+	JMP	libc_clock_gettime(SB)
109 111
 TEXT ·libc_close_trampoline(SB),NOSPLIT,$0-0
110 112
 	JMP	libc_close(SB)
111 113
 TEXT ·libc_dup_trampoline(SB),NOSPLIT,$0-0

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

@@ -255,17 +255,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
255 255
 
256 256
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
257 257
 
258
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
259
-	r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
260
-	val = int(r0)
261
-	if e1 != 0 {
262
-		err = errnoErr(e1)
263
-	}
264
-	return
265
-}
266
-
267
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
268
-
269 258
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
270 259
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
271 260
 	n = int(r0)

+ 26
- 37
vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go View File

@@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne
214 214
 
215 215
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
216 216
 
217
-func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
218
-	var _p0 unsafe.Pointer
219
-	if len(mib) > 0 {
220
-		_p0 = unsafe.Pointer(&mib[0])
221
-	} else {
222
-		_p0 = unsafe.Pointer(&_zero)
223
-	}
224
-	_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
225
-	if e1 != 0 {
226
-		err = errnoErr(e1)
227
-	}
228
-	return
229
-}
230
-
231
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
232
-
233 217
 func utimes(path string, timeval *[2]Timeval) (err error) {
234 218
 	var _p0 *byte
235 219
 	_p0, err = BytePtrFromString(path)
@@ -255,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
255 239
 
256 240
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
257 241
 
258
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
259
-	r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
260
-	val = int(r0)
261
-	if e1 != 0 {
262
-		err = errnoErr(e1)
263
-	}
264
-	return
265
-}
266
-
267
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
268
-
269 242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
270 243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
271 244
 	n = int(r0)
@@ -387,8 +360,15 @@ func pipe2(p *[2]_C_int, flags int) (err error) {
387 360
 
388 361
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
389 362
 
390
-func ptrace(request int, pid int, addr uintptr, data int) (err error) {
391
-	_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
363
+func Getcwd(buf []byte) (n int, err error) {
364
+	var _p0 unsafe.Pointer
365
+	if len(buf) > 0 {
366
+		_p0 = unsafe.Pointer(&buf[0])
367
+	} else {
368
+		_p0 = unsafe.Pointer(&_zero)
369
+	}
370
+	r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0)
371
+	n = int(r0)
392 372
 	if e1 != 0 {
393 373
 		err = errnoErr(e1)
394 374
 	}
@@ -397,15 +377,24 @@ func ptrace(request int, pid int, addr uintptr, data int) (err error) {
397 377
 
398 378
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
399 379
 
400
-func Getcwd(buf []byte) (n int, err error) {
380
+func ioctl(fd int, req uint, arg uintptr) (err error) {
381
+	_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
382
+	if e1 != 0 {
383
+		err = errnoErr(e1)
384
+	}
385
+	return
386
+}
387
+
388
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
389
+
390
+func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
401 391
 	var _p0 unsafe.Pointer
402
-	if len(buf) > 0 {
403
-		_p0 = unsafe.Pointer(&buf[0])
392
+	if len(mib) > 0 {
393
+		_p0 = unsafe.Pointer(&mib[0])
404 394
 	} else {
405 395
 		_p0 = unsafe.Pointer(&_zero)
406 396
 	}
407
-	r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0)
408
-	n = int(r0)
397
+	_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
409 398
 	if e1 != 0 {
410 399
 		err = errnoErr(e1)
411 400
 	}
@@ -414,8 +403,8 @@ func Getcwd(buf []byte) (n int, err error) {
414 403
 
415 404
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
416 405
 
417
-func ioctl(fd int, req uint, arg uintptr) (err error) {
418
-	_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
406
+func ptrace(request int, pid int, addr uintptr, data int) (err error) {
407
+	_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
419 408
 	if e1 != 0 {
420 409
 		err = errnoErr(e1)
421 410
 	}
@@ -1363,7 +1352,7 @@ func mknodat_freebsd12(fd int, path string, mode uint32, dev uint64) (err error)
1363 1352
 	if err != nil {
1364 1353
 		return
1365 1354
 	}
1366
-	_, _, e1 := Syscall6(SYS_MKNODAT_FREEBSD12, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
1355
+	_, _, e1 := Syscall6(SYS_MKNODAT_FREEBSD12, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), uintptr(dev>>32), 0)
1367 1356
 	if e1 != 0 {
1368 1357
 		err = errnoErr(e1)
1369 1358
 	}

+ 16
- 27
vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go View File

@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
239 239
 
240 240
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
241 241
 
242
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
243
-	r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
244
-	val = int(r0)
245
-	if e1 != 0 {
246
-		err = errnoErr(e1)
247
-	}
248
-	return
249
-}
250
-
251
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
252
-
253 242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
254 243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
255 244
 	n = int(r0)
@@ -361,22 +350,6 @@ func Munlockall() (err error) {
361 350
 
362 351
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
363 352
 
364
-func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
365
-	var _p0 unsafe.Pointer
366
-	if len(mib) > 0 {
367
-		_p0 = unsafe.Pointer(&mib[0])
368
-	} else {
369
-		_p0 = unsafe.Pointer(&_zero)
370
-	}
371
-	_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
372
-	if e1 != 0 {
373
-		err = errnoErr(e1)
374
-	}
375
-	return
376
-}
377
-
378
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
379
-
380 353
 func pipe2(p *[2]_C_int, flags int) (err error) {
381 354
 	_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
382 355
 	if e1 != 0 {
@@ -414,6 +387,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
414 387
 
415 388
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
416 389
 
390
+func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
391
+	var _p0 unsafe.Pointer
392
+	if len(mib) > 0 {
393
+		_p0 = unsafe.Pointer(&mib[0])
394
+	} else {
395
+		_p0 = unsafe.Pointer(&_zero)
396
+	}
397
+	_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
398
+	if e1 != 0 {
399
+		err = errnoErr(e1)
400
+	}
401
+	return
402
+}
403
+
404
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
405
+
417 406
 func ptrace(request int, pid int, addr uintptr, data int) (err error) {
418 407
 	_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
419 408
 	if e1 != 0 {

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

@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
239 239
 
240 240
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
241 241
 
242
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
243
-	r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
244
-	val = int(r0)
245
-	if e1 != 0 {
246
-		err = errnoErr(e1)
247
-	}
248
-	return
249
-}
250
-
251
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
252
-
253 242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
254 243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
255 244
 	n = int(r0)

+ 17
- 28
vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go View File

@@ -1,4 +1,4 @@
1
-// go run mksyscall.go -tags freebsd,arm64 -- syscall_bsd.go syscall_freebsd.go syscall_freebsd_arm64.go
1
+// go run mksyscall.go -tags freebsd,arm64 syscall_bsd.go syscall_freebsd.go syscall_freebsd_arm64.go
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 // +build freebsd,arm64
@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
239 239
 
240 240
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
241 241
 
242
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
243
-	r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
244
-	val = int(r0)
245
-	if e1 != 0 {
246
-		err = errnoErr(e1)
247
-	}
248
-	return
249
-}
250
-
251
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
252
-
253 242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
254 243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
255 244
 	n = int(r0)
@@ -361,22 +350,6 @@ func Munlockall() (err error) {
361 350
 
362 351
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
363 352
 
364
-func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
365
-	var _p0 unsafe.Pointer
366
-	if len(mib) > 0 {
367
-		_p0 = unsafe.Pointer(&mib[0])
368
-	} else {
369
-		_p0 = unsafe.Pointer(&_zero)
370
-	}
371
-	_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
372
-	if e1 != 0 {
373
-		err = errnoErr(e1)
374
-	}
375
-	return
376
-}
377
-
378
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
379
-
380 353
 func pipe2(p *[2]_C_int, flags int) (err error) {
381 354
 	_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
382 355
 	if e1 != 0 {
@@ -414,6 +387,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
414 387
 
415 388
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
416 389
 
390
+func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
391
+	var _p0 unsafe.Pointer
392
+	if len(mib) > 0 {
393
+		_p0 = unsafe.Pointer(&mib[0])
394
+	} else {
395
+		_p0 = unsafe.Pointer(&_zero)
396
+	}
397
+	_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
398
+	if e1 != 0 {
399
+		err = errnoErr(e1)
400
+	}
401
+	return
402
+}
403
+
404
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
405
+
417 406
 func ptrace(request int, pid int, addr uintptr, data int) (err error) {
418 407
 	_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
419 408
 	if e1 != 0 {

+ 11
- 1733
vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
File diff suppressed because it is too large
View File


+ 11
- 1733
vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
File diff suppressed because it is too large
View File


+ 11
- 1733
vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
File diff suppressed because it is too large
View File


+ 12
- 1734
vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
File diff suppressed because it is too large
View File


+ 11
- 1733
vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
File diff suppressed because it is too large
View File


+ 11
- 1733
vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
File diff suppressed because it is too large
View File


+ 11
- 1733
vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
File diff suppressed because it is too large
View File


+ 11
- 1733
vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
File diff suppressed because it is too large
View File


+ 11
- 1733
vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
File diff suppressed because it is too large
View File


+ 11
- 1733
vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
File diff suppressed because it is too large
View File


+ 10
- 1732
vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
File diff suppressed because it is too large
View File


+ 11
- 1733
vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
File diff suppressed because it is too large
View File


+ 11
- 1733
vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go
File diff suppressed because it is too large
View File


+ 51
- 27
vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go View File

@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
239 239
 
240 240
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
241 241
 
242
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
243
-	r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
244
-	val = int(r0)
245
-	if e1 != 0 {
246
-		err = errnoErr(e1)
247
-	}
248
-	return
249
-}
250
-
251
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
252
-
253 242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
254 243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
255 244
 	n = int(r0)
@@ -361,22 +350,6 @@ func Munlockall() (err error) {
361 350
 
362 351
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
363 352
 
364
-func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
365
-	var _p0 unsafe.Pointer
366
-	if len(mib) > 0 {
367
-		_p0 = unsafe.Pointer(&mib[0])
368
-	} else {
369
-		_p0 = unsafe.Pointer(&_zero)
370
-	}
371
-	_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
372
-	if e1 != 0 {
373
-		err = errnoErr(e1)
374
-	}
375
-	return
376
-}
377
-
378
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
379
-
380 353
 func pipe() (fd1 int, fd2 int, err error) {
381 354
 	r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
382 355
 	fd1 = int(r0)
@@ -433,6 +406,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
433 406
 
434 407
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
435 408
 
409
+func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
410
+	var _p0 unsafe.Pointer
411
+	if len(mib) > 0 {
412
+		_p0 = unsafe.Pointer(&mib[0])
413
+	} else {
414
+		_p0 = unsafe.Pointer(&_zero)
415
+	}
416
+	_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
417
+	if e1 != 0 {
418
+		err = errnoErr(e1)
419
+	}
420
+	return
421
+}
422
+
423
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
424
+
436 425
 func Access(path string, mode uint32) (err error) {
437 426
 	var _p0 *byte
438 427
 	_p0, err = BytePtrFromString(path)
@@ -564,6 +553,16 @@ func Dup2(from int, to int) (err error) {
564 553
 
565 554
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
566 555
 
556
+func Dup3(from int, to int, flags int) (err error) {
557
+	_, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags))
558
+	if e1 != 0 {
559
+		err = errnoErr(e1)
560
+	}
561
+	return
562
+}
563
+
564
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
565
+
567 566
 func Exit(code int) {
568 567
 	Syscall(SYS_EXIT, uintptr(code), 0, 0)
569 568
 	return
@@ -926,6 +925,16 @@ func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
926 925
 
927 926
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
928 927
 
928
+func Fstatvfs1(fd int, buf *Statvfs_t, flags int) (err error) {
929
+	_, _, e1 := Syscall(SYS_FSTATVFS1, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(flags))
930
+	if e1 != 0 {
931
+		err = errnoErr(e1)
932
+	}
933
+	return
934
+}
935
+
936
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
937
+
929 938
 func Fsync(fd int) (err error) {
930 939
 	_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
931 940
 	if e1 != 0 {
@@ -1635,6 +1644,21 @@ func Stat(path string, stat *Stat_t) (err error) {
1635 1644
 
1636 1645
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1637 1646
 
1647
+func Statvfs1(path string, buf *Statvfs_t, flags int) (err error) {
1648
+	var _p0 *byte
1649
+	_p0, err = BytePtrFromString(path)
1650
+	if err != nil {
1651
+		return
1652
+	}
1653
+	_, _, e1 := Syscall(SYS_STATVFS1, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), uintptr(flags))
1654
+	if e1 != 0 {
1655
+		err = errnoErr(e1)
1656
+	}
1657
+	return
1658
+}
1659
+
1660
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1661
+
1638 1662
 func Symlink(path string, link string) (err error) {
1639 1663
 	var _p0 *byte
1640 1664
 	_p0, err = BytePtrFromString(path)

+ 51
- 27
vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go View File

@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
239 239
 
240 240
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
241 241
 
242
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
243
-	r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
244
-	val = int(r0)
245
-	if e1 != 0 {
246
-		err = errnoErr(e1)
247
-	}
248
-	return
249
-}
250
-
251
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
252
-
253 242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
254 243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
255 244
 	n = int(r0)
@@ -361,22 +350,6 @@ func Munlockall() (err error) {
361 350
 
362 351
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
363 352
 
364
-func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
365
-	var _p0 unsafe.Pointer
366
-	if len(mib) > 0 {
367
-		_p0 = unsafe.Pointer(&mib[0])
368
-	} else {
369
-		_p0 = unsafe.Pointer(&_zero)
370
-	}
371
-	_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
372
-	if e1 != 0 {
373
-		err = errnoErr(e1)
374
-	}
375
-	return
376
-}
377
-
378
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
379
-
380 353
 func pipe() (fd1 int, fd2 int, err error) {
381 354
 	r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
382 355
 	fd1 = int(r0)
@@ -433,6 +406,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
433 406
 
434 407
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
435 408
 
409
+func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
410
+	var _p0 unsafe.Pointer
411
+	if len(mib) > 0 {
412
+		_p0 = unsafe.Pointer(&mib[0])
413
+	} else {
414
+		_p0 = unsafe.Pointer(&_zero)
415
+	}
416
+	_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
417
+	if e1 != 0 {
418
+		err = errnoErr(e1)
419
+	}
420
+	return
421
+}
422
+
423
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
424
+
436 425
 func Access(path string, mode uint32) (err error) {
437 426
 	var _p0 *byte
438 427
 	_p0, err = BytePtrFromString(path)
@@ -564,6 +553,16 @@ func Dup2(from int, to int) (err error) {
564 553
 
565 554
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
566 555
 
556
+func Dup3(from int, to int, flags int) (err error) {
557
+	_, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags))
558
+	if e1 != 0 {
559
+		err = errnoErr(e1)
560
+	}
561
+	return
562
+}
563
+
564
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
565
+
567 566
 func Exit(code int) {
568 567
 	Syscall(SYS_EXIT, uintptr(code), 0, 0)
569 568
 	return
@@ -926,6 +925,16 @@ func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
926 925
 
927 926
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
928 927
 
928
+func Fstatvfs1(fd int, buf *Statvfs_t, flags int) (err error) {
929
+	_, _, e1 := Syscall(SYS_FSTATVFS1, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(flags))
930
+	if e1 != 0 {
931
+		err = errnoErr(e1)
932
+	}
933
+	return
934
+}
935
+
936
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
937
+
929 938
 func Fsync(fd int) (err error) {
930 939
 	_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
931 940
 	if e1 != 0 {
@@ -1635,6 +1644,21 @@ func Stat(path string, stat *Stat_t) (err error) {
1635 1644
 
1636 1645
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1637 1646
 
1647
+func Statvfs1(path string, buf *Statvfs_t, flags int) (err error) {
1648
+	var _p0 *byte
1649
+	_p0, err = BytePtrFromString(path)
1650
+	if err != nil {
1651
+		return
1652
+	}
1653
+	_, _, e1 := Syscall(SYS_STATVFS1, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), uintptr(flags))
1654
+	if e1 != 0 {
1655
+		err = errnoErr(e1)
1656
+	}
1657
+	return
1658
+}
1659
+
1660
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1661
+
1638 1662
 func Symlink(path string, link string) (err error) {
1639 1663
 	var _p0 *byte
1640 1664
 	_p0, err = BytePtrFromString(path)

+ 51
- 27
vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go View File

@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
239 239
 
240 240
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
241 241
 
242
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
243
-	r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
244
-	val = int(r0)
245
-	if e1 != 0 {
246
-		err = errnoErr(e1)
247
-	}
248
-	return
249
-}
250
-
251
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
252
-
253 242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
254 243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
255 244
 	n = int(r0)
@@ -361,22 +350,6 @@ func Munlockall() (err error) {
361 350
 
362 351
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
363 352
 
364
-func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
365
-	var _p0 unsafe.Pointer
366
-	if len(mib) > 0 {
367
-		_p0 = unsafe.Pointer(&mib[0])
368
-	} else {
369
-		_p0 = unsafe.Pointer(&_zero)
370
-	}
371
-	_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
372
-	if e1 != 0 {
373
-		err = errnoErr(e1)
374
-	}
375
-	return
376
-}
377
-
378
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
379
-
380 353
 func pipe() (fd1 int, fd2 int, err error) {
381 354
 	r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
382 355
 	fd1 = int(r0)
@@ -433,6 +406,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
433 406
 
434 407
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
435 408
 
409
+func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
410
+	var _p0 unsafe.Pointer
411
+	if len(mib) > 0 {
412
+		_p0 = unsafe.Pointer(&mib[0])
413
+	} else {
414
+		_p0 = unsafe.Pointer(&_zero)
415
+	}
416
+	_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
417
+	if e1 != 0 {
418
+		err = errnoErr(e1)
419
+	}
420
+	return
421
+}
422
+
423
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
424
+
436 425
 func Access(path string, mode uint32) (err error) {
437 426
 	var _p0 *byte
438 427
 	_p0, err = BytePtrFromString(path)
@@ -564,6 +553,16 @@ func Dup2(from int, to int) (err error) {
564 553
 
565 554
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
566 555
 
556
+func Dup3(from int, to int, flags int) (err error) {
557
+	_, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags))
558
+	if e1 != 0 {
559
+		err = errnoErr(e1)
560
+	}
561
+	return
562
+}
563
+
564
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
565
+
567 566
 func Exit(code int) {
568 567
 	Syscall(SYS_EXIT, uintptr(code), 0, 0)
569 568
 	return
@@ -926,6 +925,16 @@ func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
926 925
 
927 926
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
928 927
 
928
+func Fstatvfs1(fd int, buf *Statvfs_t, flags int) (err error) {
929
+	_, _, e1 := Syscall(SYS_FSTATVFS1, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(flags))
930
+	if e1 != 0 {
931
+		err = errnoErr(e1)
932
+	}
933
+	return
934
+}
935
+
936
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
937
+
929 938
 func Fsync(fd int) (err error) {
930 939
 	_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
931 940
 	if e1 != 0 {
@@ -1635,6 +1644,21 @@ func Stat(path string, stat *Stat_t) (err error) {
1635 1644
 
1636 1645
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1637 1646
 
1647
+func Statvfs1(path string, buf *Statvfs_t, flags int) (err error) {
1648
+	var _p0 *byte
1649
+	_p0, err = BytePtrFromString(path)
1650
+	if err != nil {
1651
+		return
1652
+	}
1653
+	_, _, e1 := Syscall(SYS_STATVFS1, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), uintptr(flags))
1654
+	if e1 != 0 {
1655
+		err = errnoErr(e1)
1656
+	}
1657
+	return
1658
+}
1659
+
1660
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1661
+
1638 1662
 func Symlink(path string, link string) (err error) {
1639 1663
 	var _p0 *byte
1640 1664
 	_p0, err = BytePtrFromString(path)

+ 51
- 27
vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go View File

@@ -239,17 +239,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
239 239
 
240 240
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
241 241
 
242
-func fcntl(fd int, cmd int, arg int) (val int, err error) {
243
-	r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
244
-	val = int(r0)
245
-	if e1 != 0 {
246
-		err = errnoErr(e1)
247
-	}
248
-	return
249
-}
250
-
251
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
252
-
253 242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
254 243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
255 244
 	n = int(r0)
@@ -361,22 +350,6 @@ func Munlockall() (err error) {
361 350
 
362 351
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
363 352
 
364
-func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
365
-	var _p0 unsafe.Pointer
366
-	if len(mib) > 0 {
367
-		_p0 = unsafe.Pointer(&mib[0])
368
-	} else {
369
-		_p0 = unsafe.Pointer(&_zero)
370
-	}
371
-	_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
372
-	if e1 != 0 {
373
-		err = errnoErr(e1)
374
-	}
375
-	return
376
-}
377
-
378
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
379
-
380 353
 func pipe() (fd1 int, fd2 int, err error) {
381 354
 	r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
382 355
 	fd1 = int(r0)
@@ -433,6 +406,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
433 406
 
434 407
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
435 408
 
409
+func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
410
+	var _p0 unsafe.Pointer
411
+	if len(mib) > 0 {
412
+		_p0 = unsafe.Pointer(&mib[0])
413
+	} else {
414
+		_p0 = unsafe.Pointer(&_zero)
415
+	}
416
+	_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
417
+	if e1 != 0 {
418
+		err = errnoErr(e1)
419
+	}
420
+	return
421
+}
422
+
423
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
424
+
436 425
 func Access(path string, mode uint32) (err error) {
437 426
 	var _p0 *byte
438 427
 	_p0, err = BytePtrFromString(path)
@@ -564,6 +553,16 @@ func Dup2(from int, to int) (err error) {
564 553
 
565 554
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
566 555
 
556
+func Dup3(from int, to int, flags int) (err error) {
557
+	_, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags))
558
+	if e1 != 0 {
559
+		err = errnoErr(e1)
560
+	}
561
+	return
562
+}
563
+
564
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
565
+
567 566
 func Exit(code int) {
568 567
 	Syscall(SYS_EXIT, uintptr(code), 0, 0)
569 568
 	return
@@ -926,6 +925,16 @@ func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
926 925
 
927 926
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
928 927
 
928
+func Fstatvfs1(fd int, buf *Statvfs_t, flags int) (err error) {
929
+	_, _, e1 := Syscall(SYS_FSTATVFS1, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(flags))
930
+	if e1 != 0 {
931
+		err = errnoErr(e1)
932
+	}
933
+	return
934
+}
935
+
936
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
937
+
929 938
 func Fsync(fd int) (err error) {
930 939
 	_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
931 940
 	if e1 != 0 {
@@ -1635,6 +1644,21 @@ func Stat(path string, stat *Stat_t) (err error) {
1635 1644
 
1636 1645
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1637 1646
 
1647
+func Statvfs1(path string, buf *Statvfs_t, flags int) (err error) {
1648
+	var _p0 *byte
1649
+	_p0, err = BytePtrFromString(path)
1650
+	if err != nil {
1651
+		return
1652
+	}
1653
+	_, _, e1 := Syscall(SYS_STATVFS1, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), uintptr(flags))
1654
+	if e1 != 0 {
1655
+		err = errnoErr(e1)
1656
+	}
1657
+	return
1658
+}
1659
+
1660
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1661
+
1638 1662
 func Symlink(path string, link string) (err error) {
1639 1663
 	var _p0 *byte
1640 1664
 	_p0, err = BytePtrFromString(path)

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


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

Loading…
Cancel
Save