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

+ 2
- 0
go.sum View File

92
 golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
92
 golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
93
 golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e h1:N7DeIrjYszNmSW409R3frPPwglRwMkXSBzwVbkOjLLA=
93
 golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e h1:N7DeIrjYszNmSW409R3frPPwglRwMkXSBzwVbkOjLLA=
94
 golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
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
 golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
97
 golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
96
 golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
98
 golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
97
 golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
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
 	_           CacheLinePad
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
 // PPC64 contains the supported CPU features of the current ppc64/ppc64le platforms.
126
 // PPC64 contains the supported CPU features of the current ppc64/ppc64le platforms.
118
 // If the current platform is not ppc64/ppc64le then all feature flags are false.
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
-// 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
-// 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
-// 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
 // Use of this source code is governed by a BSD-style
2
 // Use of this source code is governed by a BSD-style
3
 // license that can be found in the LICENSE file.
3
 // license that can be found in the LICENSE file.
4
 
4
 
5
-// +build !amd64,!amd64p32,!386
5
+// +build !386,!amd64,!amd64p32,!arm64
6
 
6
 
7
 package cpu
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
 func init() {
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
 		return
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
 	doinit()
13
 	doinit()
57
-
58
 	Initialized = true
14
 	Initialized = true
59
 }
15
 }

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

4
 
4
 
5
 package cpu
5
 package cpu
6
 
6
 
7
-const cacheLineSize = 64
8
-
9
 // HWCAP/HWCAP2 bits. These are exposed by Linux.
7
 // HWCAP/HWCAP2 bits. These are exposed by Linux.
10
 const (
8
 const (
11
 	hwcap_FP       = 1 << 0
9
 	hwcap_FP       = 1 << 0
35
 )
33
 )
36
 
34
 
37
 func doinit() {
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
 	// HWCAP feature bits
42
 	// HWCAP feature bits
39
 	ARM64.HasFP = isSet(hwCap, hwcap_FP)
43
 	ARM64.HasFP = isSet(hwCap, hwcap_FP)
40
 	ARM64.HasASIMD = isSet(hwCap, hwcap_ASIMD)
44
 	ARM64.HasASIMD = isSet(hwCap, hwcap_ASIMD)

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

2
 // Use of this source code is governed by a BSD-style
2
 // Use of this source code is governed by a BSD-style
3
 // license that can be found in the LICENSE file.
3
 // license that can be found in the LICENSE file.
4
 
4
 
5
-// +build linux,!arm,!arm64,!ppc64,!ppc64le,!s390x
5
+// +build linux,!arm,!arm64,!mips64,!mips64le,!ppc64,!ppc64le,!s390x
6
 
6
 
7
 package cpu
7
 package cpu
8
 
8
 

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

6
 
6
 
7
 package cpu
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
 
89
 
90
 Adding new syscall numbers is mostly done by running the build on a sufficiently
90
 Adding new syscall numbers is mostly done by running the build on a sufficiently
91
 new installation of the target OS (or updating the source checkouts for the
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
 parsing in mksysnum.
93
 parsing in mksysnum.
94
 
94
 
95
 ### mksyscall.go
95
 ### mksyscall.go
149
 Then, edit the regex (if necessary) to match the desired constant. Avoid making
149
 Then, edit the regex (if necessary) to match the desired constant. Avoid making
150
 the regex too broad to avoid matching unintended constants.
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
 ## Generated files
164
 ## Generated files
154
 
165
 
155
-### `zerror_${GOOS}_${GOARCH}.go`
166
+### `zerrors_${GOOS}_${GOARCH}.go`
156
 
167
 
157
 A file containing all of the system's generated error numbers, error strings,
168
 A file containing all of the system's generated error numbers, error strings,
158
 signal numbers, and constants. Generated by `mkerrors.sh` (see above).
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
 	MOV	a1+8(FP), A0
23
 	MOV	a1+8(FP), A0
24
 	MOV	a2+16(FP), A1
24
 	MOV	a2+16(FP), A1
25
 	MOV	a3+24(FP), A2
25
 	MOV	a3+24(FP), A2
26
-	MOV	$0, A3
27
-	MOV	$0, A4
28
-	MOV	$0, A5
29
-	MOV	$0, A6
30
 	MOV	trap+0(FP), A7	// syscall entry
26
 	MOV	trap+0(FP), A7	// syscall entry
31
 	ECALL
27
 	ECALL
32
 	MOV	A0, r1+32(FP)	// r1
28
 	MOV	A0, r1+32(FP)	// r1
44
 	MOV	a1+8(FP), A0
40
 	MOV	a1+8(FP), A0
45
 	MOV	a2+16(FP), A1
41
 	MOV	a2+16(FP), A1
46
 	MOV	a3+24(FP), A2
42
 	MOV	a3+24(FP), A2
47
-	MOV	ZERO, A3
48
-	MOV	ZERO, A4
49
-	MOV	ZERO, A5
50
 	MOV	trap+0(FP), A7	// syscall entry
43
 	MOV	trap+0(FP), A7	// syscall entry
51
 	ECALL
44
 	ECALL
52
 	MOV	A0, r1+32(FP)
45
 	MOV	A0, r1+32(FP)

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

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

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

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

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

9
 import "unsafe"
9
 import "unsafe"
10
 
10
 
11
 // fcntl64Syscall is usually SYS_FCNTL, but is overridden on 32-bit Linux
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
 var fcntl64Syscall uintptr = SYS_FCNTL
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
 	var err error
17
 	var err error
19
 	if errno != 0 {
18
 	if errno != 0 {
20
 		err = errno
19
 		err = errno
22
 	return int(valptr), err
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
 // FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
29
 // FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
26
 func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error {
30
 func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error {
27
 	_, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(unsafe.Pointer(lk)))
31
 	_, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(unsafe.Pointer(lk)))

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

50
 	# Use the Docker-based build system
50
 	# Use the Docker-based build system
51
 	# Files generated through docker (use $cmd so you can Ctl-C the build or run)
51
 	# Files generated through docker (use $cmd so you can Ctl-C the build or run)
52
 	$cmd docker build --tag generate:$GOOS $GOOS
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
 	exit
54
 	exit
55
 fi
55
 fi
56
 
56
 
124
 freebsd_arm64)
124
 freebsd_arm64)
125
 	mkerrors="$mkerrors -m64"
125
 	mkerrors="$mkerrors -m64"
126
 	mksysnum="go run mksysnum.go 'https://svn.freebsd.org/base/stable/11/sys/kern/syscalls.master'"
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
 netbsd_386)
129
 netbsd_386)
130
 	mkerrors="$mkerrors -m32"
130
 	mkerrors="$mkerrors -m32"
190
 	mksysnum=
190
 	mksysnum=
191
 	mktypes="GOARCH=$GOARCH go tool cgo -godefs"
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
 	echo 'unrecognized $GOOS_$GOARCH: ' "$GOOSARCH" 1>&2
200
 	echo 'unrecognized $GOOS_$GOARCH: ' "$GOOSARCH" 1>&2
195
 	exit 1
201
 	exit 1
217
 				echo "$mksyscall -tags $GOOS,$GOARCH,go1.12 $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go";
223
 				echo "$mksyscall -tags $GOOS,$GOARCH,go1.12 $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go";
218
 				# 1.13 and later, syscalls via libSystem (including syscallPtr)
224
 				# 1.13 and later, syscalls via libSystem (including syscallPtr)
219
 				echo "$mksyscall -tags $GOOS,$GOARCH,go1.13 syscall_darwin.1_13.go |gofmt >zsyscall_$GOOSARCH.1_13.go";
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
 			else
231
 			else
221
 				echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go";
232
 				echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go";
222
 			fi
233
 			fi

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

105
 #include <sys/capsicum.h>
105
 #include <sys/capsicum.h>
106
 #include <sys/param.h>
106
 #include <sys/param.h>
107
 #include <sys/types.h>
107
 #include <sys/types.h>
108
+#include <sys/disk.h>
108
 #include <sys/event.h>
109
 #include <sys/event.h>
109
 #include <sys/select.h>
110
 #include <sys/select.h>
110
 #include <sys/socket.h>
111
 #include <sys/socket.h>
186
 #include <sys/select.h>
187
 #include <sys/select.h>
187
 #include <sys/signalfd.h>
188
 #include <sys/signalfd.h>
188
 #include <sys/socket.h>
189
 #include <sys/socket.h>
190
+#include <sys/timerfd.h>
191
+#include <sys/uio.h>
189
 #include <sys/xattr.h>
192
 #include <sys/xattr.h>
190
 #include <linux/bpf.h>
193
 #include <linux/bpf.h>
191
 #include <linux/can.h>
194
 #include <linux/can.h>
197
 #include <linux/fanotify.h>
200
 #include <linux/fanotify.h>
198
 #include <linux/filter.h>
201
 #include <linux/filter.h>
199
 #include <linux/fs.h>
202
 #include <linux/fs.h>
203
+#include <linux/fscrypt.h>
204
+#include <linux/fsverity.h>
200
 #include <linux/genetlink.h>
205
 #include <linux/genetlink.h>
201
 #include <linux/hdreg.h>
206
 #include <linux/hdreg.h>
202
 #include <linux/icmpv6.h>
207
 #include <linux/icmpv6.h>
278
 // for the tipc_subscr timeout __u32 field.
283
 // for the tipc_subscr timeout __u32 field.
279
 #undef TIPC_WAIT_FOREVER
284
 #undef TIPC_WAIT_FOREVER
280
 #define TIPC_WAIT_FOREVER 0xffffffff
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
 includes_NetBSD='
293
 includes_NetBSD='
471
 		$2 ~ /^(MS|MNT|UMOUNT)_/ ||
481
 		$2 ~ /^(MS|MNT|UMOUNT)_/ ||
472
 		$2 ~ /^NS_GET_/ ||
482
 		$2 ~ /^NS_GET_/ ||
473
 		$2 ~ /^TUN(SET|GET|ATTACH|DETACH)/ ||
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
 		$2 ~ /^KEXEC_/ ||
485
 		$2 ~ /^KEXEC_/ ||
476
 		$2 ~ /^LINUX_REBOOT_CMD_/ ||
486
 		$2 ~ /^LINUX_REBOOT_CMD_/ ||
477
 		$2 ~ /^LINUX_REBOOT_MAGIC[12]$/ ||
487
 		$2 ~ /^LINUX_REBOOT_MAGIC[12]$/ ||
478
 		$2 ~ /^MODULE_INIT_/ ||
488
 		$2 ~ /^MODULE_INIT_/ ||
479
 		$2 !~ "NLA_TYPE_MASK" &&
489
 		$2 !~ "NLA_TYPE_MASK" &&
490
+		$2 !~ /^RTC_VL_(ACCURACY|BACKUP|DATA)/ &&
480
 		$2 ~ /^(NETLINK|NLM|NLMSG|NLA|IFA|IFAN|RT|RTC|RTCF|RTN|RTPROT|RTNH|ARPHRD|ETH_P|NETNSA)_/ ||
491
 		$2 ~ /^(NETLINK|NLM|NLMSG|NLA|IFA|IFAN|RT|RTC|RTCF|RTN|RTPROT|RTNH|ARPHRD|ETH_P|NETNSA)_/ ||
481
 		$2 ~ /^SIOC/ ||
492
 		$2 ~ /^SIOC/ ||
482
 		$2 ~ /^TIOC/ ||
493
 		$2 ~ /^TIOC/ ||
484
 		$2 ~ /^TCSET/ ||
495
 		$2 ~ /^TCSET/ ||
485
 		$2 ~ /^TC(FLSH|SBRKP?|XONC)$/ ||
496
 		$2 ~ /^TC(FLSH|SBRKP?|XONC)$/ ||
486
 		$2 !~ "RTF_BITS" &&
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
 		$2 ~ /^BIOC/ ||
499
 		$2 ~ /^BIOC/ ||
500
+		$2 ~ /^DIOC/ ||
489
 		$2 ~ /^RUSAGE_(SELF|CHILDREN|THREAD)/ ||
501
 		$2 ~ /^RUSAGE_(SELF|CHILDREN|THREAD)/ ||
490
 		$2 ~ /^RLIMIT_(AS|CORE|CPU|DATA|FSIZE|LOCKS|MEMLOCK|MSGQUEUE|NICE|NOFILE|NPROC|RSS|RTPRIO|RTTIME|SIGPENDING|STACK)|RLIM_INFINITY/ ||
502
 		$2 ~ /^RLIMIT_(AS|CORE|CPU|DATA|FSIZE|LOCKS|MEMLOCK|MSGQUEUE|NICE|NOFILE|NPROC|RSS|RTPRIO|RTTIME|SIGPENDING|STACK)|RLIM_INFINITY/ ||
491
 		$2 ~ /^PRIO_(PROCESS|PGRP|USER)/ ||
503
 		$2 ~ /^PRIO_(PROCESS|PGRP|USER)/ ||
496
 		$2 ~ /^CAN_/ ||
508
 		$2 ~ /^CAN_/ ||
497
 		$2 ~ /^CAP_/ ||
509
 		$2 ~ /^CAP_/ ||
498
 		$2 ~ /^ALG_/ ||
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
 		$2 ~ /^GRND_/ ||
515
 		$2 ~ /^GRND_/ ||
501
 		$2 ~ /^RND/ ||
516
 		$2 ~ /^RND/ ||
502
 		$2 ~ /^KEY_(SPEC|REQKEY_DEFL)_/ ||
517
 		$2 ~ /^KEY_(SPEC|REQKEY_DEFL)_/ ||
523
 		$2 ~ /^WDIOC_/ ||
538
 		$2 ~ /^WDIOC_/ ||
524
 		$2 ~ /^NFN/ ||
539
 		$2 ~ /^NFN/ ||
525
 		$2 ~ /^XDP_/ ||
540
 		$2 ~ /^XDP_/ ||
541
+		$2 ~ /^RWF_/ ||
526
 		$2 ~ /^(HDIO|WIN|SMART)_/ ||
542
 		$2 ~ /^(HDIO|WIN|SMART)_/ ||
527
 		$2 ~ /^CRYPTO_/ ||
543
 		$2 ~ /^CRYPTO_/ ||
528
 		$2 ~ /^TIPC_/ ||
544
 		$2 ~ /^TIPC_/ ||

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

510
 	return buf[:n], nil
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
 //sys	utimes(path string, timeval *[2]Timeval) (err error)
530
 //sys	utimes(path string, timeval *[2]Timeval) (err error)
514
 
531
 
515
 func Utimes(path string, tv []Timeval) error {
532
 func Utimes(path string, tv []Timeval) error {
577
 	return futimes(fd, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
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
 //sys   poll(fds *PollFd, nfds int, timeout int) (n int, err error)
597
 //sys   poll(fds *PollFd, nfds int, timeout int) (n int, err error)
583
 
598
 
584
 func Poll(fds []PollFd, timeout int) (n int, err error) {
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
 
6
 
7
 package unix
7
 package unix
8
 
8
 
9
-import "unsafe"
9
+import (
10
+	"unsafe"
11
+
12
+	"golang.org/x/sys/internal/unsafeheader"
13
+)
10
 
14
 
11
 //sys	closedir(dir uintptr) (err error)
15
 //sys	closedir(dir uintptr) (err error)
12
 //sys	readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno)
16
 //sys	readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno)
71
 			cnt++
75
 			cnt++
72
 			continue
76
 			continue
73
 		}
77
 		}
78
+
74
 		reclen := int(entry.Reclen)
79
 		reclen := int(entry.Reclen)
75
 		if reclen > len(buf) {
80
 		if reclen > len(buf) {
76
 			// Not enough room. Return for now.
81
 			// Not enough room. Return for now.
79
 			// restarting is O(n^2) in the length of the directory. Oh well.
84
 			// restarting is O(n^2) in the length of the directory. Oh well.
80
 			break
85
 			break
81
 		}
86
 		}
87
+
82
 		// Copy entry into return buffer.
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
 		buf = buf[reclen:]
96
 		buf = buf[reclen:]
90
 		n += reclen
97
 		n += reclen
91
 		cnt++
98
 		cnt++

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

155
 
155
 
156
 //sys getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error)
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
 //sysnb pipe() (r int, w int, err error)
158
 //sysnb pipe() (r int, w int, err error)
176
 
159
 
177
 func Pipe(p []int) (err error) {
160
 func Pipe(p []int) (err error) {
333
  * Wrapped
316
  * Wrapped
334
  */
317
  */
335
 
318
 
319
+//sys	fcntl(fd int, cmd int, arg int) (val int, err error)
320
+
336
 //sys	kill(pid int, signum int, posix int) (err error)
321
 //sys	kill(pid int, signum int, posix int) (err error)
337
 
322
 
338
 func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(signum), 1) }
323
 func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(signum), 1) }
438
 //sysnb	Getrlimit(which int, lim *Rlimit) (err error)
423
 //sysnb	Getrlimit(which int, lim *Rlimit) (err error)
439
 //sysnb	Getrusage(who int, rusage *Rusage) (err error)
424
 //sysnb	Getrusage(who int, rusage *Rusage) (err error)
440
 //sysnb	Getsid(pid int) (sid int, err error)
425
 //sysnb	Getsid(pid int) (sid int, err error)
426
+//sysnb	Gettimeofday(tp *Timeval) (err error)
441
 //sysnb	Getuid() (uid int)
427
 //sysnb	Getuid() (uid int)
442
 //sysnb	Issetugid() (tainted bool)
428
 //sysnb	Issetugid() (tainted bool)
443
 //sys	Kqueue() (fd int, err error)
429
 //sys	Kqueue() (fd int, err error)

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

20
 	return Timeval{Sec: int32(sec), Usec: int32(usec)}
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
 func SetKevent(k *Kevent_t, fd, mode, flags int) {
23
 func SetKevent(k *Kevent_t, fd, mode, flags int) {
35
 	k.Ident = uint32(fd)
24
 	k.Ident = uint32(fd)
36
 	k.Filter = int16(mode)
25
 	k.Filter = int16(mode)

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

20
 	return Timeval{Sec: sec, Usec: int32(usec)}
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
 func SetKevent(k *Kevent_t, fd, mode, flags int) {
23
 func SetKevent(k *Kevent_t, fd, mode, flags int) {
35
 	k.Ident = uint64(fd)
24
 	k.Ident = uint64(fd)
36
 	k.Filter = int16(mode)
25
 	k.Filter = int16(mode)

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

2
 // Use of this source code is governed by a BSD-style
2
 // Use of this source code is governed by a BSD-style
3
 // license that can be found in the LICENSE file.
3
 // license that can be found in the LICENSE file.
4
 
4
 
5
-// +build darwin,386,!go1.12
5
+// +build darwin,arm,!go1.12
6
 
6
 
7
 package unix
7
 package unix
8
 
8
 

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

20
 	return Timeval{Sec: int32(sec), Usec: int32(usec)}
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
 func SetKevent(k *Kevent_t, fd, mode, flags int) {
23
 func SetKevent(k *Kevent_t, fd, mode, flags int) {
35
 	k.Ident = uint32(fd)
24
 	k.Ident = uint32(fd)
36
 	k.Filter = int16(mode)
25
 	k.Filter = int16(mode)

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

22
 	return Timeval{Sec: sec, Usec: int32(usec)}
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
 func SetKevent(k *Kevent_t, fd, mode, flags int) {
25
 func SetKevent(k *Kevent_t, fd, mode, flags int) {
37
 	k.Ident = uint64(fd)
26
 	k.Ident = uint64(fd)
38
 	k.Filter = int16(mode)
27
 	k.Filter = int16(mode)

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

521
 	return ptrace(PTRACE_GETFPREGS, pid, uintptr(unsafe.Pointer(fpregsout)), 0)
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
 func PtraceGetRegs(pid int, regsout *Reg) (err error) {
524
 func PtraceGetRegs(pid int, regsout *Reg) (err error) {
529
 	return ptrace(PTRACE_GETREGS, pid, uintptr(unsafe.Pointer(regsout)), 0)
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
 func PtraceLwpEvents(pid int, enable int) (err error) {
528
 func PtraceLwpEvents(pid int, enable int) (err error) {
539
 	return ptrace(PTRACE_LWPEVENTS, pid, 0, enable)
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
 }
54
 }
55
 
55
 
56
 func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
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
 }
54
 }
55
 
55
 
56
 func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
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
 }
54
 }
55
 
55
 
56
 func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
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
 }
54
 }
55
 
55
 
56
 func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
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
 	return unsafe.Pointer(&sa.raw), SizeofSockaddrTIPC, nil
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
 func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
876
 func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
843
 	switch rsa.Addr.Family {
877
 	switch rsa.Addr.Family {
844
 	case AF_NETLINK:
878
 	case AF_NETLINK:
889
 		return sa, nil
923
 		return sa, nil
890
 
924
 
891
 	case AF_INET:
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
 	case AF_INET6:
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
 	case AF_VSOCK:
979
 	case AF_VSOCK:
913
 		pp := (*RawSockaddrVM)(unsafe.Pointer(rsa))
980
 		pp := (*RawSockaddrVM)(unsafe.Pointer(rsa))
1555
 //sys	Acct(path string) (err error)
1622
 //sys	Acct(path string) (err error)
1556
 //sys	AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error)
1623
 //sys	AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error)
1557
 //sys	Adjtimex(buf *Timex) (state int, err error)
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
 //sys	Chdir(path string) (err error)
1627
 //sys	Chdir(path string) (err error)
1561
 //sys	Chroot(path string) (err error)
1628
 //sys	Chroot(path string) (err error)
1562
 //sys	ClockGetres(clockid int32, res *Timespec) (err error)
1629
 //sys	ClockGetres(clockid int32, res *Timespec) (err error)
1566
 //sys	CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
1633
 //sys	CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
1567
 //sys	DeleteModule(name string, flags int) (err error)
1634
 //sys	DeleteModule(name string, flags int) (err error)
1568
 //sys	Dup(oldfd int) (fd int, err error)
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
 //sys	Dup3(oldfd int, newfd int, flags int) (err error)
1645
 //sys	Dup3(oldfd int, newfd int, flags int) (err error)
1570
 //sysnb	EpollCreate1(flag int) (fd int, err error)
1646
 //sysnb	EpollCreate1(flag int) (fd int, err error)
1571
 //sysnb	EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error)
1647
 //sysnb	EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error)
1575
 //sys	Fchdir(fd int) (err error)
1651
 //sys	Fchdir(fd int) (err error)
1576
 //sys	Fchmod(fd int, mode uint32) (err error)
1652
 //sys	Fchmod(fd int, mode uint32) (err error)
1577
 //sys	Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
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
 //sys	Fdatasync(fd int) (err error)
1654
 //sys	Fdatasync(fd int) (err error)
1580
 //sys	Fgetxattr(fd int, attr string, dest []byte) (sz int, err error)
1655
 //sys	Fgetxattr(fd int, attr string, dest []byte) (sz int, err error)
1581
 //sys	FinitModule(fd int, params string, flags int) (err error)
1656
 //sys	FinitModule(fd int, params string, flags int) (err error)
1631
 //sysnb	Settimeofday(tv *Timeval) (err error)
1706
 //sysnb	Settimeofday(tv *Timeval) (err error)
1632
 //sys	Setns(fd int, nstype int) (err error)
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
 // issue 1435.
1720
 // issue 1435.
1635
 // On linux Setuid and Setgid only affects the current thread, not the process.
1721
 // On linux Setuid and Setgid only affects the current thread, not the process.
1636
 // This does not match what most callers expect so we must return an error
1722
 // This does not match what most callers expect so we must return an error
1644
 	return EOPNOTSUPP
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
 func Signalfd(fd int, sigmask *Sigset_t, flags int) (newfd int, err error) {
1757
 func Signalfd(fd int, sigmask *Sigset_t, flags int) (newfd int, err error) {
1648
 	return signalfd(fd, sigmask, _C__NSIG/8, flags)
1758
 	return signalfd(fd, sigmask, _C__NSIG/8, flags)
1649
 }
1759
 }
1656
 //sys	Syncfs(fd int) (err error)
1766
 //sys	Syncfs(fd int) (err error)
1657
 //sysnb	Sysinfo(info *Sysinfo_t) (err error)
1767
 //sysnb	Sysinfo(info *Sysinfo_t) (err error)
1658
 //sys	Tee(rfd int, wfd int, len int, flags int) (n int64, err error)
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
 //sysnb	Tgkill(tgid int, tid int, sig syscall.Signal) (err error)
1772
 //sysnb	Tgkill(tgid int, tid int, sig syscall.Signal) (err error)
1660
 //sysnb	Times(tms *Tms) (ticks uintptr, err error)
1773
 //sysnb	Times(tms *Tms) (ticks uintptr, err error)
1661
 //sysnb	Umask(mask int) (oldmask int)
1774
 //sysnb	Umask(mask int) (oldmask int)
1666
 //sys	exitThread(code int) (err error) = SYS_EXIT
1779
 //sys	exitThread(code int) (err error) = SYS_EXIT
1667
 //sys	readlen(fd int, p *byte, np int) (n int, err error) = SYS_READ
1780
 //sys	readlen(fd int, p *byte, np int) (n int, err error) = SYS_READ
1668
 //sys	writelen(fd int, p *byte, np int) (n int, err error) = SYS_WRITE
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
 // mmap varies by architecture; see syscall_linux_*.go.
1900
 // mmap varies by architecture; see syscall_linux_*.go.
1671
 //sys	munmap(addr uintptr, length uintptr) (err error)
1901
 //sys	munmap(addr uintptr, length uintptr) (err error)
1960
 // TimerGetoverrun
2190
 // TimerGetoverrun
1961
 // TimerGettime
2191
 // TimerGettime
1962
 // TimerSettime
2192
 // TimerSettime
1963
-// Timerfd
1964
 // Tkill (obsolete)
2193
 // Tkill (obsolete)
1965
 // Tuxcall
2194
 // Tuxcall
1966
 // Umount2
2195
 // Umount2

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

49
 
49
 
50
 // 64-bit file system and 32-bit uid calls
50
 // 64-bit file system and 32-bit uid calls
51
 // (386 default is 32-bit file system and 16-bit uid).
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
 //sysnb	EpollCreate(size int) (fd int, err error)
53
 //sysnb	EpollCreate(size int) (fd int, err error)
54
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
54
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
55
 //sys	Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64_64
55
 //sys	Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64_64
70
 //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
70
 //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
71
 //sys	Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
71
 //sys	Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
72
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
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
 //sysnb	Setregid(rgid int, egid int) (err error) = SYS_SETREGID32
75
 //sysnb	Setregid(rgid int, egid int) (err error) = SYS_SETREGID32
76
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID32
76
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID32
77
 //sysnb	Setresuid(ruid int, euid int, suid int) (err error) = SYS_SETRESUID32
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
 
6
 
7
 package unix
7
 package unix
8
 
8
 
9
-//sys	Dup2(oldfd int, newfd int) (err error)
9
+//sys	dup2(oldfd int, newfd int) (err error)
10
 //sysnb	EpollCreate(size int) (fd int, err error)
10
 //sysnb	EpollCreate(size int) (fd int, err error)
11
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
11
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
12
 //sys	Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
12
 //sys	Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
55
 }
55
 }
56
 
56
 
57
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
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
 //sysnb	Setregid(rgid int, egid int) (err error)
60
 //sysnb	Setregid(rgid int, egid int) (err error)
61
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
61
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
62
 //sysnb	Setresuid(ruid int, euid int, suid int) (err error)
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
 
80
 
81
 // 64-bit file system and 32-bit uid calls
81
 // 64-bit file system and 32-bit uid calls
82
 // (16-bit uid calls are not always supported in newer kernels)
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
 //sysnb	EpollCreate(size int) (fd int, err error)
84
 //sysnb	EpollCreate(size int) (fd int, err error)
85
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
85
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
86
 //sys	Fchown(fd int, uid int, gid int) (err error) = SYS_FCHOWN32
86
 //sys	Fchown(fd int, uid int, gid int) (err error) = SYS_FCHOWN32
98
 //sys	Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
98
 //sys	Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
99
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
99
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
100
 //sys	Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
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
 //sysnb	Setregid(rgid int, egid int) (err error) = SYS_SETREGID32
103
 //sysnb	Setregid(rgid int, egid int) (err error) = SYS_SETREGID32
104
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID32
104
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID32
105
 //sysnb	Setresuid(ruid int, euid int, suid int) (err error) = SYS_SETRESUID32
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
 //sysnb	Getegid() (egid int)
25
 //sysnb	Getegid() (egid int)
26
 //sysnb	Geteuid() (euid int)
26
 //sysnb	Geteuid() (euid int)
27
 //sysnb	Getgid() (gid int)
27
 //sysnb	Getgid() (gid int)
28
-//sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
28
+//sysnb	getrlimit(resource int, rlim *Rlimit) (err error)
29
 //sysnb	Getuid() (uid int)
29
 //sysnb	Getuid() (uid int)
30
 //sys	Listen(s int, n int) (err error)
30
 //sys	Listen(s int, n int) (err error)
31
 //sys	Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
31
 //sys	Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
42
 }
42
 }
43
 
43
 
44
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
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
 //sysnb	Setregid(rgid int, egid int) (err error)
47
 //sysnb	Setregid(rgid int, egid int) (err error)
48
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
48
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
49
 //sysnb	Setresuid(ruid int, euid int, suid int) (err error)
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
 //sysnb	Setreuid(ruid int, euid int) (err error)
51
 //sysnb	Setreuid(ruid int, euid int) (err error)
52
 //sys	Shutdown(fd int, how int) (err error)
52
 //sys	Shutdown(fd int, how int) (err error)
53
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
53
 //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
168
 	return
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
 func (r *PtraceRegs) PC() uint64 { return r.Pc }
189
 func (r *PtraceRegs) PC() uint64 { return r.Pc }
172
 
190
 
173
 func (r *PtraceRegs) SetPC(pc uint64) { r.Pc = pc }
191
 func (r *PtraceRegs) SetPC(pc uint64) { r.Pc = pc }
192
 	return InotifyInit1(0)
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
 func Pause() error {
217
 func Pause() error {
200
 	_, err := ppoll(nil, 0, nil, nil)
218
 	_, err := ppoll(nil, 0, nil, nil)

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

7
 
7
 
8
 package unix
8
 package unix
9
 
9
 
10
-//sys	Dup2(oldfd int, newfd int) (err error)
10
+//sys	dup2(oldfd int, newfd int) (err error)
11
 //sysnb	EpollCreate(size int) (fd int, err error)
11
 //sysnb	EpollCreate(size int) (fd int, err error)
12
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
12
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
13
 //sys	Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
13
 //sys	Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
36
 }
36
 }
37
 
37
 
38
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
38
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
39
-//sys	Setfsgid(gid int) (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
 //sysnb	Setregid(rgid int, egid int) (err error)
41
 //sysnb	Setregid(rgid int, egid int) (err error)
42
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
42
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
43
 //sysnb	Setresuid(ruid int, euid int, suid int) (err error)
43
 //sysnb	Setresuid(ruid int, euid int, suid int) (err error)
216
 	cmsg.Len = uint64(length)
216
 	cmsg.Len = uint64(length)
217
 }
217
 }
218
 
218
 
219
+func InotifyInit() (fd int, err error) {
220
+	return InotifyInit1(0)
221
+}
222
+
219
 //sys	poll(fds *PollFd, nfds int, timeout int) (n int, err error)
223
 //sys	poll(fds *PollFd, nfds int, timeout int) (n int, err error)
220
 
224
 
221
 func Poll(fds []PollFd, timeout int) (n int, err error) {
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
 
14
 
15
 func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
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
 //sysnb	EpollCreate(size int) (fd int, err error)
18
 //sysnb	EpollCreate(size int) (fd int, err error)
19
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
19
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
20
 //sys	Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
20
 //sys	Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
31
 //sys	Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
31
 //sys	Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
32
 //sys	Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
32
 //sys	Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
33
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
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
 //sysnb	Setregid(rgid int, egid int) (err error)
36
 //sysnb	Setregid(rgid int, egid int) (err error)
37
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
37
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
38
 //sysnb	Setresuid(ruid int, euid int, suid int) (err error)
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
 
8
 package unix
8
 package unix
9
 
9
 
10
-//sys	Dup2(oldfd int, newfd int) (err error)
10
+//sys	dup2(oldfd int, newfd int) (err error)
11
 //sysnb	EpollCreate(size int) (fd int, err error)
11
 //sysnb	EpollCreate(size int) (fd int, err error)
12
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
12
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
13
 //sys	Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
13
 //sys	Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
34
 //sys	Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
34
 //sys	Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
35
 //sys	Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
35
 //sys	Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
36
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
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
 //sysnb	Setregid(rgid int, egid int) (err error)
39
 //sysnb	Setregid(rgid int, egid int) (err error)
40
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
40
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
41
 //sysnb	Setresuid(ruid int, euid int, suid int) (err error)
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
 }
41
 }
42
 
42
 
43
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
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
 //sysnb	Setregid(rgid int, egid int) (err error)
46
 //sysnb	Setregid(rgid int, egid int) (err error)
47
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
47
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
48
 //sysnb	Setresuid(ruid int, euid int, suid int) (err error)
48
 //sysnb	Setresuid(ruid int, euid int, suid int) (err error)
191
 	return InotifyInit1(0)
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
 func Pause() error {
194
 func Pause() error {
199
 	_, err := ppoll(nil, 0, nil, nil)
195
 	_, err := ppoll(nil, 0, nil, nil)
200
 	return err
196
 	return err
228
 	}
224
 	}
229
 	return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
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
 	"unsafe"
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
 //sysnb	EpollCreate(size int) (fd int, err error)
14
 //sysnb	EpollCreate(size int) (fd int, err error)
15
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
15
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
16
 //sys	Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
16
 //sys	Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
34
 //sys	Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
34
 //sys	Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
35
 //sys	Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
35
 //sys	Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
36
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
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
 //sysnb	Setregid(rgid int, egid int) (err error)
39
 //sysnb	Setregid(rgid int, egid int) (err error)
40
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
40
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
41
 //sysnb	Setresuid(ruid int, euid int, suid int) (err error)
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
 
8
 
9
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
9
 //sys	EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
10
 //sys	Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
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
 //sys	Fchown(fd int, uid int, gid int) (err error)
12
 //sys	Fchown(fd int, uid int, gid int) (err error)
13
 //sys	Fstat(fd int, stat *Stat_t) (err error)
13
 //sys	Fstat(fd int, stat *Stat_t) (err error)
14
 //sys	Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
14
 //sys	Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
30
 //sys	Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
30
 //sys	Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
31
 //sys	Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
31
 //sys	Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
32
 //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
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
 //sysnb	Setregid(rgid int, egid int) (err error)
35
 //sysnb	Setregid(rgid int, egid int) (err error)
36
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
36
 //sysnb	Setresgid(rgid int, egid int, sgid int) (err error)
37
 //sysnb	Setresuid(ruid int, euid int, suid int) (err error)
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
 	return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
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
 //sysnb pipe() (fd1 int, fd2 int, err error)
109
 //sysnb pipe() (fd1 int, fd2 int, err error)
127
 func Pipe(p []int) (err error) {
110
 func Pipe(p []int) (err error) {
128
 	if len(p) != 2 {
111
 	if len(p) != 2 {
249
 	return sendfile(outfd, infd, offset, count)
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
  * Exposed directly
244
  * Exposed directly
254
  */
245
  */
262
 //sys	Close(fd int) (err error)
253
 //sys	Close(fd int) (err error)
263
 //sys	Dup(fd int) (nfd int, err error)
254
 //sys	Dup(fd int) (nfd int, err error)
264
 //sys	Dup2(from int, to int) (err error)
255
 //sys	Dup2(from int, to int) (err error)
256
+//sys	Dup3(from int, to int, flags int) (err error)
265
 //sys	Exit(code int)
257
 //sys	Exit(code int)
266
 //sys	ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
258
 //sys	ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
267
 //sys	ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
259
 //sys	ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
287
 //sys	Fpathconf(fd int, name int) (val int, err error)
279
 //sys	Fpathconf(fd int, name int) (val int, err error)
288
 //sys	Fstat(fd int, stat *Stat_t) (err error)
280
 //sys	Fstat(fd int, stat *Stat_t) (err error)
289
 //sys	Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
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
 //sys	Fsync(fd int) (err error)
283
 //sys	Fsync(fd int) (err error)
291
 //sys	Ftruncate(fd int, length int64) (err error)
284
 //sys	Ftruncate(fd int, length int64) (err error)
292
 //sysnb	Getegid() (egid int)
285
 //sysnb	Getegid() (egid int)
343
 //sysnb	Settimeofday(tp *Timeval) (err error)
336
 //sysnb	Settimeofday(tp *Timeval) (err error)
344
 //sysnb	Setuid(uid int) (err error)
337
 //sysnb	Setuid(uid int) (err error)
345
 //sys	Stat(path string, stat *Stat_t) (err error)
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
 //sys	Symlink(path string, link string) (err error)
340
 //sys	Symlink(path string, link string) (err error)
347
 //sys	Symlinkat(oldpath string, newdirfd int, newpath string) (err error)
341
 //sys	Symlinkat(oldpath string, newdirfd int, newpath string) (err error)
348
 //sys	Sync() (err error)
342
 //sys	Sync() (err error)

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

55
 	return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
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
 func SysctlUvmexp(name string) (*Uvmexp, error) {
58
 func SysctlUvmexp(name string) (*Uvmexp, error) {
76
 	mib, err := sysctlmib(name)
59
 	mib, err := sysctlmib(name)
77
 	if err != nil {
60
 	if err != nil {
89
 	return &u, nil
72
 	return &u, nil
90
 }
73
 }
91
 
74
 
92
-//sysnb pipe(p *[2]_C_int) (err error)
93
 func Pipe(p []int) (err error) {
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
 	if len(p) != 2 {
81
 	if len(p) != 2 {
95
 		return EINVAL
82
 		return EINVAL
96
 	}
83
 	}
97
 	var pp [2]_C_int
84
 	var pp [2]_C_int
98
-	err = pipe(&pp)
85
+	err := pipe2(&pp, flags)
99
 	p[0] = int(pp[0])
86
 	p[0] = int(pp[0])
100
 	p[1] = int(pp[1])
87
 	p[1] = int(pp[1])
101
-	return
88
+	return err
102
 }
89
 }
103
 
90
 
104
 //sys Getdents(fd int, buf []byte) (n int, err error)
91
 //sys Getdents(fd int, buf []byte) (n int, err error)
248
 //sys	Close(fd int) (err error)
235
 //sys	Close(fd int) (err error)
249
 //sys	Dup(fd int) (nfd int, err error)
236
 //sys	Dup(fd int) (nfd int, err error)
250
 //sys	Dup2(from int, to int) (err error)
237
 //sys	Dup2(from int, to int) (err error)
238
+//sys	Dup3(from int, to int, flags int) (err error)
251
 //sys	Exit(code int)
239
 //sys	Exit(code int)
252
 //sys	Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
240
 //sys	Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
253
 //sys	Fchdir(fd int) (err error)
241
 //sys	Fchdir(fd int) (err error)
352
 // clock_settime
340
 // clock_settime
353
 // closefrom
341
 // closefrom
354
 // execve
342
 // execve
355
-// fcntl
356
 // fhopen
343
 // fhopen
357
 // fhstat
344
 // fhstat
358
 // fhstatfs
345
 // fhstatfs

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

12
 	"sync"
12
 	"sync"
13
 	"syscall"
13
 	"syscall"
14
 	"unsafe"
14
 	"unsafe"
15
+
16
+	"golang.org/x/sys/internal/unsafeheader"
15
 )
17
 )
16
 
18
 
17
 var (
19
 var (
76
 // The signal name should start with "SIG".
78
 // The signal name should start with "SIG".
77
 func SignalNum(s string) syscall.Signal {
79
 func SignalNum(s string) syscall.Signal {
78
 	signalNameMapOnce.Do(func() {
80
 	signalNameMapOnce.Do(func() {
79
-		signalNameMap = make(map[string]syscall.Signal)
81
+		signalNameMap = make(map[string]syscall.Signal, len(signalList))
80
 		for _, signal := range signalList {
82
 		for _, signal := range signalList {
81
 			signalNameMap[signal.name] = signal.num
83
 			signalNameMap[signal.name] = signal.num
82
 		}
84
 		}
113
 		return nil, errno
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
 	// Register mapping in m and return it.
125
 	// Register mapping in m and return it.
127
 	p := &b[cap(b)-1]
126
 	p := &b[cap(b)-1]

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

355
 	CTL_KERN                       = 0x1
355
 	CTL_KERN                       = 0x1
356
 	CTL_MAXNAME                    = 0x18
356
 	CTL_MAXNAME                    = 0x18
357
 	CTL_NET                        = 0x4
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
 	DLT_A429                       = 0xb8
374
 	DLT_A429                       = 0xb8
359
 	DLT_A653_ICM                   = 0xb9
375
 	DLT_A653_ICM                   = 0xb9
360
 	DLT_AIRONET_HEADER             = 0x78
376
 	DLT_AIRONET_HEADER             = 0x78
379
 	DLT_CHAOS                      = 0x5
395
 	DLT_CHAOS                      = 0x5
380
 	DLT_CHDLC                      = 0x68
396
 	DLT_CHDLC                      = 0x68
381
 	DLT_CISCO_IOS                  = 0x76
397
 	DLT_CISCO_IOS                  = 0x76
398
+	DLT_CLASS_NETBSD_RAWAF         = 0x2240000
382
 	DLT_C_HDLC                     = 0x68
399
 	DLT_C_HDLC                     = 0x68
383
 	DLT_C_HDLC_WITH_DIR            = 0xcd
400
 	DLT_C_HDLC_WITH_DIR            = 0xcd
384
 	DLT_DBUS                       = 0xe7
401
 	DLT_DBUS                       = 0xe7
385
 	DLT_DECT                       = 0xdd
402
 	DLT_DECT                       = 0xdd
403
+	DLT_DISPLAYPORT_AUX            = 0x113
386
 	DLT_DOCSIS                     = 0x8f
404
 	DLT_DOCSIS                     = 0x8f
405
+	DLT_DOCSIS31_XRA31             = 0x111
387
 	DLT_DVB_CI                     = 0xeb
406
 	DLT_DVB_CI                     = 0xeb
388
 	DLT_ECONET                     = 0x73
407
 	DLT_ECONET                     = 0x73
389
 	DLT_EN10MB                     = 0x1
408
 	DLT_EN10MB                     = 0x1
393
 	DLT_ERF                        = 0xc5
412
 	DLT_ERF                        = 0xc5
394
 	DLT_ERF_ETH                    = 0xaf
413
 	DLT_ERF_ETH                    = 0xaf
395
 	DLT_ERF_POS                    = 0xb0
414
 	DLT_ERF_POS                    = 0xb0
415
+	DLT_ETHERNET_MPACKET           = 0x112
396
 	DLT_FC_2                       = 0xe0
416
 	DLT_FC_2                       = 0xe0
397
 	DLT_FC_2_WITH_FRAME_DELIMS     = 0xe1
417
 	DLT_FC_2_WITH_FRAME_DELIMS     = 0xe1
398
 	DLT_FDDI                       = 0xa
418
 	DLT_FDDI                       = 0xa
406
 	DLT_GPRS_LLC                   = 0xa9
426
 	DLT_GPRS_LLC                   = 0xa9
407
 	DLT_GSMTAP_ABIS                = 0xda
427
 	DLT_GSMTAP_ABIS                = 0xda
408
 	DLT_GSMTAP_UM                  = 0xd9
428
 	DLT_GSMTAP_UM                  = 0xd9
409
-	DLT_HHDLC                      = 0x79
410
 	DLT_IBM_SN                     = 0x92
429
 	DLT_IBM_SN                     = 0x92
411
 	DLT_IBM_SP                     = 0x91
430
 	DLT_IBM_SP                     = 0x91
412
 	DLT_IEEE802                    = 0x6
431
 	DLT_IEEE802                    = 0x6
429
 	DLT_IPV4                       = 0xe4
448
 	DLT_IPV4                       = 0xe4
430
 	DLT_IPV6                       = 0xe5
449
 	DLT_IPV6                       = 0xe5
431
 	DLT_IP_OVER_FC                 = 0x7a
450
 	DLT_IP_OVER_FC                 = 0x7a
451
+	DLT_ISO_14443                  = 0x108
432
 	DLT_JUNIPER_ATM1               = 0x89
452
 	DLT_JUNIPER_ATM1               = 0x89
433
 	DLT_JUNIPER_ATM2               = 0x87
453
 	DLT_JUNIPER_ATM2               = 0x87
434
 	DLT_JUNIPER_ATM_CEMIC          = 0xee
454
 	DLT_JUNIPER_ATM_CEMIC          = 0xee
461
 	DLT_LINUX_PPP_WITHDIRECTION    = 0xa6
481
 	DLT_LINUX_PPP_WITHDIRECTION    = 0xa6
462
 	DLT_LINUX_SLL                  = 0x71
482
 	DLT_LINUX_SLL                  = 0x71
463
 	DLT_LOOP                       = 0x6c
483
 	DLT_LOOP                       = 0x6c
484
+	DLT_LORATAP                    = 0x10e
464
 	DLT_LTALK                      = 0x72
485
 	DLT_LTALK                      = 0x72
465
-	DLT_MATCHING_MAX               = 0x104
486
+	DLT_MATCHING_MAX               = 0x113
466
 	DLT_MATCHING_MIN               = 0x68
487
 	DLT_MATCHING_MIN               = 0x68
467
 	DLT_MFR                        = 0xb6
488
 	DLT_MFR                        = 0xb6
468
 	DLT_MOST                       = 0xd3
489
 	DLT_MOST                       = 0xd3
478
 	DLT_NFC_LLCP                   = 0xf5
499
 	DLT_NFC_LLCP                   = 0xf5
479
 	DLT_NFLOG                      = 0xef
500
 	DLT_NFLOG                      = 0xef
480
 	DLT_NG40                       = 0xf4
501
 	DLT_NG40                       = 0xf4
502
+	DLT_NORDIC_BLE                 = 0x110
481
 	DLT_NULL                       = 0x0
503
 	DLT_NULL                       = 0x0
504
+	DLT_OPENFLOW                   = 0x10b
482
 	DLT_PCI_EXP                    = 0x7d
505
 	DLT_PCI_EXP                    = 0x7d
483
 	DLT_PFLOG                      = 0x75
506
 	DLT_PFLOG                      = 0x75
484
 	DLT_PFSYNC                     = 0x79
507
 	DLT_PFSYNC                     = 0x79
485
 	DLT_PKTAP                      = 0x102
508
 	DLT_PKTAP                      = 0x102
486
 	DLT_PPI                        = 0xc0
509
 	DLT_PPI                        = 0xc0
487
 	DLT_PPP                        = 0x9
510
 	DLT_PPP                        = 0x9
488
-	DLT_PPP_BSDOS                  = 0x10
511
+	DLT_PPP_BSDOS                  = 0xe
489
 	DLT_PPP_ETHER                  = 0x33
512
 	DLT_PPP_ETHER                  = 0x33
490
 	DLT_PPP_PPPD                   = 0xa6
513
 	DLT_PPP_PPPD                   = 0xa6
491
 	DLT_PPP_SERIAL                 = 0x32
514
 	DLT_PPP_SERIAL                 = 0x32
496
 	DLT_PRONET                     = 0x4
519
 	DLT_PRONET                     = 0x4
497
 	DLT_RAIF1                      = 0xc6
520
 	DLT_RAIF1                      = 0xc6
498
 	DLT_RAW                        = 0xc
521
 	DLT_RAW                        = 0xc
522
+	DLT_RDS                        = 0x109
523
+	DLT_REDBACK_SMARTEDGE          = 0x20
499
 	DLT_RIO                        = 0x7c
524
 	DLT_RIO                        = 0x7c
500
 	DLT_RTAC_SERIAL                = 0xfa
525
 	DLT_RTAC_SERIAL                = 0xfa
501
 	DLT_SCCP                       = 0x8e
526
 	DLT_SCCP                       = 0x8e
502
 	DLT_SCTP                       = 0xf8
527
 	DLT_SCTP                       = 0xf8
528
+	DLT_SDLC                       = 0x10c
503
 	DLT_SITA                       = 0xc4
529
 	DLT_SITA                       = 0xc4
504
 	DLT_SLIP                       = 0x8
530
 	DLT_SLIP                       = 0x8
505
-	DLT_SLIP_BSDOS                 = 0xf
531
+	DLT_SLIP_BSDOS                 = 0xd
506
 	DLT_STANAG_5066_D_PDU          = 0xed
532
 	DLT_STANAG_5066_D_PDU          = 0xed
507
 	DLT_SUNATM                     = 0x7b
533
 	DLT_SUNATM                     = 0x7b
508
 	DLT_SYMANTEC_FIREWALL          = 0x63
534
 	DLT_SYMANTEC_FIREWALL          = 0x63
535
+	DLT_TI_LLN_SNIFFER             = 0x10d
509
 	DLT_TZSP                       = 0x80
536
 	DLT_TZSP                       = 0x80
510
 	DLT_USB                        = 0xba
537
 	DLT_USB                        = 0xba
511
 	DLT_USBPCAP                    = 0xf9
538
 	DLT_USBPCAP                    = 0xf9
539
+	DLT_USB_DARWIN                 = 0x10a
540
+	DLT_USB_FREEBSD                = 0xba
512
 	DLT_USB_LINUX                  = 0xbd
541
 	DLT_USB_LINUX                  = 0xbd
513
 	DLT_USB_LINUX_MMAPPED          = 0xdc
542
 	DLT_USB_LINUX_MMAPPED          = 0xdc
514
 	DLT_USER0                      = 0x93
543
 	DLT_USER0                      = 0x93
527
 	DLT_USER7                      = 0x9a
556
 	DLT_USER7                      = 0x9a
528
 	DLT_USER8                      = 0x9b
557
 	DLT_USER8                      = 0x9b
529
 	DLT_USER9                      = 0x9c
558
 	DLT_USER9                      = 0x9c
559
+	DLT_VSOCK                      = 0x10f
560
+	DLT_WATTSTOPPER_DLM            = 0x107
530
 	DLT_WIHART                     = 0xdf
561
 	DLT_WIHART                     = 0xdf
531
 	DLT_WIRESHARK_UPPER_PDU        = 0xfc
562
 	DLT_WIRESHARK_UPPER_PDU        = 0xfc
532
 	DLT_X2E_SERIAL                 = 0xd5
563
 	DLT_X2E_SERIAL                 = 0xd5
533
 	DLT_X2E_XORAYA                 = 0xd6
564
 	DLT_X2E_XORAYA                 = 0xd6
565
+	DLT_ZWAVE_R1_R2                = 0x105
566
+	DLT_ZWAVE_R3                   = 0x106
534
 	DT_BLK                         = 0x6
567
 	DT_BLK                         = 0x6
535
 	DT_CHR                         = 0x2
568
 	DT_CHR                         = 0x2
536
 	DT_DIR                         = 0x4
569
 	DT_DIR                         = 0x4
548
 	ECHONL                         = 0x10
581
 	ECHONL                         = 0x10
549
 	ECHOPRT                        = 0x20
582
 	ECHOPRT                        = 0x20
550
 	EVFILT_AIO                     = -0x3
583
 	EVFILT_AIO                     = -0x3
584
+	EVFILT_EMPTY                   = -0xd
551
 	EVFILT_FS                      = -0x9
585
 	EVFILT_FS                      = -0x9
552
 	EVFILT_LIO                     = -0xa
586
 	EVFILT_LIO                     = -0xa
553
 	EVFILT_PROC                    = -0x5
587
 	EVFILT_PROC                    = -0x5
555
 	EVFILT_READ                    = -0x1
589
 	EVFILT_READ                    = -0x1
556
 	EVFILT_SENDFILE                = -0xc
590
 	EVFILT_SENDFILE                = -0xc
557
 	EVFILT_SIGNAL                  = -0x6
591
 	EVFILT_SIGNAL                  = -0x6
558
-	EVFILT_SYSCOUNT                = 0xc
592
+	EVFILT_SYSCOUNT                = 0xd
559
 	EVFILT_TIMER                   = -0x7
593
 	EVFILT_TIMER                   = -0x7
560
 	EVFILT_USER                    = -0xb
594
 	EVFILT_USER                    = -0xb
561
 	EVFILT_VNODE                   = -0x4
595
 	EVFILT_VNODE                   = -0x4
562
 	EVFILT_WRITE                   = -0x2
596
 	EVFILT_WRITE                   = -0x2
597
+	EVNAMEMAP_NAME_SIZE            = 0x40
563
 	EV_ADD                         = 0x1
598
 	EV_ADD                         = 0x1
564
 	EV_CLEAR                       = 0x20
599
 	EV_CLEAR                       = 0x20
565
 	EV_DELETE                      = 0x2
600
 	EV_DELETE                      = 0x2
576
 	EV_RECEIPT                     = 0x40
611
 	EV_RECEIPT                     = 0x40
577
 	EV_SYSFLAGS                    = 0xf000
612
 	EV_SYSFLAGS                    = 0xf000
578
 	EXTA                           = 0x4b00
613
 	EXTA                           = 0x4b00
614
+	EXTATTR_MAXNAMELEN             = 0xff
579
 	EXTATTR_NAMESPACE_EMPTY        = 0x0
615
 	EXTATTR_NAMESPACE_EMPTY        = 0x0
580
 	EXTATTR_NAMESPACE_SYSTEM       = 0x2
616
 	EXTATTR_NAMESPACE_SYSTEM       = 0x2
581
 	EXTATTR_NAMESPACE_USER         = 0x1
617
 	EXTATTR_NAMESPACE_USER         = 0x1
617
 	IEXTEN                         = 0x400
653
 	IEXTEN                         = 0x400
618
 	IFAN_ARRIVAL                   = 0x0
654
 	IFAN_ARRIVAL                   = 0x0
619
 	IFAN_DEPARTURE                 = 0x1
655
 	IFAN_DEPARTURE                 = 0x1
656
+	IFCAP_WOL_MAGIC                = 0x2000
620
 	IFF_ALLMULTI                   = 0x200
657
 	IFF_ALLMULTI                   = 0x200
621
 	IFF_ALTPHYS                    = 0x4000
658
 	IFF_ALTPHYS                    = 0x4000
622
 	IFF_BROADCAST                  = 0x2
659
 	IFF_BROADCAST                  = 0x2
633
 	IFF_MONITOR                    = 0x40000
670
 	IFF_MONITOR                    = 0x40000
634
 	IFF_MULTICAST                  = 0x8000
671
 	IFF_MULTICAST                  = 0x8000
635
 	IFF_NOARP                      = 0x80
672
 	IFF_NOARP                      = 0x80
673
+	IFF_NOGROUP                    = 0x800000
636
 	IFF_OACTIVE                    = 0x400
674
 	IFF_OACTIVE                    = 0x400
637
 	IFF_POINTOPOINT                = 0x10
675
 	IFF_POINTOPOINT                = 0x10
638
 	IFF_PPROMISC                   = 0x20000
676
 	IFF_PPROMISC                   = 0x20000
807
 	IPV6_DSTOPTS                   = 0x32
845
 	IPV6_DSTOPTS                   = 0x32
808
 	IPV6_FLOWID                    = 0x43
846
 	IPV6_FLOWID                    = 0x43
809
 	IPV6_FLOWINFO_MASK             = 0xffffff0f
847
 	IPV6_FLOWINFO_MASK             = 0xffffff0f
848
+	IPV6_FLOWLABEL_LEN             = 0x14
810
 	IPV6_FLOWLABEL_MASK            = 0xffff0f00
849
 	IPV6_FLOWLABEL_MASK            = 0xffff0f00
811
 	IPV6_FLOWTYPE                  = 0x44
850
 	IPV6_FLOWTYPE                  = 0x44
812
 	IPV6_FRAGTTL                   = 0x78
851
 	IPV6_FRAGTTL                   = 0x78
827
 	IPV6_MAX_GROUP_SRC_FILTER      = 0x200
866
 	IPV6_MAX_GROUP_SRC_FILTER      = 0x200
828
 	IPV6_MAX_MEMBERSHIPS           = 0xfff
867
 	IPV6_MAX_MEMBERSHIPS           = 0xfff
829
 	IPV6_MAX_SOCK_SRC_FILTER       = 0x80
868
 	IPV6_MAX_SOCK_SRC_FILTER       = 0x80
830
-	IPV6_MIN_MEMBERSHIPS           = 0x1f
831
 	IPV6_MMTU                      = 0x500
869
 	IPV6_MMTU                      = 0x500
832
 	IPV6_MSFILTER                  = 0x4a
870
 	IPV6_MSFILTER                  = 0x4a
833
 	IPV6_MULTICAST_HOPS            = 0xa
871
 	IPV6_MULTICAST_HOPS            = 0xa
834
 	IPV6_MULTICAST_IF              = 0x9
872
 	IPV6_MULTICAST_IF              = 0x9
835
 	IPV6_MULTICAST_LOOP            = 0xb
873
 	IPV6_MULTICAST_LOOP            = 0xb
836
 	IPV6_NEXTHOP                   = 0x30
874
 	IPV6_NEXTHOP                   = 0x30
875
+	IPV6_ORIGDSTADDR               = 0x48
837
 	IPV6_PATHMTU                   = 0x2c
876
 	IPV6_PATHMTU                   = 0x2c
838
 	IPV6_PKTINFO                   = 0x2e
877
 	IPV6_PKTINFO                   = 0x2e
839
 	IPV6_PORTRANGE                 = 0xe
878
 	IPV6_PORTRANGE                 = 0xe
845
 	IPV6_RECVFLOWID                = 0x46
884
 	IPV6_RECVFLOWID                = 0x46
846
 	IPV6_RECVHOPLIMIT              = 0x25
885
 	IPV6_RECVHOPLIMIT              = 0x25
847
 	IPV6_RECVHOPOPTS               = 0x27
886
 	IPV6_RECVHOPOPTS               = 0x27
887
+	IPV6_RECVORIGDSTADDR           = 0x48
848
 	IPV6_RECVPATHMTU               = 0x2b
888
 	IPV6_RECVPATHMTU               = 0x2b
849
 	IPV6_RECVPKTINFO               = 0x24
889
 	IPV6_RECVPKTINFO               = 0x24
850
 	IPV6_RECVRSSBUCKETID           = 0x47
890
 	IPV6_RECVRSSBUCKETID           = 0x47
905
 	IP_MAX_MEMBERSHIPS             = 0xfff
945
 	IP_MAX_MEMBERSHIPS             = 0xfff
906
 	IP_MAX_SOCK_MUTE_FILTER        = 0x80
946
 	IP_MAX_SOCK_MUTE_FILTER        = 0x80
907
 	IP_MAX_SOCK_SRC_FILTER         = 0x80
947
 	IP_MAX_SOCK_SRC_FILTER         = 0x80
908
-	IP_MAX_SOURCE_FILTER           = 0x400
909
 	IP_MF                          = 0x2000
948
 	IP_MF                          = 0x2000
910
 	IP_MINTTL                      = 0x42
949
 	IP_MINTTL                      = 0x42
911
-	IP_MIN_MEMBERSHIPS             = 0x1f
912
 	IP_MSFILTER                    = 0x4a
950
 	IP_MSFILTER                    = 0x4a
913
 	IP_MSS                         = 0x240
951
 	IP_MSS                         = 0x240
914
 	IP_MULTICAST_IF                = 0x9
952
 	IP_MULTICAST_IF                = 0x9
918
 	IP_OFFMASK                     = 0x1fff
956
 	IP_OFFMASK                     = 0x1fff
919
 	IP_ONESBCAST                   = 0x17
957
 	IP_ONESBCAST                   = 0x17
920
 	IP_OPTIONS                     = 0x1
958
 	IP_OPTIONS                     = 0x1
959
+	IP_ORIGDSTADDR                 = 0x1b
921
 	IP_PORTRANGE                   = 0x13
960
 	IP_PORTRANGE                   = 0x13
922
 	IP_PORTRANGE_DEFAULT           = 0x0
961
 	IP_PORTRANGE_DEFAULT           = 0x0
923
 	IP_PORTRANGE_HIGH              = 0x1
962
 	IP_PORTRANGE_HIGH              = 0x1
926
 	IP_RECVFLOWID                  = 0x5d
965
 	IP_RECVFLOWID                  = 0x5d
927
 	IP_RECVIF                      = 0x14
966
 	IP_RECVIF                      = 0x14
928
 	IP_RECVOPTS                    = 0x5
967
 	IP_RECVOPTS                    = 0x5
968
+	IP_RECVORIGDSTADDR             = 0x1b
929
 	IP_RECVRETOPTS                 = 0x6
969
 	IP_RECVRETOPTS                 = 0x6
930
 	IP_RECVRSSBUCKETID             = 0x5e
970
 	IP_RECVRSSBUCKETID             = 0x5e
931
 	IP_RECVTOS                     = 0x44
971
 	IP_RECVTOS                     = 0x44
975
 	MAP_EXCL                       = 0x4000
1015
 	MAP_EXCL                       = 0x4000
976
 	MAP_FILE                       = 0x0
1016
 	MAP_FILE                       = 0x0
977
 	MAP_FIXED                      = 0x10
1017
 	MAP_FIXED                      = 0x10
1018
+	MAP_GUARD                      = 0x2000
978
 	MAP_HASSEMAPHORE               = 0x200
1019
 	MAP_HASSEMAPHORE               = 0x200
979
 	MAP_NOCORE                     = 0x20000
1020
 	MAP_NOCORE                     = 0x20000
980
 	MAP_NOSYNC                     = 0x800
1021
 	MAP_NOSYNC                     = 0x800
986
 	MAP_RESERVED0100               = 0x100
1027
 	MAP_RESERVED0100               = 0x100
987
 	MAP_SHARED                     = 0x1
1028
 	MAP_SHARED                     = 0x1
988
 	MAP_STACK                      = 0x400
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
 	MCL_CURRENT                    = 0x1
1039
 	MCL_CURRENT                    = 0x1
990
 	MCL_FUTURE                     = 0x2
1040
 	MCL_FUTURE                     = 0x2
991
 	MNT_ACLS                       = 0x8000000
1041
 	MNT_ACLS                       = 0x8000000
1026
 	MNT_SUSPEND                    = 0x4
1076
 	MNT_SUSPEND                    = 0x4
1027
 	MNT_SYNCHRONOUS                = 0x2
1077
 	MNT_SYNCHRONOUS                = 0x2
1028
 	MNT_UNION                      = 0x20
1078
 	MNT_UNION                      = 0x20
1079
+	MNT_UNTRUSTED                  = 0x800000000
1029
 	MNT_UPDATE                     = 0x10000
1080
 	MNT_UPDATE                     = 0x10000
1030
-	MNT_UPDATEMASK                 = 0x2d8d0807e
1081
+	MNT_UPDATEMASK                 = 0xad8d0807e
1031
 	MNT_USER                       = 0x8000
1082
 	MNT_USER                       = 0x8000
1032
-	MNT_VISFLAGMASK                = 0x3fef0ffff
1083
+	MNT_VERIFIED                   = 0x400000000
1084
+	MNT_VISFLAGMASK                = 0xffef0ffff
1033
 	MNT_WAIT                       = 0x1
1085
 	MNT_WAIT                       = 0x1
1034
 	MSG_CMSG_CLOEXEC               = 0x40000
1086
 	MSG_CMSG_CLOEXEC               = 0x40000
1035
 	MSG_COMPAT                     = 0x8000
1087
 	MSG_COMPAT                     = 0x8000
1058
 	NFDBITS                        = 0x20
1110
 	NFDBITS                        = 0x20
1059
 	NOFLSH                         = 0x80000000
1111
 	NOFLSH                         = 0x80000000
1060
 	NOKERNINFO                     = 0x2000000
1112
 	NOKERNINFO                     = 0x2000000
1113
+	NOTE_ABSTIME                   = 0x10
1061
 	NOTE_ATTRIB                    = 0x8
1114
 	NOTE_ATTRIB                    = 0x8
1062
 	NOTE_CHILD                     = 0x4
1115
 	NOTE_CHILD                     = 0x4
1063
 	NOTE_CLOSE                     = 0x100
1116
 	NOTE_CLOSE                     = 0x100
1212
 	RTV_WEIGHT                     = 0x100
1265
 	RTV_WEIGHT                     = 0x100
1213
 	RT_ALL_FIBS                    = -0x1
1266
 	RT_ALL_FIBS                    = -0x1
1214
 	RT_BLACKHOLE                   = 0x40
1267
 	RT_BLACKHOLE                   = 0x40
1215
-	RT_CACHING_CONTEXT             = 0x1
1216
 	RT_DEFAULT_FIB                 = 0x0
1268
 	RT_DEFAULT_FIB                 = 0x0
1217
 	RT_HAS_GW                      = 0x80
1269
 	RT_HAS_GW                      = 0x80
1218
 	RT_HAS_HEADER                  = 0x10
1270
 	RT_HAS_HEADER                  = 0x10
1222
 	RT_LLE_CACHE                   = 0x100
1274
 	RT_LLE_CACHE                   = 0x100
1223
 	RT_MAY_LOOP                    = 0x8
1275
 	RT_MAY_LOOP                    = 0x8
1224
 	RT_MAY_LOOP_BIT                = 0x3
1276
 	RT_MAY_LOOP_BIT                = 0x3
1225
-	RT_NORTREF                     = 0x2
1226
 	RT_REJECT                      = 0x20
1277
 	RT_REJECT                      = 0x20
1227
 	RUSAGE_CHILDREN                = -0x1
1278
 	RUSAGE_CHILDREN                = -0x1
1228
 	RUSAGE_SELF                    = 0x0
1279
 	RUSAGE_SELF                    = 0x0
1229
 	RUSAGE_THREAD                  = 0x1
1280
 	RUSAGE_THREAD                  = 0x1
1230
 	SCM_BINTIME                    = 0x4
1281
 	SCM_BINTIME                    = 0x4
1231
 	SCM_CREDS                      = 0x3
1282
 	SCM_CREDS                      = 0x3
1283
+	SCM_MONOTONIC                  = 0x6
1284
+	SCM_REALTIME                   = 0x5
1232
 	SCM_RIGHTS                     = 0x1
1285
 	SCM_RIGHTS                     = 0x1
1233
 	SCM_TIMESTAMP                  = 0x2
1286
 	SCM_TIMESTAMP                  = 0x2
1287
+	SCM_TIME_INFO                  = 0x7
1234
 	SHUT_RD                        = 0x0
1288
 	SHUT_RD                        = 0x0
1235
 	SHUT_RDWR                      = 0x2
1289
 	SHUT_RDWR                      = 0x2
1236
 	SHUT_WR                        = 0x1
1290
 	SHUT_WR                        = 0x1
1246
 	SIOCGETSGCNT                   = 0xc0147210
1300
 	SIOCGETSGCNT                   = 0xc0147210
1247
 	SIOCGETVIFCNT                  = 0xc014720f
1301
 	SIOCGETVIFCNT                  = 0xc014720f
1248
 	SIOCGHIWAT                     = 0x40047301
1302
 	SIOCGHIWAT                     = 0x40047301
1303
+	SIOCGHWADDR                    = 0xc020693e
1249
 	SIOCGI2C                       = 0xc020693d
1304
 	SIOCGI2C                       = 0xc020693d
1250
 	SIOCGIFADDR                    = 0xc0206921
1305
 	SIOCGIFADDR                    = 0xc0206921
1251
 	SIOCGIFBRDADDR                 = 0xc0206923
1306
 	SIOCGIFBRDADDR                 = 0xc0206923
1267
 	SIOCGIFPDSTADDR                = 0xc0206948
1322
 	SIOCGIFPDSTADDR                = 0xc0206948
1268
 	SIOCGIFPHYS                    = 0xc0206935
1323
 	SIOCGIFPHYS                    = 0xc0206935
1269
 	SIOCGIFPSRCADDR                = 0xc0206947
1324
 	SIOCGIFPSRCADDR                = 0xc0206947
1325
+	SIOCGIFRSSHASH                 = 0xc0186997
1326
+	SIOCGIFRSSKEY                  = 0xc0946996
1270
 	SIOCGIFSTATUS                  = 0xc331693b
1327
 	SIOCGIFSTATUS                  = 0xc331693b
1271
 	SIOCGIFXMEDIA                  = 0xc028698b
1328
 	SIOCGIFXMEDIA                  = 0xc028698b
1329
+	SIOCGLANPCP                    = 0xc0206998
1272
 	SIOCGLOWAT                     = 0x40047303
1330
 	SIOCGLOWAT                     = 0x40047303
1273
 	SIOCGPGRP                      = 0x40047309
1331
 	SIOCGPGRP                      = 0x40047309
1274
 	SIOCGPRIVATE_0                 = 0xc0206950
1332
 	SIOCGPRIVATE_0                 = 0xc0206950
1299
 	SIOCSIFPHYS                    = 0x80206936
1357
 	SIOCSIFPHYS                    = 0x80206936
1300
 	SIOCSIFRVNET                   = 0xc020695b
1358
 	SIOCSIFRVNET                   = 0xc020695b
1301
 	SIOCSIFVNET                    = 0xc020695a
1359
 	SIOCSIFVNET                    = 0xc020695a
1360
+	SIOCSLANPCP                    = 0x80206999
1302
 	SIOCSLOWAT                     = 0x80047302
1361
 	SIOCSLOWAT                     = 0x80047302
1303
 	SIOCSPGRP                      = 0x80047308
1362
 	SIOCSPGRP                      = 0x80047308
1304
 	SIOCSTUNFIB                    = 0x8020695f
1363
 	SIOCSTUNFIB                    = 0x8020695f
1317
 	SO_BINTIME                     = 0x2000
1376
 	SO_BINTIME                     = 0x2000
1318
 	SO_BROADCAST                   = 0x20
1377
 	SO_BROADCAST                   = 0x20
1319
 	SO_DEBUG                       = 0x1
1378
 	SO_DEBUG                       = 0x1
1379
+	SO_DOMAIN                      = 0x1019
1320
 	SO_DONTROUTE                   = 0x10
1380
 	SO_DONTROUTE                   = 0x10
1321
 	SO_ERROR                       = 0x1007
1381
 	SO_ERROR                       = 0x1007
1322
 	SO_KEEPALIVE                   = 0x8
1382
 	SO_KEEPALIVE                   = 0x8
1325
 	SO_LISTENINCQLEN               = 0x1013
1385
 	SO_LISTENINCQLEN               = 0x1013
1326
 	SO_LISTENQLEN                  = 0x1012
1386
 	SO_LISTENQLEN                  = 0x1012
1327
 	SO_LISTENQLIMIT                = 0x1011
1387
 	SO_LISTENQLIMIT                = 0x1011
1388
+	SO_MAX_PACING_RATE             = 0x1018
1328
 	SO_NOSIGPIPE                   = 0x800
1389
 	SO_NOSIGPIPE                   = 0x800
1329
 	SO_NO_DDP                      = 0x8000
1390
 	SO_NO_DDP                      = 0x8000
1330
 	SO_NO_OFFLOAD                  = 0x4000
1391
 	SO_NO_OFFLOAD                  = 0x4000
1337
 	SO_RCVTIMEO                    = 0x1006
1398
 	SO_RCVTIMEO                    = 0x1006
1338
 	SO_REUSEADDR                   = 0x4
1399
 	SO_REUSEADDR                   = 0x4
1339
 	SO_REUSEPORT                   = 0x200
1400
 	SO_REUSEPORT                   = 0x200
1401
+	SO_REUSEPORT_LB                = 0x10000
1340
 	SO_SETFIB                      = 0x1014
1402
 	SO_SETFIB                      = 0x1014
1341
 	SO_SNDBUF                      = 0x1001
1403
 	SO_SNDBUF                      = 0x1001
1342
 	SO_SNDLOWAT                    = 0x1003
1404
 	SO_SNDLOWAT                    = 0x1003
1343
 	SO_SNDTIMEO                    = 0x1005
1405
 	SO_SNDTIMEO                    = 0x1005
1344
 	SO_TIMESTAMP                   = 0x400
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
 	SO_TYPE                        = 0x1008
1414
 	SO_TYPE                        = 0x1008
1346
 	SO_USELOOPBACK                 = 0x40
1415
 	SO_USELOOPBACK                 = 0x40
1347
 	SO_USER_COOKIE                 = 0x1015
1416
 	SO_USER_COOKIE                 = 0x1015
1385
 	TCOFLUSH                       = 0x2
1454
 	TCOFLUSH                       = 0x2
1386
 	TCOOFF                         = 0x1
1455
 	TCOOFF                         = 0x1
1387
 	TCOON                          = 0x2
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
 	TCP_CA_NAME_MAX                = 0x10
1487
 	TCP_CA_NAME_MAX                = 0x10
1389
 	TCP_CCALGOOPT                  = 0x41
1488
 	TCP_CCALGOOPT                  = 0x41
1390
 	TCP_CONGESTION                 = 0x40
1489
 	TCP_CONGESTION                 = 0x40
1490
+	TCP_DATA_AFTER_CLOSE           = 0x44c
1491
+	TCP_DELACK                     = 0x48
1391
 	TCP_FASTOPEN                   = 0x401
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
 	TCP_FUNCTION_BLK               = 0x2000
1496
 	TCP_FUNCTION_BLK               = 0x2000
1393
 	TCP_FUNCTION_NAME_LEN_MAX      = 0x20
1497
 	TCP_FUNCTION_NAME_LEN_MAX      = 0x20
1394
 	TCP_INFO                       = 0x20
1498
 	TCP_INFO                       = 0x20
1396
 	TCP_KEEPIDLE                   = 0x100
1500
 	TCP_KEEPIDLE                   = 0x100
1397
 	TCP_KEEPINIT                   = 0x80
1501
 	TCP_KEEPINIT                   = 0x80
1398
 	TCP_KEEPINTVL                  = 0x200
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
 	TCP_MAXBURST                   = 0x4
1509
 	TCP_MAXBURST                   = 0x4
1400
 	TCP_MAXHLEN                    = 0x3c
1510
 	TCP_MAXHLEN                    = 0x3c
1401
 	TCP_MAXOLEN                    = 0x28
1511
 	TCP_MAXOLEN                    = 0x28
1411
 	TCP_NOPUSH                     = 0x4
1521
 	TCP_NOPUSH                     = 0x4
1412
 	TCP_PCAP_IN                    = 0x1000
1522
 	TCP_PCAP_IN                    = 0x1000
1413
 	TCP_PCAP_OUT                   = 0x800
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
 	TCP_VENDOR                     = 0x80000000
1544
 	TCP_VENDOR                     = 0x80000000
1415
 	TCSAFLUSH                      = 0x2
1545
 	TCSAFLUSH                      = 0x2
1546
+	TIMER_ABSTIME                  = 0x1
1547
+	TIMER_RELTIME                  = 0x0
1416
 	TIOCCBRK                       = 0x2000747a
1548
 	TIOCCBRK                       = 0x2000747a
1417
 	TIOCCDTR                       = 0x20007478
1549
 	TIOCCDTR                       = 0x20007478
1418
 	TIOCCONS                       = 0x80047462
1550
 	TIOCCONS                       = 0x80047462
1476
 	TIOCTIMESTAMP                  = 0x40087459
1608
 	TIOCTIMESTAMP                  = 0x40087459
1477
 	TIOCUCNTL                      = 0x80047466
1609
 	TIOCUCNTL                      = 0x80047466
1478
 	TOSTOP                         = 0x400000
1610
 	TOSTOP                         = 0x400000
1611
+	UTIME_NOW                      = -0x1
1612
+	UTIME_OMIT                     = -0x2
1479
 	VDISCARD                       = 0xf
1613
 	VDISCARD                       = 0xf
1480
 	VDSUSP                         = 0xb
1614
 	VDSUSP                         = 0xb
1481
 	VEOF                           = 0x0
1615
 	VEOF                           = 0x0
1487
 	VKILL                          = 0x5
1621
 	VKILL                          = 0x5
1488
 	VLNEXT                         = 0xe
1622
 	VLNEXT                         = 0xe
1489
 	VMIN                           = 0x10
1623
 	VMIN                           = 0x10
1624
+	VM_BCACHE_SIZE_MAX             = 0x70e0000
1625
+	VM_SWZONE_SIZE_MAX             = 0x2280000
1490
 	VQUIT                          = 0x9
1626
 	VQUIT                          = 0x9
1491
 	VREPRINT                       = 0x6
1627
 	VREPRINT                       = 0x6
1492
 	VSTART                         = 0xc
1628
 	VSTART                         = 0xc

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

355
 	CTL_KERN                       = 0x1
355
 	CTL_KERN                       = 0x1
356
 	CTL_MAXNAME                    = 0x18
356
 	CTL_MAXNAME                    = 0x18
357
 	CTL_NET                        = 0x4
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
 	DLT_A429                       = 0xb8
374
 	DLT_A429                       = 0xb8
359
 	DLT_A653_ICM                   = 0xb9
375
 	DLT_A653_ICM                   = 0xb9
360
 	DLT_AIRONET_HEADER             = 0x78
376
 	DLT_AIRONET_HEADER             = 0x78
379
 	DLT_CHAOS                      = 0x5
395
 	DLT_CHAOS                      = 0x5
380
 	DLT_CHDLC                      = 0x68
396
 	DLT_CHDLC                      = 0x68
381
 	DLT_CISCO_IOS                  = 0x76
397
 	DLT_CISCO_IOS                  = 0x76
398
+	DLT_CLASS_NETBSD_RAWAF         = 0x2240000
382
 	DLT_C_HDLC                     = 0x68
399
 	DLT_C_HDLC                     = 0x68
383
 	DLT_C_HDLC_WITH_DIR            = 0xcd
400
 	DLT_C_HDLC_WITH_DIR            = 0xcd
384
 	DLT_DBUS                       = 0xe7
401
 	DLT_DBUS                       = 0xe7
385
 	DLT_DECT                       = 0xdd
402
 	DLT_DECT                       = 0xdd
403
+	DLT_DISPLAYPORT_AUX            = 0x113
386
 	DLT_DOCSIS                     = 0x8f
404
 	DLT_DOCSIS                     = 0x8f
405
+	DLT_DOCSIS31_XRA31             = 0x111
387
 	DLT_DVB_CI                     = 0xeb
406
 	DLT_DVB_CI                     = 0xeb
388
 	DLT_ECONET                     = 0x73
407
 	DLT_ECONET                     = 0x73
389
 	DLT_EN10MB                     = 0x1
408
 	DLT_EN10MB                     = 0x1
393
 	DLT_ERF                        = 0xc5
412
 	DLT_ERF                        = 0xc5
394
 	DLT_ERF_ETH                    = 0xaf
413
 	DLT_ERF_ETH                    = 0xaf
395
 	DLT_ERF_POS                    = 0xb0
414
 	DLT_ERF_POS                    = 0xb0
415
+	DLT_ETHERNET_MPACKET           = 0x112
396
 	DLT_FC_2                       = 0xe0
416
 	DLT_FC_2                       = 0xe0
397
 	DLT_FC_2_WITH_FRAME_DELIMS     = 0xe1
417
 	DLT_FC_2_WITH_FRAME_DELIMS     = 0xe1
398
 	DLT_FDDI                       = 0xa
418
 	DLT_FDDI                       = 0xa
406
 	DLT_GPRS_LLC                   = 0xa9
426
 	DLT_GPRS_LLC                   = 0xa9
407
 	DLT_GSMTAP_ABIS                = 0xda
427
 	DLT_GSMTAP_ABIS                = 0xda
408
 	DLT_GSMTAP_UM                  = 0xd9
428
 	DLT_GSMTAP_UM                  = 0xd9
409
-	DLT_HHDLC                      = 0x79
410
 	DLT_IBM_SN                     = 0x92
429
 	DLT_IBM_SN                     = 0x92
411
 	DLT_IBM_SP                     = 0x91
430
 	DLT_IBM_SP                     = 0x91
412
 	DLT_IEEE802                    = 0x6
431
 	DLT_IEEE802                    = 0x6
429
 	DLT_IPV4                       = 0xe4
448
 	DLT_IPV4                       = 0xe4
430
 	DLT_IPV6                       = 0xe5
449
 	DLT_IPV6                       = 0xe5
431
 	DLT_IP_OVER_FC                 = 0x7a
450
 	DLT_IP_OVER_FC                 = 0x7a
451
+	DLT_ISO_14443                  = 0x108
432
 	DLT_JUNIPER_ATM1               = 0x89
452
 	DLT_JUNIPER_ATM1               = 0x89
433
 	DLT_JUNIPER_ATM2               = 0x87
453
 	DLT_JUNIPER_ATM2               = 0x87
434
 	DLT_JUNIPER_ATM_CEMIC          = 0xee
454
 	DLT_JUNIPER_ATM_CEMIC          = 0xee
461
 	DLT_LINUX_PPP_WITHDIRECTION    = 0xa6
481
 	DLT_LINUX_PPP_WITHDIRECTION    = 0xa6
462
 	DLT_LINUX_SLL                  = 0x71
482
 	DLT_LINUX_SLL                  = 0x71
463
 	DLT_LOOP                       = 0x6c
483
 	DLT_LOOP                       = 0x6c
484
+	DLT_LORATAP                    = 0x10e
464
 	DLT_LTALK                      = 0x72
485
 	DLT_LTALK                      = 0x72
465
-	DLT_MATCHING_MAX               = 0x104
486
+	DLT_MATCHING_MAX               = 0x113
466
 	DLT_MATCHING_MIN               = 0x68
487
 	DLT_MATCHING_MIN               = 0x68
467
 	DLT_MFR                        = 0xb6
488
 	DLT_MFR                        = 0xb6
468
 	DLT_MOST                       = 0xd3
489
 	DLT_MOST                       = 0xd3
478
 	DLT_NFC_LLCP                   = 0xf5
499
 	DLT_NFC_LLCP                   = 0xf5
479
 	DLT_NFLOG                      = 0xef
500
 	DLT_NFLOG                      = 0xef
480
 	DLT_NG40                       = 0xf4
501
 	DLT_NG40                       = 0xf4
502
+	DLT_NORDIC_BLE                 = 0x110
481
 	DLT_NULL                       = 0x0
503
 	DLT_NULL                       = 0x0
504
+	DLT_OPENFLOW                   = 0x10b
482
 	DLT_PCI_EXP                    = 0x7d
505
 	DLT_PCI_EXP                    = 0x7d
483
 	DLT_PFLOG                      = 0x75
506
 	DLT_PFLOG                      = 0x75
484
 	DLT_PFSYNC                     = 0x79
507
 	DLT_PFSYNC                     = 0x79
485
 	DLT_PKTAP                      = 0x102
508
 	DLT_PKTAP                      = 0x102
486
 	DLT_PPI                        = 0xc0
509
 	DLT_PPI                        = 0xc0
487
 	DLT_PPP                        = 0x9
510
 	DLT_PPP                        = 0x9
488
-	DLT_PPP_BSDOS                  = 0x10
511
+	DLT_PPP_BSDOS                  = 0xe
489
 	DLT_PPP_ETHER                  = 0x33
512
 	DLT_PPP_ETHER                  = 0x33
490
 	DLT_PPP_PPPD                   = 0xa6
513
 	DLT_PPP_PPPD                   = 0xa6
491
 	DLT_PPP_SERIAL                 = 0x32
514
 	DLT_PPP_SERIAL                 = 0x32
496
 	DLT_PRONET                     = 0x4
519
 	DLT_PRONET                     = 0x4
497
 	DLT_RAIF1                      = 0xc6
520
 	DLT_RAIF1                      = 0xc6
498
 	DLT_RAW                        = 0xc
521
 	DLT_RAW                        = 0xc
522
+	DLT_RDS                        = 0x109
523
+	DLT_REDBACK_SMARTEDGE          = 0x20
499
 	DLT_RIO                        = 0x7c
524
 	DLT_RIO                        = 0x7c
500
 	DLT_RTAC_SERIAL                = 0xfa
525
 	DLT_RTAC_SERIAL                = 0xfa
501
 	DLT_SCCP                       = 0x8e
526
 	DLT_SCCP                       = 0x8e
502
 	DLT_SCTP                       = 0xf8
527
 	DLT_SCTP                       = 0xf8
528
+	DLT_SDLC                       = 0x10c
503
 	DLT_SITA                       = 0xc4
529
 	DLT_SITA                       = 0xc4
504
 	DLT_SLIP                       = 0x8
530
 	DLT_SLIP                       = 0x8
505
-	DLT_SLIP_BSDOS                 = 0xf
531
+	DLT_SLIP_BSDOS                 = 0xd
506
 	DLT_STANAG_5066_D_PDU          = 0xed
532
 	DLT_STANAG_5066_D_PDU          = 0xed
507
 	DLT_SUNATM                     = 0x7b
533
 	DLT_SUNATM                     = 0x7b
508
 	DLT_SYMANTEC_FIREWALL          = 0x63
534
 	DLT_SYMANTEC_FIREWALL          = 0x63
535
+	DLT_TI_LLN_SNIFFER             = 0x10d
509
 	DLT_TZSP                       = 0x80
536
 	DLT_TZSP                       = 0x80
510
 	DLT_USB                        = 0xba
537
 	DLT_USB                        = 0xba
511
 	DLT_USBPCAP                    = 0xf9
538
 	DLT_USBPCAP                    = 0xf9
539
+	DLT_USB_DARWIN                 = 0x10a
540
+	DLT_USB_FREEBSD                = 0xba
512
 	DLT_USB_LINUX                  = 0xbd
541
 	DLT_USB_LINUX                  = 0xbd
513
 	DLT_USB_LINUX_MMAPPED          = 0xdc
542
 	DLT_USB_LINUX_MMAPPED          = 0xdc
514
 	DLT_USER0                      = 0x93
543
 	DLT_USER0                      = 0x93
527
 	DLT_USER7                      = 0x9a
556
 	DLT_USER7                      = 0x9a
528
 	DLT_USER8                      = 0x9b
557
 	DLT_USER8                      = 0x9b
529
 	DLT_USER9                      = 0x9c
558
 	DLT_USER9                      = 0x9c
559
+	DLT_VSOCK                      = 0x10f
560
+	DLT_WATTSTOPPER_DLM            = 0x107
530
 	DLT_WIHART                     = 0xdf
561
 	DLT_WIHART                     = 0xdf
531
 	DLT_WIRESHARK_UPPER_PDU        = 0xfc
562
 	DLT_WIRESHARK_UPPER_PDU        = 0xfc
532
 	DLT_X2E_SERIAL                 = 0xd5
563
 	DLT_X2E_SERIAL                 = 0xd5
533
 	DLT_X2E_XORAYA                 = 0xd6
564
 	DLT_X2E_XORAYA                 = 0xd6
565
+	DLT_ZWAVE_R1_R2                = 0x105
566
+	DLT_ZWAVE_R3                   = 0x106
534
 	DT_BLK                         = 0x6
567
 	DT_BLK                         = 0x6
535
 	DT_CHR                         = 0x2
568
 	DT_CHR                         = 0x2
536
 	DT_DIR                         = 0x4
569
 	DT_DIR                         = 0x4
548
 	ECHONL                         = 0x10
581
 	ECHONL                         = 0x10
549
 	ECHOPRT                        = 0x20
582
 	ECHOPRT                        = 0x20
550
 	EVFILT_AIO                     = -0x3
583
 	EVFILT_AIO                     = -0x3
584
+	EVFILT_EMPTY                   = -0xd
551
 	EVFILT_FS                      = -0x9
585
 	EVFILT_FS                      = -0x9
552
 	EVFILT_LIO                     = -0xa
586
 	EVFILT_LIO                     = -0xa
553
 	EVFILT_PROC                    = -0x5
587
 	EVFILT_PROC                    = -0x5
555
 	EVFILT_READ                    = -0x1
589
 	EVFILT_READ                    = -0x1
556
 	EVFILT_SENDFILE                = -0xc
590
 	EVFILT_SENDFILE                = -0xc
557
 	EVFILT_SIGNAL                  = -0x6
591
 	EVFILT_SIGNAL                  = -0x6
558
-	EVFILT_SYSCOUNT                = 0xc
592
+	EVFILT_SYSCOUNT                = 0xd
559
 	EVFILT_TIMER                   = -0x7
593
 	EVFILT_TIMER                   = -0x7
560
 	EVFILT_USER                    = -0xb
594
 	EVFILT_USER                    = -0xb
561
 	EVFILT_VNODE                   = -0x4
595
 	EVFILT_VNODE                   = -0x4
562
 	EVFILT_WRITE                   = -0x2
596
 	EVFILT_WRITE                   = -0x2
597
+	EVNAMEMAP_NAME_SIZE            = 0x40
563
 	EV_ADD                         = 0x1
598
 	EV_ADD                         = 0x1
564
 	EV_CLEAR                       = 0x20
599
 	EV_CLEAR                       = 0x20
565
 	EV_DELETE                      = 0x2
600
 	EV_DELETE                      = 0x2
576
 	EV_RECEIPT                     = 0x40
611
 	EV_RECEIPT                     = 0x40
577
 	EV_SYSFLAGS                    = 0xf000
612
 	EV_SYSFLAGS                    = 0xf000
578
 	EXTA                           = 0x4b00
613
 	EXTA                           = 0x4b00
614
+	EXTATTR_MAXNAMELEN             = 0xff
579
 	EXTATTR_NAMESPACE_EMPTY        = 0x0
615
 	EXTATTR_NAMESPACE_EMPTY        = 0x0
580
 	EXTATTR_NAMESPACE_SYSTEM       = 0x2
616
 	EXTATTR_NAMESPACE_SYSTEM       = 0x2
581
 	EXTATTR_NAMESPACE_USER         = 0x1
617
 	EXTATTR_NAMESPACE_USER         = 0x1
617
 	IEXTEN                         = 0x400
653
 	IEXTEN                         = 0x400
618
 	IFAN_ARRIVAL                   = 0x0
654
 	IFAN_ARRIVAL                   = 0x0
619
 	IFAN_DEPARTURE                 = 0x1
655
 	IFAN_DEPARTURE                 = 0x1
656
+	IFCAP_WOL_MAGIC                = 0x2000
620
 	IFF_ALLMULTI                   = 0x200
657
 	IFF_ALLMULTI                   = 0x200
621
 	IFF_ALTPHYS                    = 0x4000
658
 	IFF_ALTPHYS                    = 0x4000
622
 	IFF_BROADCAST                  = 0x2
659
 	IFF_BROADCAST                  = 0x2
633
 	IFF_MONITOR                    = 0x40000
670
 	IFF_MONITOR                    = 0x40000
634
 	IFF_MULTICAST                  = 0x8000
671
 	IFF_MULTICAST                  = 0x8000
635
 	IFF_NOARP                      = 0x80
672
 	IFF_NOARP                      = 0x80
673
+	IFF_NOGROUP                    = 0x800000
636
 	IFF_OACTIVE                    = 0x400
674
 	IFF_OACTIVE                    = 0x400
637
 	IFF_POINTOPOINT                = 0x10
675
 	IFF_POINTOPOINT                = 0x10
638
 	IFF_PPROMISC                   = 0x20000
676
 	IFF_PPROMISC                   = 0x20000
807
 	IPV6_DSTOPTS                   = 0x32
845
 	IPV6_DSTOPTS                   = 0x32
808
 	IPV6_FLOWID                    = 0x43
846
 	IPV6_FLOWID                    = 0x43
809
 	IPV6_FLOWINFO_MASK             = 0xffffff0f
847
 	IPV6_FLOWINFO_MASK             = 0xffffff0f
848
+	IPV6_FLOWLABEL_LEN             = 0x14
810
 	IPV6_FLOWLABEL_MASK            = 0xffff0f00
849
 	IPV6_FLOWLABEL_MASK            = 0xffff0f00
811
 	IPV6_FLOWTYPE                  = 0x44
850
 	IPV6_FLOWTYPE                  = 0x44
812
 	IPV6_FRAGTTL                   = 0x78
851
 	IPV6_FRAGTTL                   = 0x78
827
 	IPV6_MAX_GROUP_SRC_FILTER      = 0x200
866
 	IPV6_MAX_GROUP_SRC_FILTER      = 0x200
828
 	IPV6_MAX_MEMBERSHIPS           = 0xfff
867
 	IPV6_MAX_MEMBERSHIPS           = 0xfff
829
 	IPV6_MAX_SOCK_SRC_FILTER       = 0x80
868
 	IPV6_MAX_SOCK_SRC_FILTER       = 0x80
830
-	IPV6_MIN_MEMBERSHIPS           = 0x1f
831
 	IPV6_MMTU                      = 0x500
869
 	IPV6_MMTU                      = 0x500
832
 	IPV6_MSFILTER                  = 0x4a
870
 	IPV6_MSFILTER                  = 0x4a
833
 	IPV6_MULTICAST_HOPS            = 0xa
871
 	IPV6_MULTICAST_HOPS            = 0xa
834
 	IPV6_MULTICAST_IF              = 0x9
872
 	IPV6_MULTICAST_IF              = 0x9
835
 	IPV6_MULTICAST_LOOP            = 0xb
873
 	IPV6_MULTICAST_LOOP            = 0xb
836
 	IPV6_NEXTHOP                   = 0x30
874
 	IPV6_NEXTHOP                   = 0x30
875
+	IPV6_ORIGDSTADDR               = 0x48
837
 	IPV6_PATHMTU                   = 0x2c
876
 	IPV6_PATHMTU                   = 0x2c
838
 	IPV6_PKTINFO                   = 0x2e
877
 	IPV6_PKTINFO                   = 0x2e
839
 	IPV6_PORTRANGE                 = 0xe
878
 	IPV6_PORTRANGE                 = 0xe
845
 	IPV6_RECVFLOWID                = 0x46
884
 	IPV6_RECVFLOWID                = 0x46
846
 	IPV6_RECVHOPLIMIT              = 0x25
885
 	IPV6_RECVHOPLIMIT              = 0x25
847
 	IPV6_RECVHOPOPTS               = 0x27
886
 	IPV6_RECVHOPOPTS               = 0x27
887
+	IPV6_RECVORIGDSTADDR           = 0x48
848
 	IPV6_RECVPATHMTU               = 0x2b
888
 	IPV6_RECVPATHMTU               = 0x2b
849
 	IPV6_RECVPKTINFO               = 0x24
889
 	IPV6_RECVPKTINFO               = 0x24
850
 	IPV6_RECVRSSBUCKETID           = 0x47
890
 	IPV6_RECVRSSBUCKETID           = 0x47
905
 	IP_MAX_MEMBERSHIPS             = 0xfff
945
 	IP_MAX_MEMBERSHIPS             = 0xfff
906
 	IP_MAX_SOCK_MUTE_FILTER        = 0x80
946
 	IP_MAX_SOCK_MUTE_FILTER        = 0x80
907
 	IP_MAX_SOCK_SRC_FILTER         = 0x80
947
 	IP_MAX_SOCK_SRC_FILTER         = 0x80
908
-	IP_MAX_SOURCE_FILTER           = 0x400
909
 	IP_MF                          = 0x2000
948
 	IP_MF                          = 0x2000
910
 	IP_MINTTL                      = 0x42
949
 	IP_MINTTL                      = 0x42
911
-	IP_MIN_MEMBERSHIPS             = 0x1f
912
 	IP_MSFILTER                    = 0x4a
950
 	IP_MSFILTER                    = 0x4a
913
 	IP_MSS                         = 0x240
951
 	IP_MSS                         = 0x240
914
 	IP_MULTICAST_IF                = 0x9
952
 	IP_MULTICAST_IF                = 0x9
918
 	IP_OFFMASK                     = 0x1fff
956
 	IP_OFFMASK                     = 0x1fff
919
 	IP_ONESBCAST                   = 0x17
957
 	IP_ONESBCAST                   = 0x17
920
 	IP_OPTIONS                     = 0x1
958
 	IP_OPTIONS                     = 0x1
959
+	IP_ORIGDSTADDR                 = 0x1b
921
 	IP_PORTRANGE                   = 0x13
960
 	IP_PORTRANGE                   = 0x13
922
 	IP_PORTRANGE_DEFAULT           = 0x0
961
 	IP_PORTRANGE_DEFAULT           = 0x0
923
 	IP_PORTRANGE_HIGH              = 0x1
962
 	IP_PORTRANGE_HIGH              = 0x1
926
 	IP_RECVFLOWID                  = 0x5d
965
 	IP_RECVFLOWID                  = 0x5d
927
 	IP_RECVIF                      = 0x14
966
 	IP_RECVIF                      = 0x14
928
 	IP_RECVOPTS                    = 0x5
967
 	IP_RECVOPTS                    = 0x5
968
+	IP_RECVORIGDSTADDR             = 0x1b
929
 	IP_RECVRETOPTS                 = 0x6
969
 	IP_RECVRETOPTS                 = 0x6
930
 	IP_RECVRSSBUCKETID             = 0x5e
970
 	IP_RECVRSSBUCKETID             = 0x5e
931
 	IP_RECVTOS                     = 0x44
971
 	IP_RECVTOS                     = 0x44
976
 	MAP_EXCL                       = 0x4000
1016
 	MAP_EXCL                       = 0x4000
977
 	MAP_FILE                       = 0x0
1017
 	MAP_FILE                       = 0x0
978
 	MAP_FIXED                      = 0x10
1018
 	MAP_FIXED                      = 0x10
1019
+	MAP_GUARD                      = 0x2000
979
 	MAP_HASSEMAPHORE               = 0x200
1020
 	MAP_HASSEMAPHORE               = 0x200
980
 	MAP_NOCORE                     = 0x20000
1021
 	MAP_NOCORE                     = 0x20000
981
 	MAP_NOSYNC                     = 0x800
1022
 	MAP_NOSYNC                     = 0x800
987
 	MAP_RESERVED0100               = 0x100
1028
 	MAP_RESERVED0100               = 0x100
988
 	MAP_SHARED                     = 0x1
1029
 	MAP_SHARED                     = 0x1
989
 	MAP_STACK                      = 0x400
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
 	MCL_CURRENT                    = 0x1
1040
 	MCL_CURRENT                    = 0x1
991
 	MCL_FUTURE                     = 0x2
1041
 	MCL_FUTURE                     = 0x2
992
 	MNT_ACLS                       = 0x8000000
1042
 	MNT_ACLS                       = 0x8000000
1027
 	MNT_SUSPEND                    = 0x4
1077
 	MNT_SUSPEND                    = 0x4
1028
 	MNT_SYNCHRONOUS                = 0x2
1078
 	MNT_SYNCHRONOUS                = 0x2
1029
 	MNT_UNION                      = 0x20
1079
 	MNT_UNION                      = 0x20
1080
+	MNT_UNTRUSTED                  = 0x800000000
1030
 	MNT_UPDATE                     = 0x10000
1081
 	MNT_UPDATE                     = 0x10000
1031
-	MNT_UPDATEMASK                 = 0x2d8d0807e
1082
+	MNT_UPDATEMASK                 = 0xad8d0807e
1032
 	MNT_USER                       = 0x8000
1083
 	MNT_USER                       = 0x8000
1033
-	MNT_VISFLAGMASK                = 0x3fef0ffff
1084
+	MNT_VERIFIED                   = 0x400000000
1085
+	MNT_VISFLAGMASK                = 0xffef0ffff
1034
 	MNT_WAIT                       = 0x1
1086
 	MNT_WAIT                       = 0x1
1035
 	MSG_CMSG_CLOEXEC               = 0x40000
1087
 	MSG_CMSG_CLOEXEC               = 0x40000
1036
 	MSG_COMPAT                     = 0x8000
1088
 	MSG_COMPAT                     = 0x8000
1059
 	NFDBITS                        = 0x40
1111
 	NFDBITS                        = 0x40
1060
 	NOFLSH                         = 0x80000000
1112
 	NOFLSH                         = 0x80000000
1061
 	NOKERNINFO                     = 0x2000000
1113
 	NOKERNINFO                     = 0x2000000
1114
+	NOTE_ABSTIME                   = 0x10
1062
 	NOTE_ATTRIB                    = 0x8
1115
 	NOTE_ATTRIB                    = 0x8
1063
 	NOTE_CHILD                     = 0x4
1116
 	NOTE_CHILD                     = 0x4
1064
 	NOTE_CLOSE                     = 0x100
1117
 	NOTE_CLOSE                     = 0x100
1213
 	RTV_WEIGHT                     = 0x100
1266
 	RTV_WEIGHT                     = 0x100
1214
 	RT_ALL_FIBS                    = -0x1
1267
 	RT_ALL_FIBS                    = -0x1
1215
 	RT_BLACKHOLE                   = 0x40
1268
 	RT_BLACKHOLE                   = 0x40
1216
-	RT_CACHING_CONTEXT             = 0x1
1217
 	RT_DEFAULT_FIB                 = 0x0
1269
 	RT_DEFAULT_FIB                 = 0x0
1218
 	RT_HAS_GW                      = 0x80
1270
 	RT_HAS_GW                      = 0x80
1219
 	RT_HAS_HEADER                  = 0x10
1271
 	RT_HAS_HEADER                  = 0x10
1223
 	RT_LLE_CACHE                   = 0x100
1275
 	RT_LLE_CACHE                   = 0x100
1224
 	RT_MAY_LOOP                    = 0x8
1276
 	RT_MAY_LOOP                    = 0x8
1225
 	RT_MAY_LOOP_BIT                = 0x3
1277
 	RT_MAY_LOOP_BIT                = 0x3
1226
-	RT_NORTREF                     = 0x2
1227
 	RT_REJECT                      = 0x20
1278
 	RT_REJECT                      = 0x20
1228
 	RUSAGE_CHILDREN                = -0x1
1279
 	RUSAGE_CHILDREN                = -0x1
1229
 	RUSAGE_SELF                    = 0x0
1280
 	RUSAGE_SELF                    = 0x0
1230
 	RUSAGE_THREAD                  = 0x1
1281
 	RUSAGE_THREAD                  = 0x1
1231
 	SCM_BINTIME                    = 0x4
1282
 	SCM_BINTIME                    = 0x4
1232
 	SCM_CREDS                      = 0x3
1283
 	SCM_CREDS                      = 0x3
1284
+	SCM_MONOTONIC                  = 0x6
1285
+	SCM_REALTIME                   = 0x5
1233
 	SCM_RIGHTS                     = 0x1
1286
 	SCM_RIGHTS                     = 0x1
1234
 	SCM_TIMESTAMP                  = 0x2
1287
 	SCM_TIMESTAMP                  = 0x2
1288
+	SCM_TIME_INFO                  = 0x7
1235
 	SHUT_RD                        = 0x0
1289
 	SHUT_RD                        = 0x0
1236
 	SHUT_RDWR                      = 0x2
1290
 	SHUT_RDWR                      = 0x2
1237
 	SHUT_WR                        = 0x1
1291
 	SHUT_WR                        = 0x1
1247
 	SIOCGETSGCNT                   = 0xc0207210
1301
 	SIOCGETSGCNT                   = 0xc0207210
1248
 	SIOCGETVIFCNT                  = 0xc028720f
1302
 	SIOCGETVIFCNT                  = 0xc028720f
1249
 	SIOCGHIWAT                     = 0x40047301
1303
 	SIOCGHIWAT                     = 0x40047301
1304
+	SIOCGHWADDR                    = 0xc020693e
1250
 	SIOCGI2C                       = 0xc020693d
1305
 	SIOCGI2C                       = 0xc020693d
1251
 	SIOCGIFADDR                    = 0xc0206921
1306
 	SIOCGIFADDR                    = 0xc0206921
1252
 	SIOCGIFBRDADDR                 = 0xc0206923
1307
 	SIOCGIFBRDADDR                 = 0xc0206923
1268
 	SIOCGIFPDSTADDR                = 0xc0206948
1323
 	SIOCGIFPDSTADDR                = 0xc0206948
1269
 	SIOCGIFPHYS                    = 0xc0206935
1324
 	SIOCGIFPHYS                    = 0xc0206935
1270
 	SIOCGIFPSRCADDR                = 0xc0206947
1325
 	SIOCGIFPSRCADDR                = 0xc0206947
1326
+	SIOCGIFRSSHASH                 = 0xc0186997
1327
+	SIOCGIFRSSKEY                  = 0xc0946996
1271
 	SIOCGIFSTATUS                  = 0xc331693b
1328
 	SIOCGIFSTATUS                  = 0xc331693b
1272
 	SIOCGIFXMEDIA                  = 0xc030698b
1329
 	SIOCGIFXMEDIA                  = 0xc030698b
1330
+	SIOCGLANPCP                    = 0xc0206998
1273
 	SIOCGLOWAT                     = 0x40047303
1331
 	SIOCGLOWAT                     = 0x40047303
1274
 	SIOCGPGRP                      = 0x40047309
1332
 	SIOCGPGRP                      = 0x40047309
1275
 	SIOCGPRIVATE_0                 = 0xc0206950
1333
 	SIOCGPRIVATE_0                 = 0xc0206950
1300
 	SIOCSIFPHYS                    = 0x80206936
1358
 	SIOCSIFPHYS                    = 0x80206936
1301
 	SIOCSIFRVNET                   = 0xc020695b
1359
 	SIOCSIFRVNET                   = 0xc020695b
1302
 	SIOCSIFVNET                    = 0xc020695a
1360
 	SIOCSIFVNET                    = 0xc020695a
1361
+	SIOCSLANPCP                    = 0x80206999
1303
 	SIOCSLOWAT                     = 0x80047302
1362
 	SIOCSLOWAT                     = 0x80047302
1304
 	SIOCSPGRP                      = 0x80047308
1363
 	SIOCSPGRP                      = 0x80047308
1305
 	SIOCSTUNFIB                    = 0x8020695f
1364
 	SIOCSTUNFIB                    = 0x8020695f
1318
 	SO_BINTIME                     = 0x2000
1377
 	SO_BINTIME                     = 0x2000
1319
 	SO_BROADCAST                   = 0x20
1378
 	SO_BROADCAST                   = 0x20
1320
 	SO_DEBUG                       = 0x1
1379
 	SO_DEBUG                       = 0x1
1380
+	SO_DOMAIN                      = 0x1019
1321
 	SO_DONTROUTE                   = 0x10
1381
 	SO_DONTROUTE                   = 0x10
1322
 	SO_ERROR                       = 0x1007
1382
 	SO_ERROR                       = 0x1007
1323
 	SO_KEEPALIVE                   = 0x8
1383
 	SO_KEEPALIVE                   = 0x8
1326
 	SO_LISTENINCQLEN               = 0x1013
1386
 	SO_LISTENINCQLEN               = 0x1013
1327
 	SO_LISTENQLEN                  = 0x1012
1387
 	SO_LISTENQLEN                  = 0x1012
1328
 	SO_LISTENQLIMIT                = 0x1011
1388
 	SO_LISTENQLIMIT                = 0x1011
1389
+	SO_MAX_PACING_RATE             = 0x1018
1329
 	SO_NOSIGPIPE                   = 0x800
1390
 	SO_NOSIGPIPE                   = 0x800
1330
 	SO_NO_DDP                      = 0x8000
1391
 	SO_NO_DDP                      = 0x8000
1331
 	SO_NO_OFFLOAD                  = 0x4000
1392
 	SO_NO_OFFLOAD                  = 0x4000
1338
 	SO_RCVTIMEO                    = 0x1006
1399
 	SO_RCVTIMEO                    = 0x1006
1339
 	SO_REUSEADDR                   = 0x4
1400
 	SO_REUSEADDR                   = 0x4
1340
 	SO_REUSEPORT                   = 0x200
1401
 	SO_REUSEPORT                   = 0x200
1402
+	SO_REUSEPORT_LB                = 0x10000
1341
 	SO_SETFIB                      = 0x1014
1403
 	SO_SETFIB                      = 0x1014
1342
 	SO_SNDBUF                      = 0x1001
1404
 	SO_SNDBUF                      = 0x1001
1343
 	SO_SNDLOWAT                    = 0x1003
1405
 	SO_SNDLOWAT                    = 0x1003
1344
 	SO_SNDTIMEO                    = 0x1005
1406
 	SO_SNDTIMEO                    = 0x1005
1345
 	SO_TIMESTAMP                   = 0x400
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
 	SO_TYPE                        = 0x1008
1415
 	SO_TYPE                        = 0x1008
1347
 	SO_USELOOPBACK                 = 0x40
1416
 	SO_USELOOPBACK                 = 0x40
1348
 	SO_USER_COOKIE                 = 0x1015
1417
 	SO_USER_COOKIE                 = 0x1015
1386
 	TCOFLUSH                       = 0x2
1455
 	TCOFLUSH                       = 0x2
1387
 	TCOOFF                         = 0x1
1456
 	TCOOFF                         = 0x1
1388
 	TCOON                          = 0x2
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
 	TCP_CA_NAME_MAX                = 0x10
1488
 	TCP_CA_NAME_MAX                = 0x10
1390
 	TCP_CCALGOOPT                  = 0x41
1489
 	TCP_CCALGOOPT                  = 0x41
1391
 	TCP_CONGESTION                 = 0x40
1490
 	TCP_CONGESTION                 = 0x40
1491
+	TCP_DATA_AFTER_CLOSE           = 0x44c
1492
+	TCP_DELACK                     = 0x48
1392
 	TCP_FASTOPEN                   = 0x401
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
 	TCP_FUNCTION_BLK               = 0x2000
1497
 	TCP_FUNCTION_BLK               = 0x2000
1394
 	TCP_FUNCTION_NAME_LEN_MAX      = 0x20
1498
 	TCP_FUNCTION_NAME_LEN_MAX      = 0x20
1395
 	TCP_INFO                       = 0x20
1499
 	TCP_INFO                       = 0x20
1397
 	TCP_KEEPIDLE                   = 0x100
1501
 	TCP_KEEPIDLE                   = 0x100
1398
 	TCP_KEEPINIT                   = 0x80
1502
 	TCP_KEEPINIT                   = 0x80
1399
 	TCP_KEEPINTVL                  = 0x200
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
 	TCP_MAXBURST                   = 0x4
1510
 	TCP_MAXBURST                   = 0x4
1401
 	TCP_MAXHLEN                    = 0x3c
1511
 	TCP_MAXHLEN                    = 0x3c
1402
 	TCP_MAXOLEN                    = 0x28
1512
 	TCP_MAXOLEN                    = 0x28
1412
 	TCP_NOPUSH                     = 0x4
1522
 	TCP_NOPUSH                     = 0x4
1413
 	TCP_PCAP_IN                    = 0x1000
1523
 	TCP_PCAP_IN                    = 0x1000
1414
 	TCP_PCAP_OUT                   = 0x800
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
 	TCP_VENDOR                     = 0x80000000
1545
 	TCP_VENDOR                     = 0x80000000
1416
 	TCSAFLUSH                      = 0x2
1546
 	TCSAFLUSH                      = 0x2
1547
+	TIMER_ABSTIME                  = 0x1
1548
+	TIMER_RELTIME                  = 0x0
1417
 	TIOCCBRK                       = 0x2000747a
1549
 	TIOCCBRK                       = 0x2000747a
1418
 	TIOCCDTR                       = 0x20007478
1550
 	TIOCCDTR                       = 0x20007478
1419
 	TIOCCONS                       = 0x80047462
1551
 	TIOCCONS                       = 0x80047462
1477
 	TIOCTIMESTAMP                  = 0x40107459
1609
 	TIOCTIMESTAMP                  = 0x40107459
1478
 	TIOCUCNTL                      = 0x80047466
1610
 	TIOCUCNTL                      = 0x80047466
1479
 	TOSTOP                         = 0x400000
1611
 	TOSTOP                         = 0x400000
1612
+	UTIME_NOW                      = -0x1
1613
+	UTIME_OMIT                     = -0x2
1480
 	VDISCARD                       = 0xf
1614
 	VDISCARD                       = 0xf
1481
 	VDSUSP                         = 0xb
1615
 	VDSUSP                         = 0xb
1482
 	VEOF                           = 0x0
1616
 	VEOF                           = 0x0

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

355
 	CTL_KERN                       = 0x1
355
 	CTL_KERN                       = 0x1
356
 	CTL_MAXNAME                    = 0x18
356
 	CTL_MAXNAME                    = 0x18
357
 	CTL_NET                        = 0x4
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
 	DLT_A429                       = 0xb8
374
 	DLT_A429                       = 0xb8
359
 	DLT_A653_ICM                   = 0xb9
375
 	DLT_A653_ICM                   = 0xb9
360
 	DLT_AIRONET_HEADER             = 0x78
376
 	DLT_AIRONET_HEADER             = 0x78

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

355
 	CTL_KERN                       = 0x1
355
 	CTL_KERN                       = 0x1
356
 	CTL_MAXNAME                    = 0x18
356
 	CTL_MAXNAME                    = 0x18
357
 	CTL_NET                        = 0x4
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
 	DLT_A429                       = 0xb8
374
 	DLT_A429                       = 0xb8
359
 	DLT_A653_ICM                   = 0xb9
375
 	DLT_A653_ICM                   = 0xb9
360
 	DLT_AIRONET_HEADER             = 0x78
376
 	DLT_AIRONET_HEADER             = 0x78
379
 	DLT_CHAOS                      = 0x5
395
 	DLT_CHAOS                      = 0x5
380
 	DLT_CHDLC                      = 0x68
396
 	DLT_CHDLC                      = 0x68
381
 	DLT_CISCO_IOS                  = 0x76
397
 	DLT_CISCO_IOS                  = 0x76
398
+	DLT_CLASS_NETBSD_RAWAF         = 0x2240000
382
 	DLT_C_HDLC                     = 0x68
399
 	DLT_C_HDLC                     = 0x68
383
 	DLT_C_HDLC_WITH_DIR            = 0xcd
400
 	DLT_C_HDLC_WITH_DIR            = 0xcd
384
 	DLT_DBUS                       = 0xe7
401
 	DLT_DBUS                       = 0xe7
385
 	DLT_DECT                       = 0xdd
402
 	DLT_DECT                       = 0xdd
403
+	DLT_DISPLAYPORT_AUX            = 0x113
386
 	DLT_DOCSIS                     = 0x8f
404
 	DLT_DOCSIS                     = 0x8f
405
+	DLT_DOCSIS31_XRA31             = 0x111
387
 	DLT_DVB_CI                     = 0xeb
406
 	DLT_DVB_CI                     = 0xeb
388
 	DLT_ECONET                     = 0x73
407
 	DLT_ECONET                     = 0x73
389
 	DLT_EN10MB                     = 0x1
408
 	DLT_EN10MB                     = 0x1
393
 	DLT_ERF                        = 0xc5
412
 	DLT_ERF                        = 0xc5
394
 	DLT_ERF_ETH                    = 0xaf
413
 	DLT_ERF_ETH                    = 0xaf
395
 	DLT_ERF_POS                    = 0xb0
414
 	DLT_ERF_POS                    = 0xb0
415
+	DLT_ETHERNET_MPACKET           = 0x112
396
 	DLT_FC_2                       = 0xe0
416
 	DLT_FC_2                       = 0xe0
397
 	DLT_FC_2_WITH_FRAME_DELIMS     = 0xe1
417
 	DLT_FC_2_WITH_FRAME_DELIMS     = 0xe1
398
 	DLT_FDDI                       = 0xa
418
 	DLT_FDDI                       = 0xa
406
 	DLT_GPRS_LLC                   = 0xa9
426
 	DLT_GPRS_LLC                   = 0xa9
407
 	DLT_GSMTAP_ABIS                = 0xda
427
 	DLT_GSMTAP_ABIS                = 0xda
408
 	DLT_GSMTAP_UM                  = 0xd9
428
 	DLT_GSMTAP_UM                  = 0xd9
409
-	DLT_HHDLC                      = 0x79
410
 	DLT_IBM_SN                     = 0x92
429
 	DLT_IBM_SN                     = 0x92
411
 	DLT_IBM_SP                     = 0x91
430
 	DLT_IBM_SP                     = 0x91
412
 	DLT_IEEE802                    = 0x6
431
 	DLT_IEEE802                    = 0x6
429
 	DLT_IPV4                       = 0xe4
448
 	DLT_IPV4                       = 0xe4
430
 	DLT_IPV6                       = 0xe5
449
 	DLT_IPV6                       = 0xe5
431
 	DLT_IP_OVER_FC                 = 0x7a
450
 	DLT_IP_OVER_FC                 = 0x7a
451
+	DLT_ISO_14443                  = 0x108
432
 	DLT_JUNIPER_ATM1               = 0x89
452
 	DLT_JUNIPER_ATM1               = 0x89
433
 	DLT_JUNIPER_ATM2               = 0x87
453
 	DLT_JUNIPER_ATM2               = 0x87
434
 	DLT_JUNIPER_ATM_CEMIC          = 0xee
454
 	DLT_JUNIPER_ATM_CEMIC          = 0xee
461
 	DLT_LINUX_PPP_WITHDIRECTION    = 0xa6
481
 	DLT_LINUX_PPP_WITHDIRECTION    = 0xa6
462
 	DLT_LINUX_SLL                  = 0x71
482
 	DLT_LINUX_SLL                  = 0x71
463
 	DLT_LOOP                       = 0x6c
483
 	DLT_LOOP                       = 0x6c
484
+	DLT_LORATAP                    = 0x10e
464
 	DLT_LTALK                      = 0x72
485
 	DLT_LTALK                      = 0x72
465
-	DLT_MATCHING_MAX               = 0x104
486
+	DLT_MATCHING_MAX               = 0x113
466
 	DLT_MATCHING_MIN               = 0x68
487
 	DLT_MATCHING_MIN               = 0x68
467
 	DLT_MFR                        = 0xb6
488
 	DLT_MFR                        = 0xb6
468
 	DLT_MOST                       = 0xd3
489
 	DLT_MOST                       = 0xd3
478
 	DLT_NFC_LLCP                   = 0xf5
499
 	DLT_NFC_LLCP                   = 0xf5
479
 	DLT_NFLOG                      = 0xef
500
 	DLT_NFLOG                      = 0xef
480
 	DLT_NG40                       = 0xf4
501
 	DLT_NG40                       = 0xf4
502
+	DLT_NORDIC_BLE                 = 0x110
481
 	DLT_NULL                       = 0x0
503
 	DLT_NULL                       = 0x0
504
+	DLT_OPENFLOW                   = 0x10b
482
 	DLT_PCI_EXP                    = 0x7d
505
 	DLT_PCI_EXP                    = 0x7d
483
 	DLT_PFLOG                      = 0x75
506
 	DLT_PFLOG                      = 0x75
484
 	DLT_PFSYNC                     = 0x79
507
 	DLT_PFSYNC                     = 0x79
485
 	DLT_PKTAP                      = 0x102
508
 	DLT_PKTAP                      = 0x102
486
 	DLT_PPI                        = 0xc0
509
 	DLT_PPI                        = 0xc0
487
 	DLT_PPP                        = 0x9
510
 	DLT_PPP                        = 0x9
488
-	DLT_PPP_BSDOS                  = 0x10
511
+	DLT_PPP_BSDOS                  = 0xe
489
 	DLT_PPP_ETHER                  = 0x33
512
 	DLT_PPP_ETHER                  = 0x33
490
 	DLT_PPP_PPPD                   = 0xa6
513
 	DLT_PPP_PPPD                   = 0xa6
491
 	DLT_PPP_SERIAL                 = 0x32
514
 	DLT_PPP_SERIAL                 = 0x32
496
 	DLT_PRONET                     = 0x4
519
 	DLT_PRONET                     = 0x4
497
 	DLT_RAIF1                      = 0xc6
520
 	DLT_RAIF1                      = 0xc6
498
 	DLT_RAW                        = 0xc
521
 	DLT_RAW                        = 0xc
522
+	DLT_RDS                        = 0x109
523
+	DLT_REDBACK_SMARTEDGE          = 0x20
499
 	DLT_RIO                        = 0x7c
524
 	DLT_RIO                        = 0x7c
500
 	DLT_RTAC_SERIAL                = 0xfa
525
 	DLT_RTAC_SERIAL                = 0xfa
501
 	DLT_SCCP                       = 0x8e
526
 	DLT_SCCP                       = 0x8e
502
 	DLT_SCTP                       = 0xf8
527
 	DLT_SCTP                       = 0xf8
528
+	DLT_SDLC                       = 0x10c
503
 	DLT_SITA                       = 0xc4
529
 	DLT_SITA                       = 0xc4
504
 	DLT_SLIP                       = 0x8
530
 	DLT_SLIP                       = 0x8
505
-	DLT_SLIP_BSDOS                 = 0xf
531
+	DLT_SLIP_BSDOS                 = 0xd
506
 	DLT_STANAG_5066_D_PDU          = 0xed
532
 	DLT_STANAG_5066_D_PDU          = 0xed
507
 	DLT_SUNATM                     = 0x7b
533
 	DLT_SUNATM                     = 0x7b
508
 	DLT_SYMANTEC_FIREWALL          = 0x63
534
 	DLT_SYMANTEC_FIREWALL          = 0x63
535
+	DLT_TI_LLN_SNIFFER             = 0x10d
509
 	DLT_TZSP                       = 0x80
536
 	DLT_TZSP                       = 0x80
510
 	DLT_USB                        = 0xba
537
 	DLT_USB                        = 0xba
511
 	DLT_USBPCAP                    = 0xf9
538
 	DLT_USBPCAP                    = 0xf9
539
+	DLT_USB_DARWIN                 = 0x10a
540
+	DLT_USB_FREEBSD                = 0xba
512
 	DLT_USB_LINUX                  = 0xbd
541
 	DLT_USB_LINUX                  = 0xbd
513
 	DLT_USB_LINUX_MMAPPED          = 0xdc
542
 	DLT_USB_LINUX_MMAPPED          = 0xdc
514
 	DLT_USER0                      = 0x93
543
 	DLT_USER0                      = 0x93
527
 	DLT_USER7                      = 0x9a
556
 	DLT_USER7                      = 0x9a
528
 	DLT_USER8                      = 0x9b
557
 	DLT_USER8                      = 0x9b
529
 	DLT_USER9                      = 0x9c
558
 	DLT_USER9                      = 0x9c
559
+	DLT_VSOCK                      = 0x10f
560
+	DLT_WATTSTOPPER_DLM            = 0x107
530
 	DLT_WIHART                     = 0xdf
561
 	DLT_WIHART                     = 0xdf
531
 	DLT_WIRESHARK_UPPER_PDU        = 0xfc
562
 	DLT_WIRESHARK_UPPER_PDU        = 0xfc
532
 	DLT_X2E_SERIAL                 = 0xd5
563
 	DLT_X2E_SERIAL                 = 0xd5
533
 	DLT_X2E_XORAYA                 = 0xd6
564
 	DLT_X2E_XORAYA                 = 0xd6
565
+	DLT_ZWAVE_R1_R2                = 0x105
566
+	DLT_ZWAVE_R3                   = 0x106
534
 	DT_BLK                         = 0x6
567
 	DT_BLK                         = 0x6
535
 	DT_CHR                         = 0x2
568
 	DT_CHR                         = 0x2
536
 	DT_DIR                         = 0x4
569
 	DT_DIR                         = 0x4
548
 	ECHONL                         = 0x10
581
 	ECHONL                         = 0x10
549
 	ECHOPRT                        = 0x20
582
 	ECHOPRT                        = 0x20
550
 	EVFILT_AIO                     = -0x3
583
 	EVFILT_AIO                     = -0x3
584
+	EVFILT_EMPTY                   = -0xd
551
 	EVFILT_FS                      = -0x9
585
 	EVFILT_FS                      = -0x9
552
 	EVFILT_LIO                     = -0xa
586
 	EVFILT_LIO                     = -0xa
553
 	EVFILT_PROC                    = -0x5
587
 	EVFILT_PROC                    = -0x5
555
 	EVFILT_READ                    = -0x1
589
 	EVFILT_READ                    = -0x1
556
 	EVFILT_SENDFILE                = -0xc
590
 	EVFILT_SENDFILE                = -0xc
557
 	EVFILT_SIGNAL                  = -0x6
591
 	EVFILT_SIGNAL                  = -0x6
558
-	EVFILT_SYSCOUNT                = 0xc
592
+	EVFILT_SYSCOUNT                = 0xd
559
 	EVFILT_TIMER                   = -0x7
593
 	EVFILT_TIMER                   = -0x7
560
 	EVFILT_USER                    = -0xb
594
 	EVFILT_USER                    = -0xb
561
 	EVFILT_VNODE                   = -0x4
595
 	EVFILT_VNODE                   = -0x4
562
 	EVFILT_WRITE                   = -0x2
596
 	EVFILT_WRITE                   = -0x2
597
+	EVNAMEMAP_NAME_SIZE            = 0x40
563
 	EV_ADD                         = 0x1
598
 	EV_ADD                         = 0x1
564
 	EV_CLEAR                       = 0x20
599
 	EV_CLEAR                       = 0x20
565
 	EV_DELETE                      = 0x2
600
 	EV_DELETE                      = 0x2
576
 	EV_RECEIPT                     = 0x40
611
 	EV_RECEIPT                     = 0x40
577
 	EV_SYSFLAGS                    = 0xf000
612
 	EV_SYSFLAGS                    = 0xf000
578
 	EXTA                           = 0x4b00
613
 	EXTA                           = 0x4b00
614
+	EXTATTR_MAXNAMELEN             = 0xff
579
 	EXTATTR_NAMESPACE_EMPTY        = 0x0
615
 	EXTATTR_NAMESPACE_EMPTY        = 0x0
580
 	EXTATTR_NAMESPACE_SYSTEM       = 0x2
616
 	EXTATTR_NAMESPACE_SYSTEM       = 0x2
581
 	EXTATTR_NAMESPACE_USER         = 0x1
617
 	EXTATTR_NAMESPACE_USER         = 0x1
617
 	IEXTEN                         = 0x400
653
 	IEXTEN                         = 0x400
618
 	IFAN_ARRIVAL                   = 0x0
654
 	IFAN_ARRIVAL                   = 0x0
619
 	IFAN_DEPARTURE                 = 0x1
655
 	IFAN_DEPARTURE                 = 0x1
656
+	IFCAP_WOL_MAGIC                = 0x2000
620
 	IFF_ALLMULTI                   = 0x200
657
 	IFF_ALLMULTI                   = 0x200
621
 	IFF_ALTPHYS                    = 0x4000
658
 	IFF_ALTPHYS                    = 0x4000
622
 	IFF_BROADCAST                  = 0x2
659
 	IFF_BROADCAST                  = 0x2
633
 	IFF_MONITOR                    = 0x40000
670
 	IFF_MONITOR                    = 0x40000
634
 	IFF_MULTICAST                  = 0x8000
671
 	IFF_MULTICAST                  = 0x8000
635
 	IFF_NOARP                      = 0x80
672
 	IFF_NOARP                      = 0x80
673
+	IFF_NOGROUP                    = 0x800000
636
 	IFF_OACTIVE                    = 0x400
674
 	IFF_OACTIVE                    = 0x400
637
 	IFF_POINTOPOINT                = 0x10
675
 	IFF_POINTOPOINT                = 0x10
638
 	IFF_PPROMISC                   = 0x20000
676
 	IFF_PPROMISC                   = 0x20000
807
 	IPV6_DSTOPTS                   = 0x32
845
 	IPV6_DSTOPTS                   = 0x32
808
 	IPV6_FLOWID                    = 0x43
846
 	IPV6_FLOWID                    = 0x43
809
 	IPV6_FLOWINFO_MASK             = 0xffffff0f
847
 	IPV6_FLOWINFO_MASK             = 0xffffff0f
848
+	IPV6_FLOWLABEL_LEN             = 0x14
810
 	IPV6_FLOWLABEL_MASK            = 0xffff0f00
849
 	IPV6_FLOWLABEL_MASK            = 0xffff0f00
811
 	IPV6_FLOWTYPE                  = 0x44
850
 	IPV6_FLOWTYPE                  = 0x44
812
 	IPV6_FRAGTTL                   = 0x78
851
 	IPV6_FRAGTTL                   = 0x78
827
 	IPV6_MAX_GROUP_SRC_FILTER      = 0x200
866
 	IPV6_MAX_GROUP_SRC_FILTER      = 0x200
828
 	IPV6_MAX_MEMBERSHIPS           = 0xfff
867
 	IPV6_MAX_MEMBERSHIPS           = 0xfff
829
 	IPV6_MAX_SOCK_SRC_FILTER       = 0x80
868
 	IPV6_MAX_SOCK_SRC_FILTER       = 0x80
830
-	IPV6_MIN_MEMBERSHIPS           = 0x1f
831
 	IPV6_MMTU                      = 0x500
869
 	IPV6_MMTU                      = 0x500
832
 	IPV6_MSFILTER                  = 0x4a
870
 	IPV6_MSFILTER                  = 0x4a
833
 	IPV6_MULTICAST_HOPS            = 0xa
871
 	IPV6_MULTICAST_HOPS            = 0xa
834
 	IPV6_MULTICAST_IF              = 0x9
872
 	IPV6_MULTICAST_IF              = 0x9
835
 	IPV6_MULTICAST_LOOP            = 0xb
873
 	IPV6_MULTICAST_LOOP            = 0xb
836
 	IPV6_NEXTHOP                   = 0x30
874
 	IPV6_NEXTHOP                   = 0x30
875
+	IPV6_ORIGDSTADDR               = 0x48
837
 	IPV6_PATHMTU                   = 0x2c
876
 	IPV6_PATHMTU                   = 0x2c
838
 	IPV6_PKTINFO                   = 0x2e
877
 	IPV6_PKTINFO                   = 0x2e
839
 	IPV6_PORTRANGE                 = 0xe
878
 	IPV6_PORTRANGE                 = 0xe
845
 	IPV6_RECVFLOWID                = 0x46
884
 	IPV6_RECVFLOWID                = 0x46
846
 	IPV6_RECVHOPLIMIT              = 0x25
885
 	IPV6_RECVHOPLIMIT              = 0x25
847
 	IPV6_RECVHOPOPTS               = 0x27
886
 	IPV6_RECVHOPOPTS               = 0x27
887
+	IPV6_RECVORIGDSTADDR           = 0x48
848
 	IPV6_RECVPATHMTU               = 0x2b
888
 	IPV6_RECVPATHMTU               = 0x2b
849
 	IPV6_RECVPKTINFO               = 0x24
889
 	IPV6_RECVPKTINFO               = 0x24
850
 	IPV6_RECVRSSBUCKETID           = 0x47
890
 	IPV6_RECVRSSBUCKETID           = 0x47
905
 	IP_MAX_MEMBERSHIPS             = 0xfff
945
 	IP_MAX_MEMBERSHIPS             = 0xfff
906
 	IP_MAX_SOCK_MUTE_FILTER        = 0x80
946
 	IP_MAX_SOCK_MUTE_FILTER        = 0x80
907
 	IP_MAX_SOCK_SRC_FILTER         = 0x80
947
 	IP_MAX_SOCK_SRC_FILTER         = 0x80
908
-	IP_MAX_SOURCE_FILTER           = 0x400
909
 	IP_MF                          = 0x2000
948
 	IP_MF                          = 0x2000
910
 	IP_MINTTL                      = 0x42
949
 	IP_MINTTL                      = 0x42
911
-	IP_MIN_MEMBERSHIPS             = 0x1f
912
 	IP_MSFILTER                    = 0x4a
950
 	IP_MSFILTER                    = 0x4a
913
 	IP_MSS                         = 0x240
951
 	IP_MSS                         = 0x240
914
 	IP_MULTICAST_IF                = 0x9
952
 	IP_MULTICAST_IF                = 0x9
918
 	IP_OFFMASK                     = 0x1fff
956
 	IP_OFFMASK                     = 0x1fff
919
 	IP_ONESBCAST                   = 0x17
957
 	IP_ONESBCAST                   = 0x17
920
 	IP_OPTIONS                     = 0x1
958
 	IP_OPTIONS                     = 0x1
959
+	IP_ORIGDSTADDR                 = 0x1b
921
 	IP_PORTRANGE                   = 0x13
960
 	IP_PORTRANGE                   = 0x13
922
 	IP_PORTRANGE_DEFAULT           = 0x0
961
 	IP_PORTRANGE_DEFAULT           = 0x0
923
 	IP_PORTRANGE_HIGH              = 0x1
962
 	IP_PORTRANGE_HIGH              = 0x1
926
 	IP_RECVFLOWID                  = 0x5d
965
 	IP_RECVFLOWID                  = 0x5d
927
 	IP_RECVIF                      = 0x14
966
 	IP_RECVIF                      = 0x14
928
 	IP_RECVOPTS                    = 0x5
967
 	IP_RECVOPTS                    = 0x5
968
+	IP_RECVORIGDSTADDR             = 0x1b
929
 	IP_RECVRETOPTS                 = 0x6
969
 	IP_RECVRETOPTS                 = 0x6
930
 	IP_RECVRSSBUCKETID             = 0x5e
970
 	IP_RECVRSSBUCKETID             = 0x5e
931
 	IP_RECVTOS                     = 0x44
971
 	IP_RECVTOS                     = 0x44
976
 	MAP_EXCL                       = 0x4000
1016
 	MAP_EXCL                       = 0x4000
977
 	MAP_FILE                       = 0x0
1017
 	MAP_FILE                       = 0x0
978
 	MAP_FIXED                      = 0x10
1018
 	MAP_FIXED                      = 0x10
1019
+	MAP_GUARD                      = 0x2000
979
 	MAP_HASSEMAPHORE               = 0x200
1020
 	MAP_HASSEMAPHORE               = 0x200
980
 	MAP_NOCORE                     = 0x20000
1021
 	MAP_NOCORE                     = 0x20000
981
 	MAP_NOSYNC                     = 0x800
1022
 	MAP_NOSYNC                     = 0x800
987
 	MAP_RESERVED0100               = 0x100
1028
 	MAP_RESERVED0100               = 0x100
988
 	MAP_SHARED                     = 0x1
1029
 	MAP_SHARED                     = 0x1
989
 	MAP_STACK                      = 0x400
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
 	MCL_CURRENT                    = 0x1
1040
 	MCL_CURRENT                    = 0x1
991
 	MCL_FUTURE                     = 0x2
1041
 	MCL_FUTURE                     = 0x2
992
 	MNT_ACLS                       = 0x8000000
1042
 	MNT_ACLS                       = 0x8000000
1027
 	MNT_SUSPEND                    = 0x4
1077
 	MNT_SUSPEND                    = 0x4
1028
 	MNT_SYNCHRONOUS                = 0x2
1078
 	MNT_SYNCHRONOUS                = 0x2
1029
 	MNT_UNION                      = 0x20
1079
 	MNT_UNION                      = 0x20
1080
+	MNT_UNTRUSTED                  = 0x800000000
1030
 	MNT_UPDATE                     = 0x10000
1081
 	MNT_UPDATE                     = 0x10000
1031
-	MNT_UPDATEMASK                 = 0x2d8d0807e
1082
+	MNT_UPDATEMASK                 = 0xad8d0807e
1032
 	MNT_USER                       = 0x8000
1083
 	MNT_USER                       = 0x8000
1033
-	MNT_VISFLAGMASK                = 0x3fef0ffff
1084
+	MNT_VERIFIED                   = 0x400000000
1085
+	MNT_VISFLAGMASK                = 0xffef0ffff
1034
 	MNT_WAIT                       = 0x1
1086
 	MNT_WAIT                       = 0x1
1035
 	MSG_CMSG_CLOEXEC               = 0x40000
1087
 	MSG_CMSG_CLOEXEC               = 0x40000
1036
 	MSG_COMPAT                     = 0x8000
1088
 	MSG_COMPAT                     = 0x8000
1059
 	NFDBITS                        = 0x40
1111
 	NFDBITS                        = 0x40
1060
 	NOFLSH                         = 0x80000000
1112
 	NOFLSH                         = 0x80000000
1061
 	NOKERNINFO                     = 0x2000000
1113
 	NOKERNINFO                     = 0x2000000
1114
+	NOTE_ABSTIME                   = 0x10
1062
 	NOTE_ATTRIB                    = 0x8
1115
 	NOTE_ATTRIB                    = 0x8
1063
 	NOTE_CHILD                     = 0x4
1116
 	NOTE_CHILD                     = 0x4
1064
 	NOTE_CLOSE                     = 0x100
1117
 	NOTE_CLOSE                     = 0x100
1213
 	RTV_WEIGHT                     = 0x100
1266
 	RTV_WEIGHT                     = 0x100
1214
 	RT_ALL_FIBS                    = -0x1
1267
 	RT_ALL_FIBS                    = -0x1
1215
 	RT_BLACKHOLE                   = 0x40
1268
 	RT_BLACKHOLE                   = 0x40
1216
-	RT_CACHING_CONTEXT             = 0x1
1217
 	RT_DEFAULT_FIB                 = 0x0
1269
 	RT_DEFAULT_FIB                 = 0x0
1218
 	RT_HAS_GW                      = 0x80
1270
 	RT_HAS_GW                      = 0x80
1219
 	RT_HAS_HEADER                  = 0x10
1271
 	RT_HAS_HEADER                  = 0x10
1223
 	RT_LLE_CACHE                   = 0x100
1275
 	RT_LLE_CACHE                   = 0x100
1224
 	RT_MAY_LOOP                    = 0x8
1276
 	RT_MAY_LOOP                    = 0x8
1225
 	RT_MAY_LOOP_BIT                = 0x3
1277
 	RT_MAY_LOOP_BIT                = 0x3
1226
-	RT_NORTREF                     = 0x2
1227
 	RT_REJECT                      = 0x20
1278
 	RT_REJECT                      = 0x20
1228
 	RUSAGE_CHILDREN                = -0x1
1279
 	RUSAGE_CHILDREN                = -0x1
1229
 	RUSAGE_SELF                    = 0x0
1280
 	RUSAGE_SELF                    = 0x0
1230
 	RUSAGE_THREAD                  = 0x1
1281
 	RUSAGE_THREAD                  = 0x1
1231
 	SCM_BINTIME                    = 0x4
1282
 	SCM_BINTIME                    = 0x4
1232
 	SCM_CREDS                      = 0x3
1283
 	SCM_CREDS                      = 0x3
1284
+	SCM_MONOTONIC                  = 0x6
1285
+	SCM_REALTIME                   = 0x5
1233
 	SCM_RIGHTS                     = 0x1
1286
 	SCM_RIGHTS                     = 0x1
1234
 	SCM_TIMESTAMP                  = 0x2
1287
 	SCM_TIMESTAMP                  = 0x2
1288
+	SCM_TIME_INFO                  = 0x7
1235
 	SHUT_RD                        = 0x0
1289
 	SHUT_RD                        = 0x0
1236
 	SHUT_RDWR                      = 0x2
1290
 	SHUT_RDWR                      = 0x2
1237
 	SHUT_WR                        = 0x1
1291
 	SHUT_WR                        = 0x1
1247
 	SIOCGETSGCNT                   = 0xc0207210
1301
 	SIOCGETSGCNT                   = 0xc0207210
1248
 	SIOCGETVIFCNT                  = 0xc028720f
1302
 	SIOCGETVIFCNT                  = 0xc028720f
1249
 	SIOCGHIWAT                     = 0x40047301
1303
 	SIOCGHIWAT                     = 0x40047301
1304
+	SIOCGHWADDR                    = 0xc020693e
1250
 	SIOCGI2C                       = 0xc020693d
1305
 	SIOCGI2C                       = 0xc020693d
1251
 	SIOCGIFADDR                    = 0xc0206921
1306
 	SIOCGIFADDR                    = 0xc0206921
1252
 	SIOCGIFBRDADDR                 = 0xc0206923
1307
 	SIOCGIFBRDADDR                 = 0xc0206923
1268
 	SIOCGIFPDSTADDR                = 0xc0206948
1323
 	SIOCGIFPDSTADDR                = 0xc0206948
1269
 	SIOCGIFPHYS                    = 0xc0206935
1324
 	SIOCGIFPHYS                    = 0xc0206935
1270
 	SIOCGIFPSRCADDR                = 0xc0206947
1325
 	SIOCGIFPSRCADDR                = 0xc0206947
1326
+	SIOCGIFRSSHASH                 = 0xc0186997
1327
+	SIOCGIFRSSKEY                  = 0xc0946996
1271
 	SIOCGIFSTATUS                  = 0xc331693b
1328
 	SIOCGIFSTATUS                  = 0xc331693b
1272
 	SIOCGIFXMEDIA                  = 0xc030698b
1329
 	SIOCGIFXMEDIA                  = 0xc030698b
1330
+	SIOCGLANPCP                    = 0xc0206998
1273
 	SIOCGLOWAT                     = 0x40047303
1331
 	SIOCGLOWAT                     = 0x40047303
1274
 	SIOCGPGRP                      = 0x40047309
1332
 	SIOCGPGRP                      = 0x40047309
1275
 	SIOCGPRIVATE_0                 = 0xc0206950
1333
 	SIOCGPRIVATE_0                 = 0xc0206950
1300
 	SIOCSIFPHYS                    = 0x80206936
1358
 	SIOCSIFPHYS                    = 0x80206936
1301
 	SIOCSIFRVNET                   = 0xc020695b
1359
 	SIOCSIFRVNET                   = 0xc020695b
1302
 	SIOCSIFVNET                    = 0xc020695a
1360
 	SIOCSIFVNET                    = 0xc020695a
1361
+	SIOCSLANPCP                    = 0x80206999
1303
 	SIOCSLOWAT                     = 0x80047302
1362
 	SIOCSLOWAT                     = 0x80047302
1304
 	SIOCSPGRP                      = 0x80047308
1363
 	SIOCSPGRP                      = 0x80047308
1305
 	SIOCSTUNFIB                    = 0x8020695f
1364
 	SIOCSTUNFIB                    = 0x8020695f
1318
 	SO_BINTIME                     = 0x2000
1377
 	SO_BINTIME                     = 0x2000
1319
 	SO_BROADCAST                   = 0x20
1378
 	SO_BROADCAST                   = 0x20
1320
 	SO_DEBUG                       = 0x1
1379
 	SO_DEBUG                       = 0x1
1380
+	SO_DOMAIN                      = 0x1019
1321
 	SO_DONTROUTE                   = 0x10
1381
 	SO_DONTROUTE                   = 0x10
1322
 	SO_ERROR                       = 0x1007
1382
 	SO_ERROR                       = 0x1007
1323
 	SO_KEEPALIVE                   = 0x8
1383
 	SO_KEEPALIVE                   = 0x8
1326
 	SO_LISTENINCQLEN               = 0x1013
1386
 	SO_LISTENINCQLEN               = 0x1013
1327
 	SO_LISTENQLEN                  = 0x1012
1387
 	SO_LISTENQLEN                  = 0x1012
1328
 	SO_LISTENQLIMIT                = 0x1011
1388
 	SO_LISTENQLIMIT                = 0x1011
1389
+	SO_MAX_PACING_RATE             = 0x1018
1329
 	SO_NOSIGPIPE                   = 0x800
1390
 	SO_NOSIGPIPE                   = 0x800
1330
 	SO_NO_DDP                      = 0x8000
1391
 	SO_NO_DDP                      = 0x8000
1331
 	SO_NO_OFFLOAD                  = 0x4000
1392
 	SO_NO_OFFLOAD                  = 0x4000
1338
 	SO_RCVTIMEO                    = 0x1006
1399
 	SO_RCVTIMEO                    = 0x1006
1339
 	SO_REUSEADDR                   = 0x4
1400
 	SO_REUSEADDR                   = 0x4
1340
 	SO_REUSEPORT                   = 0x200
1401
 	SO_REUSEPORT                   = 0x200
1402
+	SO_REUSEPORT_LB                = 0x10000
1341
 	SO_SETFIB                      = 0x1014
1403
 	SO_SETFIB                      = 0x1014
1342
 	SO_SNDBUF                      = 0x1001
1404
 	SO_SNDBUF                      = 0x1001
1343
 	SO_SNDLOWAT                    = 0x1003
1405
 	SO_SNDLOWAT                    = 0x1003
1344
 	SO_SNDTIMEO                    = 0x1005
1406
 	SO_SNDTIMEO                    = 0x1005
1345
 	SO_TIMESTAMP                   = 0x400
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
 	SO_TYPE                        = 0x1008
1415
 	SO_TYPE                        = 0x1008
1347
 	SO_USELOOPBACK                 = 0x40
1416
 	SO_USELOOPBACK                 = 0x40
1348
 	SO_USER_COOKIE                 = 0x1015
1417
 	SO_USER_COOKIE                 = 0x1015
1386
 	TCOFLUSH                       = 0x2
1455
 	TCOFLUSH                       = 0x2
1387
 	TCOOFF                         = 0x1
1456
 	TCOOFF                         = 0x1
1388
 	TCOON                          = 0x2
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
 	TCP_CA_NAME_MAX                = 0x10
1488
 	TCP_CA_NAME_MAX                = 0x10
1390
 	TCP_CCALGOOPT                  = 0x41
1489
 	TCP_CCALGOOPT                  = 0x41
1391
 	TCP_CONGESTION                 = 0x40
1490
 	TCP_CONGESTION                 = 0x40
1491
+	TCP_DATA_AFTER_CLOSE           = 0x44c
1492
+	TCP_DELACK                     = 0x48
1392
 	TCP_FASTOPEN                   = 0x401
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
 	TCP_FUNCTION_BLK               = 0x2000
1497
 	TCP_FUNCTION_BLK               = 0x2000
1394
 	TCP_FUNCTION_NAME_LEN_MAX      = 0x20
1498
 	TCP_FUNCTION_NAME_LEN_MAX      = 0x20
1395
 	TCP_INFO                       = 0x20
1499
 	TCP_INFO                       = 0x20
1397
 	TCP_KEEPIDLE                   = 0x100
1501
 	TCP_KEEPIDLE                   = 0x100
1398
 	TCP_KEEPINIT                   = 0x80
1502
 	TCP_KEEPINIT                   = 0x80
1399
 	TCP_KEEPINTVL                  = 0x200
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
 	TCP_MAXBURST                   = 0x4
1510
 	TCP_MAXBURST                   = 0x4
1401
 	TCP_MAXHLEN                    = 0x3c
1511
 	TCP_MAXHLEN                    = 0x3c
1402
 	TCP_MAXOLEN                    = 0x28
1512
 	TCP_MAXOLEN                    = 0x28
1412
 	TCP_NOPUSH                     = 0x4
1522
 	TCP_NOPUSH                     = 0x4
1413
 	TCP_PCAP_IN                    = 0x1000
1523
 	TCP_PCAP_IN                    = 0x1000
1414
 	TCP_PCAP_OUT                   = 0x800
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
 	TCP_VENDOR                     = 0x80000000
1545
 	TCP_VENDOR                     = 0x80000000
1416
 	TCSAFLUSH                      = 0x2
1546
 	TCSAFLUSH                      = 0x2
1547
+	TIMER_ABSTIME                  = 0x1
1548
+	TIMER_RELTIME                  = 0x0
1417
 	TIOCCBRK                       = 0x2000747a
1549
 	TIOCCBRK                       = 0x2000747a
1418
 	TIOCCDTR                       = 0x20007478
1550
 	TIOCCDTR                       = 0x20007478
1419
 	TIOCCONS                       = 0x80047462
1551
 	TIOCCONS                       = 0x80047462
1477
 	TIOCTIMESTAMP                  = 0x40107459
1609
 	TIOCTIMESTAMP                  = 0x40107459
1478
 	TIOCUCNTL                      = 0x80047466
1610
 	TIOCUCNTL                      = 0x80047466
1479
 	TOSTOP                         = 0x400000
1611
 	TOSTOP                         = 0x400000
1612
+	UTIME_NOW                      = -0x1
1613
+	UTIME_OMIT                     = -0x2
1480
 	VDISCARD                       = 0xf
1614
 	VDISCARD                       = 0xf
1481
 	VDSUSP                         = 0xb
1615
 	VDSUSP                         = 0xb
1482
 	VEOF                           = 0x0
1616
 	VEOF                           = 0x0
1488
 	VKILL                          = 0x5
1622
 	VKILL                          = 0x5
1489
 	VLNEXT                         = 0xe
1623
 	VLNEXT                         = 0xe
1490
 	VMIN                           = 0x10
1624
 	VMIN                           = 0x10
1625
+	VM_BCACHE_SIZE_MAX             = 0x19000000
1491
 	VQUIT                          = 0x9
1626
 	VQUIT                          = 0x9
1492
 	VREPRINT                       = 0x6
1627
 	VREPRINT                       = 0x6
1493
 	VSTART                         = 0xc
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
-// 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
-// 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
-// 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
-// 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
 
239
 
240
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
254
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
255
 	n = int(r0)
244
 	n = int(r0)
527
 
516
 
528
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func kill(pid int, signum int, posix int) (err error) {
530
 func kill(pid int, signum int, posix int) (err error) {
531
 	_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
531
 	_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
532
 	if e1 != 0 {
532
 	if e1 != 0 {
966
 
966
 
967
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Getuid() (uid int) {
979
 func Getuid() (uid int) {
970
 	r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
980
 	r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
971
 	uid = int(r0)
981
 	uid = int(r0)
1709
 
1719
 
1710
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Fstat(fd int, stat *Stat_t) (err error) {
1722
 func Fstat(fd int, stat *Stat_t) (err error) {
1725
 	_, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
1723
 	_, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
1726
 	if e1 != 0 {
1724
 	if e1 != 0 {

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

339
 
339
 
340
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
342
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
359
 	r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
343
 	r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
360
 	n = int(r0)
344
 	n = int(r0)
727
 
711
 
728
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func kill(pid int, signum int, posix int) (err error) {
730
 func kill(pid int, signum int, posix int) (err error) {
731
 	_, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix))
731
 	_, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix))
732
 	if e1 != 0 {
732
 	if e1 != 0 {
1376
 
1376
 
1377
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Getuid() (uid int) {
1394
 func Getuid() (uid int) {
1380
 	r0, _, _ := syscall_rawSyscall(funcPC(libc_getuid_trampoline), 0, 0, 0)
1395
 	r0, _, _ := syscall_rawSyscall(funcPC(libc_getuid_trampoline), 0, 0, 0)
1381
 	uid = int(r0)
1396
 	uid = int(r0)
2357
 
2372
 
2358
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Fstat(fd int, stat *Stat_t) (err error) {
2375
 func Fstat(fd int, stat *Stat_t) (err error) {
2378
 	_, _, e1 := syscall_syscall(funcPC(libc_fstat64_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
2376
 	_, _, e1 := syscall_syscall(funcPC(libc_fstat64_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
2379
 	if e1 != 0 {
2377
 	if e1 != 0 {

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

44
 	JMP	libc_utimes(SB)
44
 	JMP	libc_utimes(SB)
45
 TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0
45
 TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0
46
 	JMP	libc_futimes(SB)
46
 	JMP	libc_futimes(SB)
47
-TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
48
-	JMP	libc_fcntl(SB)
49
 TEXT ·libc_poll_trampoline(SB),NOSPLIT,$0-0
47
 TEXT ·libc_poll_trampoline(SB),NOSPLIT,$0-0
50
 	JMP	libc_poll(SB)
48
 	JMP	libc_poll(SB)
51
 TEXT ·libc_madvise_trampoline(SB),NOSPLIT,$0-0
49
 TEXT ·libc_madvise_trampoline(SB),NOSPLIT,$0-0
84
 	JMP	libc_flistxattr(SB)
82
 	JMP	libc_flistxattr(SB)
85
 TEXT ·libc_setattrlist_trampoline(SB),NOSPLIT,$0-0
83
 TEXT ·libc_setattrlist_trampoline(SB),NOSPLIT,$0-0
86
 	JMP	libc_setattrlist(SB)
84
 	JMP	libc_setattrlist(SB)
85
+TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
86
+	JMP	libc_fcntl(SB)
87
 TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0
87
 TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0
88
 	JMP	libc_kill(SB)
88
 	JMP	libc_kill(SB)
89
 TEXT ·libc_ioctl_trampoline(SB),NOSPLIT,$0-0
89
 TEXT ·libc_ioctl_trampoline(SB),NOSPLIT,$0-0
106
 	JMP	libc_chown(SB)
106
 	JMP	libc_chown(SB)
107
 TEXT ·libc_chroot_trampoline(SB),NOSPLIT,$0-0
107
 TEXT ·libc_chroot_trampoline(SB),NOSPLIT,$0-0
108
 	JMP	libc_chroot(SB)
108
 	JMP	libc_chroot(SB)
109
+TEXT ·libc_clock_gettime_trampoline(SB),NOSPLIT,$0-0
110
+	JMP	libc_clock_gettime(SB)
109
 TEXT ·libc_close_trampoline(SB),NOSPLIT,$0-0
111
 TEXT ·libc_close_trampoline(SB),NOSPLIT,$0-0
110
 	JMP	libc_close(SB)
112
 	JMP	libc_close(SB)
111
 TEXT ·libc_dup_trampoline(SB),NOSPLIT,$0-0
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
 
239
 
240
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
254
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
255
 	n = int(r0)
244
 	n = int(r0)
527
 
516
 
528
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func kill(pid int, signum int, posix int) (err error) {
530
 func kill(pid int, signum int, posix int) (err error) {
531
 	_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
531
 	_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
532
 	if e1 != 0 {
532
 	if e1 != 0 {
966
 
966
 
967
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Getuid() (uid int) {
979
 func Getuid() (uid int) {
970
 	r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
980
 	r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
971
 	uid = int(r0)
981
 	uid = int(r0)
1709
 
1719
 
1710
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Fstat(fd int, stat *Stat_t) (err error) {
1722
 func Fstat(fd int, stat *Stat_t) (err error) {
1725
 	_, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
1723
 	_, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
1726
 	if e1 != 0 {
1724
 	if e1 != 0 {

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

339
 
339
 
340
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
342
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
359
 	r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
343
 	r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
360
 	n = int(r0)
344
 	n = int(r0)
727
 
711
 
728
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func kill(pid int, signum int, posix int) (err error) {
730
 func kill(pid int, signum int, posix int) (err error) {
731
 	_, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix))
731
 	_, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix))
732
 	if e1 != 0 {
732
 	if e1 != 0 {
1376
 
1376
 
1377
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Getuid() (uid int) {
1394
 func Getuid() (uid int) {
1380
 	r0, _, _ := syscall_rawSyscall(funcPC(libc_getuid_trampoline), 0, 0, 0)
1395
 	r0, _, _ := syscall_rawSyscall(funcPC(libc_getuid_trampoline), 0, 0, 0)
1381
 	uid = int(r0)
1396
 	uid = int(r0)
2357
 
2372
 
2358
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Fstat(fd int, stat *Stat_t) (err error) {
2375
 func Fstat(fd int, stat *Stat_t) (err error) {
2378
 	_, _, e1 := syscall_syscall(funcPC(libc_fstat64_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
2376
 	_, _, e1 := syscall_syscall(funcPC(libc_fstat64_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
2379
 	if e1 != 0 {
2377
 	if e1 != 0 {

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

44
 	JMP	libc_utimes(SB)
44
 	JMP	libc_utimes(SB)
45
 TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0
45
 TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0
46
 	JMP	libc_futimes(SB)
46
 	JMP	libc_futimes(SB)
47
-TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
48
-	JMP	libc_fcntl(SB)
49
 TEXT ·libc_poll_trampoline(SB),NOSPLIT,$0-0
47
 TEXT ·libc_poll_trampoline(SB),NOSPLIT,$0-0
50
 	JMP	libc_poll(SB)
48
 	JMP	libc_poll(SB)
51
 TEXT ·libc_madvise_trampoline(SB),NOSPLIT,$0-0
49
 TEXT ·libc_madvise_trampoline(SB),NOSPLIT,$0-0
84
 	JMP	libc_flistxattr(SB)
82
 	JMP	libc_flistxattr(SB)
85
 TEXT ·libc_setattrlist_trampoline(SB),NOSPLIT,$0-0
83
 TEXT ·libc_setattrlist_trampoline(SB),NOSPLIT,$0-0
86
 	JMP	libc_setattrlist(SB)
84
 	JMP	libc_setattrlist(SB)
85
+TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
86
+	JMP	libc_fcntl(SB)
87
 TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0
87
 TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0
88
 	JMP	libc_kill(SB)
88
 	JMP	libc_kill(SB)
89
 TEXT ·libc_ioctl_trampoline(SB),NOSPLIT,$0-0
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
 
239
 
240
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
254
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
255
 	n = int(r0)
244
 	n = int(r0)
527
 
516
 
528
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func kill(pid int, signum int, posix int) (err error) {
530
 func kill(pid int, signum int, posix int) (err error) {
531
 	_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
531
 	_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
532
 	if e1 != 0 {
532
 	if e1 != 0 {
966
 
966
 
967
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Getuid() (uid int) {
979
 func Getuid() (uid int) {
970
 	r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
980
 	r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
971
 	uid = int(r0)
981
 	uid = int(r0)
1682
 
1692
 
1683
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Fstat(fd int, stat *Stat_t) (err error) {
1695
 func Fstat(fd int, stat *Stat_t) (err error) {
1698
 	_, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
1696
 	_, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
1699
 	if e1 != 0 {
1697
 	if e1 != 0 {

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

339
 
339
 
340
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
342
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
359
 	r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
343
 	r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
360
 	n = int(r0)
344
 	n = int(r0)
727
 
711
 
728
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func kill(pid int, signum int, posix int) (err error) {
730
 func kill(pid int, signum int, posix int) (err error) {
731
 	_, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix))
731
 	_, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix))
732
 	if e1 != 0 {
732
 	if e1 != 0 {
1376
 
1376
 
1377
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Getuid() (uid int) {
1394
 func Getuid() (uid int) {
1380
 	r0, _, _ := syscall_rawSyscall(funcPC(libc_getuid_trampoline), 0, 0, 0)
1395
 	r0, _, _ := syscall_rawSyscall(funcPC(libc_getuid_trampoline), 0, 0, 0)
1381
 	uid = int(r0)
1396
 	uid = int(r0)
2342
 
2357
 
2343
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Fstat(fd int, stat *Stat_t) (err error) {
2360
 func Fstat(fd int, stat *Stat_t) (err error) {
2363
 	_, _, e1 := syscall_syscall(funcPC(libc_fstat_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
2361
 	_, _, e1 := syscall_syscall(funcPC(libc_fstat_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
2364
 	if e1 != 0 {
2362
 	if e1 != 0 {

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

44
 	JMP	libc_utimes(SB)
44
 	JMP	libc_utimes(SB)
45
 TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0
45
 TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0
46
 	JMP	libc_futimes(SB)
46
 	JMP	libc_futimes(SB)
47
-TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
48
-	JMP	libc_fcntl(SB)
49
 TEXT ·libc_poll_trampoline(SB),NOSPLIT,$0-0
47
 TEXT ·libc_poll_trampoline(SB),NOSPLIT,$0-0
50
 	JMP	libc_poll(SB)
48
 	JMP	libc_poll(SB)
51
 TEXT ·libc_madvise_trampoline(SB),NOSPLIT,$0-0
49
 TEXT ·libc_madvise_trampoline(SB),NOSPLIT,$0-0
84
 	JMP	libc_flistxattr(SB)
82
 	JMP	libc_flistxattr(SB)
85
 TEXT ·libc_setattrlist_trampoline(SB),NOSPLIT,$0-0
83
 TEXT ·libc_setattrlist_trampoline(SB),NOSPLIT,$0-0
86
 	JMP	libc_setattrlist(SB)
84
 	JMP	libc_setattrlist(SB)
85
+TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
86
+	JMP	libc_fcntl(SB)
87
 TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0
87
 TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0
88
 	JMP	libc_kill(SB)
88
 	JMP	libc_kill(SB)
89
 TEXT ·libc_ioctl_trampoline(SB),NOSPLIT,$0-0
89
 TEXT ·libc_ioctl_trampoline(SB),NOSPLIT,$0-0
90
 	JMP	libc_ioctl(SB)
90
 	JMP	libc_ioctl(SB)
91
+TEXT ·libc_sysctl_trampoline(SB),NOSPLIT,$0-0
92
+	JMP	libc_sysctl(SB)
91
 TEXT ·libc_sendfile_trampoline(SB),NOSPLIT,$0-0
93
 TEXT ·libc_sendfile_trampoline(SB),NOSPLIT,$0-0
92
 	JMP	libc_sendfile(SB)
94
 	JMP	libc_sendfile(SB)
93
 TEXT ·libc_access_trampoline(SB),NOSPLIT,$0-0
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
 
239
 
240
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
254
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
255
 	n = int(r0)
244
 	n = int(r0)
527
 
516
 
528
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func kill(pid int, signum int, posix int) (err error) {
530
 func kill(pid int, signum int, posix int) (err error) {
531
 	_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
531
 	_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
532
 	if e1 != 0 {
532
 	if e1 != 0 {
966
 
966
 
967
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Getuid() (uid int) {
979
 func Getuid() (uid int) {
970
 	r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
980
 	r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
971
 	uid = int(r0)
981
 	uid = int(r0)
1682
 
1692
 
1683
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Fstat(fd int, stat *Stat_t) (err error) {
1695
 func Fstat(fd int, stat *Stat_t) (err error) {
1698
 	_, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
1696
 	_, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
1699
 	if e1 != 0 {
1697
 	if e1 != 0 {

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

339
 
339
 
340
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
342
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
359
 	r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
343
 	r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
360
 	n = int(r0)
344
 	n = int(r0)
727
 
711
 
728
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func kill(pid int, signum int, posix int) (err error) {
730
 func kill(pid int, signum int, posix int) (err error) {
731
 	_, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix))
731
 	_, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix))
732
 	if e1 != 0 {
732
 	if e1 != 0 {
1376
 
1376
 
1377
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Getuid() (uid int) {
1394
 func Getuid() (uid int) {
1380
 	r0, _, _ := syscall_rawSyscall(funcPC(libc_getuid_trampoline), 0, 0, 0)
1395
 	r0, _, _ := syscall_rawSyscall(funcPC(libc_getuid_trampoline), 0, 0, 0)
1381
 	uid = int(r0)
1396
 	uid = int(r0)
2342
 
2357
 
2343
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Fstat(fd int, stat *Stat_t) (err error) {
2360
 func Fstat(fd int, stat *Stat_t) (err error) {
2363
 	_, _, e1 := syscall_syscall(funcPC(libc_fstat_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
2361
 	_, _, e1 := syscall_syscall(funcPC(libc_fstat_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
2364
 	if e1 != 0 {
2362
 	if e1 != 0 {

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

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

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

255
 
255
 
256
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
258
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
270
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
259
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
271
 	n = int(r0)
260
 	n = int(r0)

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

214
 
214
 
215
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func utimes(path string, timeval *[2]Timeval) (err error) {
217
 func utimes(path string, timeval *[2]Timeval) (err error) {
234
 	var _p0 *byte
218
 	var _p0 *byte
235
 	_p0, err = BytePtrFromString(path)
219
 	_p0, err = BytePtrFromString(path)
255
 
239
 
256
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
270
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
271
 	n = int(r0)
244
 	n = int(r0)
387
 
360
 
388
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 	if e1 != 0 {
372
 	if e1 != 0 {
393
 		err = errnoErr(e1)
373
 		err = errnoErr(e1)
394
 	}
374
 	}
397
 
377
 
398
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 	var _p0 unsafe.Pointer
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
 	} else {
394
 	} else {
405
 		_p0 = unsafe.Pointer(&_zero)
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
 	if e1 != 0 {
398
 	if e1 != 0 {
410
 		err = errnoErr(e1)
399
 		err = errnoErr(e1)
411
 	}
400
 	}
414
 
403
 
415
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 	if e1 != 0 {
408
 	if e1 != 0 {
420
 		err = errnoErr(e1)
409
 		err = errnoErr(e1)
421
 	}
410
 	}
1363
 	if err != nil {
1352
 	if err != nil {
1364
 		return
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
 	if e1 != 0 {
1356
 	if e1 != 0 {
1368
 		err = errnoErr(e1)
1357
 		err = errnoErr(e1)
1369
 	}
1358
 	}

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

239
 
239
 
240
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
254
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
255
 	n = int(r0)
244
 	n = int(r0)
361
 
350
 
362
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func pipe2(p *[2]_C_int, flags int) (err error) {
353
 func pipe2(p *[2]_C_int, flags int) (err error) {
381
 	_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
354
 	_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
382
 	if e1 != 0 {
355
 	if e1 != 0 {
414
 
387
 
415
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func ptrace(request int, pid int, addr uintptr, data int) (err error) {
406
 func ptrace(request int, pid int, addr uintptr, data int) (err error) {
418
 	_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
407
 	_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
419
 	if e1 != 0 {
408
 	if e1 != 0 {

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

239
 
239
 
240
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
254
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
255
 	n = int(r0)
244
 	n = int(r0)

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

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
 // Code generated by the command above; see README.md. DO NOT EDIT.
2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3
 
3
 
4
 // +build freebsd,arm64
4
 // +build freebsd,arm64
239
 
239
 
240
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
254
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
255
 	n = int(r0)
244
 	n = int(r0)
361
 
350
 
362
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func pipe2(p *[2]_C_int, flags int) (err error) {
353
 func pipe2(p *[2]_C_int, flags int) (err error) {
381
 	_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
354
 	_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
382
 	if e1 != 0 {
355
 	if e1 != 0 {
414
 
387
 
415
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func ptrace(request int, pid int, addr uintptr, data int) (err error) {
406
 func ptrace(request int, pid int, addr uintptr, data int) (err error) {
418
 	_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
407
 	_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
419
 	if e1 != 0 {
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
 
239
 
240
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
254
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
255
 	n = int(r0)
244
 	n = int(r0)
361
 
350
 
362
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func pipe() (fd1 int, fd2 int, err error) {
353
 func pipe() (fd1 int, fd2 int, err error) {
381
 	r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
354
 	r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
382
 	fd1 = int(r0)
355
 	fd1 = int(r0)
433
 
406
 
434
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Access(path string, mode uint32) (err error) {
425
 func Access(path string, mode uint32) (err error) {
437
 	var _p0 *byte
426
 	var _p0 *byte
438
 	_p0, err = BytePtrFromString(path)
427
 	_p0, err = BytePtrFromString(path)
564
 
553
 
565
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Exit(code int) {
566
 func Exit(code int) {
568
 	Syscall(SYS_EXIT, uintptr(code), 0, 0)
567
 	Syscall(SYS_EXIT, uintptr(code), 0, 0)
569
 	return
568
 	return
926
 
925
 
927
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Fsync(fd int) (err error) {
938
 func Fsync(fd int) (err error) {
930
 	_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
939
 	_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
931
 	if e1 != 0 {
940
 	if e1 != 0 {
1635
 
1644
 
1636
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Symlink(path string, link string) (err error) {
1662
 func Symlink(path string, link string) (err error) {
1639
 	var _p0 *byte
1663
 	var _p0 *byte
1640
 	_p0, err = BytePtrFromString(path)
1664
 	_p0, err = BytePtrFromString(path)

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

239
 
239
 
240
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
254
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
255
 	n = int(r0)
244
 	n = int(r0)
361
 
350
 
362
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func pipe() (fd1 int, fd2 int, err error) {
353
 func pipe() (fd1 int, fd2 int, err error) {
381
 	r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
354
 	r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
382
 	fd1 = int(r0)
355
 	fd1 = int(r0)
433
 
406
 
434
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Access(path string, mode uint32) (err error) {
425
 func Access(path string, mode uint32) (err error) {
437
 	var _p0 *byte
426
 	var _p0 *byte
438
 	_p0, err = BytePtrFromString(path)
427
 	_p0, err = BytePtrFromString(path)
564
 
553
 
565
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Exit(code int) {
566
 func Exit(code int) {
568
 	Syscall(SYS_EXIT, uintptr(code), 0, 0)
567
 	Syscall(SYS_EXIT, uintptr(code), 0, 0)
569
 	return
568
 	return
926
 
925
 
927
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Fsync(fd int) (err error) {
938
 func Fsync(fd int) (err error) {
930
 	_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
939
 	_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
931
 	if e1 != 0 {
940
 	if e1 != 0 {
1635
 
1644
 
1636
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Symlink(path string, link string) (err error) {
1662
 func Symlink(path string, link string) (err error) {
1639
 	var _p0 *byte
1663
 	var _p0 *byte
1640
 	_p0, err = BytePtrFromString(path)
1664
 	_p0, err = BytePtrFromString(path)

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

239
 
239
 
240
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
254
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
255
 	n = int(r0)
244
 	n = int(r0)
361
 
350
 
362
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func pipe() (fd1 int, fd2 int, err error) {
353
 func pipe() (fd1 int, fd2 int, err error) {
381
 	r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
354
 	r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
382
 	fd1 = int(r0)
355
 	fd1 = int(r0)
433
 
406
 
434
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Access(path string, mode uint32) (err error) {
425
 func Access(path string, mode uint32) (err error) {
437
 	var _p0 *byte
426
 	var _p0 *byte
438
 	_p0, err = BytePtrFromString(path)
427
 	_p0, err = BytePtrFromString(path)
564
 
553
 
565
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Exit(code int) {
566
 func Exit(code int) {
568
 	Syscall(SYS_EXIT, uintptr(code), 0, 0)
567
 	Syscall(SYS_EXIT, uintptr(code), 0, 0)
569
 	return
568
 	return
926
 
925
 
927
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Fsync(fd int) (err error) {
938
 func Fsync(fd int) (err error) {
930
 	_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
939
 	_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
931
 	if e1 != 0 {
940
 	if e1 != 0 {
1635
 
1644
 
1636
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Symlink(path string, link string) (err error) {
1662
 func Symlink(path string, link string) (err error) {
1639
 	var _p0 *byte
1663
 	var _p0 *byte
1640
 	_p0, err = BytePtrFromString(path)
1664
 	_p0, err = BytePtrFromString(path)

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

239
 
239
 
240
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
242
 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
254
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
243
 	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
255
 	n = int(r0)
244
 	n = int(r0)
361
 
350
 
362
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func pipe() (fd1 int, fd2 int, err error) {
353
 func pipe() (fd1 int, fd2 int, err error) {
381
 	r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
354
 	r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
382
 	fd1 = int(r0)
355
 	fd1 = int(r0)
433
 
406
 
434
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Access(path string, mode uint32) (err error) {
425
 func Access(path string, mode uint32) (err error) {
437
 	var _p0 *byte
426
 	var _p0 *byte
438
 	_p0, err = BytePtrFromString(path)
427
 	_p0, err = BytePtrFromString(path)
564
 
553
 
565
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Exit(code int) {
566
 func Exit(code int) {
568
 	Syscall(SYS_EXIT, uintptr(code), 0, 0)
567
 	Syscall(SYS_EXIT, uintptr(code), 0, 0)
569
 	return
568
 	return
926
 
925
 
927
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Fsync(fd int) (err error) {
938
 func Fsync(fd int) (err error) {
930
 	_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
939
 	_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
931
 	if e1 != 0 {
940
 	if e1 != 0 {
1635
 
1644
 
1636
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
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
 func Symlink(path string, link string) (err error) {
1662
 func Symlink(path string, link string) (err error) {
1639
 	var _p0 *byte
1663
 	var _p0 *byte
1640
 	_p0, err = BytePtrFromString(path)
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