Browse code

Use golang.org/x/sys/execabs

Signed-off-by: Tibor Vass <tibor@docker.com>
(cherry picked from commit 7ca0cb7ffafc5339ac5fa575ce3f8b479c3643bf)
Signed-off-by: Tibor Vass <tibor@docker.com>

Tibor Vass authored on 2021/01/26 02:30:29
Showing 172 changed files
... ...
@@ -5,12 +5,12 @@ import (
5 5
 	"net/http"
6 6
 	"net/url"
7 7
 	"os"
8
-	"os/exec"
9 8
 	"path/filepath"
10 9
 	"strings"
11 10
 
12 11
 	"github.com/moby/sys/symlink"
13 12
 	"github.com/pkg/errors"
13
+	exec "golang.org/x/sys/execabs"
14 14
 )
15 15
 
16 16
 type gitRepo struct {
... ...
@@ -11,7 +11,6 @@ import (
11 11
 	"io"
12 12
 	"io/ioutil"
13 13
 	"os"
14
-	"os/exec"
15 14
 	"path/filepath"
16 15
 	"runtime"
17 16
 	"strconv"
... ...
@@ -25,6 +24,7 @@ import (
25 25
 	"github.com/docker/docker/pkg/pools"
26 26
 	"github.com/docker/docker/pkg/system"
27 27
 	"github.com/sirupsen/logrus"
28
+	exec "golang.org/x/sys/execabs"
28 29
 )
29 30
 
30 31
 type (
... ...
@@ -20,7 +20,7 @@ github.com/creack/pty                               2a38352e8b4d7ab6c336eef107e4
20 20
 github.com/sirupsen/logrus                          6699a89a232f3db797f2e280639854bbc4b89725 # v1.7.0
21 21
 github.com/tchap/go-patricia                        a7f0089c6f496e8e70402f61733606daa326cac5 # v2.3.0
22 22
 golang.org/x/net                                    ab34263943818b32f575efc978a3d24e80b04bd7
23
-golang.org/x/sys                                    eeed37f84f13f52d35e095e8023ba65671ff86a1
23
+golang.org/x/sys                                    b64e53b001e413bd5067f36d4e439eded3827374
24 24
 github.com/docker/go-units                          519db1ee28dcc9fd2474ae59fca29a810482bfb1 # v0.4.0
25 25
 github.com/docker/go-connections                    7395e3f8aa162843a74ed6d48e79627d9792ac55 # v0.4.0
26 26
 golang.org/x/text                                   23ae387dee1f90d29a23c0e87ee0b46038fbed0e # v0.3.3
... ...
@@ -1,5 +1,7 @@
1 1
 # sys
2 2
 
3
+[![Go Reference](https://pkg.go.dev/badge/golang.org/x/sys.svg)](https://pkg.go.dev/golang.org/x/sys)
4
+
3 5
 This repository holds supplemental Go packages for low-level interactions with
4 6
 the operating system.
5 7
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -39,34 +39,34 @@ func initOptions() {
39 39
 
40 40
 func archInit() {
41 41
 	switch runtime.GOOS {
42
-	case "android", "darwin", "ios", "netbsd", "openbsd":
43
-		// Android and iOS don't seem to allow reading these registers.
44
-		//
45
-		// NetBSD:
46
-		// ID_AA64ISAR0_EL1 is a privileged register and cannot be read from EL0.
47
-		// It can be read via sysctl(3). Example for future implementers:
48
-		// https://nxr.netbsd.org/xref/src/usr.sbin/cpuctl/arch/aarch64.c
42
+	case "freebsd":
43
+		readARM64Registers()
44
+	case "linux", "netbsd":
45
+		doinit()
46
+	default:
47
+		// Most platforms don't seem to allow reading these registers.
49 48
 		//
50 49
 		// OpenBSD:
51 50
 		// See https://golang.org/issue/31746
52
-		//
53
-		// Fake the minimal features expected by
54
-		// TestARM64minimalFeatures.
55
-		ARM64.HasASIMD = true
56
-		ARM64.HasFP = true
57
-	case "linux":
58
-		doinit()
59
-	default:
60
-		readARM64Registers()
51
+		setMinimalFeatures()
61 52
 	}
62 53
 }
63 54
 
55
+// setMinimalFeatures fakes the minimal ARM64 features expected by
56
+// TestARM64minimalFeatures.
57
+func setMinimalFeatures() {
58
+	ARM64.HasASIMD = true
59
+	ARM64.HasFP = true
60
+}
61
+
64 62
 func readARM64Registers() {
65 63
 	Initialized = true
66 64
 
67
-	// ID_AA64ISAR0_EL1
68
-	isar0 := getisar0()
65
+	parseARM64SystemRegisters(getisar0(), getisar1(), getpfr0())
66
+}
69 67
 
68
+func parseARM64SystemRegisters(isar0, isar1, pfr0 uint64) {
69
+	// ID_AA64ISAR0_EL1
70 70
 	switch extractBits(isar0, 4, 7) {
71 71
 	case 1:
72 72
 		ARM64.HasAES = true
... ...
@@ -124,8 +124,6 @@ func readARM64Registers() {
124 124
 	}
125 125
 
126 126
 	// ID_AA64ISAR1_EL1
127
-	isar1 := getisar1()
128
-
129 127
 	switch extractBits(isar1, 0, 3) {
130 128
 	case 1:
131 129
 		ARM64.HasDCPOP = true
... ...
@@ -147,8 +145,6 @@ func readARM64Registers() {
147 147
 	}
148 148
 
149 149
 	// ID_AA64PFR0_EL1
150
-	pfr0 := getpfr0()
151
-
152 150
 	switch extractBits(pfr0, 16, 19) {
153 151
 	case 0:
154 152
 		ARM64.HasFP = true
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 package cpu
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 package cpu
8 8
 
... ...
@@ -3,7 +3,7 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 // +build 386 amd64 amd64p32
6
-// +build !gccgo
6
+// +build gc
7 7
 
8 8
 package cpu
9 9
 
... ...
@@ -17,86 +17,7 @@ const (
17 17
 	hwcap_VXE    = 8192
18 18
 )
19 19
 
20
-// bitIsSet reports whether the bit at index is set. The bit index
21
-// is in big endian order, so bit index 0 is the leftmost bit.
22
-func bitIsSet(bits []uint64, index uint) bool {
23
-	return bits[index/64]&((1<<63)>>(index%64)) != 0
24
-}
25
-
26
-// function is the code for the named cryptographic function.
27
-type function uint8
28
-
29
-const (
30
-	// KM{,A,C,CTR} function codes
31
-	aes128 function = 18 // AES-128
32
-	aes192 function = 19 // AES-192
33
-	aes256 function = 20 // AES-256
34
-
35
-	// K{I,L}MD function codes
36
-	sha1     function = 1  // SHA-1
37
-	sha256   function = 2  // SHA-256
38
-	sha512   function = 3  // SHA-512
39
-	sha3_224 function = 32 // SHA3-224
40
-	sha3_256 function = 33 // SHA3-256
41
-	sha3_384 function = 34 // SHA3-384
42
-	sha3_512 function = 35 // SHA3-512
43
-	shake128 function = 36 // SHAKE-128
44
-	shake256 function = 37 // SHAKE-256
45
-
46
-	// KLMD function codes
47
-	ghash function = 65 // GHASH
48
-)
49
-
50
-// queryResult contains the result of a Query function
51
-// call. Bits are numbered in big endian order so the
52
-// leftmost bit (the MSB) is at index 0.
53
-type queryResult struct {
54
-	bits [2]uint64
55
-}
56
-
57
-// Has reports whether the given functions are present.
58
-func (q *queryResult) Has(fns ...function) bool {
59
-	if len(fns) == 0 {
60
-		panic("no function codes provided")
61
-	}
62
-	for _, f := range fns {
63
-		if !bitIsSet(q.bits[:], uint(f)) {
64
-			return false
65
-		}
66
-	}
67
-	return true
68
-}
69
-
70
-// facility is a bit index for the named facility.
71
-type facility uint8
72
-
73
-const (
74
-	// cryptography facilities
75
-	msa4 facility = 77  // message-security-assist extension 4
76
-	msa8 facility = 146 // message-security-assist extension 8
77
-)
78
-
79
-// facilityList contains the result of an STFLE call.
80
-// Bits are numbered in big endian order so the
81
-// leftmost bit (the MSB) is at index 0.
82
-type facilityList struct {
83
-	bits [4]uint64
84
-}
85
-
86
-// Has reports whether the given facilities are present.
87
-func (s *facilityList) Has(fs ...facility) bool {
88
-	if len(fs) == 0 {
89
-		panic("no facility bits provided")
90
-	}
91
-	for _, f := range fs {
92
-		if !bitIsSet(s.bits[:], uint(f)) {
93
-			return false
94
-		}
95
-	}
96
-	return true
97
-}
98
-
99
-func doinit() {
20
+func initS390Xbase() {
100 21
 	// test HWCAP bit vector
101 22
 	has := func(featureMask uint) bool {
102 23
 		return hwCap&featureMask == featureMask
... ...
@@ -116,44 +37,4 @@ func doinit() {
116 116
 	if S390X.HasVX {
117 117
 		S390X.HasVXE = has(hwcap_VXE)
118 118
 	}
119
-
120
-	// We need implementations of stfle, km and so on
121
-	// to detect cryptographic features.
122
-	if !haveAsmFunctions() {
123
-		return
124
-	}
125
-
126
-	// optional cryptographic functions
127
-	if S390X.HasMSA {
128
-		aes := []function{aes128, aes192, aes256}
129
-
130
-		// cipher message
131
-		km, kmc := kmQuery(), kmcQuery()
132
-		S390X.HasAES = km.Has(aes...)
133
-		S390X.HasAESCBC = kmc.Has(aes...)
134
-		if S390X.HasSTFLE {
135
-			facilities := stfle()
136
-			if facilities.Has(msa4) {
137
-				kmctr := kmctrQuery()
138
-				S390X.HasAESCTR = kmctr.Has(aes...)
139
-			}
140
-			if facilities.Has(msa8) {
141
-				kma := kmaQuery()
142
-				S390X.HasAESGCM = kma.Has(aes...)
143
-			}
144
-		}
145
-
146
-		// compute message digest
147
-		kimd := kimdQuery() // intermediate (no padding)
148
-		klmd := klmdQuery() // last (padding)
149
-		S390X.HasSHA1 = kimd.Has(sha1) && klmd.Has(sha1)
150
-		S390X.HasSHA256 = kimd.Has(sha256) && klmd.Has(sha256)
151
-		S390X.HasSHA512 = kimd.Has(sha512) && klmd.Has(sha512)
152
-		S390X.HasGHASH = kimd.Has(ghash) // KLMD-GHASH does not exist
153
-		sha3 := []function{
154
-			sha3_224, sha3_256, sha3_384, sha3_512,
155
-			shake128, shake256,
156
-		}
157
-		S390X.HasSHA3 = kimd.Has(sha3...) && klmd.Has(sha3...)
158
-	}
159 119
 }
160 120
new file mode 100644
... ...
@@ -0,0 +1,173 @@
0
+// Copyright 2020 The Go Authors. All rights reserved.
1
+// Use of this source code is governed by a BSD-style
2
+// license that can be found in the LICENSE file.
3
+
4
+package cpu
5
+
6
+import (
7
+	"syscall"
8
+	"unsafe"
9
+)
10
+
11
+// Minimal copy of functionality from x/sys/unix so the cpu package can call
12
+// sysctl without depending on x/sys/unix.
13
+
14
+const (
15
+	_CTL_QUERY = -2
16
+
17
+	_SYSCTL_VERS_1 = 0x1000000
18
+)
19
+
20
+var _zero uintptr
21
+
22
+func sysctl(mib []int32, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
23
+	var _p0 unsafe.Pointer
24
+	if len(mib) > 0 {
25
+		_p0 = unsafe.Pointer(&mib[0])
26
+	} else {
27
+		_p0 = unsafe.Pointer(&_zero)
28
+	}
29
+	_, _, errno := syscall.Syscall6(
30
+		syscall.SYS___SYSCTL,
31
+		uintptr(_p0),
32
+		uintptr(len(mib)),
33
+		uintptr(unsafe.Pointer(old)),
34
+		uintptr(unsafe.Pointer(oldlen)),
35
+		uintptr(unsafe.Pointer(new)),
36
+		uintptr(newlen))
37
+	if errno != 0 {
38
+		return errno
39
+	}
40
+	return nil
41
+}
42
+
43
+type sysctlNode struct {
44
+	Flags          uint32
45
+	Num            int32
46
+	Name           [32]int8
47
+	Ver            uint32
48
+	__rsvd         uint32
49
+	Un             [16]byte
50
+	_sysctl_size   [8]byte
51
+	_sysctl_func   [8]byte
52
+	_sysctl_parent [8]byte
53
+	_sysctl_desc   [8]byte
54
+}
55
+
56
+func sysctlNodes(mib []int32) ([]sysctlNode, error) {
57
+	var olen uintptr
58
+
59
+	// Get a list of all sysctl nodes below the given MIB by performing
60
+	// a sysctl for the given MIB with CTL_QUERY appended.
61
+	mib = append(mib, _CTL_QUERY)
62
+	qnode := sysctlNode{Flags: _SYSCTL_VERS_1}
63
+	qp := (*byte)(unsafe.Pointer(&qnode))
64
+	sz := unsafe.Sizeof(qnode)
65
+	if err := sysctl(mib, nil, &olen, qp, sz); err != nil {
66
+		return nil, err
67
+	}
68
+
69
+	// Now that we know the size, get the actual nodes.
70
+	nodes := make([]sysctlNode, olen/sz)
71
+	np := (*byte)(unsafe.Pointer(&nodes[0]))
72
+	if err := sysctl(mib, np, &olen, qp, sz); err != nil {
73
+		return nil, err
74
+	}
75
+
76
+	return nodes, nil
77
+}
78
+
79
+func nametomib(name string) ([]int32, error) {
80
+	// Split name into components.
81
+	var parts []string
82
+	last := 0
83
+	for i := 0; i < len(name); i++ {
84
+		if name[i] == '.' {
85
+			parts = append(parts, name[last:i])
86
+			last = i + 1
87
+		}
88
+	}
89
+	parts = append(parts, name[last:])
90
+
91
+	mib := []int32{}
92
+	// Discover the nodes and construct the MIB OID.
93
+	for partno, part := range parts {
94
+		nodes, err := sysctlNodes(mib)
95
+		if err != nil {
96
+			return nil, err
97
+		}
98
+		for _, node := range nodes {
99
+			n := make([]byte, 0)
100
+			for i := range node.Name {
101
+				if node.Name[i] != 0 {
102
+					n = append(n, byte(node.Name[i]))
103
+				}
104
+			}
105
+			if string(n) == part {
106
+				mib = append(mib, int32(node.Num))
107
+				break
108
+			}
109
+		}
110
+		if len(mib) != partno+1 {
111
+			return nil, err
112
+		}
113
+	}
114
+
115
+	return mib, nil
116
+}
117
+
118
+// aarch64SysctlCPUID is struct aarch64_sysctl_cpu_id from NetBSD's <aarch64/armreg.h>
119
+type aarch64SysctlCPUID struct {
120
+	midr      uint64 /* Main ID Register */
121
+	revidr    uint64 /* Revision ID Register */
122
+	mpidr     uint64 /* Multiprocessor Affinity Register */
123
+	aa64dfr0  uint64 /* A64 Debug Feature Register 0 */
124
+	aa64dfr1  uint64 /* A64 Debug Feature Register 1 */
125
+	aa64isar0 uint64 /* A64 Instruction Set Attribute Register 0 */
126
+	aa64isar1 uint64 /* A64 Instruction Set Attribute Register 1 */
127
+	aa64mmfr0 uint64 /* A64 Memory Model Feature Register 0 */
128
+	aa64mmfr1 uint64 /* A64 Memory Model Feature Register 1 */
129
+	aa64mmfr2 uint64 /* A64 Memory Model Feature Register 2 */
130
+	aa64pfr0  uint64 /* A64 Processor Feature Register 0 */
131
+	aa64pfr1  uint64 /* A64 Processor Feature Register 1 */
132
+	aa64zfr0  uint64 /* A64 SVE Feature ID Register 0 */
133
+	mvfr0     uint32 /* Media and VFP Feature Register 0 */
134
+	mvfr1     uint32 /* Media and VFP Feature Register 1 */
135
+	mvfr2     uint32 /* Media and VFP Feature Register 2 */
136
+	pad       uint32
137
+	clidr     uint64 /* Cache Level ID Register */
138
+	ctr       uint64 /* Cache Type Register */
139
+}
140
+
141
+func sysctlCPUID(name string) (*aarch64SysctlCPUID, error) {
142
+	mib, err := nametomib(name)
143
+	if err != nil {
144
+		return nil, err
145
+	}
146
+
147
+	out := aarch64SysctlCPUID{}
148
+	n := unsafe.Sizeof(out)
149
+	_, _, errno := syscall.Syscall6(
150
+		syscall.SYS___SYSCTL,
151
+		uintptr(unsafe.Pointer(&mib[0])),
152
+		uintptr(len(mib)),
153
+		uintptr(unsafe.Pointer(&out)),
154
+		uintptr(unsafe.Pointer(&n)),
155
+		uintptr(0),
156
+		uintptr(0))
157
+	if errno != 0 {
158
+		return nil, errno
159
+	}
160
+	return &out, nil
161
+}
162
+
163
+func doinit() {
164
+	cpuid, err := sysctlCPUID("machdep.cpu0.cpu_id")
165
+	if err != nil {
166
+		setMinimalFeatures()
167
+		return
168
+	}
169
+	parseARM64SystemRegisters(cpuid.aa64isar0, cpuid.aa64isar1, cpuid.aa64pfr0)
170
+
171
+	Initialized = true
172
+}
... ...
@@ -2,7 +2,8 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !linux,arm64
5
+// +build !linux,!netbsd
6
+// +build arm64
6 7
 
7 8
 package cpu
8 9
 
9 10
new file mode 100644
... ...
@@ -0,0 +1,12 @@
0
+// Copyright 2020 The Go Authors. All rights reserved.
1
+// Use of this source code is governed by a BSD-style
2
+// license that can be found in the LICENSE file.
3
+
4
+// +build !linux
5
+// +build mips64 mips64le
6
+
7
+package cpu
8
+
9
+func archInit() {
10
+	Initialized = true
11
+}
... ...
@@ -8,10 +8,10 @@ const cacheLineSize = 256
8 8
 
9 9
 func initOptions() {
10 10
 	options = []option{
11
-		{Name: "zarch", Feature: &S390X.HasZARCH},
12
-		{Name: "stfle", Feature: &S390X.HasSTFLE},
13
-		{Name: "ldisp", Feature: &S390X.HasLDISP},
14
-		{Name: "eimm", Feature: &S390X.HasEIMM},
11
+		{Name: "zarch", Feature: &S390X.HasZARCH, Required: true},
12
+		{Name: "stfle", Feature: &S390X.HasSTFLE, Required: true},
13
+		{Name: "ldisp", Feature: &S390X.HasLDISP, Required: true},
14
+		{Name: "eimm", Feature: &S390X.HasEIMM, Required: true},
15 15
 		{Name: "dfp", Feature: &S390X.HasDFP},
16 16
 		{Name: "etf3eh", Feature: &S390X.HasETF3EH},
17 17
 		{Name: "msa", Feature: &S390X.HasMSA},
... ...
@@ -28,3 +28,145 @@ func initOptions() {
28 28
 		{Name: "vxe", Feature: &S390X.HasVXE},
29 29
 	}
30 30
 }
31
+
32
+// bitIsSet reports whether the bit at index is set. The bit index
33
+// is in big endian order, so bit index 0 is the leftmost bit.
34
+func bitIsSet(bits []uint64, index uint) bool {
35
+	return bits[index/64]&((1<<63)>>(index%64)) != 0
36
+}
37
+
38
+// facility is a bit index for the named facility.
39
+type facility uint8
40
+
41
+const (
42
+	// mandatory facilities
43
+	zarch  facility = 1  // z architecture mode is active
44
+	stflef facility = 7  // store-facility-list-extended
45
+	ldisp  facility = 18 // long-displacement
46
+	eimm   facility = 21 // extended-immediate
47
+
48
+	// miscellaneous facilities
49
+	dfp    facility = 42 // decimal-floating-point
50
+	etf3eh facility = 30 // extended-translation 3 enhancement
51
+
52
+	// cryptography facilities
53
+	msa  facility = 17  // message-security-assist
54
+	msa3 facility = 76  // message-security-assist extension 3
55
+	msa4 facility = 77  // message-security-assist extension 4
56
+	msa5 facility = 57  // message-security-assist extension 5
57
+	msa8 facility = 146 // message-security-assist extension 8
58
+	msa9 facility = 155 // message-security-assist extension 9
59
+
60
+	// vector facilities
61
+	vx   facility = 129 // vector facility
62
+	vxe  facility = 135 // vector-enhancements 1
63
+	vxe2 facility = 148 // vector-enhancements 2
64
+)
65
+
66
+// facilityList contains the result of an STFLE call.
67
+// Bits are numbered in big endian order so the
68
+// leftmost bit (the MSB) is at index 0.
69
+type facilityList struct {
70
+	bits [4]uint64
71
+}
72
+
73
+// Has reports whether the given facilities are present.
74
+func (s *facilityList) Has(fs ...facility) bool {
75
+	if len(fs) == 0 {
76
+		panic("no facility bits provided")
77
+	}
78
+	for _, f := range fs {
79
+		if !bitIsSet(s.bits[:], uint(f)) {
80
+			return false
81
+		}
82
+	}
83
+	return true
84
+}
85
+
86
+// function is the code for the named cryptographic function.
87
+type function uint8
88
+
89
+const (
90
+	// KM{,A,C,CTR} function codes
91
+	aes128 function = 18 // AES-128
92
+	aes192 function = 19 // AES-192
93
+	aes256 function = 20 // AES-256
94
+
95
+	// K{I,L}MD function codes
96
+	sha1     function = 1  // SHA-1
97
+	sha256   function = 2  // SHA-256
98
+	sha512   function = 3  // SHA-512
99
+	sha3_224 function = 32 // SHA3-224
100
+	sha3_256 function = 33 // SHA3-256
101
+	sha3_384 function = 34 // SHA3-384
102
+	sha3_512 function = 35 // SHA3-512
103
+	shake128 function = 36 // SHAKE-128
104
+	shake256 function = 37 // SHAKE-256
105
+
106
+	// KLMD function codes
107
+	ghash function = 65 // GHASH
108
+)
109
+
110
+// queryResult contains the result of a Query function
111
+// call. Bits are numbered in big endian order so the
112
+// leftmost bit (the MSB) is at index 0.
113
+type queryResult struct {
114
+	bits [2]uint64
115
+}
116
+
117
+// Has reports whether the given functions are present.
118
+func (q *queryResult) Has(fns ...function) bool {
119
+	if len(fns) == 0 {
120
+		panic("no function codes provided")
121
+	}
122
+	for _, f := range fns {
123
+		if !bitIsSet(q.bits[:], uint(f)) {
124
+			return false
125
+		}
126
+	}
127
+	return true
128
+}
129
+
130
+func doinit() {
131
+	initS390Xbase()
132
+
133
+	// We need implementations of stfle, km and so on
134
+	// to detect cryptographic features.
135
+	if !haveAsmFunctions() {
136
+		return
137
+	}
138
+
139
+	// optional cryptographic functions
140
+	if S390X.HasMSA {
141
+		aes := []function{aes128, aes192, aes256}
142
+
143
+		// cipher message
144
+		km, kmc := kmQuery(), kmcQuery()
145
+		S390X.HasAES = km.Has(aes...)
146
+		S390X.HasAESCBC = kmc.Has(aes...)
147
+		if S390X.HasSTFLE {
148
+			facilities := stfle()
149
+			if facilities.Has(msa4) {
150
+				kmctr := kmctrQuery()
151
+				S390X.HasAESCTR = kmctr.Has(aes...)
152
+			}
153
+			if facilities.Has(msa8) {
154
+				kma := kmaQuery()
155
+				S390X.HasAESGCM = kma.Has(aes...)
156
+			}
157
+		}
158
+
159
+		// compute message digest
160
+		kimd := kimdQuery() // intermediate (no padding)
161
+		klmd := klmdQuery() // last (padding)
162
+		S390X.HasSHA1 = kimd.Has(sha1) && klmd.Has(sha1)
163
+		S390X.HasSHA256 = kimd.Has(sha256) && klmd.Has(sha256)
164
+		S390X.HasSHA512 = kimd.Has(sha512) && klmd.Has(sha512)
165
+		S390X.HasGHASH = kimd.Has(ghash) // KLMD-GHASH does not exist
166
+		sha3 := []function{
167
+			sha3_224, sha3_256, sha3_384, sha3_512,
168
+			shake128, shake256,
169
+		}
170
+		S390X.HasSHA3 = kimd.Has(sha3...) && klmd.Has(sha3...)
171
+	}
172
+}
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -3,7 +3,7 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 // +build 386 amd64 amd64p32
6
-// +build !gccgo
6
+// +build gc
7 7
 
8 8
 #include "textflag.h"
9 9
 
10 10
new file mode 100644
... ...
@@ -0,0 +1,10 @@
0
+// Copyright 2020 The Go Authors. All rights reserved.
1
+// Use of this source code is governed by a BSD-style
2
+// license that can be found in the LICENSE file.
3
+
4
+package cpu
5
+
6
+func archInit() {
7
+	doinit()
8
+	Initialized = true
9
+}
0 10
new file mode 100644
... ...
@@ -0,0 +1,25 @@
0
+// Copyright 2020 The Go Authors. All rights reserved.
1
+// Use of this source code is governed by a BSD-style
2
+// license that can be found in the LICENSE file.
3
+
4
+package cpu
5
+
6
+func initS390Xbase() {
7
+	// get the facilities list
8
+	facilities := stfle()
9
+
10
+	// mandatory
11
+	S390X.HasZARCH = facilities.Has(zarch)
12
+	S390X.HasSTFLE = facilities.Has(stflef)
13
+	S390X.HasLDISP = facilities.Has(ldisp)
14
+	S390X.HasEIMM = facilities.Has(eimm)
15
+
16
+	// optional
17
+	S390X.HasETF3EH = facilities.Has(etf3eh)
18
+	S390X.HasDFP = facilities.Has(dfp)
19
+	S390X.HasMSA = facilities.Has(msa)
20
+	S390X.HasVX = facilities.Has(vx)
21
+	if S390X.HasVX {
22
+		S390X.HasVXE = facilities.Has(vxe)
23
+	}
24
+}
... ...
@@ -7,7 +7,7 @@
7 7
 // (See golang.org/issue/32102)
8 8
 
9 9
 // +build aix,ppc64
10
-// +build !gccgo
10
+// +build gc
11 11
 
12 12
 package cpu
13 13
 
14 14
new file mode 100644
... ...
@@ -0,0 +1,102 @@
0
+// Copyright 2020 The Go Authors. All rights reserved.
1
+// Use of this source code is governed by a BSD-style
2
+// license that can be found in the LICENSE file.
3
+
4
+// Package execabs is a drop-in replacement for os/exec
5
+// that requires PATH lookups to find absolute paths.
6
+// That is, execabs.Command("cmd") runs the same PATH lookup
7
+// as exec.Command("cmd"), but if the result is a path
8
+// which is relative, the Run and Start methods will report
9
+// an error instead of running the executable.
10
+//
11
+// See https://blog.golang.org/path-security for more information
12
+// about when it may be necessary or appropriate to use this package.
13
+package execabs
14
+
15
+import (
16
+	"context"
17
+	"fmt"
18
+	"os/exec"
19
+	"path/filepath"
20
+	"reflect"
21
+	"unsafe"
22
+)
23
+
24
+// ErrNotFound is the error resulting if a path search failed to find an executable file.
25
+// It is an alias for exec.ErrNotFound.
26
+var ErrNotFound = exec.ErrNotFound
27
+
28
+// Cmd represents an external command being prepared or run.
29
+// It is an alias for exec.Cmd.
30
+type Cmd = exec.Cmd
31
+
32
+// Error is returned by LookPath when it fails to classify a file as an executable.
33
+// It is an alias for exec.Error.
34
+type Error = exec.Error
35
+
36
+// An ExitError reports an unsuccessful exit by a command.
37
+// It is an alias for exec.ExitError.
38
+type ExitError = exec.ExitError
39
+
40
+func relError(file, path string) error {
41
+	return fmt.Errorf("%s resolves to executable in current directory (.%c%s)", file, filepath.Separator, path)
42
+}
43
+
44
+// LookPath searches for an executable named file in the directories
45
+// named by the PATH environment variable. If file contains a slash,
46
+// it is tried directly and the PATH is not consulted. The result will be
47
+// an absolute path.
48
+//
49
+// LookPath differs from exec.LookPath in its handling of PATH lookups,
50
+// which are used for file names without slashes. If exec.LookPath's
51
+// PATH lookup would have returned an executable from the current directory,
52
+// LookPath instead returns an error.
53
+func LookPath(file string) (string, error) {
54
+	path, err := exec.LookPath(file)
55
+	if err != nil {
56
+		return "", err
57
+	}
58
+	if filepath.Base(file) == file && !filepath.IsAbs(path) {
59
+		return "", relError(file, path)
60
+	}
61
+	return path, nil
62
+}
63
+
64
+func fixCmd(name string, cmd *exec.Cmd) {
65
+	if filepath.Base(name) == name && !filepath.IsAbs(cmd.Path) {
66
+		// exec.Command was called with a bare binary name and
67
+		// exec.LookPath returned a path which is not absolute.
68
+		// Set cmd.lookPathErr and clear cmd.Path so that it
69
+		// cannot be run.
70
+		lookPathErr := (*error)(unsafe.Pointer(reflect.ValueOf(cmd).Elem().FieldByName("lookPathErr").Addr().Pointer()))
71
+		if *lookPathErr == nil {
72
+			*lookPathErr = relError(name, cmd.Path)
73
+		}
74
+		cmd.Path = ""
75
+	}
76
+}
77
+
78
+// CommandContext is like Command but includes a context.
79
+//
80
+// The provided context is used to kill the process (by calling os.Process.Kill)
81
+// if the context becomes done before the command completes on its own.
82
+func CommandContext(ctx context.Context, name string, arg ...string) *exec.Cmd {
83
+	cmd := exec.CommandContext(ctx, name, arg...)
84
+	fixCmd(name, cmd)
85
+	return cmd
86
+
87
+}
88
+
89
+// Command returns the Cmd struct to execute the named program with the given arguments.
90
+// See exec.Command for most details.
91
+//
92
+// Command differs from exec.Command in its handling of PATH lookups,
93
+// which are used when the program name contains no slashes.
94
+// If exec.Command would have returned an exec.Cmd configured to run an
95
+// executable from the current directory, Command instead
96
+// returns an exec.Cmd that will return an error from Start or Run.
97
+func Command(name string, arg ...string) *exec.Cmd {
98
+	cmd := exec.Command(name, arg...)
99
+	fixCmd(name, cmd)
100
+	return cmd
101
+}
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 // +build arm,darwin
7 7
 
8 8
 #include "textflag.h"
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 // +build arm64,darwin
7 7
 
8 8
 #include "textflag.h"
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -4,7 +4,7 @@
4 4
 
5 5
 // +build linux
6 6
 // +build arm64
7
-// +build !gccgo
7
+// +build gc
8 8
 
9 9
 #include "textflag.h"
10 10
 
... ...
@@ -4,7 +4,7 @@
4 4
 
5 5
 // +build linux
6 6
 // +build mips64 mips64le
7
-// +build !gccgo
7
+// +build gc
8 8
 
9 9
 #include "textflag.h"
10 10
 
... ...
@@ -4,7 +4,7 @@
4 4
 
5 5
 // +build linux
6 6
 // +build mips mipsle
7
-// +build !gccgo
7
+// +build gc
8 8
 
9 9
 #include "textflag.h"
10 10
 
... ...
@@ -4,7 +4,7 @@
4 4
 
5 5
 // +build linux
6 6
 // +build ppc64 ppc64le
7
-// +build !gccgo
7
+// +build gc
8 8
 
9 9
 #include "textflag.h"
10 10
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build riscv64,!gccgo
5
+// +build riscv64,gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -4,7 +4,7 @@
4 4
 
5 5
 // +build s390x
6 6
 // +build linux
7
-// +build !gccgo
7
+// +build gc
8 8
 
9 9
 #include "textflag.h"
10 10
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 #include "textflag.h"
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 //
5
-// +build ppc64 s390x mips mips64
5
+// +build armbe arm64be m68k mips mips64 mips64p32 ppc ppc64 s390 s390x shbe sparc sparc64
6 6
 
7 7
 package unix
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 //
5
-// +build 386 amd64 amd64p32 arm arm64 ppc64le mipsle mips64le riscv64
5
+// +build 386 amd64 amd64p32 alpha arm arm64 mipsle mips64le mips64p32le nios2 ppc64le riscv riscv64 sh
6 6
 
7 7
 package unix
8 8
 
9 9
new file mode 100644
... ...
@@ -0,0 +1,11 @@
0
+// Copyright 2020 The Go Authors. All rights reserved.
1
+// Use of this source code is governed by a BSD-style
2
+// license that can be found in the LICENSE file.
3
+
4
+// +build darwin,!ios
5
+
6
+package unix
7
+
8
+func ptrace(request int, pid int, addr uintptr, data uintptr) error {
9
+	return ptrace1(request, pid, addr, data)
10
+}
0 11
new file mode 100644
... ...
@@ -0,0 +1,11 @@
0
+// Copyright 2020 The Go Authors. All rights reserved.
1
+// Use of this source code is governed by a BSD-style
2
+// license that can be found in the LICENSE file.
3
+
4
+// +build ios
5
+
6
+package unix
7
+
8
+func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
9
+	return ENOTSUP
10
+}
... ...
@@ -24,7 +24,13 @@
24 24
 // holds a value of type syscall.Errno.
25 25
 package unix // import "golang.org/x/sys/unix"
26 26
 
27
-import "strings"
27
+import (
28
+	"bytes"
29
+	"strings"
30
+	"unsafe"
31
+
32
+	"golang.org/x/sys/internal/unsafeheader"
33
+)
28 34
 
29 35
 // ByteSliceFromString returns a NUL-terminated slice of bytes
30 36
 // containing the text of s. If s contains a NUL byte at any
... ...
@@ -49,5 +55,40 @@ func BytePtrFromString(s string) (*byte, error) {
49 49
 	return &a[0], nil
50 50
 }
51 51
 
52
+// ByteSliceToString returns a string form of the text represented by the slice s, with a terminating NUL and any
53
+// bytes after the NUL removed.
54
+func ByteSliceToString(s []byte) string {
55
+	if i := bytes.IndexByte(s, 0); i != -1 {
56
+		s = s[:i]
57
+	}
58
+	return string(s)
59
+}
60
+
61
+// BytePtrToString takes a pointer to a sequence of text and returns the corresponding string.
62
+// If the pointer is nil, it returns the empty string. It assumes that the text sequence is terminated
63
+// at a zero byte; if the zero byte is not present, the program may crash.
64
+func BytePtrToString(p *byte) string {
65
+	if p == nil {
66
+		return ""
67
+	}
68
+	if *p == 0 {
69
+		return ""
70
+	}
71
+
72
+	// Find NUL terminator.
73
+	n := 0
74
+	for ptr := unsafe.Pointer(p); *(*byte)(ptr) != 0; n++ {
75
+		ptr = unsafe.Pointer(uintptr(ptr) + 1)
76
+	}
77
+
78
+	var s []byte
79
+	h := (*unsafeheader.Slice)(unsafe.Pointer(&s))
80
+	h.Data = unsafe.Pointer(p)
81
+	h.Len = n
82
+	h.Cap = n
83
+
84
+	return string(s)
85
+}
86
+
52 87
 // Single-word zero for use when we need a valid pointer to 0 bytes.
53 88
 var _zero uintptr
... ...
@@ -277,7 +277,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
277 277
 		}
278 278
 		return sa, nil
279 279
 	}
280
-	return nil, EAFNOSUPPORT
280
+	return anyToSockaddrGOOS(fd, rsa)
281 281
 }
282 282
 
283 283
 func Accept(fd int) (nfd int, sa Sockaddr, err error) {
... ...
@@ -26,7 +26,6 @@ func fdopendir(fd int) (dir uintptr, err error) {
26 26
 
27 27
 func libc_fdopendir_trampoline()
28 28
 
29
-//go:linkname libc_fdopendir libc_fdopendir
30 29
 //go:cgo_import_dynamic libc_fdopendir fdopendir "/usr/lib/libSystem.B.dylib"
31 30
 
32 31
 func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
... ...
@@ -31,10 +31,40 @@ type SockaddrDatalink struct {
31 31
 	raw    RawSockaddrDatalink
32 32
 }
33 33
 
34
+// SockaddrCtl implements the Sockaddr interface for AF_SYSTEM type sockets.
35
+type SockaddrCtl struct {
36
+	ID   uint32
37
+	Unit uint32
38
+	raw  RawSockaddrCtl
39
+}
40
+
41
+func (sa *SockaddrCtl) sockaddr() (unsafe.Pointer, _Socklen, error) {
42
+	sa.raw.Sc_len = SizeofSockaddrCtl
43
+	sa.raw.Sc_family = AF_SYSTEM
44
+	sa.raw.Ss_sysaddr = AF_SYS_CONTROL
45
+	sa.raw.Sc_id = sa.ID
46
+	sa.raw.Sc_unit = sa.Unit
47
+	return unsafe.Pointer(&sa.raw), SizeofSockaddrCtl, nil
48
+}
49
+
50
+func anyToSockaddrGOOS(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
51
+	switch rsa.Addr.Family {
52
+	case AF_SYSTEM:
53
+		pp := (*RawSockaddrCtl)(unsafe.Pointer(rsa))
54
+		if pp.Ss_sysaddr == AF_SYS_CONTROL {
55
+			sa := new(SockaddrCtl)
56
+			sa.ID = pp.Sc_id
57
+			sa.Unit = pp.Sc_unit
58
+			return sa, nil
59
+		}
60
+	}
61
+	return nil, EAFNOSUPPORT
62
+}
63
+
34 64
 // Some external packages rely on SYS___SYSCTL being defined to implement their
35 65
 // own sysctl wrappers. Provide it here, even though direct syscalls are no
36 66
 // longer supported on darwin.
37
-const SYS___SYSCTL = 202
67
+const SYS___SYSCTL = SYS_SYSCTL
38 68
 
39 69
 // Translate "kern.hostname" to []_C_int{0,1,2,3}.
40 70
 func nametomib(name string) (mib []_C_int, err error) {
... ...
@@ -89,13 +119,16 @@ type attrList struct {
89 89
 	Forkattr    uint32
90 90
 }
91 91
 
92
-//sysnb pipe() (r int, w int, err error)
92
+//sysnb pipe(p *[2]int32) (err error)
93 93
 
94 94
 func Pipe(p []int) (err error) {
95 95
 	if len(p) != 2 {
96 96
 		return EINVAL
97 97
 	}
98
-	p[0], p[1], err = pipe()
98
+	var x [2]int32
99
+	err = pipe(&x)
100
+	p[0] = int(x[0])
101
+	p[1] = int(x[1])
99 102
 	return
100 103
 }
101 104
 
... ...
@@ -264,6 +297,29 @@ func IoctlCtlInfo(fd int, ctlInfo *CtlInfo) error {
264 264
 	return err
265 265
 }
266 266
 
267
+// IfreqMTU is struct ifreq used to get or set a network device's MTU.
268
+type IfreqMTU struct {
269
+	Name [IFNAMSIZ]byte
270
+	MTU  int32
271
+}
272
+
273
+// IoctlGetIfreqMTU performs the SIOCGIFMTU ioctl operation on fd to get the MTU
274
+// of the network device specified by ifname.
275
+func IoctlGetIfreqMTU(fd int, ifname string) (*IfreqMTU, error) {
276
+	var ifreq IfreqMTU
277
+	copy(ifreq.Name[:], ifname)
278
+	err := ioctl(fd, SIOCGIFMTU, uintptr(unsafe.Pointer(&ifreq)))
279
+	return &ifreq, err
280
+}
281
+
282
+// IoctlSetIfreqMTU performs the SIOCSIFMTU ioctl operation on fd to set the MTU
283
+// of the network device specified by ifreq.Name.
284
+func IoctlSetIfreqMTU(fd int, ifreq *IfreqMTU) error {
285
+	err := ioctl(fd, SIOCSIFMTU, uintptr(unsafe.Pointer(ifreq)))
286
+	runtime.KeepAlive(ifreq)
287
+	return err
288
+}
289
+
267 290
 //sys   sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS_SYSCTL
268 291
 
269 292
 func Uname(uname *Utsname) error {
... ...
@@ -45,6 +45,6 @@ func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr,
45 45
 //sys	Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64
46 46
 //sys	getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT64
47 47
 //sys	Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
48
-//sys	ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
48
+//sys	ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) = SYS_ptrace
49 49
 //sys	Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
50 50
 //sys	Statfs(path string, stat *Statfs_t) (err error) = SYS_STATFS64
... ...
@@ -45,6 +45,6 @@ func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr,
45 45
 //sys	Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64
46 46
 //sys	getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT64
47 47
 //sys	Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
48
-//sys	ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
48
+//sys	ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) = SYS_ptrace
49 49
 //sys	Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
50 50
 //sys	Statfs(path string, stat *Statfs_t) (err error) = SYS_STATFS64
... ...
@@ -6,7 +6,7 @@ package unix
6 6
 
7 7
 import "syscall"
8 8
 
9
-func ptrace(request int, pid int, addr uintptr, data uintptr) error {
9
+func ptrace1(request int, pid int, addr uintptr, data uintptr) error {
10 10
 	return ENOTSUP
11 11
 }
12 12
 
... ...
@@ -45,6 +45,6 @@ func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr,
45 45
 //sys	Fstatfs(fd int, stat *Statfs_t) (err error)
46 46
 //sys	getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT
47 47
 //sys	Lstat(path string, stat *Stat_t) (err error)
48
-//sys	ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
48
+//sys	ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) = SYS_ptrace
49 49
 //sys	Stat(path string, stat *Stat_t) (err error)
50 50
 //sys	Statfs(path string, stat *Statfs_t) (err error)
... ...
@@ -47,6 +47,10 @@ type SockaddrDatalink struct {
47 47
 	raw    RawSockaddrDatalink
48 48
 }
49 49
 
50
+func anyToSockaddrGOOS(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
51
+	return nil, EAFNOSUPPORT
52
+}
53
+
50 54
 // Translate "kern.hostname" to []_C_int{0,1,2,3}.
51 55
 func nametomib(name string) (mib []_C_int, err error) {
52 56
 	const siz = unsafe.Sizeof(mib[0])
... ...
@@ -101,6 +105,19 @@ func Pipe(p []int) (err error) {
101 101
 	return
102 102
 }
103 103
 
104
+//sysnb	pipe2(p *[2]_C_int, flags int) (err error)
105
+
106
+func Pipe2(p []int, flags int) error {
107
+	if len(p) != 2 {
108
+		return EINVAL
109
+	}
110
+	var pp [2]_C_int
111
+	err := pipe2(&pp, flags)
112
+	p[0] = int(pp[0])
113
+	p[1] = int(pp[1])
114
+	return err
115
+}
116
+
104 117
 //sys	extpread(fd int, p []byte, flags int, offset int64) (n int, err error)
105 118
 func Pread(fd int, p []byte, offset int64) (n int, err error) {
106 119
 	return extpread(fd, p, 0, offset)
... ...
@@ -54,6 +54,10 @@ type SockaddrDatalink struct {
54 54
 	raw    RawSockaddrDatalink
55 55
 }
56 56
 
57
+func anyToSockaddrGOOS(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
58
+	return nil, EAFNOSUPPORT
59
+}
60
+
57 61
 // Translate "kern.hostname" to []_C_int{0,1,2,3}.
58 62
 func nametomib(name string) (mib []_C_int, err error) {
59 63
 	const siz = unsafe.Sizeof(mib[0])
... ...
@@ -75,16 +75,3 @@ func Accept4(fd int, flags int) (nfd int, sa Sockaddr, err error) {
75 75
 	}
76 76
 	return
77 77
 }
78
-
79
-//sysnb	pipe2(p *[2]_C_int, flags int) (err error)
80
-
81
-func Pipe2(p []int, flags int) error {
82
-	if len(p) != 2 {
83
-		return EINVAL
84
-	}
85
-	var pp [2]_C_int
86
-	err := pipe2(&pp, flags)
87
-	p[0] = int(pp[0])
88
-	p[1] = int(pp[1])
89
-	return err
90
-}
... ...
@@ -641,6 +641,36 @@ func (sa *SockaddrCAN) sockaddr() (unsafe.Pointer, _Socklen, error) {
641 641
 	return unsafe.Pointer(&sa.raw), SizeofSockaddrCAN, nil
642 642
 }
643 643
 
644
+// SockaddrCANJ1939 implements the Sockaddr interface for AF_CAN using J1939
645
+// protocol (https://en.wikipedia.org/wiki/SAE_J1939). For more information
646
+// on the purposes of the fields, check the official linux kernel documentation
647
+// available here: https://www.kernel.org/doc/Documentation/networking/j1939.rst
648
+type SockaddrCANJ1939 struct {
649
+	Ifindex int
650
+	Name    uint64
651
+	PGN     uint32
652
+	Addr    uint8
653
+	raw     RawSockaddrCAN
654
+}
655
+
656
+func (sa *SockaddrCANJ1939) sockaddr() (unsafe.Pointer, _Socklen, error) {
657
+	if sa.Ifindex < 0 || sa.Ifindex > 0x7fffffff {
658
+		return nil, 0, EINVAL
659
+	}
660
+	sa.raw.Family = AF_CAN
661
+	sa.raw.Ifindex = int32(sa.Ifindex)
662
+	n := (*[8]byte)(unsafe.Pointer(&sa.Name))
663
+	for i := 0; i < 8; i++ {
664
+		sa.raw.Addr[i] = n[i]
665
+	}
666
+	p := (*[4]byte)(unsafe.Pointer(&sa.PGN))
667
+	for i := 0; i < 4; i++ {
668
+		sa.raw.Addr[i+8] = p[i]
669
+	}
670
+	sa.raw.Addr[12] = sa.Addr
671
+	return unsafe.Pointer(&sa.raw), SizeofSockaddrCAN, nil
672
+}
673
+
644 674
 // SockaddrALG implements the Sockaddr interface for AF_ALG type sockets.
645 675
 // SockaddrALG enables userspace access to the Linux kernel's cryptography
646 676
 // subsystem. The Type and Name fields specify which type of hash or cipher
... ...
@@ -952,6 +982,10 @@ func (sa *SockaddrIUCV) sockaddr() (unsafe.Pointer, _Socklen, error) {
952 952
 	return unsafe.Pointer(&sa.raw), SizeofSockaddrIUCV, nil
953 953
 }
954 954
 
955
+var socketProtocol = func(fd int) (int, error) {
956
+	return GetsockoptInt(fd, SOL_SOCKET, SO_PROTOCOL)
957
+}
958
+
955 959
 func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
956 960
 	switch rsa.Addr.Family {
957 961
 	case AF_NETLINK:
... ...
@@ -1002,7 +1036,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
1002 1002
 		return sa, nil
1003 1003
 
1004 1004
 	case AF_INET:
1005
-		proto, err := GetsockoptInt(fd, SOL_SOCKET, SO_PROTOCOL)
1005
+		proto, err := socketProtocol(fd)
1006 1006
 		if err != nil {
1007 1007
 			return nil, err
1008 1008
 		}
... ...
@@ -1028,7 +1062,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
1028 1028
 		}
1029 1029
 
1030 1030
 	case AF_INET6:
1031
-		proto, err := GetsockoptInt(fd, SOL_SOCKET, SO_PROTOCOL)
1031
+		proto, err := socketProtocol(fd)
1032 1032
 		if err != nil {
1033 1033
 			return nil, err
1034 1034
 		}
... ...
@@ -1063,7 +1097,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
1063 1063
 		}
1064 1064
 		return sa, nil
1065 1065
 	case AF_BLUETOOTH:
1066
-		proto, err := GetsockoptInt(fd, SOL_SOCKET, SO_PROTOCOL)
1066
+		proto, err := socketProtocol(fd)
1067 1067
 		if err != nil {
1068 1068
 			return nil, err
1069 1069
 		}
... ...
@@ -1150,20 +1184,43 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
1150 1150
 		return sa, nil
1151 1151
 
1152 1152
 	case AF_CAN:
1153
-		pp := (*RawSockaddrCAN)(unsafe.Pointer(rsa))
1154
-		sa := &SockaddrCAN{
1155
-			Ifindex: int(pp.Ifindex),
1156
-		}
1157
-		rx := (*[4]byte)(unsafe.Pointer(&sa.RxID))
1158
-		for i := 0; i < 4; i++ {
1159
-			rx[i] = pp.Addr[i]
1160
-		}
1161
-		tx := (*[4]byte)(unsafe.Pointer(&sa.TxID))
1162
-		for i := 0; i < 4; i++ {
1163
-			tx[i] = pp.Addr[i+4]
1153
+		proto, err := socketProtocol(fd)
1154
+		if err != nil {
1155
+			return nil, err
1164 1156
 		}
1165
-		return sa, nil
1166 1157
 
1158
+		pp := (*RawSockaddrCAN)(unsafe.Pointer(rsa))
1159
+
1160
+		switch proto {
1161
+		case CAN_J1939:
1162
+			sa := &SockaddrCANJ1939{
1163
+				Ifindex: int(pp.Ifindex),
1164
+			}
1165
+			name := (*[8]byte)(unsafe.Pointer(&sa.Name))
1166
+			for i := 0; i < 8; i++ {
1167
+				name[i] = pp.Addr[i]
1168
+			}
1169
+			pgn := (*[4]byte)(unsafe.Pointer(&sa.PGN))
1170
+			for i := 0; i < 4; i++ {
1171
+				pgn[i] = pp.Addr[i+8]
1172
+			}
1173
+			addr := (*[1]byte)(unsafe.Pointer(&sa.Addr))
1174
+			addr[0] = pp.Addr[12]
1175
+			return sa, nil
1176
+		default:
1177
+			sa := &SockaddrCAN{
1178
+				Ifindex: int(pp.Ifindex),
1179
+			}
1180
+			rx := (*[4]byte)(unsafe.Pointer(&sa.RxID))
1181
+			for i := 0; i < 4; i++ {
1182
+				rx[i] = pp.Addr[i]
1183
+			}
1184
+			tx := (*[4]byte)(unsafe.Pointer(&sa.TxID))
1185
+			for i := 0; i < 4; i++ {
1186
+				tx[i] = pp.Addr[i+4]
1187
+			}
1188
+			return sa, nil
1189
+		}
1167 1190
 	}
1168 1191
 	return nil, EAFNOSUPPORT
1169 1192
 }
... ...
@@ -3,7 +3,7 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 // +build amd64,linux
6
-// +build !gccgo
6
+// +build gc
7 7
 
8 8
 package unix
9 9
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build linux,!gccgo
5
+// +build linux,gc
6 6
 
7 7
 package unix
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build linux,!gccgo,386
5
+// +build linux,gc,386
6 6
 
7 7
 package unix
8 8
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-// +build arm,!gccgo,linux
5
+// +build arm,gc,linux
6 6
 
7 7
 package unix
8 8
 
... ...
@@ -31,6 +31,10 @@ type SockaddrDatalink struct {
31 31
 	raw    RawSockaddrDatalink
32 32
 }
33 33
 
34
+func anyToSockaddrGOOS(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
35
+	return nil, EAFNOSUPPORT
36
+}
37
+
34 38
 func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
35 39
 
36 40
 func sysctlNodes(mib []_C_int) (nodes []Sysctlnode, err error) {
... ...
@@ -31,6 +31,10 @@ type SockaddrDatalink struct {
31 31
 	raw    RawSockaddrDatalink
32 32
 }
33 33
 
34
+func anyToSockaddrGOOS(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
35
+	return nil, EAFNOSUPPORT
36
+}
37
+
34 38
 func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
35 39
 
36 40
 func nametomib(name string) (mib []_C_int, err error) {
... ...
@@ -68,6 +68,19 @@ func Pipe(p []int) (err error) {
68 68
 	return nil
69 69
 }
70 70
 
71
+//sysnb	pipe2(p *[2]_C_int, flags int) (err error)
72
+
73
+func Pipe2(p []int, flags int) error {
74
+	if len(p) != 2 {
75
+		return EINVAL
76
+	}
77
+	var pp [2]_C_int
78
+	err := pipe2(&pp, flags)
79
+	p[0] = int(pp[0])
80
+	p[1] = int(pp[1])
81
+	return err
82
+}
83
+
71 84
 func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) {
72 85
 	if sa.Port < 0 || sa.Port > 0xFFFF {
73 86
 		return nil, 0, EINVAL
... ...
@@ -3,7 +3,7 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 // +build darwin dragonfly freebsd linux netbsd openbsd solaris
6
-// +build !gccgo,!ppc64le,!ppc64
6
+// +build gc,!ppc64le,!ppc64
7 7
 
8 8
 package unix
9 9
 
... ...
@@ -4,7 +4,7 @@
4 4
 
5 5
 // +build linux
6 6
 // +build ppc64le ppc64
7
-// +build !gccgo
7
+// +build gc
8 8
 
9 9
 package unix
10 10
 
... ...
@@ -8,12 +8,10 @@ package unix
8 8
 
9 9
 import "time"
10 10
 
11
-// TimespecToNsec converts a Timespec value into a number of
12
-// nanoseconds since the Unix epoch.
13
-func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
11
+// TimespecToNSec returns the time stored in ts as nanoseconds.
12
+func TimespecToNsec(ts Timespec) int64 { return ts.Nano() }
14 13
 
15
-// NsecToTimespec takes a number of nanoseconds since the Unix epoch
16
-// and returns the corresponding Timespec value.
14
+// NsecToTimespec converts a number of nanoseconds into a Timespec.
17 15
 func NsecToTimespec(nsec int64) Timespec {
18 16
 	sec := nsec / 1e9
19 17
 	nsec = nsec % 1e9
... ...
@@ -42,12 +40,10 @@ func TimeToTimespec(t time.Time) (Timespec, error) {
42 42
 	return ts, nil
43 43
 }
44 44
 
45
-// TimevalToNsec converts a Timeval value into a number of nanoseconds
46
-// since the Unix epoch.
47
-func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 }
45
+// TimevalToNsec returns the time stored in tv as nanoseconds.
46
+func TimevalToNsec(tv Timeval) int64 { return tv.Nano() }
48 47
 
49
-// NsecToTimeval takes a number of nanoseconds since the Unix epoch
50
-// and returns the corresponding Timeval value.
48
+// NsecToTimeval converts a number of nanoseconds into a Timeval.
51 49
 func NsecToTimeval(nsec int64) Timeval {
52 50
 	nsec += 999 // round up to microsecond
53 51
 	usec := nsec % 1e9 / 1e3
... ...
@@ -59,24 +55,22 @@ func NsecToTimeval(nsec int64) Timeval {
59 59
 	return setTimeval(sec, usec)
60 60
 }
61 61
 
62
-// Unix returns ts as the number of seconds and nanoseconds elapsed since the
63
-// Unix epoch.
62
+// Unix returns the time stored in ts as seconds plus nanoseconds.
64 63
 func (ts *Timespec) Unix() (sec int64, nsec int64) {
65 64
 	return int64(ts.Sec), int64(ts.Nsec)
66 65
 }
67 66
 
68
-// Unix returns tv as the number of seconds and nanoseconds elapsed since the
69
-// Unix epoch.
67
+// Unix returns the time stored in tv as seconds plus nanoseconds.
70 68
 func (tv *Timeval) Unix() (sec int64, nsec int64) {
71 69
 	return int64(tv.Sec), int64(tv.Usec) * 1000
72 70
 }
73 71
 
74
-// Nano returns ts as the number of nanoseconds elapsed since the Unix epoch.
72
+// Nano returns the time stored in ts as nanoseconds.
75 73
 func (ts *Timespec) Nano() int64 {
76 74
 	return int64(ts.Sec)*1e9 + int64(ts.Nsec)
77 75
 }
78 76
 
79
-// Nano returns tv as the number of nanoseconds elapsed since the Unix epoch.
77
+// Nano returns the time stored in tv as nanoseconds.
80 78
 func (tv *Timeval) Nano() int64 {
81 79
 	return int64(tv.Sec)*1e9 + int64(tv.Usec)*1000
82 80
 }
... ...
@@ -45,6 +45,7 @@ const (
45 45
 	AF_SIP                            = 0x18
46 46
 	AF_SNA                            = 0xb
47 47
 	AF_SYSTEM                         = 0x20
48
+	AF_SYS_CONTROL                    = 0x2
48 49
 	AF_UNIX                           = 0x1
49 50
 	AF_UNSPEC                         = 0x0
50 51
 	AF_UTUN                           = 0x26
... ...
@@ -45,6 +45,7 @@ const (
45 45
 	AF_SIP                            = 0x18
46 46
 	AF_SNA                            = 0xb
47 47
 	AF_SYSTEM                         = 0x20
48
+	AF_SYS_CONTROL                    = 0x2
48 49
 	AF_UNIX                           = 0x1
49 50
 	AF_UNSPEC                         = 0x0
50 51
 	AF_UTUN                           = 0x26
... ...
@@ -45,6 +45,7 @@ const (
45 45
 	AF_SIP                            = 0x18
46 46
 	AF_SNA                            = 0xb
47 47
 	AF_SYSTEM                         = 0x20
48
+	AF_SYS_CONTROL                    = 0x2
48 49
 	AF_UNIX                           = 0x1
49 50
 	AF_UNSPEC                         = 0x0
50 51
 	AF_UTUN                           = 0x26
... ...
@@ -45,6 +45,7 @@ const (
45 45
 	AF_SIP                            = 0x18
46 46
 	AF_SNA                            = 0xb
47 47
 	AF_SYSTEM                         = 0x20
48
+	AF_SYS_CONTROL                    = 0x2
48 49
 	AF_UNIX                           = 0x1
49 50
 	AF_UNSPEC                         = 0x0
50 51
 	AF_UTUN                           = 0x26
... ...
@@ -65,6 +65,7 @@ const (
65 65
 	ALG_OP_ENCRYPT                              = 0x1
66 66
 	ALG_SET_AEAD_ASSOCLEN                       = 0x4
67 67
 	ALG_SET_AEAD_AUTHSIZE                       = 0x5
68
+	ALG_SET_DRBG_ENTROPY                        = 0x6
68 69
 	ALG_SET_IV                                  = 0x2
69 70
 	ALG_SET_KEY                                 = 0x1
70 71
 	ALG_SET_OP                                  = 0x3
... ...
@@ -179,8 +180,10 @@ const (
179 179
 	BPF_F_ANY_ALIGNMENT                         = 0x2
180 180
 	BPF_F_QUERY_EFFECTIVE                       = 0x1
181 181
 	BPF_F_REPLACE                               = 0x4
182
+	BPF_F_SLEEPABLE                             = 0x10
182 183
 	BPF_F_STRICT_ALIGNMENT                      = 0x1
183 184
 	BPF_F_TEST_RND_HI32                         = 0x4
185
+	BPF_F_TEST_RUN_ON_CPU                       = 0x1
184 186
 	BPF_F_TEST_STATE_FREQ                       = 0x8
185 187
 	BPF_H                                       = 0x8
186 188
 	BPF_IMM                                     = 0x0
... ...
@@ -219,6 +222,7 @@ const (
219 219
 	BPF_NET_OFF                                 = -0x100000
220 220
 	BPF_OBJ_NAME_LEN                            = 0x10
221 221
 	BPF_OR                                      = 0x40
222
+	BPF_PSEUDO_BTF_ID                           = 0x3
222 223
 	BPF_PSEUDO_CALL                             = 0x1
223 224
 	BPF_PSEUDO_MAP_FD                           = 0x1
224 225
 	BPF_PSEUDO_MAP_VALUE                        = 0x2
... ...
@@ -429,10 +433,13 @@ const (
429 429
 	DEBUGFS_MAGIC                               = 0x64626720
430 430
 	DEVLINK_CMD_ESWITCH_MODE_GET                = 0x1d
431 431
 	DEVLINK_CMD_ESWITCH_MODE_SET                = 0x1e
432
+	DEVLINK_FLASH_OVERWRITE_IDENTIFIERS         = 0x2
433
+	DEVLINK_FLASH_OVERWRITE_SETTINGS            = 0x1
432 434
 	DEVLINK_GENL_MCGRP_CONFIG_NAME              = "config"
433 435
 	DEVLINK_GENL_NAME                           = "devlink"
434 436
 	DEVLINK_GENL_VERSION                        = 0x1
435 437
 	DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX           = 0x14
438
+	DEVLINK_SUPPORTED_FLASH_OVERWRITE_SECTIONS  = 0x3
436 439
 	DEVMEM_MAGIC                                = 0x454d444d
437 440
 	DEVPTS_SUPER_MAGIC                          = 0x1cd1
438 441
 	DMA_BUF_MAGIC                               = 0x444d4142
... ...
@@ -477,9 +484,9 @@ const (
477 477
 	DM_UUID_FLAG                                = 0x4000
478 478
 	DM_UUID_LEN                                 = 0x81
479 479
 	DM_VERSION                                  = 0xc138fd00
480
-	DM_VERSION_EXTRA                            = "-ioctl (2020-02-27)"
480
+	DM_VERSION_EXTRA                            = "-ioctl (2020-10-01)"
481 481
 	DM_VERSION_MAJOR                            = 0x4
482
-	DM_VERSION_MINOR                            = 0x2a
482
+	DM_VERSION_MINOR                            = 0x2b
483 483
 	DM_VERSION_PATCHLEVEL                       = 0x0
484 484
 	DT_BLK                                      = 0x6
485 485
 	DT_CHR                                      = 0x2
... ...
@@ -520,6 +527,119 @@ const (
520 520
 	EPOLL_CTL_DEL                               = 0x2
521 521
 	EPOLL_CTL_MOD                               = 0x3
522 522
 	EROFS_SUPER_MAGIC_V1                        = 0xe0f5e1e2
523
+	ESP_V4_FLOW                                 = 0xa
524
+	ESP_V6_FLOW                                 = 0xc
525
+	ETHER_FLOW                                  = 0x12
526
+	ETHTOOL_BUSINFO_LEN                         = 0x20
527
+	ETHTOOL_EROMVERS_LEN                        = 0x20
528
+	ETHTOOL_FEC_AUTO                            = 0x2
529
+	ETHTOOL_FEC_BASER                           = 0x10
530
+	ETHTOOL_FEC_LLRS                            = 0x20
531
+	ETHTOOL_FEC_NONE                            = 0x1
532
+	ETHTOOL_FEC_OFF                             = 0x4
533
+	ETHTOOL_FEC_RS                              = 0x8
534
+	ETHTOOL_FLAG_ALL                            = 0x7
535
+	ETHTOOL_FLAG_COMPACT_BITSETS                = 0x1
536
+	ETHTOOL_FLAG_OMIT_REPLY                     = 0x2
537
+	ETHTOOL_FLAG_STATS                          = 0x4
538
+	ETHTOOL_FLASHDEV                            = 0x33
539
+	ETHTOOL_FLASH_MAX_FILENAME                  = 0x80
540
+	ETHTOOL_FWVERS_LEN                          = 0x20
541
+	ETHTOOL_F_COMPAT                            = 0x4
542
+	ETHTOOL_F_UNSUPPORTED                       = 0x1
543
+	ETHTOOL_F_WISH                              = 0x2
544
+	ETHTOOL_GCHANNELS                           = 0x3c
545
+	ETHTOOL_GCOALESCE                           = 0xe
546
+	ETHTOOL_GDRVINFO                            = 0x3
547
+	ETHTOOL_GEEE                                = 0x44
548
+	ETHTOOL_GEEPROM                             = 0xb
549
+	ETHTOOL_GENL_NAME                           = "ethtool"
550
+	ETHTOOL_GENL_VERSION                        = 0x1
551
+	ETHTOOL_GET_DUMP_DATA                       = 0x40
552
+	ETHTOOL_GET_DUMP_FLAG                       = 0x3f
553
+	ETHTOOL_GET_TS_INFO                         = 0x41
554
+	ETHTOOL_GFEATURES                           = 0x3a
555
+	ETHTOOL_GFECPARAM                           = 0x50
556
+	ETHTOOL_GFLAGS                              = 0x25
557
+	ETHTOOL_GGRO                                = 0x2b
558
+	ETHTOOL_GGSO                                = 0x23
559
+	ETHTOOL_GLINK                               = 0xa
560
+	ETHTOOL_GLINKSETTINGS                       = 0x4c
561
+	ETHTOOL_GMODULEEEPROM                       = 0x43
562
+	ETHTOOL_GMODULEINFO                         = 0x42
563
+	ETHTOOL_GMSGLVL                             = 0x7
564
+	ETHTOOL_GPAUSEPARAM                         = 0x12
565
+	ETHTOOL_GPERMADDR                           = 0x20
566
+	ETHTOOL_GPFLAGS                             = 0x27
567
+	ETHTOOL_GPHYSTATS                           = 0x4a
568
+	ETHTOOL_GREGS                               = 0x4
569
+	ETHTOOL_GRINGPARAM                          = 0x10
570
+	ETHTOOL_GRSSH                               = 0x46
571
+	ETHTOOL_GRXCLSRLALL                         = 0x30
572
+	ETHTOOL_GRXCLSRLCNT                         = 0x2e
573
+	ETHTOOL_GRXCLSRULE                          = 0x2f
574
+	ETHTOOL_GRXCSUM                             = 0x14
575
+	ETHTOOL_GRXFH                               = 0x29
576
+	ETHTOOL_GRXFHINDIR                          = 0x38
577
+	ETHTOOL_GRXNTUPLE                           = 0x36
578
+	ETHTOOL_GRXRINGS                            = 0x2d
579
+	ETHTOOL_GSET                                = 0x1
580
+	ETHTOOL_GSG                                 = 0x18
581
+	ETHTOOL_GSSET_INFO                          = 0x37
582
+	ETHTOOL_GSTATS                              = 0x1d
583
+	ETHTOOL_GSTRINGS                            = 0x1b
584
+	ETHTOOL_GTSO                                = 0x1e
585
+	ETHTOOL_GTUNABLE                            = 0x48
586
+	ETHTOOL_GTXCSUM                             = 0x16
587
+	ETHTOOL_GUFO                                = 0x21
588
+	ETHTOOL_GWOL                                = 0x5
589
+	ETHTOOL_MCGRP_MONITOR_NAME                  = "monitor"
590
+	ETHTOOL_NWAY_RST                            = 0x9
591
+	ETHTOOL_PERQUEUE                            = 0x4b
592
+	ETHTOOL_PHYS_ID                             = 0x1c
593
+	ETHTOOL_PHY_EDPD_DFLT_TX_MSECS              = 0xffff
594
+	ETHTOOL_PHY_EDPD_DISABLE                    = 0x0
595
+	ETHTOOL_PHY_EDPD_NO_TX                      = 0xfffe
596
+	ETHTOOL_PHY_FAST_LINK_DOWN_OFF              = 0xff
597
+	ETHTOOL_PHY_FAST_LINK_DOWN_ON               = 0x0
598
+	ETHTOOL_PHY_GTUNABLE                        = 0x4e
599
+	ETHTOOL_PHY_STUNABLE                        = 0x4f
600
+	ETHTOOL_RESET                               = 0x34
601
+	ETHTOOL_RXNTUPLE_ACTION_CLEAR               = -0x2
602
+	ETHTOOL_RXNTUPLE_ACTION_DROP                = -0x1
603
+	ETHTOOL_RX_FLOW_SPEC_RING                   = 0xffffffff
604
+	ETHTOOL_RX_FLOW_SPEC_RING_VF                = 0xff00000000
605
+	ETHTOOL_RX_FLOW_SPEC_RING_VF_OFF            = 0x20
606
+	ETHTOOL_SCHANNELS                           = 0x3d
607
+	ETHTOOL_SCOALESCE                           = 0xf
608
+	ETHTOOL_SEEE                                = 0x45
609
+	ETHTOOL_SEEPROM                             = 0xc
610
+	ETHTOOL_SET_DUMP                            = 0x3e
611
+	ETHTOOL_SFEATURES                           = 0x3b
612
+	ETHTOOL_SFECPARAM                           = 0x51
613
+	ETHTOOL_SFLAGS                              = 0x26
614
+	ETHTOOL_SGRO                                = 0x2c
615
+	ETHTOOL_SGSO                                = 0x24
616
+	ETHTOOL_SLINKSETTINGS                       = 0x4d
617
+	ETHTOOL_SMSGLVL                             = 0x8
618
+	ETHTOOL_SPAUSEPARAM                         = 0x13
619
+	ETHTOOL_SPFLAGS                             = 0x28
620
+	ETHTOOL_SRINGPARAM                          = 0x11
621
+	ETHTOOL_SRSSH                               = 0x47
622
+	ETHTOOL_SRXCLSRLDEL                         = 0x31
623
+	ETHTOOL_SRXCLSRLINS                         = 0x32
624
+	ETHTOOL_SRXCSUM                             = 0x15
625
+	ETHTOOL_SRXFH                               = 0x2a
626
+	ETHTOOL_SRXFHINDIR                          = 0x39
627
+	ETHTOOL_SRXNTUPLE                           = 0x35
628
+	ETHTOOL_SSET                                = 0x2
629
+	ETHTOOL_SSG                                 = 0x19
630
+	ETHTOOL_STSO                                = 0x1f
631
+	ETHTOOL_STUNABLE                            = 0x49
632
+	ETHTOOL_STXCSUM                             = 0x17
633
+	ETHTOOL_SUFO                                = 0x22
634
+	ETHTOOL_SWOL                                = 0x6
635
+	ETHTOOL_TEST                                = 0x1a
523 636
 	ETH_P_1588                                  = 0x88f7
524 637
 	ETH_P_8021AD                                = 0x88a8
525 638
 	ETH_P_8021AH                                = 0x88e7
... ...
@@ -989,6 +1109,7 @@ const (
989 989
 	IPV6_DONTFRAG                               = 0x3e
990 990
 	IPV6_DROP_MEMBERSHIP                        = 0x15
991 991
 	IPV6_DSTOPTS                                = 0x3b
992
+	IPV6_FLOW                                   = 0x11
992 993
 	IPV6_FREEBIND                               = 0x4e
993 994
 	IPV6_HDRINCL                                = 0x24
994 995
 	IPV6_HOPLIMIT                               = 0x34
... ...
@@ -1038,6 +1159,7 @@ const (
1038 1038
 	IPV6_TRANSPARENT                            = 0x4b
1039 1039
 	IPV6_UNICAST_HOPS                           = 0x10
1040 1040
 	IPV6_UNICAST_IF                             = 0x4c
1041
+	IPV6_USER_FLOW                              = 0xe
1041 1042
 	IPV6_V6ONLY                                 = 0x1a
1042 1043
 	IPV6_XFRM_POLICY                            = 0x23
1043 1044
 	IP_ADD_MEMBERSHIP                           = 0x23
... ...
@@ -1094,6 +1216,7 @@ const (
1094 1094
 	IP_TTL                                      = 0x2
1095 1095
 	IP_UNBLOCK_SOURCE                           = 0x25
1096 1096
 	IP_UNICAST_IF                               = 0x32
1097
+	IP_USER_FLOW                                = 0xd
1097 1098
 	IP_XFRM_POLICY                              = 0x11
1098 1099
 	ISOFS_SUPER_MAGIC                           = 0x9660
1099 1100
 	ISTRIP                                      = 0x20
... ...
@@ -1217,6 +1340,12 @@ const (
1217 1217
 	LOOP_SET_STATUS_SETTABLE_FLAGS              = 0xc
1218 1218
 	LO_KEY_SIZE                                 = 0x20
1219 1219
 	LO_NAME_SIZE                                = 0x40
1220
+	LWTUNNEL_IP6_MAX                            = 0x8
1221
+	LWTUNNEL_IP_MAX                             = 0x8
1222
+	LWTUNNEL_IP_OPTS_MAX                        = 0x3
1223
+	LWTUNNEL_IP_OPT_ERSPAN_MAX                  = 0x4
1224
+	LWTUNNEL_IP_OPT_GENEVE_MAX                  = 0x3
1225
+	LWTUNNEL_IP_OPT_VXLAN_MAX                   = 0x1
1220 1226
 	MADV_COLD                                   = 0x14
1221 1227
 	MADV_DODUMP                                 = 0x11
1222 1228
 	MADV_DOFORK                                 = 0xb
... ...
@@ -1325,6 +1454,7 @@ const (
1325 1325
 	MS_NOREMOTELOCK                             = 0x8000000
1326 1326
 	MS_NOSEC                                    = 0x10000000
1327 1327
 	MS_NOSUID                                   = 0x2
1328
+	MS_NOSYMFOLLOW                              = 0x100
1328 1329
 	MS_NOUSER                                   = -0x80000000
1329 1330
 	MS_POSIXACL                                 = 0x10000
1330 1331
 	MS_PRIVATE                                  = 0x40000
... ...
@@ -1566,7 +1696,7 @@ const (
1566 1566
 	PERF_MEM_REMOTE_REMOTE                      = 0x1
1567 1567
 	PERF_MEM_REMOTE_SHIFT                       = 0x25
1568 1568
 	PERF_MEM_SNOOPX_FWD                         = 0x1
1569
-	PERF_MEM_SNOOPX_SHIFT                       = 0x25
1569
+	PERF_MEM_SNOOPX_SHIFT                       = 0x26
1570 1570
 	PERF_MEM_SNOOP_HIT                          = 0x4
1571 1571
 	PERF_MEM_SNOOP_HITM                         = 0x10
1572 1572
 	PERF_MEM_SNOOP_MISS                         = 0x8
... ...
@@ -1666,6 +1796,13 @@ const (
1666 1666
 	PR_MCE_KILL_SET                             = 0x1
1667 1667
 	PR_MPX_DISABLE_MANAGEMENT                   = 0x2c
1668 1668
 	PR_MPX_ENABLE_MANAGEMENT                    = 0x2b
1669
+	PR_MTE_TAG_MASK                             = 0x7fff8
1670
+	PR_MTE_TAG_SHIFT                            = 0x3
1671
+	PR_MTE_TCF_ASYNC                            = 0x4
1672
+	PR_MTE_TCF_MASK                             = 0x6
1673
+	PR_MTE_TCF_NONE                             = 0x0
1674
+	PR_MTE_TCF_SHIFT                            = 0x1
1675
+	PR_MTE_TCF_SYNC                             = 0x2
1669 1676
 	PR_PAC_APDAKEY                              = 0x4
1670 1677
 	PR_PAC_APDBKEY                              = 0x8
1671 1678
 	PR_PAC_APGAKEY                              = 0x10
... ...
@@ -2200,7 +2337,7 @@ const (
2200 2200
 	STATX_ATTR_APPEND                           = 0x20
2201 2201
 	STATX_ATTR_AUTOMOUNT                        = 0x1000
2202 2202
 	STATX_ATTR_COMPRESSED                       = 0x4
2203
-	STATX_ATTR_DAX                              = 0x2000
2203
+	STATX_ATTR_DAX                              = 0x200000
2204 2204
 	STATX_ATTR_ENCRYPTED                        = 0x800
2205 2205
 	STATX_ATTR_IMMUTABLE                        = 0x10
2206 2206
 	STATX_ATTR_MOUNT_ROOT                       = 0x2000
... ...
@@ -2319,6 +2456,8 @@ const (
2319 2319
 	TCP_TX_DELAY                                = 0x25
2320 2320
 	TCP_ULP                                     = 0x1f
2321 2321
 	TCP_USER_TIMEOUT                            = 0x12
2322
+	TCP_V4_FLOW                                 = 0x1
2323
+	TCP_V6_FLOW                                 = 0x5
2322 2324
 	TCP_WINDOW_CLAMP                            = 0xa
2323 2325
 	TCP_ZEROCOPY_RECEIVE                        = 0x23
2324 2326
 	TFD_TIMER_ABSTIME                           = 0x1
... ...
@@ -2384,6 +2523,7 @@ const (
2384 2384
 	TIPC_NODE_STATE                             = 0x0
2385 2385
 	TIPC_OK                                     = 0x0
2386 2386
 	TIPC_PUBLISHED                              = 0x1
2387
+	TIPC_REKEYING_NOW                           = 0xffffffff
2387 2388
 	TIPC_RESERVED_TYPES                         = 0x40
2388 2389
 	TIPC_RETDATA                                = 0x2
2389 2390
 	TIPC_SERVICE_ADDR                           = 0x2
... ...
@@ -2444,6 +2584,7 @@ const (
2444 2444
 	VM_SOCKETS_INVALID_VERSION                  = 0xffffffff
2445 2445
 	VQUIT                                       = 0x1
2446 2446
 	VT0                                         = 0x0
2447
+	WAKE_MAGIC                                  = 0x20
2447 2448
 	WALL                                        = 0x40000000
2448 2449
 	WCLONE                                      = 0x80000000
2449 2450
 	WCONTINUED                                  = 0x8
... ...
@@ -4,7 +4,7 @@
4 4
 // +build 386,linux
5 5
 
6 6
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m32 _const.go
7
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m32 /build/_const.go
8 8
 
9 9
 package unix
10 10
 
... ...
@@ -4,7 +4,7 @@
4 4
 // +build amd64,linux
5 5
 
6 6
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m64 _const.go
7
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m64 /build/_const.go
8 8
 
9 9
 package unix
10 10
 
... ...
@@ -4,7 +4,7 @@
4 4
 // +build arm,linux
5 5
 
6 6
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
7
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/_const.go
8 8
 
9 9
 package unix
10 10
 
... ...
@@ -4,7 +4,7 @@
4 4
 // +build arm64,linux
5 5
 
6 6
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char _const.go
7
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char /build/_const.go
8 8
 
9 9
 package unix
10 10
 
... ...
@@ -196,6 +196,8 @@ const (
196 196
 	PPPIOCXFERUNIT                   = 0x744e
197 197
 	PROT_BTI                         = 0x10
198 198
 	PR_SET_PTRACER_ANY               = 0xffffffffffffffff
199
+	PTRACE_PEEKMTETAGS               = 0x21
200
+	PTRACE_POKEMTETAGS               = 0x22
199 201
 	PTRACE_SYSEMU                    = 0x1f
200 202
 	PTRACE_SYSEMU_SINGLESTEP         = 0x20
201 203
 	RLIMIT_AS                        = 0x9
... ...
@@ -4,7 +4,7 @@
4 4
 // +build mips,linux
5 5
 
6 6
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
7
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/_const.go
8 8
 
9 9
 package unix
10 10
 
... ...
@@ -4,7 +4,7 @@
4 4
 // +build mips64,linux
5 5
 
6 6
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
7
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/_const.go
8 8
 
9 9
 package unix
10 10
 
... ...
@@ -4,7 +4,7 @@
4 4
 // +build mips64le,linux
5 5
 
6 6
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
7
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/_const.go
8 8
 
9 9
 package unix
10 10
 
... ...
@@ -4,7 +4,7 @@
4 4
 // +build mipsle,linux
5 5
 
6 6
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
7
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/_const.go
8 8
 
9 9
 package unix
10 10
 
... ...
@@ -4,7 +4,7 @@
4 4
 // +build ppc64,linux
5 5
 
6 6
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
7
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/_const.go
8 8
 
9 9
 package unix
10 10
 
... ...
@@ -4,7 +4,7 @@
4 4
 // +build ppc64le,linux
5 5
 
6 6
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
7
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/_const.go
8 8
 
9 9
 package unix
10 10
 
... ...
@@ -4,7 +4,7 @@
4 4
 // +build riscv64,linux
5 5
 
6 6
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
7
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/_const.go
8 8
 
9 9
 package unix
10 10
 
... ...
@@ -4,7 +4,7 @@
4 4
 // +build s390x,linux
5 5
 
6 6
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char _const.go
7
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char /build/_const.go
8 8
 
9 9
 package unix
10 10
 
... ...
@@ -4,7 +4,7 @@
4 4
 // +build sparc64,linux
5 5
 
6 6
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
7
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
7
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/_const.go
8 8
 
9 9
 package unix
10 10
 
... ...
@@ -2,7 +2,7 @@
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 // +build aix,ppc64
5
-// +build !gccgo
5
+// +build gc
6 6
 
7 7
 package unix
8 8
 
... ...
@@ -24,7 +24,6 @@ func closedir(dir uintptr) (err error) {
24 24
 
25 25
 func libc_closedir_trampoline()
26 26
 
27
-//go:linkname libc_closedir libc_closedir
28 27
 //go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
29 28
 
30 29
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -37,5 +36,4 @@ func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
37 37
 
38 38
 func libc_readdir_r_trampoline()
39 39
 
40
-//go:linkname libc_readdir_r libc_readdir_r
41 40
 //go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"
... ...
@@ -25,7 +25,6 @@ func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
25 25
 
26 26
 func libc_getgroups_trampoline()
27 27
 
28
-//go:linkname libc_getgroups libc_getgroups
29 28
 //go:cgo_import_dynamic libc_getgroups getgroups "/usr/lib/libSystem.B.dylib"
30 29
 
31 30
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -40,7 +39,6 @@ func setgroups(ngid int, gid *_Gid_t) (err error) {
40 40
 
41 41
 func libc_setgroups_trampoline()
42 42
 
43
-//go:linkname libc_setgroups libc_setgroups
44 43
 //go:cgo_import_dynamic libc_setgroups setgroups "/usr/lib/libSystem.B.dylib"
45 44
 
46 45
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -56,7 +54,6 @@ func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err
56 56
 
57 57
 func libc_wait4_trampoline()
58 58
 
59
-//go:linkname libc_wait4 libc_wait4
60 59
 //go:cgo_import_dynamic libc_wait4 wait4 "/usr/lib/libSystem.B.dylib"
61 60
 
62 61
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -72,7 +69,6 @@ func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
72 72
 
73 73
 func libc_accept_trampoline()
74 74
 
75
-//go:linkname libc_accept libc_accept
76 75
 //go:cgo_import_dynamic libc_accept accept "/usr/lib/libSystem.B.dylib"
77 76
 
78 77
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -87,7 +83,6 @@ func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
87 87
 
88 88
 func libc_bind_trampoline()
89 89
 
90
-//go:linkname libc_bind libc_bind
91 90
 //go:cgo_import_dynamic libc_bind bind "/usr/lib/libSystem.B.dylib"
92 91
 
93 92
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -102,7 +97,6 @@ func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
102 102
 
103 103
 func libc_connect_trampoline()
104 104
 
105
-//go:linkname libc_connect libc_connect
106 105
 //go:cgo_import_dynamic libc_connect connect "/usr/lib/libSystem.B.dylib"
107 106
 
108 107
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -118,7 +112,6 @@ func socket(domain int, typ int, proto int) (fd int, err error) {
118 118
 
119 119
 func libc_socket_trampoline()
120 120
 
121
-//go:linkname libc_socket libc_socket
122 121
 //go:cgo_import_dynamic libc_socket socket "/usr/lib/libSystem.B.dylib"
123 122
 
124 123
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -133,7 +126,6 @@ func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen
133 133
 
134 134
 func libc_getsockopt_trampoline()
135 135
 
136
-//go:linkname libc_getsockopt libc_getsockopt
137 136
 //go:cgo_import_dynamic libc_getsockopt getsockopt "/usr/lib/libSystem.B.dylib"
138 137
 
139 138
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -148,7 +140,6 @@ func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr)
148 148
 
149 149
 func libc_setsockopt_trampoline()
150 150
 
151
-//go:linkname libc_setsockopt libc_setsockopt
152 151
 //go:cgo_import_dynamic libc_setsockopt setsockopt "/usr/lib/libSystem.B.dylib"
153 152
 
154 153
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -163,7 +154,6 @@ func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
163 163
 
164 164
 func libc_getpeername_trampoline()
165 165
 
166
-//go:linkname libc_getpeername libc_getpeername
167 166
 //go:cgo_import_dynamic libc_getpeername getpeername "/usr/lib/libSystem.B.dylib"
168 167
 
169 168
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -178,7 +168,6 @@ func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
178 178
 
179 179
 func libc_getsockname_trampoline()
180 180
 
181
-//go:linkname libc_getsockname libc_getsockname
182 181
 //go:cgo_import_dynamic libc_getsockname getsockname "/usr/lib/libSystem.B.dylib"
183 182
 
184 183
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -193,7 +182,6 @@ func Shutdown(s int, how int) (err error) {
193 193
 
194 194
 func libc_shutdown_trampoline()
195 195
 
196
-//go:linkname libc_shutdown libc_shutdown
197 196
 //go:cgo_import_dynamic libc_shutdown shutdown "/usr/lib/libSystem.B.dylib"
198 197
 
199 198
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -208,7 +196,6 @@ func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
208 208
 
209 209
 func libc_socketpair_trampoline()
210 210
 
211
-//go:linkname libc_socketpair libc_socketpair
212 211
 //go:cgo_import_dynamic libc_socketpair socketpair "/usr/lib/libSystem.B.dylib"
213 212
 
214 213
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -230,7 +217,6 @@ func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Sockl
230 230
 
231 231
 func libc_recvfrom_trampoline()
232 232
 
233
-//go:linkname libc_recvfrom libc_recvfrom
234 233
 //go:cgo_import_dynamic libc_recvfrom recvfrom "/usr/lib/libSystem.B.dylib"
235 234
 
236 235
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -251,7 +237,6 @@ func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (
251 251
 
252 252
 func libc_sendto_trampoline()
253 253
 
254
-//go:linkname libc_sendto libc_sendto
255 254
 //go:cgo_import_dynamic libc_sendto sendto "/usr/lib/libSystem.B.dylib"
256 255
 
257 256
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -267,7 +252,6 @@ func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
267 267
 
268 268
 func libc_recvmsg_trampoline()
269 269
 
270
-//go:linkname libc_recvmsg libc_recvmsg
271 270
 //go:cgo_import_dynamic libc_recvmsg recvmsg "/usr/lib/libSystem.B.dylib"
272 271
 
273 272
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -283,7 +267,6 @@ func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
283 283
 
284 284
 func libc_sendmsg_trampoline()
285 285
 
286
-//go:linkname libc_sendmsg libc_sendmsg
287 286
 //go:cgo_import_dynamic libc_sendmsg sendmsg "/usr/lib/libSystem.B.dylib"
288 287
 
289 288
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -299,7 +282,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne
299 299
 
300 300
 func libc_kevent_trampoline()
301 301
 
302
-//go:linkname libc_kevent libc_kevent
303 302
 //go:cgo_import_dynamic libc_kevent kevent "/usr/lib/libSystem.B.dylib"
304 303
 
305 304
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -319,7 +301,6 @@ func utimes(path string, timeval *[2]Timeval) (err error) {
319 319
 
320 320
 func libc_utimes_trampoline()
321 321
 
322
-//go:linkname libc_utimes libc_utimes
323 322
 //go:cgo_import_dynamic libc_utimes utimes "/usr/lib/libSystem.B.dylib"
324 323
 
325 324
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -334,7 +315,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
334 334
 
335 335
 func libc_futimes_trampoline()
336 336
 
337
-//go:linkname libc_futimes libc_futimes
338 337
 //go:cgo_import_dynamic libc_futimes futimes "/usr/lib/libSystem.B.dylib"
339 338
 
340 339
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -350,7 +330,6 @@ func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
350 350
 
351 351
 func libc_poll_trampoline()
352 352
 
353
-//go:linkname libc_poll libc_poll
354 353
 //go:cgo_import_dynamic libc_poll poll "/usr/lib/libSystem.B.dylib"
355 354
 
356 355
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -371,7 +350,6 @@ func Madvise(b []byte, behav int) (err error) {
371 371
 
372 372
 func libc_madvise_trampoline()
373 373
 
374
-//go:linkname libc_madvise libc_madvise
375 374
 //go:cgo_import_dynamic libc_madvise madvise "/usr/lib/libSystem.B.dylib"
376 375
 
377 376
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -392,7 +370,6 @@ func Mlock(b []byte) (err error) {
392 392
 
393 393
 func libc_mlock_trampoline()
394 394
 
395
-//go:linkname libc_mlock libc_mlock
396 395
 //go:cgo_import_dynamic libc_mlock mlock "/usr/lib/libSystem.B.dylib"
397 396
 
398 397
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -407,7 +384,6 @@ func Mlockall(flags int) (err error) {
407 407
 
408 408
 func libc_mlockall_trampoline()
409 409
 
410
-//go:linkname libc_mlockall libc_mlockall
411 410
 //go:cgo_import_dynamic libc_mlockall mlockall "/usr/lib/libSystem.B.dylib"
412 411
 
413 412
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -428,7 +404,6 @@ func Mprotect(b []byte, prot int) (err error) {
428 428
 
429 429
 func libc_mprotect_trampoline()
430 430
 
431
-//go:linkname libc_mprotect libc_mprotect
432 431
 //go:cgo_import_dynamic libc_mprotect mprotect "/usr/lib/libSystem.B.dylib"
433 432
 
434 433
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -449,7 +424,6 @@ func Msync(b []byte, flags int) (err error) {
449 449
 
450 450
 func libc_msync_trampoline()
451 451
 
452
-//go:linkname libc_msync libc_msync
453 452
 //go:cgo_import_dynamic libc_msync msync "/usr/lib/libSystem.B.dylib"
454 453
 
455 454
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -470,7 +444,6 @@ func Munlock(b []byte) (err error) {
470 470
 
471 471
 func libc_munlock_trampoline()
472 472
 
473
-//go:linkname libc_munlock libc_munlock
474 473
 //go:cgo_import_dynamic libc_munlock munlock "/usr/lib/libSystem.B.dylib"
475 474
 
476 475
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -485,15 +458,12 @@ func Munlockall() (err error) {
485 485
 
486 486
 func libc_munlockall_trampoline()
487 487
 
488
-//go:linkname libc_munlockall libc_munlockall
489 488
 //go:cgo_import_dynamic libc_munlockall munlockall "/usr/lib/libSystem.B.dylib"
490 489
 
491 490
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
492 491
 
493
-func pipe() (r int, w int, err error) {
494
-	r0, r1, e1 := syscall_rawSyscall(funcPC(libc_pipe_trampoline), 0, 0, 0)
495
-	r = int(r0)
496
-	w = int(r1)
492
+func pipe(p *[2]int32) (err error) {
493
+	_, _, e1 := syscall_rawSyscall(funcPC(libc_pipe_trampoline), uintptr(unsafe.Pointer(p)), 0, 0)
497 494
 	if e1 != 0 {
498 495
 		err = errnoErr(e1)
499 496
 	}
... ...
@@ -502,7 +472,6 @@ func pipe() (r int, w int, err error) {
502 502
 
503 503
 func libc_pipe_trampoline()
504 504
 
505
-//go:linkname libc_pipe libc_pipe
506 505
 //go:cgo_import_dynamic libc_pipe pipe "/usr/lib/libSystem.B.dylib"
507 506
 
508 507
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -528,7 +497,6 @@ func getxattr(path string, attr string, dest *byte, size int, position uint32, o
528 528
 
529 529
 func libc_getxattr_trampoline()
530 530
 
531
-//go:linkname libc_getxattr libc_getxattr
532 531
 //go:cgo_import_dynamic libc_getxattr getxattr "/usr/lib/libSystem.B.dylib"
533 532
 
534 533
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -549,7 +517,6 @@ func fgetxattr(fd int, attr string, dest *byte, size int, position uint32, optio
549 549
 
550 550
 func libc_fgetxattr_trampoline()
551 551
 
552
-//go:linkname libc_fgetxattr libc_fgetxattr
553 552
 //go:cgo_import_dynamic libc_fgetxattr fgetxattr "/usr/lib/libSystem.B.dylib"
554 553
 
555 554
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -574,7 +541,6 @@ func setxattr(path string, attr string, data *byte, size int, position uint32, o
574 574
 
575 575
 func libc_setxattr_trampoline()
576 576
 
577
-//go:linkname libc_setxattr libc_setxattr
578 577
 //go:cgo_import_dynamic libc_setxattr setxattr "/usr/lib/libSystem.B.dylib"
579 578
 
580 579
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -594,7 +560,6 @@ func fsetxattr(fd int, attr string, data *byte, size int, position uint32, optio
594 594
 
595 595
 func libc_fsetxattr_trampoline()
596 596
 
597
-//go:linkname libc_fsetxattr libc_fsetxattr
598 597
 //go:cgo_import_dynamic libc_fsetxattr fsetxattr "/usr/lib/libSystem.B.dylib"
599 598
 
600 599
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -619,7 +584,6 @@ func removexattr(path string, attr string, options int) (err error) {
619 619
 
620 620
 func libc_removexattr_trampoline()
621 621
 
622
-//go:linkname libc_removexattr libc_removexattr
623 622
 //go:cgo_import_dynamic libc_removexattr removexattr "/usr/lib/libSystem.B.dylib"
624 623
 
625 624
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -639,7 +603,6 @@ func fremovexattr(fd int, attr string, options int) (err error) {
639 639
 
640 640
 func libc_fremovexattr_trampoline()
641 641
 
642
-//go:linkname libc_fremovexattr libc_fremovexattr
643 642
 //go:cgo_import_dynamic libc_fremovexattr fremovexattr "/usr/lib/libSystem.B.dylib"
644 643
 
645 644
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -660,7 +623,6 @@ func listxattr(path string, dest *byte, size int, options int) (sz int, err erro
660 660
 
661 661
 func libc_listxattr_trampoline()
662 662
 
663
-//go:linkname libc_listxattr libc_listxattr
664 663
 //go:cgo_import_dynamic libc_listxattr listxattr "/usr/lib/libSystem.B.dylib"
665 664
 
666 665
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -676,7 +638,6 @@ func flistxattr(fd int, dest *byte, size int, options int) (sz int, err error) {
676 676
 
677 677
 func libc_flistxattr_trampoline()
678 678
 
679
-//go:linkname libc_flistxattr libc_flistxattr
680 679
 //go:cgo_import_dynamic libc_flistxattr flistxattr "/usr/lib/libSystem.B.dylib"
681 680
 
682 681
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -691,7 +652,6 @@ func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintp
691 691
 
692 692
 func libc_setattrlist_trampoline()
693 693
 
694
-//go:linkname libc_setattrlist libc_setattrlist
695 694
 //go:cgo_import_dynamic libc_setattrlist setattrlist "/usr/lib/libSystem.B.dylib"
696 695
 
697 696
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -707,7 +667,6 @@ func fcntl(fd int, cmd int, arg int) (val int, err error) {
707 707
 
708 708
 func libc_fcntl_trampoline()
709 709
 
710
-//go:linkname libc_fcntl libc_fcntl
711 710
 //go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
712 711
 
713 712
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -722,7 +681,6 @@ func kill(pid int, signum int, posix int) (err error) {
722 722
 
723 723
 func libc_kill_trampoline()
724 724
 
725
-//go:linkname libc_kill libc_kill
726 725
 //go:cgo_import_dynamic libc_kill kill "/usr/lib/libSystem.B.dylib"
727 726
 
728 727
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -737,7 +695,6 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
737 737
 
738 738
 func libc_ioctl_trampoline()
739 739
 
740
-//go:linkname libc_ioctl libc_ioctl
741 740
 //go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib"
742 741
 
743 742
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -758,7 +715,6 @@ func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr)
758 758
 
759 759
 func libc_sysctl_trampoline()
760 760
 
761
-//go:linkname libc_sysctl libc_sysctl
762 761
 //go:cgo_import_dynamic libc_sysctl sysctl "/usr/lib/libSystem.B.dylib"
763 762
 
764 763
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -773,7 +729,6 @@ func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer
773 773
 
774 774
 func libc_sendfile_trampoline()
775 775
 
776
-//go:linkname libc_sendfile libc_sendfile
777 776
 //go:cgo_import_dynamic libc_sendfile sendfile "/usr/lib/libSystem.B.dylib"
778 777
 
779 778
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -793,7 +748,6 @@ func Access(path string, mode uint32) (err error) {
793 793
 
794 794
 func libc_access_trampoline()
795 795
 
796
-//go:linkname libc_access libc_access
797 796
 //go:cgo_import_dynamic libc_access access "/usr/lib/libSystem.B.dylib"
798 797
 
799 798
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -808,7 +762,6 @@ func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
808 808
 
809 809
 func libc_adjtime_trampoline()
810 810
 
811
-//go:linkname libc_adjtime libc_adjtime
812 811
 //go:cgo_import_dynamic libc_adjtime adjtime "/usr/lib/libSystem.B.dylib"
813 812
 
814 813
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -828,7 +781,6 @@ func Chdir(path string) (err error) {
828 828
 
829 829
 func libc_chdir_trampoline()
830 830
 
831
-//go:linkname libc_chdir libc_chdir
832 831
 //go:cgo_import_dynamic libc_chdir chdir "/usr/lib/libSystem.B.dylib"
833 832
 
834 833
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -848,7 +800,6 @@ func Chflags(path string, flags int) (err error) {
848 848
 
849 849
 func libc_chflags_trampoline()
850 850
 
851
-//go:linkname libc_chflags libc_chflags
852 851
 //go:cgo_import_dynamic libc_chflags chflags "/usr/lib/libSystem.B.dylib"
853 852
 
854 853
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -868,7 +819,6 @@ func Chmod(path string, mode uint32) (err error) {
868 868
 
869 869
 func libc_chmod_trampoline()
870 870
 
871
-//go:linkname libc_chmod libc_chmod
872 871
 //go:cgo_import_dynamic libc_chmod chmod "/usr/lib/libSystem.B.dylib"
873 872
 
874 873
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -888,7 +838,6 @@ func Chown(path string, uid int, gid int) (err error) {
888 888
 
889 889
 func libc_chown_trampoline()
890 890
 
891
-//go:linkname libc_chown libc_chown
892 891
 //go:cgo_import_dynamic libc_chown chown "/usr/lib/libSystem.B.dylib"
893 892
 
894 893
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -908,7 +857,6 @@ func Chroot(path string) (err error) {
908 908
 
909 909
 func libc_chroot_trampoline()
910 910
 
911
-//go:linkname libc_chroot libc_chroot
912 911
 //go:cgo_import_dynamic libc_chroot chroot "/usr/lib/libSystem.B.dylib"
913 912
 
914 913
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -923,7 +871,6 @@ func ClockGettime(clockid int32, time *Timespec) (err error) {
923 923
 
924 924
 func libc_clock_gettime_trampoline()
925 925
 
926
-//go:linkname libc_clock_gettime libc_clock_gettime
927 926
 //go:cgo_import_dynamic libc_clock_gettime clock_gettime "/usr/lib/libSystem.B.dylib"
928 927
 
929 928
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -938,7 +885,6 @@ func Close(fd int) (err error) {
938 938
 
939 939
 func libc_close_trampoline()
940 940
 
941
-//go:linkname libc_close libc_close
942 941
 //go:cgo_import_dynamic libc_close close "/usr/lib/libSystem.B.dylib"
943 942
 
944 943
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -963,7 +909,6 @@ func Clonefile(src string, dst string, flags int) (err error) {
963 963
 
964 964
 func libc_clonefile_trampoline()
965 965
 
966
-//go:linkname libc_clonefile libc_clonefile
967 966
 //go:cgo_import_dynamic libc_clonefile clonefile "/usr/lib/libSystem.B.dylib"
968 967
 
969 968
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -988,7 +933,6 @@ func Clonefileat(srcDirfd int, src string, dstDirfd int, dst string, flags int)
988 988
 
989 989
 func libc_clonefileat_trampoline()
990 990
 
991
-//go:linkname libc_clonefileat libc_clonefileat
992 991
 //go:cgo_import_dynamic libc_clonefileat clonefileat "/usr/lib/libSystem.B.dylib"
993 992
 
994 993
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1004,7 +948,6 @@ func Dup(fd int) (nfd int, err error) {
1004 1004
 
1005 1005
 func libc_dup_trampoline()
1006 1006
 
1007
-//go:linkname libc_dup libc_dup
1008 1007
 //go:cgo_import_dynamic libc_dup dup "/usr/lib/libSystem.B.dylib"
1009 1008
 
1010 1009
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1019,7 +962,6 @@ func Dup2(from int, to int) (err error) {
1019 1019
 
1020 1020
 func libc_dup2_trampoline()
1021 1021
 
1022
-//go:linkname libc_dup2 libc_dup2
1023 1022
 //go:cgo_import_dynamic libc_dup2 dup2 "/usr/lib/libSystem.B.dylib"
1024 1023
 
1025 1024
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1044,7 +986,6 @@ func Exchangedata(path1 string, path2 string, options int) (err error) {
1044 1044
 
1045 1045
 func libc_exchangedata_trampoline()
1046 1046
 
1047
-//go:linkname libc_exchangedata libc_exchangedata
1048 1047
 //go:cgo_import_dynamic libc_exchangedata exchangedata "/usr/lib/libSystem.B.dylib"
1049 1048
 
1050 1049
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1056,7 +997,6 @@ func Exit(code int) {
1056 1056
 
1057 1057
 func libc_exit_trampoline()
1058 1058
 
1059
-//go:linkname libc_exit libc_exit
1060 1059
 //go:cgo_import_dynamic libc_exit exit "/usr/lib/libSystem.B.dylib"
1061 1060
 
1062 1061
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1076,7 +1016,6 @@ func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
1076 1076
 
1077 1077
 func libc_faccessat_trampoline()
1078 1078
 
1079
-//go:linkname libc_faccessat libc_faccessat
1080 1079
 //go:cgo_import_dynamic libc_faccessat faccessat "/usr/lib/libSystem.B.dylib"
1081 1080
 
1082 1081
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1091,7 +1030,6 @@ func Fchdir(fd int) (err error) {
1091 1091
 
1092 1092
 func libc_fchdir_trampoline()
1093 1093
 
1094
-//go:linkname libc_fchdir libc_fchdir
1095 1094
 //go:cgo_import_dynamic libc_fchdir fchdir "/usr/lib/libSystem.B.dylib"
1096 1095
 
1097 1096
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1106,7 +1044,6 @@ func Fchflags(fd int, flags int) (err error) {
1106 1106
 
1107 1107
 func libc_fchflags_trampoline()
1108 1108
 
1109
-//go:linkname libc_fchflags libc_fchflags
1110 1109
 //go:cgo_import_dynamic libc_fchflags fchflags "/usr/lib/libSystem.B.dylib"
1111 1110
 
1112 1111
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1121,7 +1058,6 @@ func Fchmod(fd int, mode uint32) (err error) {
1121 1121
 
1122 1122
 func libc_fchmod_trampoline()
1123 1123
 
1124
-//go:linkname libc_fchmod libc_fchmod
1125 1124
 //go:cgo_import_dynamic libc_fchmod fchmod "/usr/lib/libSystem.B.dylib"
1126 1125
 
1127 1126
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1141,7 +1077,6 @@ func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
1141 1141
 
1142 1142
 func libc_fchmodat_trampoline()
1143 1143
 
1144
-//go:linkname libc_fchmodat libc_fchmodat
1145 1144
 //go:cgo_import_dynamic libc_fchmodat fchmodat "/usr/lib/libSystem.B.dylib"
1146 1145
 
1147 1146
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1156,7 +1091,6 @@ func Fchown(fd int, uid int, gid int) (err error) {
1156 1156
 
1157 1157
 func libc_fchown_trampoline()
1158 1158
 
1159
-//go:linkname libc_fchown libc_fchown
1160 1159
 //go:cgo_import_dynamic libc_fchown fchown "/usr/lib/libSystem.B.dylib"
1161 1160
 
1162 1161
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1176,7 +1110,6 @@ func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
1176 1176
 
1177 1177
 func libc_fchownat_trampoline()
1178 1178
 
1179
-//go:linkname libc_fchownat libc_fchownat
1180 1179
 //go:cgo_import_dynamic libc_fchownat fchownat "/usr/lib/libSystem.B.dylib"
1181 1180
 
1182 1181
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1196,7 +1129,6 @@ func Fclonefileat(srcDirfd int, dstDirfd int, dst string, flags int) (err error)
1196 1196
 
1197 1197
 func libc_fclonefileat_trampoline()
1198 1198
 
1199
-//go:linkname libc_fclonefileat libc_fclonefileat
1200 1199
 //go:cgo_import_dynamic libc_fclonefileat fclonefileat "/usr/lib/libSystem.B.dylib"
1201 1200
 
1202 1201
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1211,7 +1143,6 @@ func Flock(fd int, how int) (err error) {
1211 1211
 
1212 1212
 func libc_flock_trampoline()
1213 1213
 
1214
-//go:linkname libc_flock libc_flock
1215 1214
 //go:cgo_import_dynamic libc_flock flock "/usr/lib/libSystem.B.dylib"
1216 1215
 
1217 1216
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1227,7 +1158,6 @@ func Fpathconf(fd int, name int) (val int, err error) {
1227 1227
 
1228 1228
 func libc_fpathconf_trampoline()
1229 1229
 
1230
-//go:linkname libc_fpathconf libc_fpathconf
1231 1230
 //go:cgo_import_dynamic libc_fpathconf fpathconf "/usr/lib/libSystem.B.dylib"
1232 1231
 
1233 1232
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1242,7 +1172,6 @@ func Fsync(fd int) (err error) {
1242 1242
 
1243 1243
 func libc_fsync_trampoline()
1244 1244
 
1245
-//go:linkname libc_fsync libc_fsync
1246 1245
 //go:cgo_import_dynamic libc_fsync fsync "/usr/lib/libSystem.B.dylib"
1247 1246
 
1248 1247
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1257,7 +1186,6 @@ func Ftruncate(fd int, length int64) (err error) {
1257 1257
 
1258 1258
 func libc_ftruncate_trampoline()
1259 1259
 
1260
-//go:linkname libc_ftruncate libc_ftruncate
1261 1260
 //go:cgo_import_dynamic libc_ftruncate ftruncate "/usr/lib/libSystem.B.dylib"
1262 1261
 
1263 1262
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1279,7 +1207,6 @@ func Getcwd(buf []byte) (n int, err error) {
1279 1279
 
1280 1280
 func libc_getcwd_trampoline()
1281 1281
 
1282
-//go:linkname libc_getcwd libc_getcwd
1283 1282
 //go:cgo_import_dynamic libc_getcwd getcwd "/usr/lib/libSystem.B.dylib"
1284 1283
 
1285 1284
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1292,7 +1219,6 @@ func Getdtablesize() (size int) {
1292 1292
 
1293 1293
 func libc_getdtablesize_trampoline()
1294 1294
 
1295
-//go:linkname libc_getdtablesize libc_getdtablesize
1296 1295
 //go:cgo_import_dynamic libc_getdtablesize getdtablesize "/usr/lib/libSystem.B.dylib"
1297 1296
 
1298 1297
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1305,7 +1231,6 @@ func Getegid() (egid int) {
1305 1305
 
1306 1306
 func libc_getegid_trampoline()
1307 1307
 
1308
-//go:linkname libc_getegid libc_getegid
1309 1308
 //go:cgo_import_dynamic libc_getegid getegid "/usr/lib/libSystem.B.dylib"
1310 1309
 
1311 1310
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1318,7 +1243,6 @@ func Geteuid() (uid int) {
1318 1318
 
1319 1319
 func libc_geteuid_trampoline()
1320 1320
 
1321
-//go:linkname libc_geteuid libc_geteuid
1322 1321
 //go:cgo_import_dynamic libc_geteuid geteuid "/usr/lib/libSystem.B.dylib"
1323 1322
 
1324 1323
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1331,7 +1255,6 @@ func Getgid() (gid int) {
1331 1331
 
1332 1332
 func libc_getgid_trampoline()
1333 1333
 
1334
-//go:linkname libc_getgid libc_getgid
1335 1334
 //go:cgo_import_dynamic libc_getgid getgid "/usr/lib/libSystem.B.dylib"
1336 1335
 
1337 1336
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1347,7 +1270,6 @@ func Getpgid(pid int) (pgid int, err error) {
1347 1347
 
1348 1348
 func libc_getpgid_trampoline()
1349 1349
 
1350
-//go:linkname libc_getpgid libc_getpgid
1351 1350
 //go:cgo_import_dynamic libc_getpgid getpgid "/usr/lib/libSystem.B.dylib"
1352 1351
 
1353 1352
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1360,7 +1282,6 @@ func Getpgrp() (pgrp int) {
1360 1360
 
1361 1361
 func libc_getpgrp_trampoline()
1362 1362
 
1363
-//go:linkname libc_getpgrp libc_getpgrp
1364 1363
 //go:cgo_import_dynamic libc_getpgrp getpgrp "/usr/lib/libSystem.B.dylib"
1365 1364
 
1366 1365
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1373,7 +1294,6 @@ func Getpid() (pid int) {
1373 1373
 
1374 1374
 func libc_getpid_trampoline()
1375 1375
 
1376
-//go:linkname libc_getpid libc_getpid
1377 1376
 //go:cgo_import_dynamic libc_getpid getpid "/usr/lib/libSystem.B.dylib"
1378 1377
 
1379 1378
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1386,7 +1306,6 @@ func Getppid() (ppid int) {
1386 1386
 
1387 1387
 func libc_getppid_trampoline()
1388 1388
 
1389
-//go:linkname libc_getppid libc_getppid
1390 1389
 //go:cgo_import_dynamic libc_getppid getppid "/usr/lib/libSystem.B.dylib"
1391 1390
 
1392 1391
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1402,7 +1321,6 @@ func Getpriority(which int, who int) (prio int, err error) {
1402 1402
 
1403 1403
 func libc_getpriority_trampoline()
1404 1404
 
1405
-//go:linkname libc_getpriority libc_getpriority
1406 1405
 //go:cgo_import_dynamic libc_getpriority getpriority "/usr/lib/libSystem.B.dylib"
1407 1406
 
1408 1407
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1417,7 +1335,6 @@ func Getrlimit(which int, lim *Rlimit) (err error) {
1417 1417
 
1418 1418
 func libc_getrlimit_trampoline()
1419 1419
 
1420
-//go:linkname libc_getrlimit libc_getrlimit
1421 1420
 //go:cgo_import_dynamic libc_getrlimit getrlimit "/usr/lib/libSystem.B.dylib"
1422 1421
 
1423 1422
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1432,7 +1349,6 @@ func Getrusage(who int, rusage *Rusage) (err error) {
1432 1432
 
1433 1433
 func libc_getrusage_trampoline()
1434 1434
 
1435
-//go:linkname libc_getrusage libc_getrusage
1436 1435
 //go:cgo_import_dynamic libc_getrusage getrusage "/usr/lib/libSystem.B.dylib"
1437 1436
 
1438 1437
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1448,7 +1364,6 @@ func Getsid(pid int) (sid int, err error) {
1448 1448
 
1449 1449
 func libc_getsid_trampoline()
1450 1450
 
1451
-//go:linkname libc_getsid libc_getsid
1452 1451
 //go:cgo_import_dynamic libc_getsid getsid "/usr/lib/libSystem.B.dylib"
1453 1452
 
1454 1453
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1463,7 +1378,6 @@ func Gettimeofday(tp *Timeval) (err error) {
1463 1463
 
1464 1464
 func libc_gettimeofday_trampoline()
1465 1465
 
1466
-//go:linkname libc_gettimeofday libc_gettimeofday
1467 1466
 //go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib"
1468 1467
 
1469 1468
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1476,7 +1390,6 @@ func Getuid() (uid int) {
1476 1476
 
1477 1477
 func libc_getuid_trampoline()
1478 1478
 
1479
-//go:linkname libc_getuid libc_getuid
1480 1479
 //go:cgo_import_dynamic libc_getuid getuid "/usr/lib/libSystem.B.dylib"
1481 1480
 
1482 1481
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1489,7 +1402,6 @@ func Issetugid() (tainted bool) {
1489 1489
 
1490 1490
 func libc_issetugid_trampoline()
1491 1491
 
1492
-//go:linkname libc_issetugid libc_issetugid
1493 1492
 //go:cgo_import_dynamic libc_issetugid issetugid "/usr/lib/libSystem.B.dylib"
1494 1493
 
1495 1494
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1505,7 +1417,6 @@ func Kqueue() (fd int, err error) {
1505 1505
 
1506 1506
 func libc_kqueue_trampoline()
1507 1507
 
1508
-//go:linkname libc_kqueue libc_kqueue
1509 1508
 //go:cgo_import_dynamic libc_kqueue kqueue "/usr/lib/libSystem.B.dylib"
1510 1509
 
1511 1510
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1525,7 +1436,6 @@ func Lchown(path string, uid int, gid int) (err error) {
1525 1525
 
1526 1526
 func libc_lchown_trampoline()
1527 1527
 
1528
-//go:linkname libc_lchown libc_lchown
1529 1528
 //go:cgo_import_dynamic libc_lchown lchown "/usr/lib/libSystem.B.dylib"
1530 1529
 
1531 1530
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1550,7 +1460,6 @@ func Link(path string, link string) (err error) {
1550 1550
 
1551 1551
 func libc_link_trampoline()
1552 1552
 
1553
-//go:linkname libc_link libc_link
1554 1553
 //go:cgo_import_dynamic libc_link link "/usr/lib/libSystem.B.dylib"
1555 1554
 
1556 1555
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1575,7 +1484,6 @@ func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err er
1575 1575
 
1576 1576
 func libc_linkat_trampoline()
1577 1577
 
1578
-//go:linkname libc_linkat libc_linkat
1579 1578
 //go:cgo_import_dynamic libc_linkat linkat "/usr/lib/libSystem.B.dylib"
1580 1579
 
1581 1580
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1590,7 +1498,6 @@ func Listen(s int, backlog int) (err error) {
1590 1590
 
1591 1591
 func libc_listen_trampoline()
1592 1592
 
1593
-//go:linkname libc_listen libc_listen
1594 1593
 //go:cgo_import_dynamic libc_listen listen "/usr/lib/libSystem.B.dylib"
1595 1594
 
1596 1595
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1610,7 +1517,6 @@ func Mkdir(path string, mode uint32) (err error) {
1610 1610
 
1611 1611
 func libc_mkdir_trampoline()
1612 1612
 
1613
-//go:linkname libc_mkdir libc_mkdir
1614 1613
 //go:cgo_import_dynamic libc_mkdir mkdir "/usr/lib/libSystem.B.dylib"
1615 1614
 
1616 1615
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1630,7 +1536,6 @@ func Mkdirat(dirfd int, path string, mode uint32) (err error) {
1630 1630
 
1631 1631
 func libc_mkdirat_trampoline()
1632 1632
 
1633
-//go:linkname libc_mkdirat libc_mkdirat
1634 1633
 //go:cgo_import_dynamic libc_mkdirat mkdirat "/usr/lib/libSystem.B.dylib"
1635 1634
 
1636 1635
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1650,7 +1555,6 @@ func Mkfifo(path string, mode uint32) (err error) {
1650 1650
 
1651 1651
 func libc_mkfifo_trampoline()
1652 1652
 
1653
-//go:linkname libc_mkfifo libc_mkfifo
1654 1653
 //go:cgo_import_dynamic libc_mkfifo mkfifo "/usr/lib/libSystem.B.dylib"
1655 1654
 
1656 1655
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1670,7 +1574,6 @@ func Mknod(path string, mode uint32, dev int) (err error) {
1670 1670
 
1671 1671
 func libc_mknod_trampoline()
1672 1672
 
1673
-//go:linkname libc_mknod libc_mknod
1674 1673
 //go:cgo_import_dynamic libc_mknod mknod "/usr/lib/libSystem.B.dylib"
1675 1674
 
1676 1675
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1691,7 +1594,6 @@ func Open(path string, mode int, perm uint32) (fd int, err error) {
1691 1691
 
1692 1692
 func libc_open_trampoline()
1693 1693
 
1694
-//go:linkname libc_open libc_open
1695 1694
 //go:cgo_import_dynamic libc_open open "/usr/lib/libSystem.B.dylib"
1696 1695
 
1697 1696
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1712,7 +1614,6 @@ func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) {
1712 1712
 
1713 1713
 func libc_openat_trampoline()
1714 1714
 
1715
-//go:linkname libc_openat libc_openat
1716 1715
 //go:cgo_import_dynamic libc_openat openat "/usr/lib/libSystem.B.dylib"
1717 1716
 
1718 1717
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1733,7 +1634,6 @@ func Pathconf(path string, name int) (val int, err error) {
1733 1733
 
1734 1734
 func libc_pathconf_trampoline()
1735 1735
 
1736
-//go:linkname libc_pathconf libc_pathconf
1737 1736
 //go:cgo_import_dynamic libc_pathconf pathconf "/usr/lib/libSystem.B.dylib"
1738 1737
 
1739 1738
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1755,7 +1655,6 @@ func Pread(fd int, p []byte, offset int64) (n int, err error) {
1755 1755
 
1756 1756
 func libc_pread_trampoline()
1757 1757
 
1758
-//go:linkname libc_pread libc_pread
1759 1758
 //go:cgo_import_dynamic libc_pread pread "/usr/lib/libSystem.B.dylib"
1760 1759
 
1761 1760
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1777,7 +1676,6 @@ func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
1777 1777
 
1778 1778
 func libc_pwrite_trampoline()
1779 1779
 
1780
-//go:linkname libc_pwrite libc_pwrite
1781 1780
 //go:cgo_import_dynamic libc_pwrite pwrite "/usr/lib/libSystem.B.dylib"
1782 1781
 
1783 1782
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1799,7 +1697,6 @@ func read(fd int, p []byte) (n int, err error) {
1799 1799
 
1800 1800
 func libc_read_trampoline()
1801 1801
 
1802
-//go:linkname libc_read libc_read
1803 1802
 //go:cgo_import_dynamic libc_read read "/usr/lib/libSystem.B.dylib"
1804 1803
 
1805 1804
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1826,7 +1723,6 @@ func Readlink(path string, buf []byte) (n int, err error) {
1826 1826
 
1827 1827
 func libc_readlink_trampoline()
1828 1828
 
1829
-//go:linkname libc_readlink libc_readlink
1830 1829
 //go:cgo_import_dynamic libc_readlink readlink "/usr/lib/libSystem.B.dylib"
1831 1830
 
1832 1831
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1853,7 +1749,6 @@ func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
1853 1853
 
1854 1854
 func libc_readlinkat_trampoline()
1855 1855
 
1856
-//go:linkname libc_readlinkat libc_readlinkat
1857 1856
 //go:cgo_import_dynamic libc_readlinkat readlinkat "/usr/lib/libSystem.B.dylib"
1858 1857
 
1859 1858
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1878,7 +1773,6 @@ func Rename(from string, to string) (err error) {
1878 1878
 
1879 1879
 func libc_rename_trampoline()
1880 1880
 
1881
-//go:linkname libc_rename libc_rename
1882 1881
 //go:cgo_import_dynamic libc_rename rename "/usr/lib/libSystem.B.dylib"
1883 1882
 
1884 1883
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1903,7 +1797,6 @@ func Renameat(fromfd int, from string, tofd int, to string) (err error) {
1903 1903
 
1904 1904
 func libc_renameat_trampoline()
1905 1905
 
1906
-//go:linkname libc_renameat libc_renameat
1907 1906
 //go:cgo_import_dynamic libc_renameat renameat "/usr/lib/libSystem.B.dylib"
1908 1907
 
1909 1908
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1923,7 +1816,6 @@ func Revoke(path string) (err error) {
1923 1923
 
1924 1924
 func libc_revoke_trampoline()
1925 1925
 
1926
-//go:linkname libc_revoke libc_revoke
1927 1926
 //go:cgo_import_dynamic libc_revoke revoke "/usr/lib/libSystem.B.dylib"
1928 1927
 
1929 1928
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1943,7 +1835,6 @@ func Rmdir(path string) (err error) {
1943 1943
 
1944 1944
 func libc_rmdir_trampoline()
1945 1945
 
1946
-//go:linkname libc_rmdir libc_rmdir
1947 1946
 //go:cgo_import_dynamic libc_rmdir rmdir "/usr/lib/libSystem.B.dylib"
1948 1947
 
1949 1948
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1959,7 +1850,6 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1959 1959
 
1960 1960
 func libc_lseek_trampoline()
1961 1961
 
1962
-//go:linkname libc_lseek libc_lseek
1963 1962
 //go:cgo_import_dynamic libc_lseek lseek "/usr/lib/libSystem.B.dylib"
1964 1963
 
1965 1964
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1975,7 +1865,6 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
1975 1975
 
1976 1976
 func libc_select_trampoline()
1977 1977
 
1978
-//go:linkname libc_select libc_select
1979 1978
 //go:cgo_import_dynamic libc_select select "/usr/lib/libSystem.B.dylib"
1980 1979
 
1981 1980
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1990,7 +1879,6 @@ func Setegid(egid int) (err error) {
1990 1990
 
1991 1991
 func libc_setegid_trampoline()
1992 1992
 
1993
-//go:linkname libc_setegid libc_setegid
1994 1993
 //go:cgo_import_dynamic libc_setegid setegid "/usr/lib/libSystem.B.dylib"
1995 1994
 
1996 1995
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2005,7 +1893,6 @@ func Seteuid(euid int) (err error) {
2005 2005
 
2006 2006
 func libc_seteuid_trampoline()
2007 2007
 
2008
-//go:linkname libc_seteuid libc_seteuid
2009 2008
 //go:cgo_import_dynamic libc_seteuid seteuid "/usr/lib/libSystem.B.dylib"
2010 2009
 
2011 2010
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2020,7 +1907,6 @@ func Setgid(gid int) (err error) {
2020 2020
 
2021 2021
 func libc_setgid_trampoline()
2022 2022
 
2023
-//go:linkname libc_setgid libc_setgid
2024 2023
 //go:cgo_import_dynamic libc_setgid setgid "/usr/lib/libSystem.B.dylib"
2025 2024
 
2026 2025
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2040,7 +1926,6 @@ func Setlogin(name string) (err error) {
2040 2040
 
2041 2041
 func libc_setlogin_trampoline()
2042 2042
 
2043
-//go:linkname libc_setlogin libc_setlogin
2044 2043
 //go:cgo_import_dynamic libc_setlogin setlogin "/usr/lib/libSystem.B.dylib"
2045 2044
 
2046 2045
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2055,7 +1940,6 @@ func Setpgid(pid int, pgid int) (err error) {
2055 2055
 
2056 2056
 func libc_setpgid_trampoline()
2057 2057
 
2058
-//go:linkname libc_setpgid libc_setpgid
2059 2058
 //go:cgo_import_dynamic libc_setpgid setpgid "/usr/lib/libSystem.B.dylib"
2060 2059
 
2061 2060
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2070,7 +1954,6 @@ func Setpriority(which int, who int, prio int) (err error) {
2070 2070
 
2071 2071
 func libc_setpriority_trampoline()
2072 2072
 
2073
-//go:linkname libc_setpriority libc_setpriority
2074 2073
 //go:cgo_import_dynamic libc_setpriority setpriority "/usr/lib/libSystem.B.dylib"
2075 2074
 
2076 2075
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2085,7 +1968,6 @@ func Setprivexec(flag int) (err error) {
2085 2085
 
2086 2086
 func libc_setprivexec_trampoline()
2087 2087
 
2088
-//go:linkname libc_setprivexec libc_setprivexec
2089 2088
 //go:cgo_import_dynamic libc_setprivexec setprivexec "/usr/lib/libSystem.B.dylib"
2090 2089
 
2091 2090
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2100,7 +1982,6 @@ func Setregid(rgid int, egid int) (err error) {
2100 2100
 
2101 2101
 func libc_setregid_trampoline()
2102 2102
 
2103
-//go:linkname libc_setregid libc_setregid
2104 2103
 //go:cgo_import_dynamic libc_setregid setregid "/usr/lib/libSystem.B.dylib"
2105 2104
 
2106 2105
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2115,7 +1996,6 @@ func Setreuid(ruid int, euid int) (err error) {
2115 2115
 
2116 2116
 func libc_setreuid_trampoline()
2117 2117
 
2118
-//go:linkname libc_setreuid libc_setreuid
2119 2118
 //go:cgo_import_dynamic libc_setreuid setreuid "/usr/lib/libSystem.B.dylib"
2120 2119
 
2121 2120
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2130,7 +2010,6 @@ func Setrlimit(which int, lim *Rlimit) (err error) {
2130 2130
 
2131 2131
 func libc_setrlimit_trampoline()
2132 2132
 
2133
-//go:linkname libc_setrlimit libc_setrlimit
2134 2133
 //go:cgo_import_dynamic libc_setrlimit setrlimit "/usr/lib/libSystem.B.dylib"
2135 2134
 
2136 2135
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2146,7 +2025,6 @@ func Setsid() (pid int, err error) {
2146 2146
 
2147 2147
 func libc_setsid_trampoline()
2148 2148
 
2149
-//go:linkname libc_setsid libc_setsid
2150 2149
 //go:cgo_import_dynamic libc_setsid setsid "/usr/lib/libSystem.B.dylib"
2151 2150
 
2152 2151
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2161,7 +2039,6 @@ func Settimeofday(tp *Timeval) (err error) {
2161 2161
 
2162 2162
 func libc_settimeofday_trampoline()
2163 2163
 
2164
-//go:linkname libc_settimeofday libc_settimeofday
2165 2164
 //go:cgo_import_dynamic libc_settimeofday settimeofday "/usr/lib/libSystem.B.dylib"
2166 2165
 
2167 2166
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2176,7 +2053,6 @@ func Setuid(uid int) (err error) {
2176 2176
 
2177 2177
 func libc_setuid_trampoline()
2178 2178
 
2179
-//go:linkname libc_setuid libc_setuid
2180 2179
 //go:cgo_import_dynamic libc_setuid setuid "/usr/lib/libSystem.B.dylib"
2181 2180
 
2182 2181
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2201,7 +2077,6 @@ func Symlink(path string, link string) (err error) {
2201 2201
 
2202 2202
 func libc_symlink_trampoline()
2203 2203
 
2204
-//go:linkname libc_symlink libc_symlink
2205 2204
 //go:cgo_import_dynamic libc_symlink symlink "/usr/lib/libSystem.B.dylib"
2206 2205
 
2207 2206
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2226,7 +2101,6 @@ func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
2226 2226
 
2227 2227
 func libc_symlinkat_trampoline()
2228 2228
 
2229
-//go:linkname libc_symlinkat libc_symlinkat
2230 2229
 //go:cgo_import_dynamic libc_symlinkat symlinkat "/usr/lib/libSystem.B.dylib"
2231 2230
 
2232 2231
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2241,7 +2115,6 @@ func Sync() (err error) {
2241 2241
 
2242 2242
 func libc_sync_trampoline()
2243 2243
 
2244
-//go:linkname libc_sync libc_sync
2245 2244
 //go:cgo_import_dynamic libc_sync sync "/usr/lib/libSystem.B.dylib"
2246 2245
 
2247 2246
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2261,7 +2134,6 @@ func Truncate(path string, length int64) (err error) {
2261 2261
 
2262 2262
 func libc_truncate_trampoline()
2263 2263
 
2264
-//go:linkname libc_truncate libc_truncate
2265 2264
 //go:cgo_import_dynamic libc_truncate truncate "/usr/lib/libSystem.B.dylib"
2266 2265
 
2267 2266
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2274,7 +2146,6 @@ func Umask(newmask int) (oldmask int) {
2274 2274
 
2275 2275
 func libc_umask_trampoline()
2276 2276
 
2277
-//go:linkname libc_umask libc_umask
2278 2277
 //go:cgo_import_dynamic libc_umask umask "/usr/lib/libSystem.B.dylib"
2279 2278
 
2280 2279
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2294,7 +2165,6 @@ func Undelete(path string) (err error) {
2294 2294
 
2295 2295
 func libc_undelete_trampoline()
2296 2296
 
2297
-//go:linkname libc_undelete libc_undelete
2298 2297
 //go:cgo_import_dynamic libc_undelete undelete "/usr/lib/libSystem.B.dylib"
2299 2298
 
2300 2299
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2314,7 +2184,6 @@ func Unlink(path string) (err error) {
2314 2314
 
2315 2315
 func libc_unlink_trampoline()
2316 2316
 
2317
-//go:linkname libc_unlink libc_unlink
2318 2317
 //go:cgo_import_dynamic libc_unlink unlink "/usr/lib/libSystem.B.dylib"
2319 2318
 
2320 2319
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2334,7 +2203,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
2334 2334
 
2335 2335
 func libc_unlinkat_trampoline()
2336 2336
 
2337
-//go:linkname libc_unlinkat libc_unlinkat
2338 2337
 //go:cgo_import_dynamic libc_unlinkat unlinkat "/usr/lib/libSystem.B.dylib"
2339 2338
 
2340 2339
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2354,7 +2222,6 @@ func Unmount(path string, flags int) (err error) {
2354 2354
 
2355 2355
 func libc_unmount_trampoline()
2356 2356
 
2357
-//go:linkname libc_unmount libc_unmount
2358 2357
 //go:cgo_import_dynamic libc_unmount unmount "/usr/lib/libSystem.B.dylib"
2359 2358
 
2360 2359
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2376,7 +2243,6 @@ func write(fd int, p []byte) (n int, err error) {
2376 2376
 
2377 2377
 func libc_write_trampoline()
2378 2378
 
2379
-//go:linkname libc_write libc_write
2380 2379
 //go:cgo_import_dynamic libc_write write "/usr/lib/libSystem.B.dylib"
2381 2380
 
2382 2381
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2392,7 +2258,6 @@ func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (
2392 2392
 
2393 2393
 func libc_mmap_trampoline()
2394 2394
 
2395
-//go:linkname libc_mmap libc_mmap
2396 2395
 //go:cgo_import_dynamic libc_mmap mmap "/usr/lib/libSystem.B.dylib"
2397 2396
 
2398 2397
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2407,7 +2272,6 @@ func munmap(addr uintptr, length uintptr) (err error) {
2407 2407
 
2408 2408
 func libc_munmap_trampoline()
2409 2409
 
2410
-//go:linkname libc_munmap libc_munmap
2411 2410
 //go:cgo_import_dynamic libc_munmap munmap "/usr/lib/libSystem.B.dylib"
2412 2411
 
2413 2412
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2444,7 +2308,6 @@ func Fstat(fd int, stat *Stat_t) (err error) {
2444 2444
 
2445 2445
 func libc_fstat64_trampoline()
2446 2446
 
2447
-//go:linkname libc_fstat64 libc_fstat64
2448 2447
 //go:cgo_import_dynamic libc_fstat64 fstat64 "/usr/lib/libSystem.B.dylib"
2449 2448
 
2450 2449
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2464,7 +2327,6 @@ func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
2464 2464
 
2465 2465
 func libc_fstatat64_trampoline()
2466 2466
 
2467
-//go:linkname libc_fstatat64 libc_fstatat64
2468 2467
 //go:cgo_import_dynamic libc_fstatat64 fstatat64 "/usr/lib/libSystem.B.dylib"
2469 2468
 
2470 2469
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2479,7 +2341,6 @@ func Fstatfs(fd int, stat *Statfs_t) (err error) {
2479 2479
 
2480 2480
 func libc_fstatfs64_trampoline()
2481 2481
 
2482
-//go:linkname libc_fstatfs64 libc_fstatfs64
2483 2482
 //go:cgo_import_dynamic libc_fstatfs64 fstatfs64 "/usr/lib/libSystem.B.dylib"
2484 2483
 
2485 2484
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2495,7 +2356,6 @@ func getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) {
2495 2495
 
2496 2496
 func libc_getfsstat64_trampoline()
2497 2497
 
2498
-//go:linkname libc_getfsstat64 libc_getfsstat64
2499 2498
 //go:cgo_import_dynamic libc_getfsstat64 getfsstat64 "/usr/lib/libSystem.B.dylib"
2500 2499
 
2501 2500
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2515,12 +2375,11 @@ func Lstat(path string, stat *Stat_t) (err error) {
2515 2515
 
2516 2516
 func libc_lstat64_trampoline()
2517 2517
 
2518
-//go:linkname libc_lstat64 libc_lstat64
2519 2518
 //go:cgo_import_dynamic libc_lstat64 lstat64 "/usr/lib/libSystem.B.dylib"
2520 2519
 
2521 2520
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2522 2521
 
2523
-func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
2522
+func ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) {
2524 2523
 	_, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
2525 2524
 	if e1 != 0 {
2526 2525
 		err = errnoErr(e1)
... ...
@@ -2530,7 +2389,6 @@ func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
2530 2530
 
2531 2531
 func libc_ptrace_trampoline()
2532 2532
 
2533
-//go:linkname libc_ptrace libc_ptrace
2534 2533
 //go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
2535 2534
 
2536 2535
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2550,7 +2408,6 @@ func Stat(path string, stat *Stat_t) (err error) {
2550 2550
 
2551 2551
 func libc_stat64_trampoline()
2552 2552
 
2553
-//go:linkname libc_stat64 libc_stat64
2554 2553
 //go:cgo_import_dynamic libc_stat64 stat64 "/usr/lib/libSystem.B.dylib"
2555 2554
 
2556 2555
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2570,5 +2427,4 @@ func Statfs(path string, stat *Statfs_t) (err error) {
2570 2570
 
2571 2571
 func libc_statfs64_trampoline()
2572 2572
 
2573
-//go:linkname libc_statfs64 libc_statfs64
2574 2573
 //go:cgo_import_dynamic libc_statfs64 statfs64 "/usr/lib/libSystem.B.dylib"
... ...
@@ -24,7 +24,6 @@ func closedir(dir uintptr) (err error) {
24 24
 
25 25
 func libc_closedir_trampoline()
26 26
 
27
-//go:linkname libc_closedir libc_closedir
28 27
 //go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
29 28
 
30 29
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -37,5 +36,4 @@ func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
37 37
 
38 38
 func libc_readdir_r_trampoline()
39 39
 
40
-//go:linkname libc_readdir_r libc_readdir_r
41 40
 //go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"
... ...
@@ -25,7 +25,6 @@ func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
25 25
 
26 26
 func libc_getgroups_trampoline()
27 27
 
28
-//go:linkname libc_getgroups libc_getgroups
29 28
 //go:cgo_import_dynamic libc_getgroups getgroups "/usr/lib/libSystem.B.dylib"
30 29
 
31 30
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -40,7 +39,6 @@ func setgroups(ngid int, gid *_Gid_t) (err error) {
40 40
 
41 41
 func libc_setgroups_trampoline()
42 42
 
43
-//go:linkname libc_setgroups libc_setgroups
44 43
 //go:cgo_import_dynamic libc_setgroups setgroups "/usr/lib/libSystem.B.dylib"
45 44
 
46 45
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -56,7 +54,6 @@ func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err
56 56
 
57 57
 func libc_wait4_trampoline()
58 58
 
59
-//go:linkname libc_wait4 libc_wait4
60 59
 //go:cgo_import_dynamic libc_wait4 wait4 "/usr/lib/libSystem.B.dylib"
61 60
 
62 61
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -72,7 +69,6 @@ func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
72 72
 
73 73
 func libc_accept_trampoline()
74 74
 
75
-//go:linkname libc_accept libc_accept
76 75
 //go:cgo_import_dynamic libc_accept accept "/usr/lib/libSystem.B.dylib"
77 76
 
78 77
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -87,7 +83,6 @@ func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
87 87
 
88 88
 func libc_bind_trampoline()
89 89
 
90
-//go:linkname libc_bind libc_bind
91 90
 //go:cgo_import_dynamic libc_bind bind "/usr/lib/libSystem.B.dylib"
92 91
 
93 92
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -102,7 +97,6 @@ func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
102 102
 
103 103
 func libc_connect_trampoline()
104 104
 
105
-//go:linkname libc_connect libc_connect
106 105
 //go:cgo_import_dynamic libc_connect connect "/usr/lib/libSystem.B.dylib"
107 106
 
108 107
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -118,7 +112,6 @@ func socket(domain int, typ int, proto int) (fd int, err error) {
118 118
 
119 119
 func libc_socket_trampoline()
120 120
 
121
-//go:linkname libc_socket libc_socket
122 121
 //go:cgo_import_dynamic libc_socket socket "/usr/lib/libSystem.B.dylib"
123 122
 
124 123
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -133,7 +126,6 @@ func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen
133 133
 
134 134
 func libc_getsockopt_trampoline()
135 135
 
136
-//go:linkname libc_getsockopt libc_getsockopt
137 136
 //go:cgo_import_dynamic libc_getsockopt getsockopt "/usr/lib/libSystem.B.dylib"
138 137
 
139 138
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -148,7 +140,6 @@ func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr)
148 148
 
149 149
 func libc_setsockopt_trampoline()
150 150
 
151
-//go:linkname libc_setsockopt libc_setsockopt
152 151
 //go:cgo_import_dynamic libc_setsockopt setsockopt "/usr/lib/libSystem.B.dylib"
153 152
 
154 153
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -163,7 +154,6 @@ func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
163 163
 
164 164
 func libc_getpeername_trampoline()
165 165
 
166
-//go:linkname libc_getpeername libc_getpeername
167 166
 //go:cgo_import_dynamic libc_getpeername getpeername "/usr/lib/libSystem.B.dylib"
168 167
 
169 168
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -178,7 +168,6 @@ func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
178 178
 
179 179
 func libc_getsockname_trampoline()
180 180
 
181
-//go:linkname libc_getsockname libc_getsockname
182 181
 //go:cgo_import_dynamic libc_getsockname getsockname "/usr/lib/libSystem.B.dylib"
183 182
 
184 183
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -193,7 +182,6 @@ func Shutdown(s int, how int) (err error) {
193 193
 
194 194
 func libc_shutdown_trampoline()
195 195
 
196
-//go:linkname libc_shutdown libc_shutdown
197 196
 //go:cgo_import_dynamic libc_shutdown shutdown "/usr/lib/libSystem.B.dylib"
198 197
 
199 198
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -208,7 +196,6 @@ func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
208 208
 
209 209
 func libc_socketpair_trampoline()
210 210
 
211
-//go:linkname libc_socketpair libc_socketpair
212 211
 //go:cgo_import_dynamic libc_socketpair socketpair "/usr/lib/libSystem.B.dylib"
213 212
 
214 213
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -230,7 +217,6 @@ func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Sockl
230 230
 
231 231
 func libc_recvfrom_trampoline()
232 232
 
233
-//go:linkname libc_recvfrom libc_recvfrom
234 233
 //go:cgo_import_dynamic libc_recvfrom recvfrom "/usr/lib/libSystem.B.dylib"
235 234
 
236 235
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -251,7 +237,6 @@ func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (
251 251
 
252 252
 func libc_sendto_trampoline()
253 253
 
254
-//go:linkname libc_sendto libc_sendto
255 254
 //go:cgo_import_dynamic libc_sendto sendto "/usr/lib/libSystem.B.dylib"
256 255
 
257 256
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -267,7 +252,6 @@ func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
267 267
 
268 268
 func libc_recvmsg_trampoline()
269 269
 
270
-//go:linkname libc_recvmsg libc_recvmsg
271 270
 //go:cgo_import_dynamic libc_recvmsg recvmsg "/usr/lib/libSystem.B.dylib"
272 271
 
273 272
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -283,7 +267,6 @@ func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
283 283
 
284 284
 func libc_sendmsg_trampoline()
285 285
 
286
-//go:linkname libc_sendmsg libc_sendmsg
287 286
 //go:cgo_import_dynamic libc_sendmsg sendmsg "/usr/lib/libSystem.B.dylib"
288 287
 
289 288
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -299,7 +282,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne
299 299
 
300 300
 func libc_kevent_trampoline()
301 301
 
302
-//go:linkname libc_kevent libc_kevent
303 302
 //go:cgo_import_dynamic libc_kevent kevent "/usr/lib/libSystem.B.dylib"
304 303
 
305 304
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -319,7 +301,6 @@ func utimes(path string, timeval *[2]Timeval) (err error) {
319 319
 
320 320
 func libc_utimes_trampoline()
321 321
 
322
-//go:linkname libc_utimes libc_utimes
323 322
 //go:cgo_import_dynamic libc_utimes utimes "/usr/lib/libSystem.B.dylib"
324 323
 
325 324
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -334,7 +315,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
334 334
 
335 335
 func libc_futimes_trampoline()
336 336
 
337
-//go:linkname libc_futimes libc_futimes
338 337
 //go:cgo_import_dynamic libc_futimes futimes "/usr/lib/libSystem.B.dylib"
339 338
 
340 339
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -350,7 +330,6 @@ func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
350 350
 
351 351
 func libc_poll_trampoline()
352 352
 
353
-//go:linkname libc_poll libc_poll
354 353
 //go:cgo_import_dynamic libc_poll poll "/usr/lib/libSystem.B.dylib"
355 354
 
356 355
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -371,7 +350,6 @@ func Madvise(b []byte, behav int) (err error) {
371 371
 
372 372
 func libc_madvise_trampoline()
373 373
 
374
-//go:linkname libc_madvise libc_madvise
375 374
 //go:cgo_import_dynamic libc_madvise madvise "/usr/lib/libSystem.B.dylib"
376 375
 
377 376
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -392,7 +370,6 @@ func Mlock(b []byte) (err error) {
392 392
 
393 393
 func libc_mlock_trampoline()
394 394
 
395
-//go:linkname libc_mlock libc_mlock
396 395
 //go:cgo_import_dynamic libc_mlock mlock "/usr/lib/libSystem.B.dylib"
397 396
 
398 397
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -407,7 +384,6 @@ func Mlockall(flags int) (err error) {
407 407
 
408 408
 func libc_mlockall_trampoline()
409 409
 
410
-//go:linkname libc_mlockall libc_mlockall
411 410
 //go:cgo_import_dynamic libc_mlockall mlockall "/usr/lib/libSystem.B.dylib"
412 411
 
413 412
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -428,7 +404,6 @@ func Mprotect(b []byte, prot int) (err error) {
428 428
 
429 429
 func libc_mprotect_trampoline()
430 430
 
431
-//go:linkname libc_mprotect libc_mprotect
432 431
 //go:cgo_import_dynamic libc_mprotect mprotect "/usr/lib/libSystem.B.dylib"
433 432
 
434 433
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -449,7 +424,6 @@ func Msync(b []byte, flags int) (err error) {
449 449
 
450 450
 func libc_msync_trampoline()
451 451
 
452
-//go:linkname libc_msync libc_msync
453 452
 //go:cgo_import_dynamic libc_msync msync "/usr/lib/libSystem.B.dylib"
454 453
 
455 454
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -470,7 +444,6 @@ func Munlock(b []byte) (err error) {
470 470
 
471 471
 func libc_munlock_trampoline()
472 472
 
473
-//go:linkname libc_munlock libc_munlock
474 473
 //go:cgo_import_dynamic libc_munlock munlock "/usr/lib/libSystem.B.dylib"
475 474
 
476 475
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -485,15 +458,12 @@ func Munlockall() (err error) {
485 485
 
486 486
 func libc_munlockall_trampoline()
487 487
 
488
-//go:linkname libc_munlockall libc_munlockall
489 488
 //go:cgo_import_dynamic libc_munlockall munlockall "/usr/lib/libSystem.B.dylib"
490 489
 
491 490
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
492 491
 
493
-func pipe() (r int, w int, err error) {
494
-	r0, r1, e1 := syscall_rawSyscall(funcPC(libc_pipe_trampoline), 0, 0, 0)
495
-	r = int(r0)
496
-	w = int(r1)
492
+func pipe(p *[2]int32) (err error) {
493
+	_, _, e1 := syscall_rawSyscall(funcPC(libc_pipe_trampoline), uintptr(unsafe.Pointer(p)), 0, 0)
497 494
 	if e1 != 0 {
498 495
 		err = errnoErr(e1)
499 496
 	}
... ...
@@ -502,7 +472,6 @@ func pipe() (r int, w int, err error) {
502 502
 
503 503
 func libc_pipe_trampoline()
504 504
 
505
-//go:linkname libc_pipe libc_pipe
506 505
 //go:cgo_import_dynamic libc_pipe pipe "/usr/lib/libSystem.B.dylib"
507 506
 
508 507
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -528,7 +497,6 @@ func getxattr(path string, attr string, dest *byte, size int, position uint32, o
528 528
 
529 529
 func libc_getxattr_trampoline()
530 530
 
531
-//go:linkname libc_getxattr libc_getxattr
532 531
 //go:cgo_import_dynamic libc_getxattr getxattr "/usr/lib/libSystem.B.dylib"
533 532
 
534 533
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -549,7 +517,6 @@ func fgetxattr(fd int, attr string, dest *byte, size int, position uint32, optio
549 549
 
550 550
 func libc_fgetxattr_trampoline()
551 551
 
552
-//go:linkname libc_fgetxattr libc_fgetxattr
553 552
 //go:cgo_import_dynamic libc_fgetxattr fgetxattr "/usr/lib/libSystem.B.dylib"
554 553
 
555 554
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -574,7 +541,6 @@ func setxattr(path string, attr string, data *byte, size int, position uint32, o
574 574
 
575 575
 func libc_setxattr_trampoline()
576 576
 
577
-//go:linkname libc_setxattr libc_setxattr
578 577
 //go:cgo_import_dynamic libc_setxattr setxattr "/usr/lib/libSystem.B.dylib"
579 578
 
580 579
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -594,7 +560,6 @@ func fsetxattr(fd int, attr string, data *byte, size int, position uint32, optio
594 594
 
595 595
 func libc_fsetxattr_trampoline()
596 596
 
597
-//go:linkname libc_fsetxattr libc_fsetxattr
598 597
 //go:cgo_import_dynamic libc_fsetxattr fsetxattr "/usr/lib/libSystem.B.dylib"
599 598
 
600 599
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -619,7 +584,6 @@ func removexattr(path string, attr string, options int) (err error) {
619 619
 
620 620
 func libc_removexattr_trampoline()
621 621
 
622
-//go:linkname libc_removexattr libc_removexattr
623 622
 //go:cgo_import_dynamic libc_removexattr removexattr "/usr/lib/libSystem.B.dylib"
624 623
 
625 624
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -639,7 +603,6 @@ func fremovexattr(fd int, attr string, options int) (err error) {
639 639
 
640 640
 func libc_fremovexattr_trampoline()
641 641
 
642
-//go:linkname libc_fremovexattr libc_fremovexattr
643 642
 //go:cgo_import_dynamic libc_fremovexattr fremovexattr "/usr/lib/libSystem.B.dylib"
644 643
 
645 644
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -660,7 +623,6 @@ func listxattr(path string, dest *byte, size int, options int) (sz int, err erro
660 660
 
661 661
 func libc_listxattr_trampoline()
662 662
 
663
-//go:linkname libc_listxattr libc_listxattr
664 663
 //go:cgo_import_dynamic libc_listxattr listxattr "/usr/lib/libSystem.B.dylib"
665 664
 
666 665
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -676,7 +638,6 @@ func flistxattr(fd int, dest *byte, size int, options int) (sz int, err error) {
676 676
 
677 677
 func libc_flistxattr_trampoline()
678 678
 
679
-//go:linkname libc_flistxattr libc_flistxattr
680 679
 //go:cgo_import_dynamic libc_flistxattr flistxattr "/usr/lib/libSystem.B.dylib"
681 680
 
682 681
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -691,7 +652,6 @@ func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintp
691 691
 
692 692
 func libc_setattrlist_trampoline()
693 693
 
694
-//go:linkname libc_setattrlist libc_setattrlist
695 694
 //go:cgo_import_dynamic libc_setattrlist setattrlist "/usr/lib/libSystem.B.dylib"
696 695
 
697 696
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -707,7 +667,6 @@ func fcntl(fd int, cmd int, arg int) (val int, err error) {
707 707
 
708 708
 func libc_fcntl_trampoline()
709 709
 
710
-//go:linkname libc_fcntl libc_fcntl
711 710
 //go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
712 711
 
713 712
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -722,7 +681,6 @@ func kill(pid int, signum int, posix int) (err error) {
722 722
 
723 723
 func libc_kill_trampoline()
724 724
 
725
-//go:linkname libc_kill libc_kill
726 725
 //go:cgo_import_dynamic libc_kill kill "/usr/lib/libSystem.B.dylib"
727 726
 
728 727
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -737,7 +695,6 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
737 737
 
738 738
 func libc_ioctl_trampoline()
739 739
 
740
-//go:linkname libc_ioctl libc_ioctl
741 740
 //go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib"
742 741
 
743 742
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -758,7 +715,6 @@ func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr)
758 758
 
759 759
 func libc_sysctl_trampoline()
760 760
 
761
-//go:linkname libc_sysctl libc_sysctl
762 761
 //go:cgo_import_dynamic libc_sysctl sysctl "/usr/lib/libSystem.B.dylib"
763 762
 
764 763
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -773,7 +729,6 @@ func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer
773 773
 
774 774
 func libc_sendfile_trampoline()
775 775
 
776
-//go:linkname libc_sendfile libc_sendfile
777 776
 //go:cgo_import_dynamic libc_sendfile sendfile "/usr/lib/libSystem.B.dylib"
778 777
 
779 778
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -793,7 +748,6 @@ func Access(path string, mode uint32) (err error) {
793 793
 
794 794
 func libc_access_trampoline()
795 795
 
796
-//go:linkname libc_access libc_access
797 796
 //go:cgo_import_dynamic libc_access access "/usr/lib/libSystem.B.dylib"
798 797
 
799 798
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -808,7 +762,6 @@ func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
808 808
 
809 809
 func libc_adjtime_trampoline()
810 810
 
811
-//go:linkname libc_adjtime libc_adjtime
812 811
 //go:cgo_import_dynamic libc_adjtime adjtime "/usr/lib/libSystem.B.dylib"
813 812
 
814 813
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -828,7 +781,6 @@ func Chdir(path string) (err error) {
828 828
 
829 829
 func libc_chdir_trampoline()
830 830
 
831
-//go:linkname libc_chdir libc_chdir
832 831
 //go:cgo_import_dynamic libc_chdir chdir "/usr/lib/libSystem.B.dylib"
833 832
 
834 833
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -848,7 +800,6 @@ func Chflags(path string, flags int) (err error) {
848 848
 
849 849
 func libc_chflags_trampoline()
850 850
 
851
-//go:linkname libc_chflags libc_chflags
852 851
 //go:cgo_import_dynamic libc_chflags chflags "/usr/lib/libSystem.B.dylib"
853 852
 
854 853
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -868,7 +819,6 @@ func Chmod(path string, mode uint32) (err error) {
868 868
 
869 869
 func libc_chmod_trampoline()
870 870
 
871
-//go:linkname libc_chmod libc_chmod
872 871
 //go:cgo_import_dynamic libc_chmod chmod "/usr/lib/libSystem.B.dylib"
873 872
 
874 873
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -888,7 +838,6 @@ func Chown(path string, uid int, gid int) (err error) {
888 888
 
889 889
 func libc_chown_trampoline()
890 890
 
891
-//go:linkname libc_chown libc_chown
892 891
 //go:cgo_import_dynamic libc_chown chown "/usr/lib/libSystem.B.dylib"
893 892
 
894 893
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -908,7 +857,6 @@ func Chroot(path string) (err error) {
908 908
 
909 909
 func libc_chroot_trampoline()
910 910
 
911
-//go:linkname libc_chroot libc_chroot
912 911
 //go:cgo_import_dynamic libc_chroot chroot "/usr/lib/libSystem.B.dylib"
913 912
 
914 913
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -923,7 +871,6 @@ func ClockGettime(clockid int32, time *Timespec) (err error) {
923 923
 
924 924
 func libc_clock_gettime_trampoline()
925 925
 
926
-//go:linkname libc_clock_gettime libc_clock_gettime
927 926
 //go:cgo_import_dynamic libc_clock_gettime clock_gettime "/usr/lib/libSystem.B.dylib"
928 927
 
929 928
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -938,7 +885,6 @@ func Close(fd int) (err error) {
938 938
 
939 939
 func libc_close_trampoline()
940 940
 
941
-//go:linkname libc_close libc_close
942 941
 //go:cgo_import_dynamic libc_close close "/usr/lib/libSystem.B.dylib"
943 942
 
944 943
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -963,7 +909,6 @@ func Clonefile(src string, dst string, flags int) (err error) {
963 963
 
964 964
 func libc_clonefile_trampoline()
965 965
 
966
-//go:linkname libc_clonefile libc_clonefile
967 966
 //go:cgo_import_dynamic libc_clonefile clonefile "/usr/lib/libSystem.B.dylib"
968 967
 
969 968
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -988,7 +933,6 @@ func Clonefileat(srcDirfd int, src string, dstDirfd int, dst string, flags int)
988 988
 
989 989
 func libc_clonefileat_trampoline()
990 990
 
991
-//go:linkname libc_clonefileat libc_clonefileat
992 991
 //go:cgo_import_dynamic libc_clonefileat clonefileat "/usr/lib/libSystem.B.dylib"
993 992
 
994 993
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1004,7 +948,6 @@ func Dup(fd int) (nfd int, err error) {
1004 1004
 
1005 1005
 func libc_dup_trampoline()
1006 1006
 
1007
-//go:linkname libc_dup libc_dup
1008 1007
 //go:cgo_import_dynamic libc_dup dup "/usr/lib/libSystem.B.dylib"
1009 1008
 
1010 1009
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1019,7 +962,6 @@ func Dup2(from int, to int) (err error) {
1019 1019
 
1020 1020
 func libc_dup2_trampoline()
1021 1021
 
1022
-//go:linkname libc_dup2 libc_dup2
1023 1022
 //go:cgo_import_dynamic libc_dup2 dup2 "/usr/lib/libSystem.B.dylib"
1024 1023
 
1025 1024
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1044,7 +986,6 @@ func Exchangedata(path1 string, path2 string, options int) (err error) {
1044 1044
 
1045 1045
 func libc_exchangedata_trampoline()
1046 1046
 
1047
-//go:linkname libc_exchangedata libc_exchangedata
1048 1047
 //go:cgo_import_dynamic libc_exchangedata exchangedata "/usr/lib/libSystem.B.dylib"
1049 1048
 
1050 1049
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1056,7 +997,6 @@ func Exit(code int) {
1056 1056
 
1057 1057
 func libc_exit_trampoline()
1058 1058
 
1059
-//go:linkname libc_exit libc_exit
1060 1059
 //go:cgo_import_dynamic libc_exit exit "/usr/lib/libSystem.B.dylib"
1061 1060
 
1062 1061
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1076,7 +1016,6 @@ func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
1076 1076
 
1077 1077
 func libc_faccessat_trampoline()
1078 1078
 
1079
-//go:linkname libc_faccessat libc_faccessat
1080 1079
 //go:cgo_import_dynamic libc_faccessat faccessat "/usr/lib/libSystem.B.dylib"
1081 1080
 
1082 1081
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1091,7 +1030,6 @@ func Fchdir(fd int) (err error) {
1091 1091
 
1092 1092
 func libc_fchdir_trampoline()
1093 1093
 
1094
-//go:linkname libc_fchdir libc_fchdir
1095 1094
 //go:cgo_import_dynamic libc_fchdir fchdir "/usr/lib/libSystem.B.dylib"
1096 1095
 
1097 1096
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1106,7 +1044,6 @@ func Fchflags(fd int, flags int) (err error) {
1106 1106
 
1107 1107
 func libc_fchflags_trampoline()
1108 1108
 
1109
-//go:linkname libc_fchflags libc_fchflags
1110 1109
 //go:cgo_import_dynamic libc_fchflags fchflags "/usr/lib/libSystem.B.dylib"
1111 1110
 
1112 1111
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1121,7 +1058,6 @@ func Fchmod(fd int, mode uint32) (err error) {
1121 1121
 
1122 1122
 func libc_fchmod_trampoline()
1123 1123
 
1124
-//go:linkname libc_fchmod libc_fchmod
1125 1124
 //go:cgo_import_dynamic libc_fchmod fchmod "/usr/lib/libSystem.B.dylib"
1126 1125
 
1127 1126
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1141,7 +1077,6 @@ func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
1141 1141
 
1142 1142
 func libc_fchmodat_trampoline()
1143 1143
 
1144
-//go:linkname libc_fchmodat libc_fchmodat
1145 1144
 //go:cgo_import_dynamic libc_fchmodat fchmodat "/usr/lib/libSystem.B.dylib"
1146 1145
 
1147 1146
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1156,7 +1091,6 @@ func Fchown(fd int, uid int, gid int) (err error) {
1156 1156
 
1157 1157
 func libc_fchown_trampoline()
1158 1158
 
1159
-//go:linkname libc_fchown libc_fchown
1160 1159
 //go:cgo_import_dynamic libc_fchown fchown "/usr/lib/libSystem.B.dylib"
1161 1160
 
1162 1161
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1176,7 +1110,6 @@ func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
1176 1176
 
1177 1177
 func libc_fchownat_trampoline()
1178 1178
 
1179
-//go:linkname libc_fchownat libc_fchownat
1180 1179
 //go:cgo_import_dynamic libc_fchownat fchownat "/usr/lib/libSystem.B.dylib"
1181 1180
 
1182 1181
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1196,7 +1129,6 @@ func Fclonefileat(srcDirfd int, dstDirfd int, dst string, flags int) (err error)
1196 1196
 
1197 1197
 func libc_fclonefileat_trampoline()
1198 1198
 
1199
-//go:linkname libc_fclonefileat libc_fclonefileat
1200 1199
 //go:cgo_import_dynamic libc_fclonefileat fclonefileat "/usr/lib/libSystem.B.dylib"
1201 1200
 
1202 1201
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1211,7 +1143,6 @@ func Flock(fd int, how int) (err error) {
1211 1211
 
1212 1212
 func libc_flock_trampoline()
1213 1213
 
1214
-//go:linkname libc_flock libc_flock
1215 1214
 //go:cgo_import_dynamic libc_flock flock "/usr/lib/libSystem.B.dylib"
1216 1215
 
1217 1216
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1227,7 +1158,6 @@ func Fpathconf(fd int, name int) (val int, err error) {
1227 1227
 
1228 1228
 func libc_fpathconf_trampoline()
1229 1229
 
1230
-//go:linkname libc_fpathconf libc_fpathconf
1231 1230
 //go:cgo_import_dynamic libc_fpathconf fpathconf "/usr/lib/libSystem.B.dylib"
1232 1231
 
1233 1232
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1242,7 +1172,6 @@ func Fsync(fd int) (err error) {
1242 1242
 
1243 1243
 func libc_fsync_trampoline()
1244 1244
 
1245
-//go:linkname libc_fsync libc_fsync
1246 1245
 //go:cgo_import_dynamic libc_fsync fsync "/usr/lib/libSystem.B.dylib"
1247 1246
 
1248 1247
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1257,7 +1186,6 @@ func Ftruncate(fd int, length int64) (err error) {
1257 1257
 
1258 1258
 func libc_ftruncate_trampoline()
1259 1259
 
1260
-//go:linkname libc_ftruncate libc_ftruncate
1261 1260
 //go:cgo_import_dynamic libc_ftruncate ftruncate "/usr/lib/libSystem.B.dylib"
1262 1261
 
1263 1262
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1279,7 +1207,6 @@ func Getcwd(buf []byte) (n int, err error) {
1279 1279
 
1280 1280
 func libc_getcwd_trampoline()
1281 1281
 
1282
-//go:linkname libc_getcwd libc_getcwd
1283 1282
 //go:cgo_import_dynamic libc_getcwd getcwd "/usr/lib/libSystem.B.dylib"
1284 1283
 
1285 1284
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1292,7 +1219,6 @@ func Getdtablesize() (size int) {
1292 1292
 
1293 1293
 func libc_getdtablesize_trampoline()
1294 1294
 
1295
-//go:linkname libc_getdtablesize libc_getdtablesize
1296 1295
 //go:cgo_import_dynamic libc_getdtablesize getdtablesize "/usr/lib/libSystem.B.dylib"
1297 1296
 
1298 1297
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1305,7 +1231,6 @@ func Getegid() (egid int) {
1305 1305
 
1306 1306
 func libc_getegid_trampoline()
1307 1307
 
1308
-//go:linkname libc_getegid libc_getegid
1309 1308
 //go:cgo_import_dynamic libc_getegid getegid "/usr/lib/libSystem.B.dylib"
1310 1309
 
1311 1310
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1318,7 +1243,6 @@ func Geteuid() (uid int) {
1318 1318
 
1319 1319
 func libc_geteuid_trampoline()
1320 1320
 
1321
-//go:linkname libc_geteuid libc_geteuid
1322 1321
 //go:cgo_import_dynamic libc_geteuid geteuid "/usr/lib/libSystem.B.dylib"
1323 1322
 
1324 1323
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1331,7 +1255,6 @@ func Getgid() (gid int) {
1331 1331
 
1332 1332
 func libc_getgid_trampoline()
1333 1333
 
1334
-//go:linkname libc_getgid libc_getgid
1335 1334
 //go:cgo_import_dynamic libc_getgid getgid "/usr/lib/libSystem.B.dylib"
1336 1335
 
1337 1336
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1347,7 +1270,6 @@ func Getpgid(pid int) (pgid int, err error) {
1347 1347
 
1348 1348
 func libc_getpgid_trampoline()
1349 1349
 
1350
-//go:linkname libc_getpgid libc_getpgid
1351 1350
 //go:cgo_import_dynamic libc_getpgid getpgid "/usr/lib/libSystem.B.dylib"
1352 1351
 
1353 1352
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1360,7 +1282,6 @@ func Getpgrp() (pgrp int) {
1360 1360
 
1361 1361
 func libc_getpgrp_trampoline()
1362 1362
 
1363
-//go:linkname libc_getpgrp libc_getpgrp
1364 1363
 //go:cgo_import_dynamic libc_getpgrp getpgrp "/usr/lib/libSystem.B.dylib"
1365 1364
 
1366 1365
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1373,7 +1294,6 @@ func Getpid() (pid int) {
1373 1373
 
1374 1374
 func libc_getpid_trampoline()
1375 1375
 
1376
-//go:linkname libc_getpid libc_getpid
1377 1376
 //go:cgo_import_dynamic libc_getpid getpid "/usr/lib/libSystem.B.dylib"
1378 1377
 
1379 1378
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1386,7 +1306,6 @@ func Getppid() (ppid int) {
1386 1386
 
1387 1387
 func libc_getppid_trampoline()
1388 1388
 
1389
-//go:linkname libc_getppid libc_getppid
1390 1389
 //go:cgo_import_dynamic libc_getppid getppid "/usr/lib/libSystem.B.dylib"
1391 1390
 
1392 1391
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1402,7 +1321,6 @@ func Getpriority(which int, who int) (prio int, err error) {
1402 1402
 
1403 1403
 func libc_getpriority_trampoline()
1404 1404
 
1405
-//go:linkname libc_getpriority libc_getpriority
1406 1405
 //go:cgo_import_dynamic libc_getpriority getpriority "/usr/lib/libSystem.B.dylib"
1407 1406
 
1408 1407
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1417,7 +1335,6 @@ func Getrlimit(which int, lim *Rlimit) (err error) {
1417 1417
 
1418 1418
 func libc_getrlimit_trampoline()
1419 1419
 
1420
-//go:linkname libc_getrlimit libc_getrlimit
1421 1420
 //go:cgo_import_dynamic libc_getrlimit getrlimit "/usr/lib/libSystem.B.dylib"
1422 1421
 
1423 1422
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1432,7 +1349,6 @@ func Getrusage(who int, rusage *Rusage) (err error) {
1432 1432
 
1433 1433
 func libc_getrusage_trampoline()
1434 1434
 
1435
-//go:linkname libc_getrusage libc_getrusage
1436 1435
 //go:cgo_import_dynamic libc_getrusage getrusage "/usr/lib/libSystem.B.dylib"
1437 1436
 
1438 1437
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1448,7 +1364,6 @@ func Getsid(pid int) (sid int, err error) {
1448 1448
 
1449 1449
 func libc_getsid_trampoline()
1450 1450
 
1451
-//go:linkname libc_getsid libc_getsid
1452 1451
 //go:cgo_import_dynamic libc_getsid getsid "/usr/lib/libSystem.B.dylib"
1453 1452
 
1454 1453
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1463,7 +1378,6 @@ func Gettimeofday(tp *Timeval) (err error) {
1463 1463
 
1464 1464
 func libc_gettimeofday_trampoline()
1465 1465
 
1466
-//go:linkname libc_gettimeofday libc_gettimeofday
1467 1466
 //go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib"
1468 1467
 
1469 1468
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1476,7 +1390,6 @@ func Getuid() (uid int) {
1476 1476
 
1477 1477
 func libc_getuid_trampoline()
1478 1478
 
1479
-//go:linkname libc_getuid libc_getuid
1480 1479
 //go:cgo_import_dynamic libc_getuid getuid "/usr/lib/libSystem.B.dylib"
1481 1480
 
1482 1481
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1489,7 +1402,6 @@ func Issetugid() (tainted bool) {
1489 1489
 
1490 1490
 func libc_issetugid_trampoline()
1491 1491
 
1492
-//go:linkname libc_issetugid libc_issetugid
1493 1492
 //go:cgo_import_dynamic libc_issetugid issetugid "/usr/lib/libSystem.B.dylib"
1494 1493
 
1495 1494
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1505,7 +1417,6 @@ func Kqueue() (fd int, err error) {
1505 1505
 
1506 1506
 func libc_kqueue_trampoline()
1507 1507
 
1508
-//go:linkname libc_kqueue libc_kqueue
1509 1508
 //go:cgo_import_dynamic libc_kqueue kqueue "/usr/lib/libSystem.B.dylib"
1510 1509
 
1511 1510
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1525,7 +1436,6 @@ func Lchown(path string, uid int, gid int) (err error) {
1525 1525
 
1526 1526
 func libc_lchown_trampoline()
1527 1527
 
1528
-//go:linkname libc_lchown libc_lchown
1529 1528
 //go:cgo_import_dynamic libc_lchown lchown "/usr/lib/libSystem.B.dylib"
1530 1529
 
1531 1530
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1550,7 +1460,6 @@ func Link(path string, link string) (err error) {
1550 1550
 
1551 1551
 func libc_link_trampoline()
1552 1552
 
1553
-//go:linkname libc_link libc_link
1554 1553
 //go:cgo_import_dynamic libc_link link "/usr/lib/libSystem.B.dylib"
1555 1554
 
1556 1555
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1575,7 +1484,6 @@ func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err er
1575 1575
 
1576 1576
 func libc_linkat_trampoline()
1577 1577
 
1578
-//go:linkname libc_linkat libc_linkat
1579 1578
 //go:cgo_import_dynamic libc_linkat linkat "/usr/lib/libSystem.B.dylib"
1580 1579
 
1581 1580
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1590,7 +1498,6 @@ func Listen(s int, backlog int) (err error) {
1590 1590
 
1591 1591
 func libc_listen_trampoline()
1592 1592
 
1593
-//go:linkname libc_listen libc_listen
1594 1593
 //go:cgo_import_dynamic libc_listen listen "/usr/lib/libSystem.B.dylib"
1595 1594
 
1596 1595
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1610,7 +1517,6 @@ func Mkdir(path string, mode uint32) (err error) {
1610 1610
 
1611 1611
 func libc_mkdir_trampoline()
1612 1612
 
1613
-//go:linkname libc_mkdir libc_mkdir
1614 1613
 //go:cgo_import_dynamic libc_mkdir mkdir "/usr/lib/libSystem.B.dylib"
1615 1614
 
1616 1615
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1630,7 +1536,6 @@ func Mkdirat(dirfd int, path string, mode uint32) (err error) {
1630 1630
 
1631 1631
 func libc_mkdirat_trampoline()
1632 1632
 
1633
-//go:linkname libc_mkdirat libc_mkdirat
1634 1633
 //go:cgo_import_dynamic libc_mkdirat mkdirat "/usr/lib/libSystem.B.dylib"
1635 1634
 
1636 1635
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1650,7 +1555,6 @@ func Mkfifo(path string, mode uint32) (err error) {
1650 1650
 
1651 1651
 func libc_mkfifo_trampoline()
1652 1652
 
1653
-//go:linkname libc_mkfifo libc_mkfifo
1654 1653
 //go:cgo_import_dynamic libc_mkfifo mkfifo "/usr/lib/libSystem.B.dylib"
1655 1654
 
1656 1655
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1670,7 +1574,6 @@ func Mknod(path string, mode uint32, dev int) (err error) {
1670 1670
 
1671 1671
 func libc_mknod_trampoline()
1672 1672
 
1673
-//go:linkname libc_mknod libc_mknod
1674 1673
 //go:cgo_import_dynamic libc_mknod mknod "/usr/lib/libSystem.B.dylib"
1675 1674
 
1676 1675
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1691,7 +1594,6 @@ func Open(path string, mode int, perm uint32) (fd int, err error) {
1691 1691
 
1692 1692
 func libc_open_trampoline()
1693 1693
 
1694
-//go:linkname libc_open libc_open
1695 1694
 //go:cgo_import_dynamic libc_open open "/usr/lib/libSystem.B.dylib"
1696 1695
 
1697 1696
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1712,7 +1614,6 @@ func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) {
1712 1712
 
1713 1713
 func libc_openat_trampoline()
1714 1714
 
1715
-//go:linkname libc_openat libc_openat
1716 1715
 //go:cgo_import_dynamic libc_openat openat "/usr/lib/libSystem.B.dylib"
1717 1716
 
1718 1717
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1733,7 +1634,6 @@ func Pathconf(path string, name int) (val int, err error) {
1733 1733
 
1734 1734
 func libc_pathconf_trampoline()
1735 1735
 
1736
-//go:linkname libc_pathconf libc_pathconf
1737 1736
 //go:cgo_import_dynamic libc_pathconf pathconf "/usr/lib/libSystem.B.dylib"
1738 1737
 
1739 1738
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1755,7 +1655,6 @@ func Pread(fd int, p []byte, offset int64) (n int, err error) {
1755 1755
 
1756 1756
 func libc_pread_trampoline()
1757 1757
 
1758
-//go:linkname libc_pread libc_pread
1759 1758
 //go:cgo_import_dynamic libc_pread pread "/usr/lib/libSystem.B.dylib"
1760 1759
 
1761 1760
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1777,7 +1676,6 @@ func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
1777 1777
 
1778 1778
 func libc_pwrite_trampoline()
1779 1779
 
1780
-//go:linkname libc_pwrite libc_pwrite
1781 1780
 //go:cgo_import_dynamic libc_pwrite pwrite "/usr/lib/libSystem.B.dylib"
1782 1781
 
1783 1782
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1799,7 +1697,6 @@ func read(fd int, p []byte) (n int, err error) {
1799 1799
 
1800 1800
 func libc_read_trampoline()
1801 1801
 
1802
-//go:linkname libc_read libc_read
1803 1802
 //go:cgo_import_dynamic libc_read read "/usr/lib/libSystem.B.dylib"
1804 1803
 
1805 1804
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1826,7 +1723,6 @@ func Readlink(path string, buf []byte) (n int, err error) {
1826 1826
 
1827 1827
 func libc_readlink_trampoline()
1828 1828
 
1829
-//go:linkname libc_readlink libc_readlink
1830 1829
 //go:cgo_import_dynamic libc_readlink readlink "/usr/lib/libSystem.B.dylib"
1831 1830
 
1832 1831
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1853,7 +1749,6 @@ func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
1853 1853
 
1854 1854
 func libc_readlinkat_trampoline()
1855 1855
 
1856
-//go:linkname libc_readlinkat libc_readlinkat
1857 1856
 //go:cgo_import_dynamic libc_readlinkat readlinkat "/usr/lib/libSystem.B.dylib"
1858 1857
 
1859 1858
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1878,7 +1773,6 @@ func Rename(from string, to string) (err error) {
1878 1878
 
1879 1879
 func libc_rename_trampoline()
1880 1880
 
1881
-//go:linkname libc_rename libc_rename
1882 1881
 //go:cgo_import_dynamic libc_rename rename "/usr/lib/libSystem.B.dylib"
1883 1882
 
1884 1883
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1903,7 +1797,6 @@ func Renameat(fromfd int, from string, tofd int, to string) (err error) {
1903 1903
 
1904 1904
 func libc_renameat_trampoline()
1905 1905
 
1906
-//go:linkname libc_renameat libc_renameat
1907 1906
 //go:cgo_import_dynamic libc_renameat renameat "/usr/lib/libSystem.B.dylib"
1908 1907
 
1909 1908
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1923,7 +1816,6 @@ func Revoke(path string) (err error) {
1923 1923
 
1924 1924
 func libc_revoke_trampoline()
1925 1925
 
1926
-//go:linkname libc_revoke libc_revoke
1927 1926
 //go:cgo_import_dynamic libc_revoke revoke "/usr/lib/libSystem.B.dylib"
1928 1927
 
1929 1928
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1943,7 +1835,6 @@ func Rmdir(path string) (err error) {
1943 1943
 
1944 1944
 func libc_rmdir_trampoline()
1945 1945
 
1946
-//go:linkname libc_rmdir libc_rmdir
1947 1946
 //go:cgo_import_dynamic libc_rmdir rmdir "/usr/lib/libSystem.B.dylib"
1948 1947
 
1949 1948
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1959,7 +1850,6 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1959 1959
 
1960 1960
 func libc_lseek_trampoline()
1961 1961
 
1962
-//go:linkname libc_lseek libc_lseek
1963 1962
 //go:cgo_import_dynamic libc_lseek lseek "/usr/lib/libSystem.B.dylib"
1964 1963
 
1965 1964
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1975,7 +1865,6 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
1975 1975
 
1976 1976
 func libc_select_trampoline()
1977 1977
 
1978
-//go:linkname libc_select libc_select
1979 1978
 //go:cgo_import_dynamic libc_select select "/usr/lib/libSystem.B.dylib"
1980 1979
 
1981 1980
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1990,7 +1879,6 @@ func Setegid(egid int) (err error) {
1990 1990
 
1991 1991
 func libc_setegid_trampoline()
1992 1992
 
1993
-//go:linkname libc_setegid libc_setegid
1994 1993
 //go:cgo_import_dynamic libc_setegid setegid "/usr/lib/libSystem.B.dylib"
1995 1994
 
1996 1995
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2005,7 +1893,6 @@ func Seteuid(euid int) (err error) {
2005 2005
 
2006 2006
 func libc_seteuid_trampoline()
2007 2007
 
2008
-//go:linkname libc_seteuid libc_seteuid
2009 2008
 //go:cgo_import_dynamic libc_seteuid seteuid "/usr/lib/libSystem.B.dylib"
2010 2009
 
2011 2010
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2020,7 +1907,6 @@ func Setgid(gid int) (err error) {
2020 2020
 
2021 2021
 func libc_setgid_trampoline()
2022 2022
 
2023
-//go:linkname libc_setgid libc_setgid
2024 2023
 //go:cgo_import_dynamic libc_setgid setgid "/usr/lib/libSystem.B.dylib"
2025 2024
 
2026 2025
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2040,7 +1926,6 @@ func Setlogin(name string) (err error) {
2040 2040
 
2041 2041
 func libc_setlogin_trampoline()
2042 2042
 
2043
-//go:linkname libc_setlogin libc_setlogin
2044 2043
 //go:cgo_import_dynamic libc_setlogin setlogin "/usr/lib/libSystem.B.dylib"
2045 2044
 
2046 2045
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2055,7 +1940,6 @@ func Setpgid(pid int, pgid int) (err error) {
2055 2055
 
2056 2056
 func libc_setpgid_trampoline()
2057 2057
 
2058
-//go:linkname libc_setpgid libc_setpgid
2059 2058
 //go:cgo_import_dynamic libc_setpgid setpgid "/usr/lib/libSystem.B.dylib"
2060 2059
 
2061 2060
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2070,7 +1954,6 @@ func Setpriority(which int, who int, prio int) (err error) {
2070 2070
 
2071 2071
 func libc_setpriority_trampoline()
2072 2072
 
2073
-//go:linkname libc_setpriority libc_setpriority
2074 2073
 //go:cgo_import_dynamic libc_setpriority setpriority "/usr/lib/libSystem.B.dylib"
2075 2074
 
2076 2075
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2085,7 +1968,6 @@ func Setprivexec(flag int) (err error) {
2085 2085
 
2086 2086
 func libc_setprivexec_trampoline()
2087 2087
 
2088
-//go:linkname libc_setprivexec libc_setprivexec
2089 2088
 //go:cgo_import_dynamic libc_setprivexec setprivexec "/usr/lib/libSystem.B.dylib"
2090 2089
 
2091 2090
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2100,7 +1982,6 @@ func Setregid(rgid int, egid int) (err error) {
2100 2100
 
2101 2101
 func libc_setregid_trampoline()
2102 2102
 
2103
-//go:linkname libc_setregid libc_setregid
2104 2103
 //go:cgo_import_dynamic libc_setregid setregid "/usr/lib/libSystem.B.dylib"
2105 2104
 
2106 2105
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2115,7 +1996,6 @@ func Setreuid(ruid int, euid int) (err error) {
2115 2115
 
2116 2116
 func libc_setreuid_trampoline()
2117 2117
 
2118
-//go:linkname libc_setreuid libc_setreuid
2119 2118
 //go:cgo_import_dynamic libc_setreuid setreuid "/usr/lib/libSystem.B.dylib"
2120 2119
 
2121 2120
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2130,7 +2010,6 @@ func Setrlimit(which int, lim *Rlimit) (err error) {
2130 2130
 
2131 2131
 func libc_setrlimit_trampoline()
2132 2132
 
2133
-//go:linkname libc_setrlimit libc_setrlimit
2134 2133
 //go:cgo_import_dynamic libc_setrlimit setrlimit "/usr/lib/libSystem.B.dylib"
2135 2134
 
2136 2135
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2146,7 +2025,6 @@ func Setsid() (pid int, err error) {
2146 2146
 
2147 2147
 func libc_setsid_trampoline()
2148 2148
 
2149
-//go:linkname libc_setsid libc_setsid
2150 2149
 //go:cgo_import_dynamic libc_setsid setsid "/usr/lib/libSystem.B.dylib"
2151 2150
 
2152 2151
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2161,7 +2039,6 @@ func Settimeofday(tp *Timeval) (err error) {
2161 2161
 
2162 2162
 func libc_settimeofday_trampoline()
2163 2163
 
2164
-//go:linkname libc_settimeofday libc_settimeofday
2165 2164
 //go:cgo_import_dynamic libc_settimeofday settimeofday "/usr/lib/libSystem.B.dylib"
2166 2165
 
2167 2166
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2176,7 +2053,6 @@ func Setuid(uid int) (err error) {
2176 2176
 
2177 2177
 func libc_setuid_trampoline()
2178 2178
 
2179
-//go:linkname libc_setuid libc_setuid
2180 2179
 //go:cgo_import_dynamic libc_setuid setuid "/usr/lib/libSystem.B.dylib"
2181 2180
 
2182 2181
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2201,7 +2077,6 @@ func Symlink(path string, link string) (err error) {
2201 2201
 
2202 2202
 func libc_symlink_trampoline()
2203 2203
 
2204
-//go:linkname libc_symlink libc_symlink
2205 2204
 //go:cgo_import_dynamic libc_symlink symlink "/usr/lib/libSystem.B.dylib"
2206 2205
 
2207 2206
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2226,7 +2101,6 @@ func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
2226 2226
 
2227 2227
 func libc_symlinkat_trampoline()
2228 2228
 
2229
-//go:linkname libc_symlinkat libc_symlinkat
2230 2229
 //go:cgo_import_dynamic libc_symlinkat symlinkat "/usr/lib/libSystem.B.dylib"
2231 2230
 
2232 2231
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2241,7 +2115,6 @@ func Sync() (err error) {
2241 2241
 
2242 2242
 func libc_sync_trampoline()
2243 2243
 
2244
-//go:linkname libc_sync libc_sync
2245 2244
 //go:cgo_import_dynamic libc_sync sync "/usr/lib/libSystem.B.dylib"
2246 2245
 
2247 2246
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2261,7 +2134,6 @@ func Truncate(path string, length int64) (err error) {
2261 2261
 
2262 2262
 func libc_truncate_trampoline()
2263 2263
 
2264
-//go:linkname libc_truncate libc_truncate
2265 2264
 //go:cgo_import_dynamic libc_truncate truncate "/usr/lib/libSystem.B.dylib"
2266 2265
 
2267 2266
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2274,7 +2146,6 @@ func Umask(newmask int) (oldmask int) {
2274 2274
 
2275 2275
 func libc_umask_trampoline()
2276 2276
 
2277
-//go:linkname libc_umask libc_umask
2278 2277
 //go:cgo_import_dynamic libc_umask umask "/usr/lib/libSystem.B.dylib"
2279 2278
 
2280 2279
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2294,7 +2165,6 @@ func Undelete(path string) (err error) {
2294 2294
 
2295 2295
 func libc_undelete_trampoline()
2296 2296
 
2297
-//go:linkname libc_undelete libc_undelete
2298 2297
 //go:cgo_import_dynamic libc_undelete undelete "/usr/lib/libSystem.B.dylib"
2299 2298
 
2300 2299
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2314,7 +2184,6 @@ func Unlink(path string) (err error) {
2314 2314
 
2315 2315
 func libc_unlink_trampoline()
2316 2316
 
2317
-//go:linkname libc_unlink libc_unlink
2318 2317
 //go:cgo_import_dynamic libc_unlink unlink "/usr/lib/libSystem.B.dylib"
2319 2318
 
2320 2319
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2334,7 +2203,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
2334 2334
 
2335 2335
 func libc_unlinkat_trampoline()
2336 2336
 
2337
-//go:linkname libc_unlinkat libc_unlinkat
2338 2337
 //go:cgo_import_dynamic libc_unlinkat unlinkat "/usr/lib/libSystem.B.dylib"
2339 2338
 
2340 2339
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2354,7 +2222,6 @@ func Unmount(path string, flags int) (err error) {
2354 2354
 
2355 2355
 func libc_unmount_trampoline()
2356 2356
 
2357
-//go:linkname libc_unmount libc_unmount
2358 2357
 //go:cgo_import_dynamic libc_unmount unmount "/usr/lib/libSystem.B.dylib"
2359 2358
 
2360 2359
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2376,7 +2243,6 @@ func write(fd int, p []byte) (n int, err error) {
2376 2376
 
2377 2377
 func libc_write_trampoline()
2378 2378
 
2379
-//go:linkname libc_write libc_write
2380 2379
 //go:cgo_import_dynamic libc_write write "/usr/lib/libSystem.B.dylib"
2381 2380
 
2382 2381
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2392,7 +2258,6 @@ func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (
2392 2392
 
2393 2393
 func libc_mmap_trampoline()
2394 2394
 
2395
-//go:linkname libc_mmap libc_mmap
2396 2395
 //go:cgo_import_dynamic libc_mmap mmap "/usr/lib/libSystem.B.dylib"
2397 2396
 
2398 2397
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2407,7 +2272,6 @@ func munmap(addr uintptr, length uintptr) (err error) {
2407 2407
 
2408 2408
 func libc_munmap_trampoline()
2409 2409
 
2410
-//go:linkname libc_munmap libc_munmap
2411 2410
 //go:cgo_import_dynamic libc_munmap munmap "/usr/lib/libSystem.B.dylib"
2412 2411
 
2413 2412
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2444,7 +2308,6 @@ func Fstat(fd int, stat *Stat_t) (err error) {
2444 2444
 
2445 2445
 func libc_fstat64_trampoline()
2446 2446
 
2447
-//go:linkname libc_fstat64 libc_fstat64
2448 2447
 //go:cgo_import_dynamic libc_fstat64 fstat64 "/usr/lib/libSystem.B.dylib"
2449 2448
 
2450 2449
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2464,7 +2327,6 @@ func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
2464 2464
 
2465 2465
 func libc_fstatat64_trampoline()
2466 2466
 
2467
-//go:linkname libc_fstatat64 libc_fstatat64
2468 2467
 //go:cgo_import_dynamic libc_fstatat64 fstatat64 "/usr/lib/libSystem.B.dylib"
2469 2468
 
2470 2469
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2479,7 +2341,6 @@ func Fstatfs(fd int, stat *Statfs_t) (err error) {
2479 2479
 
2480 2480
 func libc_fstatfs64_trampoline()
2481 2481
 
2482
-//go:linkname libc_fstatfs64 libc_fstatfs64
2483 2482
 //go:cgo_import_dynamic libc_fstatfs64 fstatfs64 "/usr/lib/libSystem.B.dylib"
2484 2483
 
2485 2484
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2495,7 +2356,6 @@ func getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) {
2495 2495
 
2496 2496
 func libc_getfsstat64_trampoline()
2497 2497
 
2498
-//go:linkname libc_getfsstat64 libc_getfsstat64
2499 2498
 //go:cgo_import_dynamic libc_getfsstat64 getfsstat64 "/usr/lib/libSystem.B.dylib"
2500 2499
 
2501 2500
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2515,12 +2375,11 @@ func Lstat(path string, stat *Stat_t) (err error) {
2515 2515
 
2516 2516
 func libc_lstat64_trampoline()
2517 2517
 
2518
-//go:linkname libc_lstat64 libc_lstat64
2519 2518
 //go:cgo_import_dynamic libc_lstat64 lstat64 "/usr/lib/libSystem.B.dylib"
2520 2519
 
2521 2520
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2522 2521
 
2523
-func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
2522
+func ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) {
2524 2523
 	_, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
2525 2524
 	if e1 != 0 {
2526 2525
 		err = errnoErr(e1)
... ...
@@ -2530,7 +2389,6 @@ func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
2530 2530
 
2531 2531
 func libc_ptrace_trampoline()
2532 2532
 
2533
-//go:linkname libc_ptrace libc_ptrace
2534 2533
 //go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
2535 2534
 
2536 2535
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2550,7 +2408,6 @@ func Stat(path string, stat *Stat_t) (err error) {
2550 2550
 
2551 2551
 func libc_stat64_trampoline()
2552 2552
 
2553
-//go:linkname libc_stat64 libc_stat64
2554 2553
 //go:cgo_import_dynamic libc_stat64 stat64 "/usr/lib/libSystem.B.dylib"
2555 2554
 
2556 2555
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2570,5 +2427,4 @@ func Statfs(path string, stat *Statfs_t) (err error) {
2570 2570
 
2571 2571
 func libc_statfs64_trampoline()
2572 2572
 
2573
-//go:linkname libc_statfs64 libc_statfs64
2574 2573
 //go:cgo_import_dynamic libc_statfs64 statfs64 "/usr/lib/libSystem.B.dylib"
... ...
@@ -24,7 +24,6 @@ func closedir(dir uintptr) (err error) {
24 24
 
25 25
 func libc_closedir_trampoline()
26 26
 
27
-//go:linkname libc_closedir libc_closedir
28 27
 //go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
29 28
 
30 29
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -37,5 +36,4 @@ func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
37 37
 
38 38
 func libc_readdir_r_trampoline()
39 39
 
40
-//go:linkname libc_readdir_r libc_readdir_r
41 40
 //go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"
... ...
@@ -25,7 +25,6 @@ func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
25 25
 
26 26
 func libc_getgroups_trampoline()
27 27
 
28
-//go:linkname libc_getgroups libc_getgroups
29 28
 //go:cgo_import_dynamic libc_getgroups getgroups "/usr/lib/libSystem.B.dylib"
30 29
 
31 30
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -40,7 +39,6 @@ func setgroups(ngid int, gid *_Gid_t) (err error) {
40 40
 
41 41
 func libc_setgroups_trampoline()
42 42
 
43
-//go:linkname libc_setgroups libc_setgroups
44 43
 //go:cgo_import_dynamic libc_setgroups setgroups "/usr/lib/libSystem.B.dylib"
45 44
 
46 45
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -56,7 +54,6 @@ func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err
56 56
 
57 57
 func libc_wait4_trampoline()
58 58
 
59
-//go:linkname libc_wait4 libc_wait4
60 59
 //go:cgo_import_dynamic libc_wait4 wait4 "/usr/lib/libSystem.B.dylib"
61 60
 
62 61
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -72,7 +69,6 @@ func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
72 72
 
73 73
 func libc_accept_trampoline()
74 74
 
75
-//go:linkname libc_accept libc_accept
76 75
 //go:cgo_import_dynamic libc_accept accept "/usr/lib/libSystem.B.dylib"
77 76
 
78 77
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -87,7 +83,6 @@ func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
87 87
 
88 88
 func libc_bind_trampoline()
89 89
 
90
-//go:linkname libc_bind libc_bind
91 90
 //go:cgo_import_dynamic libc_bind bind "/usr/lib/libSystem.B.dylib"
92 91
 
93 92
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -102,7 +97,6 @@ func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
102 102
 
103 103
 func libc_connect_trampoline()
104 104
 
105
-//go:linkname libc_connect libc_connect
106 105
 //go:cgo_import_dynamic libc_connect connect "/usr/lib/libSystem.B.dylib"
107 106
 
108 107
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -118,7 +112,6 @@ func socket(domain int, typ int, proto int) (fd int, err error) {
118 118
 
119 119
 func libc_socket_trampoline()
120 120
 
121
-//go:linkname libc_socket libc_socket
122 121
 //go:cgo_import_dynamic libc_socket socket "/usr/lib/libSystem.B.dylib"
123 122
 
124 123
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -133,7 +126,6 @@ func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen
133 133
 
134 134
 func libc_getsockopt_trampoline()
135 135
 
136
-//go:linkname libc_getsockopt libc_getsockopt
137 136
 //go:cgo_import_dynamic libc_getsockopt getsockopt "/usr/lib/libSystem.B.dylib"
138 137
 
139 138
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -148,7 +140,6 @@ func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr)
148 148
 
149 149
 func libc_setsockopt_trampoline()
150 150
 
151
-//go:linkname libc_setsockopt libc_setsockopt
152 151
 //go:cgo_import_dynamic libc_setsockopt setsockopt "/usr/lib/libSystem.B.dylib"
153 152
 
154 153
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -163,7 +154,6 @@ func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
163 163
 
164 164
 func libc_getpeername_trampoline()
165 165
 
166
-//go:linkname libc_getpeername libc_getpeername
167 166
 //go:cgo_import_dynamic libc_getpeername getpeername "/usr/lib/libSystem.B.dylib"
168 167
 
169 168
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -178,7 +168,6 @@ func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
178 178
 
179 179
 func libc_getsockname_trampoline()
180 180
 
181
-//go:linkname libc_getsockname libc_getsockname
182 181
 //go:cgo_import_dynamic libc_getsockname getsockname "/usr/lib/libSystem.B.dylib"
183 182
 
184 183
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -193,7 +182,6 @@ func Shutdown(s int, how int) (err error) {
193 193
 
194 194
 func libc_shutdown_trampoline()
195 195
 
196
-//go:linkname libc_shutdown libc_shutdown
197 196
 //go:cgo_import_dynamic libc_shutdown shutdown "/usr/lib/libSystem.B.dylib"
198 197
 
199 198
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -208,7 +196,6 @@ func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
208 208
 
209 209
 func libc_socketpair_trampoline()
210 210
 
211
-//go:linkname libc_socketpair libc_socketpair
212 211
 //go:cgo_import_dynamic libc_socketpair socketpair "/usr/lib/libSystem.B.dylib"
213 212
 
214 213
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -230,7 +217,6 @@ func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Sockl
230 230
 
231 231
 func libc_recvfrom_trampoline()
232 232
 
233
-//go:linkname libc_recvfrom libc_recvfrom
234 233
 //go:cgo_import_dynamic libc_recvfrom recvfrom "/usr/lib/libSystem.B.dylib"
235 234
 
236 235
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -251,7 +237,6 @@ func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (
251 251
 
252 252
 func libc_sendto_trampoline()
253 253
 
254
-//go:linkname libc_sendto libc_sendto
255 254
 //go:cgo_import_dynamic libc_sendto sendto "/usr/lib/libSystem.B.dylib"
256 255
 
257 256
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -267,7 +252,6 @@ func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
267 267
 
268 268
 func libc_recvmsg_trampoline()
269 269
 
270
-//go:linkname libc_recvmsg libc_recvmsg
271 270
 //go:cgo_import_dynamic libc_recvmsg recvmsg "/usr/lib/libSystem.B.dylib"
272 271
 
273 272
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -283,7 +267,6 @@ func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
283 283
 
284 284
 func libc_sendmsg_trampoline()
285 285
 
286
-//go:linkname libc_sendmsg libc_sendmsg
287 286
 //go:cgo_import_dynamic libc_sendmsg sendmsg "/usr/lib/libSystem.B.dylib"
288 287
 
289 288
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -299,7 +282,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne
299 299
 
300 300
 func libc_kevent_trampoline()
301 301
 
302
-//go:linkname libc_kevent libc_kevent
303 302
 //go:cgo_import_dynamic libc_kevent kevent "/usr/lib/libSystem.B.dylib"
304 303
 
305 304
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -319,7 +301,6 @@ func utimes(path string, timeval *[2]Timeval) (err error) {
319 319
 
320 320
 func libc_utimes_trampoline()
321 321
 
322
-//go:linkname libc_utimes libc_utimes
323 322
 //go:cgo_import_dynamic libc_utimes utimes "/usr/lib/libSystem.B.dylib"
324 323
 
325 324
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -334,7 +315,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
334 334
 
335 335
 func libc_futimes_trampoline()
336 336
 
337
-//go:linkname libc_futimes libc_futimes
338 337
 //go:cgo_import_dynamic libc_futimes futimes "/usr/lib/libSystem.B.dylib"
339 338
 
340 339
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -350,7 +330,6 @@ func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
350 350
 
351 351
 func libc_poll_trampoline()
352 352
 
353
-//go:linkname libc_poll libc_poll
354 353
 //go:cgo_import_dynamic libc_poll poll "/usr/lib/libSystem.B.dylib"
355 354
 
356 355
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -371,7 +350,6 @@ func Madvise(b []byte, behav int) (err error) {
371 371
 
372 372
 func libc_madvise_trampoline()
373 373
 
374
-//go:linkname libc_madvise libc_madvise
375 374
 //go:cgo_import_dynamic libc_madvise madvise "/usr/lib/libSystem.B.dylib"
376 375
 
377 376
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -392,7 +370,6 @@ func Mlock(b []byte) (err error) {
392 392
 
393 393
 func libc_mlock_trampoline()
394 394
 
395
-//go:linkname libc_mlock libc_mlock
396 395
 //go:cgo_import_dynamic libc_mlock mlock "/usr/lib/libSystem.B.dylib"
397 396
 
398 397
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -407,7 +384,6 @@ func Mlockall(flags int) (err error) {
407 407
 
408 408
 func libc_mlockall_trampoline()
409 409
 
410
-//go:linkname libc_mlockall libc_mlockall
411 410
 //go:cgo_import_dynamic libc_mlockall mlockall "/usr/lib/libSystem.B.dylib"
412 411
 
413 412
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -428,7 +404,6 @@ func Mprotect(b []byte, prot int) (err error) {
428 428
 
429 429
 func libc_mprotect_trampoline()
430 430
 
431
-//go:linkname libc_mprotect libc_mprotect
432 431
 //go:cgo_import_dynamic libc_mprotect mprotect "/usr/lib/libSystem.B.dylib"
433 432
 
434 433
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -449,7 +424,6 @@ func Msync(b []byte, flags int) (err error) {
449 449
 
450 450
 func libc_msync_trampoline()
451 451
 
452
-//go:linkname libc_msync libc_msync
453 452
 //go:cgo_import_dynamic libc_msync msync "/usr/lib/libSystem.B.dylib"
454 453
 
455 454
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -470,7 +444,6 @@ func Munlock(b []byte) (err error) {
470 470
 
471 471
 func libc_munlock_trampoline()
472 472
 
473
-//go:linkname libc_munlock libc_munlock
474 473
 //go:cgo_import_dynamic libc_munlock munlock "/usr/lib/libSystem.B.dylib"
475 474
 
476 475
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -485,15 +458,12 @@ func Munlockall() (err error) {
485 485
 
486 486
 func libc_munlockall_trampoline()
487 487
 
488
-//go:linkname libc_munlockall libc_munlockall
489 488
 //go:cgo_import_dynamic libc_munlockall munlockall "/usr/lib/libSystem.B.dylib"
490 489
 
491 490
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
492 491
 
493
-func pipe() (r int, w int, err error) {
494
-	r0, r1, e1 := syscall_rawSyscall(funcPC(libc_pipe_trampoline), 0, 0, 0)
495
-	r = int(r0)
496
-	w = int(r1)
492
+func pipe(p *[2]int32) (err error) {
493
+	_, _, e1 := syscall_rawSyscall(funcPC(libc_pipe_trampoline), uintptr(unsafe.Pointer(p)), 0, 0)
497 494
 	if e1 != 0 {
498 495
 		err = errnoErr(e1)
499 496
 	}
... ...
@@ -502,7 +472,6 @@ func pipe() (r int, w int, err error) {
502 502
 
503 503
 func libc_pipe_trampoline()
504 504
 
505
-//go:linkname libc_pipe libc_pipe
506 505
 //go:cgo_import_dynamic libc_pipe pipe "/usr/lib/libSystem.B.dylib"
507 506
 
508 507
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -528,7 +497,6 @@ func getxattr(path string, attr string, dest *byte, size int, position uint32, o
528 528
 
529 529
 func libc_getxattr_trampoline()
530 530
 
531
-//go:linkname libc_getxattr libc_getxattr
532 531
 //go:cgo_import_dynamic libc_getxattr getxattr "/usr/lib/libSystem.B.dylib"
533 532
 
534 533
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -549,7 +517,6 @@ func fgetxattr(fd int, attr string, dest *byte, size int, position uint32, optio
549 549
 
550 550
 func libc_fgetxattr_trampoline()
551 551
 
552
-//go:linkname libc_fgetxattr libc_fgetxattr
553 552
 //go:cgo_import_dynamic libc_fgetxattr fgetxattr "/usr/lib/libSystem.B.dylib"
554 553
 
555 554
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -574,7 +541,6 @@ func setxattr(path string, attr string, data *byte, size int, position uint32, o
574 574
 
575 575
 func libc_setxattr_trampoline()
576 576
 
577
-//go:linkname libc_setxattr libc_setxattr
578 577
 //go:cgo_import_dynamic libc_setxattr setxattr "/usr/lib/libSystem.B.dylib"
579 578
 
580 579
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -594,7 +560,6 @@ func fsetxattr(fd int, attr string, data *byte, size int, position uint32, optio
594 594
 
595 595
 func libc_fsetxattr_trampoline()
596 596
 
597
-//go:linkname libc_fsetxattr libc_fsetxattr
598 597
 //go:cgo_import_dynamic libc_fsetxattr fsetxattr "/usr/lib/libSystem.B.dylib"
599 598
 
600 599
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -619,7 +584,6 @@ func removexattr(path string, attr string, options int) (err error) {
619 619
 
620 620
 func libc_removexattr_trampoline()
621 621
 
622
-//go:linkname libc_removexattr libc_removexattr
623 622
 //go:cgo_import_dynamic libc_removexattr removexattr "/usr/lib/libSystem.B.dylib"
624 623
 
625 624
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -639,7 +603,6 @@ func fremovexattr(fd int, attr string, options int) (err error) {
639 639
 
640 640
 func libc_fremovexattr_trampoline()
641 641
 
642
-//go:linkname libc_fremovexattr libc_fremovexattr
643 642
 //go:cgo_import_dynamic libc_fremovexattr fremovexattr "/usr/lib/libSystem.B.dylib"
644 643
 
645 644
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -660,7 +623,6 @@ func listxattr(path string, dest *byte, size int, options int) (sz int, err erro
660 660
 
661 661
 func libc_listxattr_trampoline()
662 662
 
663
-//go:linkname libc_listxattr libc_listxattr
664 663
 //go:cgo_import_dynamic libc_listxattr listxattr "/usr/lib/libSystem.B.dylib"
665 664
 
666 665
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -676,7 +638,6 @@ func flistxattr(fd int, dest *byte, size int, options int) (sz int, err error) {
676 676
 
677 677
 func libc_flistxattr_trampoline()
678 678
 
679
-//go:linkname libc_flistxattr libc_flistxattr
680 679
 //go:cgo_import_dynamic libc_flistxattr flistxattr "/usr/lib/libSystem.B.dylib"
681 680
 
682 681
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -691,7 +652,6 @@ func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintp
691 691
 
692 692
 func libc_setattrlist_trampoline()
693 693
 
694
-//go:linkname libc_setattrlist libc_setattrlist
695 694
 //go:cgo_import_dynamic libc_setattrlist setattrlist "/usr/lib/libSystem.B.dylib"
696 695
 
697 696
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -707,7 +667,6 @@ func fcntl(fd int, cmd int, arg int) (val int, err error) {
707 707
 
708 708
 func libc_fcntl_trampoline()
709 709
 
710
-//go:linkname libc_fcntl libc_fcntl
711 710
 //go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
712 711
 
713 712
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -722,7 +681,6 @@ func kill(pid int, signum int, posix int) (err error) {
722 722
 
723 723
 func libc_kill_trampoline()
724 724
 
725
-//go:linkname libc_kill libc_kill
726 725
 //go:cgo_import_dynamic libc_kill kill "/usr/lib/libSystem.B.dylib"
727 726
 
728 727
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -737,7 +695,6 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
737 737
 
738 738
 func libc_ioctl_trampoline()
739 739
 
740
-//go:linkname libc_ioctl libc_ioctl
741 740
 //go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib"
742 741
 
743 742
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -758,7 +715,6 @@ func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr)
758 758
 
759 759
 func libc_sysctl_trampoline()
760 760
 
761
-//go:linkname libc_sysctl libc_sysctl
762 761
 //go:cgo_import_dynamic libc_sysctl sysctl "/usr/lib/libSystem.B.dylib"
763 762
 
764 763
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -773,7 +729,6 @@ func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer
773 773
 
774 774
 func libc_sendfile_trampoline()
775 775
 
776
-//go:linkname libc_sendfile libc_sendfile
777 776
 //go:cgo_import_dynamic libc_sendfile sendfile "/usr/lib/libSystem.B.dylib"
778 777
 
779 778
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -793,7 +748,6 @@ func Access(path string, mode uint32) (err error) {
793 793
 
794 794
 func libc_access_trampoline()
795 795
 
796
-//go:linkname libc_access libc_access
797 796
 //go:cgo_import_dynamic libc_access access "/usr/lib/libSystem.B.dylib"
798 797
 
799 798
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -808,7 +762,6 @@ func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
808 808
 
809 809
 func libc_adjtime_trampoline()
810 810
 
811
-//go:linkname libc_adjtime libc_adjtime
812 811
 //go:cgo_import_dynamic libc_adjtime adjtime "/usr/lib/libSystem.B.dylib"
813 812
 
814 813
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -828,7 +781,6 @@ func Chdir(path string) (err error) {
828 828
 
829 829
 func libc_chdir_trampoline()
830 830
 
831
-//go:linkname libc_chdir libc_chdir
832 831
 //go:cgo_import_dynamic libc_chdir chdir "/usr/lib/libSystem.B.dylib"
833 832
 
834 833
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -848,7 +800,6 @@ func Chflags(path string, flags int) (err error) {
848 848
 
849 849
 func libc_chflags_trampoline()
850 850
 
851
-//go:linkname libc_chflags libc_chflags
852 851
 //go:cgo_import_dynamic libc_chflags chflags "/usr/lib/libSystem.B.dylib"
853 852
 
854 853
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -868,7 +819,6 @@ func Chmod(path string, mode uint32) (err error) {
868 868
 
869 869
 func libc_chmod_trampoline()
870 870
 
871
-//go:linkname libc_chmod libc_chmod
872 871
 //go:cgo_import_dynamic libc_chmod chmod "/usr/lib/libSystem.B.dylib"
873 872
 
874 873
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -888,7 +838,6 @@ func Chown(path string, uid int, gid int) (err error) {
888 888
 
889 889
 func libc_chown_trampoline()
890 890
 
891
-//go:linkname libc_chown libc_chown
892 891
 //go:cgo_import_dynamic libc_chown chown "/usr/lib/libSystem.B.dylib"
893 892
 
894 893
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -908,7 +857,6 @@ func Chroot(path string) (err error) {
908 908
 
909 909
 func libc_chroot_trampoline()
910 910
 
911
-//go:linkname libc_chroot libc_chroot
912 911
 //go:cgo_import_dynamic libc_chroot chroot "/usr/lib/libSystem.B.dylib"
913 912
 
914 913
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -923,7 +871,6 @@ func ClockGettime(clockid int32, time *Timespec) (err error) {
923 923
 
924 924
 func libc_clock_gettime_trampoline()
925 925
 
926
-//go:linkname libc_clock_gettime libc_clock_gettime
927 926
 //go:cgo_import_dynamic libc_clock_gettime clock_gettime "/usr/lib/libSystem.B.dylib"
928 927
 
929 928
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -938,7 +885,6 @@ func Close(fd int) (err error) {
938 938
 
939 939
 func libc_close_trampoline()
940 940
 
941
-//go:linkname libc_close libc_close
942 941
 //go:cgo_import_dynamic libc_close close "/usr/lib/libSystem.B.dylib"
943 942
 
944 943
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -963,7 +909,6 @@ func Clonefile(src string, dst string, flags int) (err error) {
963 963
 
964 964
 func libc_clonefile_trampoline()
965 965
 
966
-//go:linkname libc_clonefile libc_clonefile
967 966
 //go:cgo_import_dynamic libc_clonefile clonefile "/usr/lib/libSystem.B.dylib"
968 967
 
969 968
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -988,7 +933,6 @@ func Clonefileat(srcDirfd int, src string, dstDirfd int, dst string, flags int)
988 988
 
989 989
 func libc_clonefileat_trampoline()
990 990
 
991
-//go:linkname libc_clonefileat libc_clonefileat
992 991
 //go:cgo_import_dynamic libc_clonefileat clonefileat "/usr/lib/libSystem.B.dylib"
993 992
 
994 993
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1004,7 +948,6 @@ func Dup(fd int) (nfd int, err error) {
1004 1004
 
1005 1005
 func libc_dup_trampoline()
1006 1006
 
1007
-//go:linkname libc_dup libc_dup
1008 1007
 //go:cgo_import_dynamic libc_dup dup "/usr/lib/libSystem.B.dylib"
1009 1008
 
1010 1009
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1019,7 +962,6 @@ func Dup2(from int, to int) (err error) {
1019 1019
 
1020 1020
 func libc_dup2_trampoline()
1021 1021
 
1022
-//go:linkname libc_dup2 libc_dup2
1023 1022
 //go:cgo_import_dynamic libc_dup2 dup2 "/usr/lib/libSystem.B.dylib"
1024 1023
 
1025 1024
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1044,7 +986,6 @@ func Exchangedata(path1 string, path2 string, options int) (err error) {
1044 1044
 
1045 1045
 func libc_exchangedata_trampoline()
1046 1046
 
1047
-//go:linkname libc_exchangedata libc_exchangedata
1048 1047
 //go:cgo_import_dynamic libc_exchangedata exchangedata "/usr/lib/libSystem.B.dylib"
1049 1048
 
1050 1049
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1056,7 +997,6 @@ func Exit(code int) {
1056 1056
 
1057 1057
 func libc_exit_trampoline()
1058 1058
 
1059
-//go:linkname libc_exit libc_exit
1060 1059
 //go:cgo_import_dynamic libc_exit exit "/usr/lib/libSystem.B.dylib"
1061 1060
 
1062 1061
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1076,7 +1016,6 @@ func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
1076 1076
 
1077 1077
 func libc_faccessat_trampoline()
1078 1078
 
1079
-//go:linkname libc_faccessat libc_faccessat
1080 1079
 //go:cgo_import_dynamic libc_faccessat faccessat "/usr/lib/libSystem.B.dylib"
1081 1080
 
1082 1081
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1091,7 +1030,6 @@ func Fchdir(fd int) (err error) {
1091 1091
 
1092 1092
 func libc_fchdir_trampoline()
1093 1093
 
1094
-//go:linkname libc_fchdir libc_fchdir
1095 1094
 //go:cgo_import_dynamic libc_fchdir fchdir "/usr/lib/libSystem.B.dylib"
1096 1095
 
1097 1096
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1106,7 +1044,6 @@ func Fchflags(fd int, flags int) (err error) {
1106 1106
 
1107 1107
 func libc_fchflags_trampoline()
1108 1108
 
1109
-//go:linkname libc_fchflags libc_fchflags
1110 1109
 //go:cgo_import_dynamic libc_fchflags fchflags "/usr/lib/libSystem.B.dylib"
1111 1110
 
1112 1111
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1121,7 +1058,6 @@ func Fchmod(fd int, mode uint32) (err error) {
1121 1121
 
1122 1122
 func libc_fchmod_trampoline()
1123 1123
 
1124
-//go:linkname libc_fchmod libc_fchmod
1125 1124
 //go:cgo_import_dynamic libc_fchmod fchmod "/usr/lib/libSystem.B.dylib"
1126 1125
 
1127 1126
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1141,7 +1077,6 @@ func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
1141 1141
 
1142 1142
 func libc_fchmodat_trampoline()
1143 1143
 
1144
-//go:linkname libc_fchmodat libc_fchmodat
1145 1144
 //go:cgo_import_dynamic libc_fchmodat fchmodat "/usr/lib/libSystem.B.dylib"
1146 1145
 
1147 1146
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1156,7 +1091,6 @@ func Fchown(fd int, uid int, gid int) (err error) {
1156 1156
 
1157 1157
 func libc_fchown_trampoline()
1158 1158
 
1159
-//go:linkname libc_fchown libc_fchown
1160 1159
 //go:cgo_import_dynamic libc_fchown fchown "/usr/lib/libSystem.B.dylib"
1161 1160
 
1162 1161
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1176,7 +1110,6 @@ func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
1176 1176
 
1177 1177
 func libc_fchownat_trampoline()
1178 1178
 
1179
-//go:linkname libc_fchownat libc_fchownat
1180 1179
 //go:cgo_import_dynamic libc_fchownat fchownat "/usr/lib/libSystem.B.dylib"
1181 1180
 
1182 1181
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1196,7 +1129,6 @@ func Fclonefileat(srcDirfd int, dstDirfd int, dst string, flags int) (err error)
1196 1196
 
1197 1197
 func libc_fclonefileat_trampoline()
1198 1198
 
1199
-//go:linkname libc_fclonefileat libc_fclonefileat
1200 1199
 //go:cgo_import_dynamic libc_fclonefileat fclonefileat "/usr/lib/libSystem.B.dylib"
1201 1200
 
1202 1201
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1211,7 +1143,6 @@ func Flock(fd int, how int) (err error) {
1211 1211
 
1212 1212
 func libc_flock_trampoline()
1213 1213
 
1214
-//go:linkname libc_flock libc_flock
1215 1214
 //go:cgo_import_dynamic libc_flock flock "/usr/lib/libSystem.B.dylib"
1216 1215
 
1217 1216
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1227,7 +1158,6 @@ func Fpathconf(fd int, name int) (val int, err error) {
1227 1227
 
1228 1228
 func libc_fpathconf_trampoline()
1229 1229
 
1230
-//go:linkname libc_fpathconf libc_fpathconf
1231 1230
 //go:cgo_import_dynamic libc_fpathconf fpathconf "/usr/lib/libSystem.B.dylib"
1232 1231
 
1233 1232
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1242,7 +1172,6 @@ func Fsync(fd int) (err error) {
1242 1242
 
1243 1243
 func libc_fsync_trampoline()
1244 1244
 
1245
-//go:linkname libc_fsync libc_fsync
1246 1245
 //go:cgo_import_dynamic libc_fsync fsync "/usr/lib/libSystem.B.dylib"
1247 1246
 
1248 1247
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1257,7 +1186,6 @@ func Ftruncate(fd int, length int64) (err error) {
1257 1257
 
1258 1258
 func libc_ftruncate_trampoline()
1259 1259
 
1260
-//go:linkname libc_ftruncate libc_ftruncate
1261 1260
 //go:cgo_import_dynamic libc_ftruncate ftruncate "/usr/lib/libSystem.B.dylib"
1262 1261
 
1263 1262
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1279,7 +1207,6 @@ func Getcwd(buf []byte) (n int, err error) {
1279 1279
 
1280 1280
 func libc_getcwd_trampoline()
1281 1281
 
1282
-//go:linkname libc_getcwd libc_getcwd
1283 1282
 //go:cgo_import_dynamic libc_getcwd getcwd "/usr/lib/libSystem.B.dylib"
1284 1283
 
1285 1284
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1292,7 +1219,6 @@ func Getdtablesize() (size int) {
1292 1292
 
1293 1293
 func libc_getdtablesize_trampoline()
1294 1294
 
1295
-//go:linkname libc_getdtablesize libc_getdtablesize
1296 1295
 //go:cgo_import_dynamic libc_getdtablesize getdtablesize "/usr/lib/libSystem.B.dylib"
1297 1296
 
1298 1297
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1305,7 +1231,6 @@ func Getegid() (egid int) {
1305 1305
 
1306 1306
 func libc_getegid_trampoline()
1307 1307
 
1308
-//go:linkname libc_getegid libc_getegid
1309 1308
 //go:cgo_import_dynamic libc_getegid getegid "/usr/lib/libSystem.B.dylib"
1310 1309
 
1311 1310
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1318,7 +1243,6 @@ func Geteuid() (uid int) {
1318 1318
 
1319 1319
 func libc_geteuid_trampoline()
1320 1320
 
1321
-//go:linkname libc_geteuid libc_geteuid
1322 1321
 //go:cgo_import_dynamic libc_geteuid geteuid "/usr/lib/libSystem.B.dylib"
1323 1322
 
1324 1323
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1331,7 +1255,6 @@ func Getgid() (gid int) {
1331 1331
 
1332 1332
 func libc_getgid_trampoline()
1333 1333
 
1334
-//go:linkname libc_getgid libc_getgid
1335 1334
 //go:cgo_import_dynamic libc_getgid getgid "/usr/lib/libSystem.B.dylib"
1336 1335
 
1337 1336
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1347,7 +1270,6 @@ func Getpgid(pid int) (pgid int, err error) {
1347 1347
 
1348 1348
 func libc_getpgid_trampoline()
1349 1349
 
1350
-//go:linkname libc_getpgid libc_getpgid
1351 1350
 //go:cgo_import_dynamic libc_getpgid getpgid "/usr/lib/libSystem.B.dylib"
1352 1351
 
1353 1352
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1360,7 +1282,6 @@ func Getpgrp() (pgrp int) {
1360 1360
 
1361 1361
 func libc_getpgrp_trampoline()
1362 1362
 
1363
-//go:linkname libc_getpgrp libc_getpgrp
1364 1363
 //go:cgo_import_dynamic libc_getpgrp getpgrp "/usr/lib/libSystem.B.dylib"
1365 1364
 
1366 1365
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1373,7 +1294,6 @@ func Getpid() (pid int) {
1373 1373
 
1374 1374
 func libc_getpid_trampoline()
1375 1375
 
1376
-//go:linkname libc_getpid libc_getpid
1377 1376
 //go:cgo_import_dynamic libc_getpid getpid "/usr/lib/libSystem.B.dylib"
1378 1377
 
1379 1378
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1386,7 +1306,6 @@ func Getppid() (ppid int) {
1386 1386
 
1387 1387
 func libc_getppid_trampoline()
1388 1388
 
1389
-//go:linkname libc_getppid libc_getppid
1390 1389
 //go:cgo_import_dynamic libc_getppid getppid "/usr/lib/libSystem.B.dylib"
1391 1390
 
1392 1391
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1402,7 +1321,6 @@ func Getpriority(which int, who int) (prio int, err error) {
1402 1402
 
1403 1403
 func libc_getpriority_trampoline()
1404 1404
 
1405
-//go:linkname libc_getpriority libc_getpriority
1406 1405
 //go:cgo_import_dynamic libc_getpriority getpriority "/usr/lib/libSystem.B.dylib"
1407 1406
 
1408 1407
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1417,7 +1335,6 @@ func Getrlimit(which int, lim *Rlimit) (err error) {
1417 1417
 
1418 1418
 func libc_getrlimit_trampoline()
1419 1419
 
1420
-//go:linkname libc_getrlimit libc_getrlimit
1421 1420
 //go:cgo_import_dynamic libc_getrlimit getrlimit "/usr/lib/libSystem.B.dylib"
1422 1421
 
1423 1422
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1432,7 +1349,6 @@ func Getrusage(who int, rusage *Rusage) (err error) {
1432 1432
 
1433 1433
 func libc_getrusage_trampoline()
1434 1434
 
1435
-//go:linkname libc_getrusage libc_getrusage
1436 1435
 //go:cgo_import_dynamic libc_getrusage getrusage "/usr/lib/libSystem.B.dylib"
1437 1436
 
1438 1437
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1448,7 +1364,6 @@ func Getsid(pid int) (sid int, err error) {
1448 1448
 
1449 1449
 func libc_getsid_trampoline()
1450 1450
 
1451
-//go:linkname libc_getsid libc_getsid
1452 1451
 //go:cgo_import_dynamic libc_getsid getsid "/usr/lib/libSystem.B.dylib"
1453 1452
 
1454 1453
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1463,7 +1378,6 @@ func Gettimeofday(tp *Timeval) (err error) {
1463 1463
 
1464 1464
 func libc_gettimeofday_trampoline()
1465 1465
 
1466
-//go:linkname libc_gettimeofday libc_gettimeofday
1467 1466
 //go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib"
1468 1467
 
1469 1468
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1476,7 +1390,6 @@ func Getuid() (uid int) {
1476 1476
 
1477 1477
 func libc_getuid_trampoline()
1478 1478
 
1479
-//go:linkname libc_getuid libc_getuid
1480 1479
 //go:cgo_import_dynamic libc_getuid getuid "/usr/lib/libSystem.B.dylib"
1481 1480
 
1482 1481
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1489,7 +1402,6 @@ func Issetugid() (tainted bool) {
1489 1489
 
1490 1490
 func libc_issetugid_trampoline()
1491 1491
 
1492
-//go:linkname libc_issetugid libc_issetugid
1493 1492
 //go:cgo_import_dynamic libc_issetugid issetugid "/usr/lib/libSystem.B.dylib"
1494 1493
 
1495 1494
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1505,7 +1417,6 @@ func Kqueue() (fd int, err error) {
1505 1505
 
1506 1506
 func libc_kqueue_trampoline()
1507 1507
 
1508
-//go:linkname libc_kqueue libc_kqueue
1509 1508
 //go:cgo_import_dynamic libc_kqueue kqueue "/usr/lib/libSystem.B.dylib"
1510 1509
 
1511 1510
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1525,7 +1436,6 @@ func Lchown(path string, uid int, gid int) (err error) {
1525 1525
 
1526 1526
 func libc_lchown_trampoline()
1527 1527
 
1528
-//go:linkname libc_lchown libc_lchown
1529 1528
 //go:cgo_import_dynamic libc_lchown lchown "/usr/lib/libSystem.B.dylib"
1530 1529
 
1531 1530
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1550,7 +1460,6 @@ func Link(path string, link string) (err error) {
1550 1550
 
1551 1551
 func libc_link_trampoline()
1552 1552
 
1553
-//go:linkname libc_link libc_link
1554 1553
 //go:cgo_import_dynamic libc_link link "/usr/lib/libSystem.B.dylib"
1555 1554
 
1556 1555
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1575,7 +1484,6 @@ func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err er
1575 1575
 
1576 1576
 func libc_linkat_trampoline()
1577 1577
 
1578
-//go:linkname libc_linkat libc_linkat
1579 1578
 //go:cgo_import_dynamic libc_linkat linkat "/usr/lib/libSystem.B.dylib"
1580 1579
 
1581 1580
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1590,7 +1498,6 @@ func Listen(s int, backlog int) (err error) {
1590 1590
 
1591 1591
 func libc_listen_trampoline()
1592 1592
 
1593
-//go:linkname libc_listen libc_listen
1594 1593
 //go:cgo_import_dynamic libc_listen listen "/usr/lib/libSystem.B.dylib"
1595 1594
 
1596 1595
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1610,7 +1517,6 @@ func Mkdir(path string, mode uint32) (err error) {
1610 1610
 
1611 1611
 func libc_mkdir_trampoline()
1612 1612
 
1613
-//go:linkname libc_mkdir libc_mkdir
1614 1613
 //go:cgo_import_dynamic libc_mkdir mkdir "/usr/lib/libSystem.B.dylib"
1615 1614
 
1616 1615
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1630,7 +1536,6 @@ func Mkdirat(dirfd int, path string, mode uint32) (err error) {
1630 1630
 
1631 1631
 func libc_mkdirat_trampoline()
1632 1632
 
1633
-//go:linkname libc_mkdirat libc_mkdirat
1634 1633
 //go:cgo_import_dynamic libc_mkdirat mkdirat "/usr/lib/libSystem.B.dylib"
1635 1634
 
1636 1635
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1650,7 +1555,6 @@ func Mkfifo(path string, mode uint32) (err error) {
1650 1650
 
1651 1651
 func libc_mkfifo_trampoline()
1652 1652
 
1653
-//go:linkname libc_mkfifo libc_mkfifo
1654 1653
 //go:cgo_import_dynamic libc_mkfifo mkfifo "/usr/lib/libSystem.B.dylib"
1655 1654
 
1656 1655
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1670,7 +1574,6 @@ func Mknod(path string, mode uint32, dev int) (err error) {
1670 1670
 
1671 1671
 func libc_mknod_trampoline()
1672 1672
 
1673
-//go:linkname libc_mknod libc_mknod
1674 1673
 //go:cgo_import_dynamic libc_mknod mknod "/usr/lib/libSystem.B.dylib"
1675 1674
 
1676 1675
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1691,7 +1594,6 @@ func Open(path string, mode int, perm uint32) (fd int, err error) {
1691 1691
 
1692 1692
 func libc_open_trampoline()
1693 1693
 
1694
-//go:linkname libc_open libc_open
1695 1694
 //go:cgo_import_dynamic libc_open open "/usr/lib/libSystem.B.dylib"
1696 1695
 
1697 1696
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1712,7 +1614,6 @@ func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) {
1712 1712
 
1713 1713
 func libc_openat_trampoline()
1714 1714
 
1715
-//go:linkname libc_openat libc_openat
1716 1715
 //go:cgo_import_dynamic libc_openat openat "/usr/lib/libSystem.B.dylib"
1717 1716
 
1718 1717
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1733,7 +1634,6 @@ func Pathconf(path string, name int) (val int, err error) {
1733 1733
 
1734 1734
 func libc_pathconf_trampoline()
1735 1735
 
1736
-//go:linkname libc_pathconf libc_pathconf
1737 1736
 //go:cgo_import_dynamic libc_pathconf pathconf "/usr/lib/libSystem.B.dylib"
1738 1737
 
1739 1738
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1755,7 +1655,6 @@ func Pread(fd int, p []byte, offset int64) (n int, err error) {
1755 1755
 
1756 1756
 func libc_pread_trampoline()
1757 1757
 
1758
-//go:linkname libc_pread libc_pread
1759 1758
 //go:cgo_import_dynamic libc_pread pread "/usr/lib/libSystem.B.dylib"
1760 1759
 
1761 1760
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1777,7 +1676,6 @@ func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
1777 1777
 
1778 1778
 func libc_pwrite_trampoline()
1779 1779
 
1780
-//go:linkname libc_pwrite libc_pwrite
1781 1780
 //go:cgo_import_dynamic libc_pwrite pwrite "/usr/lib/libSystem.B.dylib"
1782 1781
 
1783 1782
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1799,7 +1697,6 @@ func read(fd int, p []byte) (n int, err error) {
1799 1799
 
1800 1800
 func libc_read_trampoline()
1801 1801
 
1802
-//go:linkname libc_read libc_read
1803 1802
 //go:cgo_import_dynamic libc_read read "/usr/lib/libSystem.B.dylib"
1804 1803
 
1805 1804
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1826,7 +1723,6 @@ func Readlink(path string, buf []byte) (n int, err error) {
1826 1826
 
1827 1827
 func libc_readlink_trampoline()
1828 1828
 
1829
-//go:linkname libc_readlink libc_readlink
1830 1829
 //go:cgo_import_dynamic libc_readlink readlink "/usr/lib/libSystem.B.dylib"
1831 1830
 
1832 1831
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1853,7 +1749,6 @@ func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
1853 1853
 
1854 1854
 func libc_readlinkat_trampoline()
1855 1855
 
1856
-//go:linkname libc_readlinkat libc_readlinkat
1857 1856
 //go:cgo_import_dynamic libc_readlinkat readlinkat "/usr/lib/libSystem.B.dylib"
1858 1857
 
1859 1858
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1878,7 +1773,6 @@ func Rename(from string, to string) (err error) {
1878 1878
 
1879 1879
 func libc_rename_trampoline()
1880 1880
 
1881
-//go:linkname libc_rename libc_rename
1882 1881
 //go:cgo_import_dynamic libc_rename rename "/usr/lib/libSystem.B.dylib"
1883 1882
 
1884 1883
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1903,7 +1797,6 @@ func Renameat(fromfd int, from string, tofd int, to string) (err error) {
1903 1903
 
1904 1904
 func libc_renameat_trampoline()
1905 1905
 
1906
-//go:linkname libc_renameat libc_renameat
1907 1906
 //go:cgo_import_dynamic libc_renameat renameat "/usr/lib/libSystem.B.dylib"
1908 1907
 
1909 1908
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1923,7 +1816,6 @@ func Revoke(path string) (err error) {
1923 1923
 
1924 1924
 func libc_revoke_trampoline()
1925 1925
 
1926
-//go:linkname libc_revoke libc_revoke
1927 1926
 //go:cgo_import_dynamic libc_revoke revoke "/usr/lib/libSystem.B.dylib"
1928 1927
 
1929 1928
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1943,7 +1835,6 @@ func Rmdir(path string) (err error) {
1943 1943
 
1944 1944
 func libc_rmdir_trampoline()
1945 1945
 
1946
-//go:linkname libc_rmdir libc_rmdir
1947 1946
 //go:cgo_import_dynamic libc_rmdir rmdir "/usr/lib/libSystem.B.dylib"
1948 1947
 
1949 1948
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1959,7 +1850,6 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1959 1959
 
1960 1960
 func libc_lseek_trampoline()
1961 1961
 
1962
-//go:linkname libc_lseek libc_lseek
1963 1962
 //go:cgo_import_dynamic libc_lseek lseek "/usr/lib/libSystem.B.dylib"
1964 1963
 
1965 1964
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1975,7 +1865,6 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
1975 1975
 
1976 1976
 func libc_select_trampoline()
1977 1977
 
1978
-//go:linkname libc_select libc_select
1979 1978
 //go:cgo_import_dynamic libc_select select "/usr/lib/libSystem.B.dylib"
1980 1979
 
1981 1980
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1990,7 +1879,6 @@ func Setegid(egid int) (err error) {
1990 1990
 
1991 1991
 func libc_setegid_trampoline()
1992 1992
 
1993
-//go:linkname libc_setegid libc_setegid
1994 1993
 //go:cgo_import_dynamic libc_setegid setegid "/usr/lib/libSystem.B.dylib"
1995 1994
 
1996 1995
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2005,7 +1893,6 @@ func Seteuid(euid int) (err error) {
2005 2005
 
2006 2006
 func libc_seteuid_trampoline()
2007 2007
 
2008
-//go:linkname libc_seteuid libc_seteuid
2009 2008
 //go:cgo_import_dynamic libc_seteuid seteuid "/usr/lib/libSystem.B.dylib"
2010 2009
 
2011 2010
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2020,7 +1907,6 @@ func Setgid(gid int) (err error) {
2020 2020
 
2021 2021
 func libc_setgid_trampoline()
2022 2022
 
2023
-//go:linkname libc_setgid libc_setgid
2024 2023
 //go:cgo_import_dynamic libc_setgid setgid "/usr/lib/libSystem.B.dylib"
2025 2024
 
2026 2025
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2040,7 +1926,6 @@ func Setlogin(name string) (err error) {
2040 2040
 
2041 2041
 func libc_setlogin_trampoline()
2042 2042
 
2043
-//go:linkname libc_setlogin libc_setlogin
2044 2043
 //go:cgo_import_dynamic libc_setlogin setlogin "/usr/lib/libSystem.B.dylib"
2045 2044
 
2046 2045
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2055,7 +1940,6 @@ func Setpgid(pid int, pgid int) (err error) {
2055 2055
 
2056 2056
 func libc_setpgid_trampoline()
2057 2057
 
2058
-//go:linkname libc_setpgid libc_setpgid
2059 2058
 //go:cgo_import_dynamic libc_setpgid setpgid "/usr/lib/libSystem.B.dylib"
2060 2059
 
2061 2060
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2070,7 +1954,6 @@ func Setpriority(which int, who int, prio int) (err error) {
2070 2070
 
2071 2071
 func libc_setpriority_trampoline()
2072 2072
 
2073
-//go:linkname libc_setpriority libc_setpriority
2074 2073
 //go:cgo_import_dynamic libc_setpriority setpriority "/usr/lib/libSystem.B.dylib"
2075 2074
 
2076 2075
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2085,7 +1968,6 @@ func Setprivexec(flag int) (err error) {
2085 2085
 
2086 2086
 func libc_setprivexec_trampoline()
2087 2087
 
2088
-//go:linkname libc_setprivexec libc_setprivexec
2089 2088
 //go:cgo_import_dynamic libc_setprivexec setprivexec "/usr/lib/libSystem.B.dylib"
2090 2089
 
2091 2090
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2100,7 +1982,6 @@ func Setregid(rgid int, egid int) (err error) {
2100 2100
 
2101 2101
 func libc_setregid_trampoline()
2102 2102
 
2103
-//go:linkname libc_setregid libc_setregid
2104 2103
 //go:cgo_import_dynamic libc_setregid setregid "/usr/lib/libSystem.B.dylib"
2105 2104
 
2106 2105
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2115,7 +1996,6 @@ func Setreuid(ruid int, euid int) (err error) {
2115 2115
 
2116 2116
 func libc_setreuid_trampoline()
2117 2117
 
2118
-//go:linkname libc_setreuid libc_setreuid
2119 2118
 //go:cgo_import_dynamic libc_setreuid setreuid "/usr/lib/libSystem.B.dylib"
2120 2119
 
2121 2120
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2130,7 +2010,6 @@ func Setrlimit(which int, lim *Rlimit) (err error) {
2130 2130
 
2131 2131
 func libc_setrlimit_trampoline()
2132 2132
 
2133
-//go:linkname libc_setrlimit libc_setrlimit
2134 2133
 //go:cgo_import_dynamic libc_setrlimit setrlimit "/usr/lib/libSystem.B.dylib"
2135 2134
 
2136 2135
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2146,7 +2025,6 @@ func Setsid() (pid int, err error) {
2146 2146
 
2147 2147
 func libc_setsid_trampoline()
2148 2148
 
2149
-//go:linkname libc_setsid libc_setsid
2150 2149
 //go:cgo_import_dynamic libc_setsid setsid "/usr/lib/libSystem.B.dylib"
2151 2150
 
2152 2151
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2161,7 +2039,6 @@ func Settimeofday(tp *Timeval) (err error) {
2161 2161
 
2162 2162
 func libc_settimeofday_trampoline()
2163 2163
 
2164
-//go:linkname libc_settimeofday libc_settimeofday
2165 2164
 //go:cgo_import_dynamic libc_settimeofday settimeofday "/usr/lib/libSystem.B.dylib"
2166 2165
 
2167 2166
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2176,7 +2053,6 @@ func Setuid(uid int) (err error) {
2176 2176
 
2177 2177
 func libc_setuid_trampoline()
2178 2178
 
2179
-//go:linkname libc_setuid libc_setuid
2180 2179
 //go:cgo_import_dynamic libc_setuid setuid "/usr/lib/libSystem.B.dylib"
2181 2180
 
2182 2181
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2201,7 +2077,6 @@ func Symlink(path string, link string) (err error) {
2201 2201
 
2202 2202
 func libc_symlink_trampoline()
2203 2203
 
2204
-//go:linkname libc_symlink libc_symlink
2205 2204
 //go:cgo_import_dynamic libc_symlink symlink "/usr/lib/libSystem.B.dylib"
2206 2205
 
2207 2206
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2226,7 +2101,6 @@ func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
2226 2226
 
2227 2227
 func libc_symlinkat_trampoline()
2228 2228
 
2229
-//go:linkname libc_symlinkat libc_symlinkat
2230 2229
 //go:cgo_import_dynamic libc_symlinkat symlinkat "/usr/lib/libSystem.B.dylib"
2231 2230
 
2232 2231
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2241,7 +2115,6 @@ func Sync() (err error) {
2241 2241
 
2242 2242
 func libc_sync_trampoline()
2243 2243
 
2244
-//go:linkname libc_sync libc_sync
2245 2244
 //go:cgo_import_dynamic libc_sync sync "/usr/lib/libSystem.B.dylib"
2246 2245
 
2247 2246
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2261,7 +2134,6 @@ func Truncate(path string, length int64) (err error) {
2261 2261
 
2262 2262
 func libc_truncate_trampoline()
2263 2263
 
2264
-//go:linkname libc_truncate libc_truncate
2265 2264
 //go:cgo_import_dynamic libc_truncate truncate "/usr/lib/libSystem.B.dylib"
2266 2265
 
2267 2266
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2274,7 +2146,6 @@ func Umask(newmask int) (oldmask int) {
2274 2274
 
2275 2275
 func libc_umask_trampoline()
2276 2276
 
2277
-//go:linkname libc_umask libc_umask
2278 2277
 //go:cgo_import_dynamic libc_umask umask "/usr/lib/libSystem.B.dylib"
2279 2278
 
2280 2279
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2294,7 +2165,6 @@ func Undelete(path string) (err error) {
2294 2294
 
2295 2295
 func libc_undelete_trampoline()
2296 2296
 
2297
-//go:linkname libc_undelete libc_undelete
2298 2297
 //go:cgo_import_dynamic libc_undelete undelete "/usr/lib/libSystem.B.dylib"
2299 2298
 
2300 2299
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2314,7 +2184,6 @@ func Unlink(path string) (err error) {
2314 2314
 
2315 2315
 func libc_unlink_trampoline()
2316 2316
 
2317
-//go:linkname libc_unlink libc_unlink
2318 2317
 //go:cgo_import_dynamic libc_unlink unlink "/usr/lib/libSystem.B.dylib"
2319 2318
 
2320 2319
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2334,7 +2203,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
2334 2334
 
2335 2335
 func libc_unlinkat_trampoline()
2336 2336
 
2337
-//go:linkname libc_unlinkat libc_unlinkat
2338 2337
 //go:cgo_import_dynamic libc_unlinkat unlinkat "/usr/lib/libSystem.B.dylib"
2339 2338
 
2340 2339
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2354,7 +2222,6 @@ func Unmount(path string, flags int) (err error) {
2354 2354
 
2355 2355
 func libc_unmount_trampoline()
2356 2356
 
2357
-//go:linkname libc_unmount libc_unmount
2358 2357
 //go:cgo_import_dynamic libc_unmount unmount "/usr/lib/libSystem.B.dylib"
2359 2358
 
2360 2359
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2376,7 +2243,6 @@ func write(fd int, p []byte) (n int, err error) {
2376 2376
 
2377 2377
 func libc_write_trampoline()
2378 2378
 
2379
-//go:linkname libc_write libc_write
2380 2379
 //go:cgo_import_dynamic libc_write write "/usr/lib/libSystem.B.dylib"
2381 2380
 
2382 2381
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2392,7 +2258,6 @@ func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (
2392 2392
 
2393 2393
 func libc_mmap_trampoline()
2394 2394
 
2395
-//go:linkname libc_mmap libc_mmap
2396 2395
 //go:cgo_import_dynamic libc_mmap mmap "/usr/lib/libSystem.B.dylib"
2397 2396
 
2398 2397
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2407,7 +2272,6 @@ func munmap(addr uintptr, length uintptr) (err error) {
2407 2407
 
2408 2408
 func libc_munmap_trampoline()
2409 2409
 
2410
-//go:linkname libc_munmap libc_munmap
2411 2410
 //go:cgo_import_dynamic libc_munmap munmap "/usr/lib/libSystem.B.dylib"
2412 2411
 
2413 2412
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2444,7 +2308,6 @@ func Fstat(fd int, stat *Stat_t) (err error) {
2444 2444
 
2445 2445
 func libc_fstat_trampoline()
2446 2446
 
2447
-//go:linkname libc_fstat libc_fstat
2448 2447
 //go:cgo_import_dynamic libc_fstat fstat "/usr/lib/libSystem.B.dylib"
2449 2448
 
2450 2449
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2464,7 +2327,6 @@ func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
2464 2464
 
2465 2465
 func libc_fstatat_trampoline()
2466 2466
 
2467
-//go:linkname libc_fstatat libc_fstatat
2468 2467
 //go:cgo_import_dynamic libc_fstatat fstatat "/usr/lib/libSystem.B.dylib"
2469 2468
 
2470 2469
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2479,7 +2341,6 @@ func Fstatfs(fd int, stat *Statfs_t) (err error) {
2479 2479
 
2480 2480
 func libc_fstatfs_trampoline()
2481 2481
 
2482
-//go:linkname libc_fstatfs libc_fstatfs
2483 2482
 //go:cgo_import_dynamic libc_fstatfs fstatfs "/usr/lib/libSystem.B.dylib"
2484 2483
 
2485 2484
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2495,7 +2356,6 @@ func getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) {
2495 2495
 
2496 2496
 func libc_getfsstat_trampoline()
2497 2497
 
2498
-//go:linkname libc_getfsstat libc_getfsstat
2499 2498
 //go:cgo_import_dynamic libc_getfsstat getfsstat "/usr/lib/libSystem.B.dylib"
2500 2499
 
2501 2500
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2515,7 +2375,6 @@ func Lstat(path string, stat *Stat_t) (err error) {
2515 2515
 
2516 2516
 func libc_lstat_trampoline()
2517 2517
 
2518
-//go:linkname libc_lstat libc_lstat
2519 2518
 //go:cgo_import_dynamic libc_lstat lstat "/usr/lib/libSystem.B.dylib"
2520 2519
 
2521 2520
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2535,7 +2394,6 @@ func Stat(path string, stat *Stat_t) (err error) {
2535 2535
 
2536 2536
 func libc_stat_trampoline()
2537 2537
 
2538
-//go:linkname libc_stat libc_stat
2539 2538
 //go:cgo_import_dynamic libc_stat stat "/usr/lib/libSystem.B.dylib"
2540 2539
 
2541 2540
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2555,5 +2413,4 @@ func Statfs(path string, stat *Statfs_t) (err error) {
2555 2555
 
2556 2556
 func libc_statfs_trampoline()
2557 2557
 
2558
-//go:linkname libc_statfs libc_statfs
2559 2558
 //go:cgo_import_dynamic libc_statfs statfs "/usr/lib/libSystem.B.dylib"
... ...
@@ -24,7 +24,6 @@ func closedir(dir uintptr) (err error) {
24 24
 
25 25
 func libc_closedir_trampoline()
26 26
 
27
-//go:linkname libc_closedir libc_closedir
28 27
 //go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
29 28
 
30 29
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -37,5 +36,4 @@ func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
37 37
 
38 38
 func libc_readdir_r_trampoline()
39 39
 
40
-//go:linkname libc_readdir_r libc_readdir_r
41 40
 //go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"
... ...
@@ -25,7 +25,6 @@ func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
25 25
 
26 26
 func libc_getgroups_trampoline()
27 27
 
28
-//go:linkname libc_getgroups libc_getgroups
29 28
 //go:cgo_import_dynamic libc_getgroups getgroups "/usr/lib/libSystem.B.dylib"
30 29
 
31 30
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -40,7 +39,6 @@ func setgroups(ngid int, gid *_Gid_t) (err error) {
40 40
 
41 41
 func libc_setgroups_trampoline()
42 42
 
43
-//go:linkname libc_setgroups libc_setgroups
44 43
 //go:cgo_import_dynamic libc_setgroups setgroups "/usr/lib/libSystem.B.dylib"
45 44
 
46 45
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -56,7 +54,6 @@ func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err
56 56
 
57 57
 func libc_wait4_trampoline()
58 58
 
59
-//go:linkname libc_wait4 libc_wait4
60 59
 //go:cgo_import_dynamic libc_wait4 wait4 "/usr/lib/libSystem.B.dylib"
61 60
 
62 61
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -72,7 +69,6 @@ func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
72 72
 
73 73
 func libc_accept_trampoline()
74 74
 
75
-//go:linkname libc_accept libc_accept
76 75
 //go:cgo_import_dynamic libc_accept accept "/usr/lib/libSystem.B.dylib"
77 76
 
78 77
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -87,7 +83,6 @@ func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
87 87
 
88 88
 func libc_bind_trampoline()
89 89
 
90
-//go:linkname libc_bind libc_bind
91 90
 //go:cgo_import_dynamic libc_bind bind "/usr/lib/libSystem.B.dylib"
92 91
 
93 92
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -102,7 +97,6 @@ func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
102 102
 
103 103
 func libc_connect_trampoline()
104 104
 
105
-//go:linkname libc_connect libc_connect
106 105
 //go:cgo_import_dynamic libc_connect connect "/usr/lib/libSystem.B.dylib"
107 106
 
108 107
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -118,7 +112,6 @@ func socket(domain int, typ int, proto int) (fd int, err error) {
118 118
 
119 119
 func libc_socket_trampoline()
120 120
 
121
-//go:linkname libc_socket libc_socket
122 121
 //go:cgo_import_dynamic libc_socket socket "/usr/lib/libSystem.B.dylib"
123 122
 
124 123
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -133,7 +126,6 @@ func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen
133 133
 
134 134
 func libc_getsockopt_trampoline()
135 135
 
136
-//go:linkname libc_getsockopt libc_getsockopt
137 136
 //go:cgo_import_dynamic libc_getsockopt getsockopt "/usr/lib/libSystem.B.dylib"
138 137
 
139 138
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -148,7 +140,6 @@ func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr)
148 148
 
149 149
 func libc_setsockopt_trampoline()
150 150
 
151
-//go:linkname libc_setsockopt libc_setsockopt
152 151
 //go:cgo_import_dynamic libc_setsockopt setsockopt "/usr/lib/libSystem.B.dylib"
153 152
 
154 153
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -163,7 +154,6 @@ func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
163 163
 
164 164
 func libc_getpeername_trampoline()
165 165
 
166
-//go:linkname libc_getpeername libc_getpeername
167 166
 //go:cgo_import_dynamic libc_getpeername getpeername "/usr/lib/libSystem.B.dylib"
168 167
 
169 168
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -178,7 +168,6 @@ func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
178 178
 
179 179
 func libc_getsockname_trampoline()
180 180
 
181
-//go:linkname libc_getsockname libc_getsockname
182 181
 //go:cgo_import_dynamic libc_getsockname getsockname "/usr/lib/libSystem.B.dylib"
183 182
 
184 183
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -193,7 +182,6 @@ func Shutdown(s int, how int) (err error) {
193 193
 
194 194
 func libc_shutdown_trampoline()
195 195
 
196
-//go:linkname libc_shutdown libc_shutdown
197 196
 //go:cgo_import_dynamic libc_shutdown shutdown "/usr/lib/libSystem.B.dylib"
198 197
 
199 198
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -208,7 +196,6 @@ func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
208 208
 
209 209
 func libc_socketpair_trampoline()
210 210
 
211
-//go:linkname libc_socketpair libc_socketpair
212 211
 //go:cgo_import_dynamic libc_socketpair socketpair "/usr/lib/libSystem.B.dylib"
213 212
 
214 213
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -230,7 +217,6 @@ func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Sockl
230 230
 
231 231
 func libc_recvfrom_trampoline()
232 232
 
233
-//go:linkname libc_recvfrom libc_recvfrom
234 233
 //go:cgo_import_dynamic libc_recvfrom recvfrom "/usr/lib/libSystem.B.dylib"
235 234
 
236 235
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -251,7 +237,6 @@ func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (
251 251
 
252 252
 func libc_sendto_trampoline()
253 253
 
254
-//go:linkname libc_sendto libc_sendto
255 254
 //go:cgo_import_dynamic libc_sendto sendto "/usr/lib/libSystem.B.dylib"
256 255
 
257 256
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -267,7 +252,6 @@ func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
267 267
 
268 268
 func libc_recvmsg_trampoline()
269 269
 
270
-//go:linkname libc_recvmsg libc_recvmsg
271 270
 //go:cgo_import_dynamic libc_recvmsg recvmsg "/usr/lib/libSystem.B.dylib"
272 271
 
273 272
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -283,7 +267,6 @@ func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
283 283
 
284 284
 func libc_sendmsg_trampoline()
285 285
 
286
-//go:linkname libc_sendmsg libc_sendmsg
287 286
 //go:cgo_import_dynamic libc_sendmsg sendmsg "/usr/lib/libSystem.B.dylib"
288 287
 
289 288
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -299,7 +282,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne
299 299
 
300 300
 func libc_kevent_trampoline()
301 301
 
302
-//go:linkname libc_kevent libc_kevent
303 302
 //go:cgo_import_dynamic libc_kevent kevent "/usr/lib/libSystem.B.dylib"
304 303
 
305 304
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -319,7 +301,6 @@ func utimes(path string, timeval *[2]Timeval) (err error) {
319 319
 
320 320
 func libc_utimes_trampoline()
321 321
 
322
-//go:linkname libc_utimes libc_utimes
323 322
 //go:cgo_import_dynamic libc_utimes utimes "/usr/lib/libSystem.B.dylib"
324 323
 
325 324
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -334,7 +315,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
334 334
 
335 335
 func libc_futimes_trampoline()
336 336
 
337
-//go:linkname libc_futimes libc_futimes
338 337
 //go:cgo_import_dynamic libc_futimes futimes "/usr/lib/libSystem.B.dylib"
339 338
 
340 339
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -350,7 +330,6 @@ func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
350 350
 
351 351
 func libc_poll_trampoline()
352 352
 
353
-//go:linkname libc_poll libc_poll
354 353
 //go:cgo_import_dynamic libc_poll poll "/usr/lib/libSystem.B.dylib"
355 354
 
356 355
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -371,7 +350,6 @@ func Madvise(b []byte, behav int) (err error) {
371 371
 
372 372
 func libc_madvise_trampoline()
373 373
 
374
-//go:linkname libc_madvise libc_madvise
375 374
 //go:cgo_import_dynamic libc_madvise madvise "/usr/lib/libSystem.B.dylib"
376 375
 
377 376
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -392,7 +370,6 @@ func Mlock(b []byte) (err error) {
392 392
 
393 393
 func libc_mlock_trampoline()
394 394
 
395
-//go:linkname libc_mlock libc_mlock
396 395
 //go:cgo_import_dynamic libc_mlock mlock "/usr/lib/libSystem.B.dylib"
397 396
 
398 397
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -407,7 +384,6 @@ func Mlockall(flags int) (err error) {
407 407
 
408 408
 func libc_mlockall_trampoline()
409 409
 
410
-//go:linkname libc_mlockall libc_mlockall
411 410
 //go:cgo_import_dynamic libc_mlockall mlockall "/usr/lib/libSystem.B.dylib"
412 411
 
413 412
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -428,7 +404,6 @@ func Mprotect(b []byte, prot int) (err error) {
428 428
 
429 429
 func libc_mprotect_trampoline()
430 430
 
431
-//go:linkname libc_mprotect libc_mprotect
432 431
 //go:cgo_import_dynamic libc_mprotect mprotect "/usr/lib/libSystem.B.dylib"
433 432
 
434 433
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -449,7 +424,6 @@ func Msync(b []byte, flags int) (err error) {
449 449
 
450 450
 func libc_msync_trampoline()
451 451
 
452
-//go:linkname libc_msync libc_msync
453 452
 //go:cgo_import_dynamic libc_msync msync "/usr/lib/libSystem.B.dylib"
454 453
 
455 454
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -470,7 +444,6 @@ func Munlock(b []byte) (err error) {
470 470
 
471 471
 func libc_munlock_trampoline()
472 472
 
473
-//go:linkname libc_munlock libc_munlock
474 473
 //go:cgo_import_dynamic libc_munlock munlock "/usr/lib/libSystem.B.dylib"
475 474
 
476 475
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -485,15 +458,12 @@ func Munlockall() (err error) {
485 485
 
486 486
 func libc_munlockall_trampoline()
487 487
 
488
-//go:linkname libc_munlockall libc_munlockall
489 488
 //go:cgo_import_dynamic libc_munlockall munlockall "/usr/lib/libSystem.B.dylib"
490 489
 
491 490
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
492 491
 
493
-func pipe() (r int, w int, err error) {
494
-	r0, r1, e1 := syscall_rawSyscall(funcPC(libc_pipe_trampoline), 0, 0, 0)
495
-	r = int(r0)
496
-	w = int(r1)
492
+func pipe(p *[2]int32) (err error) {
493
+	_, _, e1 := syscall_rawSyscall(funcPC(libc_pipe_trampoline), uintptr(unsafe.Pointer(p)), 0, 0)
497 494
 	if e1 != 0 {
498 495
 		err = errnoErr(e1)
499 496
 	}
... ...
@@ -502,7 +472,6 @@ func pipe() (r int, w int, err error) {
502 502
 
503 503
 func libc_pipe_trampoline()
504 504
 
505
-//go:linkname libc_pipe libc_pipe
506 505
 //go:cgo_import_dynamic libc_pipe pipe "/usr/lib/libSystem.B.dylib"
507 506
 
508 507
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -528,7 +497,6 @@ func getxattr(path string, attr string, dest *byte, size int, position uint32, o
528 528
 
529 529
 func libc_getxattr_trampoline()
530 530
 
531
-//go:linkname libc_getxattr libc_getxattr
532 531
 //go:cgo_import_dynamic libc_getxattr getxattr "/usr/lib/libSystem.B.dylib"
533 532
 
534 533
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -549,7 +517,6 @@ func fgetxattr(fd int, attr string, dest *byte, size int, position uint32, optio
549 549
 
550 550
 func libc_fgetxattr_trampoline()
551 551
 
552
-//go:linkname libc_fgetxattr libc_fgetxattr
553 552
 //go:cgo_import_dynamic libc_fgetxattr fgetxattr "/usr/lib/libSystem.B.dylib"
554 553
 
555 554
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -574,7 +541,6 @@ func setxattr(path string, attr string, data *byte, size int, position uint32, o
574 574
 
575 575
 func libc_setxattr_trampoline()
576 576
 
577
-//go:linkname libc_setxattr libc_setxattr
578 577
 //go:cgo_import_dynamic libc_setxattr setxattr "/usr/lib/libSystem.B.dylib"
579 578
 
580 579
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -594,7 +560,6 @@ func fsetxattr(fd int, attr string, data *byte, size int, position uint32, optio
594 594
 
595 595
 func libc_fsetxattr_trampoline()
596 596
 
597
-//go:linkname libc_fsetxattr libc_fsetxattr
598 597
 //go:cgo_import_dynamic libc_fsetxattr fsetxattr "/usr/lib/libSystem.B.dylib"
599 598
 
600 599
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -619,7 +584,6 @@ func removexattr(path string, attr string, options int) (err error) {
619 619
 
620 620
 func libc_removexattr_trampoline()
621 621
 
622
-//go:linkname libc_removexattr libc_removexattr
623 622
 //go:cgo_import_dynamic libc_removexattr removexattr "/usr/lib/libSystem.B.dylib"
624 623
 
625 624
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -639,7 +603,6 @@ func fremovexattr(fd int, attr string, options int) (err error) {
639 639
 
640 640
 func libc_fremovexattr_trampoline()
641 641
 
642
-//go:linkname libc_fremovexattr libc_fremovexattr
643 642
 //go:cgo_import_dynamic libc_fremovexattr fremovexattr "/usr/lib/libSystem.B.dylib"
644 643
 
645 644
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -660,7 +623,6 @@ func listxattr(path string, dest *byte, size int, options int) (sz int, err erro
660 660
 
661 661
 func libc_listxattr_trampoline()
662 662
 
663
-//go:linkname libc_listxattr libc_listxattr
664 663
 //go:cgo_import_dynamic libc_listxattr listxattr "/usr/lib/libSystem.B.dylib"
665 664
 
666 665
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -676,7 +638,6 @@ func flistxattr(fd int, dest *byte, size int, options int) (sz int, err error) {
676 676
 
677 677
 func libc_flistxattr_trampoline()
678 678
 
679
-//go:linkname libc_flistxattr libc_flistxattr
680 679
 //go:cgo_import_dynamic libc_flistxattr flistxattr "/usr/lib/libSystem.B.dylib"
681 680
 
682 681
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -691,7 +652,6 @@ func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintp
691 691
 
692 692
 func libc_setattrlist_trampoline()
693 693
 
694
-//go:linkname libc_setattrlist libc_setattrlist
695 694
 //go:cgo_import_dynamic libc_setattrlist setattrlist "/usr/lib/libSystem.B.dylib"
696 695
 
697 696
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -707,7 +667,6 @@ func fcntl(fd int, cmd int, arg int) (val int, err error) {
707 707
 
708 708
 func libc_fcntl_trampoline()
709 709
 
710
-//go:linkname libc_fcntl libc_fcntl
711 710
 //go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
712 711
 
713 712
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -722,7 +681,6 @@ func kill(pid int, signum int, posix int) (err error) {
722 722
 
723 723
 func libc_kill_trampoline()
724 724
 
725
-//go:linkname libc_kill libc_kill
726 725
 //go:cgo_import_dynamic libc_kill kill "/usr/lib/libSystem.B.dylib"
727 726
 
728 727
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -737,7 +695,6 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
737 737
 
738 738
 func libc_ioctl_trampoline()
739 739
 
740
-//go:linkname libc_ioctl libc_ioctl
741 740
 //go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib"
742 741
 
743 742
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -758,7 +715,6 @@ func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr)
758 758
 
759 759
 func libc_sysctl_trampoline()
760 760
 
761
-//go:linkname libc_sysctl libc_sysctl
762 761
 //go:cgo_import_dynamic libc_sysctl sysctl "/usr/lib/libSystem.B.dylib"
763 762
 
764 763
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -773,7 +729,6 @@ func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer
773 773
 
774 774
 func libc_sendfile_trampoline()
775 775
 
776
-//go:linkname libc_sendfile libc_sendfile
777 776
 //go:cgo_import_dynamic libc_sendfile sendfile "/usr/lib/libSystem.B.dylib"
778 777
 
779 778
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -793,7 +748,6 @@ func Access(path string, mode uint32) (err error) {
793 793
 
794 794
 func libc_access_trampoline()
795 795
 
796
-//go:linkname libc_access libc_access
797 796
 //go:cgo_import_dynamic libc_access access "/usr/lib/libSystem.B.dylib"
798 797
 
799 798
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -808,7 +762,6 @@ func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
808 808
 
809 809
 func libc_adjtime_trampoline()
810 810
 
811
-//go:linkname libc_adjtime libc_adjtime
812 811
 //go:cgo_import_dynamic libc_adjtime adjtime "/usr/lib/libSystem.B.dylib"
813 812
 
814 813
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -828,7 +781,6 @@ func Chdir(path string) (err error) {
828 828
 
829 829
 func libc_chdir_trampoline()
830 830
 
831
-//go:linkname libc_chdir libc_chdir
832 831
 //go:cgo_import_dynamic libc_chdir chdir "/usr/lib/libSystem.B.dylib"
833 832
 
834 833
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -848,7 +800,6 @@ func Chflags(path string, flags int) (err error) {
848 848
 
849 849
 func libc_chflags_trampoline()
850 850
 
851
-//go:linkname libc_chflags libc_chflags
852 851
 //go:cgo_import_dynamic libc_chflags chflags "/usr/lib/libSystem.B.dylib"
853 852
 
854 853
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -868,7 +819,6 @@ func Chmod(path string, mode uint32) (err error) {
868 868
 
869 869
 func libc_chmod_trampoline()
870 870
 
871
-//go:linkname libc_chmod libc_chmod
872 871
 //go:cgo_import_dynamic libc_chmod chmod "/usr/lib/libSystem.B.dylib"
873 872
 
874 873
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -888,7 +838,6 @@ func Chown(path string, uid int, gid int) (err error) {
888 888
 
889 889
 func libc_chown_trampoline()
890 890
 
891
-//go:linkname libc_chown libc_chown
892 891
 //go:cgo_import_dynamic libc_chown chown "/usr/lib/libSystem.B.dylib"
893 892
 
894 893
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -908,7 +857,6 @@ func Chroot(path string) (err error) {
908 908
 
909 909
 func libc_chroot_trampoline()
910 910
 
911
-//go:linkname libc_chroot libc_chroot
912 911
 //go:cgo_import_dynamic libc_chroot chroot "/usr/lib/libSystem.B.dylib"
913 912
 
914 913
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -923,7 +871,6 @@ func ClockGettime(clockid int32, time *Timespec) (err error) {
923 923
 
924 924
 func libc_clock_gettime_trampoline()
925 925
 
926
-//go:linkname libc_clock_gettime libc_clock_gettime
927 926
 //go:cgo_import_dynamic libc_clock_gettime clock_gettime "/usr/lib/libSystem.B.dylib"
928 927
 
929 928
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -938,7 +885,6 @@ func Close(fd int) (err error) {
938 938
 
939 939
 func libc_close_trampoline()
940 940
 
941
-//go:linkname libc_close libc_close
942 941
 //go:cgo_import_dynamic libc_close close "/usr/lib/libSystem.B.dylib"
943 942
 
944 943
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -963,7 +909,6 @@ func Clonefile(src string, dst string, flags int) (err error) {
963 963
 
964 964
 func libc_clonefile_trampoline()
965 965
 
966
-//go:linkname libc_clonefile libc_clonefile
967 966
 //go:cgo_import_dynamic libc_clonefile clonefile "/usr/lib/libSystem.B.dylib"
968 967
 
969 968
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -988,7 +933,6 @@ func Clonefileat(srcDirfd int, src string, dstDirfd int, dst string, flags int)
988 988
 
989 989
 func libc_clonefileat_trampoline()
990 990
 
991
-//go:linkname libc_clonefileat libc_clonefileat
992 991
 //go:cgo_import_dynamic libc_clonefileat clonefileat "/usr/lib/libSystem.B.dylib"
993 992
 
994 993
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1004,7 +948,6 @@ func Dup(fd int) (nfd int, err error) {
1004 1004
 
1005 1005
 func libc_dup_trampoline()
1006 1006
 
1007
-//go:linkname libc_dup libc_dup
1008 1007
 //go:cgo_import_dynamic libc_dup dup "/usr/lib/libSystem.B.dylib"
1009 1008
 
1010 1009
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1019,7 +962,6 @@ func Dup2(from int, to int) (err error) {
1019 1019
 
1020 1020
 func libc_dup2_trampoline()
1021 1021
 
1022
-//go:linkname libc_dup2 libc_dup2
1023 1022
 //go:cgo_import_dynamic libc_dup2 dup2 "/usr/lib/libSystem.B.dylib"
1024 1023
 
1025 1024
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1044,7 +986,6 @@ func Exchangedata(path1 string, path2 string, options int) (err error) {
1044 1044
 
1045 1045
 func libc_exchangedata_trampoline()
1046 1046
 
1047
-//go:linkname libc_exchangedata libc_exchangedata
1048 1047
 //go:cgo_import_dynamic libc_exchangedata exchangedata "/usr/lib/libSystem.B.dylib"
1049 1048
 
1050 1049
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1056,7 +997,6 @@ func Exit(code int) {
1056 1056
 
1057 1057
 func libc_exit_trampoline()
1058 1058
 
1059
-//go:linkname libc_exit libc_exit
1060 1059
 //go:cgo_import_dynamic libc_exit exit "/usr/lib/libSystem.B.dylib"
1061 1060
 
1062 1061
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1076,7 +1016,6 @@ func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
1076 1076
 
1077 1077
 func libc_faccessat_trampoline()
1078 1078
 
1079
-//go:linkname libc_faccessat libc_faccessat
1080 1079
 //go:cgo_import_dynamic libc_faccessat faccessat "/usr/lib/libSystem.B.dylib"
1081 1080
 
1082 1081
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1091,7 +1030,6 @@ func Fchdir(fd int) (err error) {
1091 1091
 
1092 1092
 func libc_fchdir_trampoline()
1093 1093
 
1094
-//go:linkname libc_fchdir libc_fchdir
1095 1094
 //go:cgo_import_dynamic libc_fchdir fchdir "/usr/lib/libSystem.B.dylib"
1096 1095
 
1097 1096
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1106,7 +1044,6 @@ func Fchflags(fd int, flags int) (err error) {
1106 1106
 
1107 1107
 func libc_fchflags_trampoline()
1108 1108
 
1109
-//go:linkname libc_fchflags libc_fchflags
1110 1109
 //go:cgo_import_dynamic libc_fchflags fchflags "/usr/lib/libSystem.B.dylib"
1111 1110
 
1112 1111
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1121,7 +1058,6 @@ func Fchmod(fd int, mode uint32) (err error) {
1121 1121
 
1122 1122
 func libc_fchmod_trampoline()
1123 1123
 
1124
-//go:linkname libc_fchmod libc_fchmod
1125 1124
 //go:cgo_import_dynamic libc_fchmod fchmod "/usr/lib/libSystem.B.dylib"
1126 1125
 
1127 1126
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1141,7 +1077,6 @@ func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
1141 1141
 
1142 1142
 func libc_fchmodat_trampoline()
1143 1143
 
1144
-//go:linkname libc_fchmodat libc_fchmodat
1145 1144
 //go:cgo_import_dynamic libc_fchmodat fchmodat "/usr/lib/libSystem.B.dylib"
1146 1145
 
1147 1146
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1156,7 +1091,6 @@ func Fchown(fd int, uid int, gid int) (err error) {
1156 1156
 
1157 1157
 func libc_fchown_trampoline()
1158 1158
 
1159
-//go:linkname libc_fchown libc_fchown
1160 1159
 //go:cgo_import_dynamic libc_fchown fchown "/usr/lib/libSystem.B.dylib"
1161 1160
 
1162 1161
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1176,7 +1110,6 @@ func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
1176 1176
 
1177 1177
 func libc_fchownat_trampoline()
1178 1178
 
1179
-//go:linkname libc_fchownat libc_fchownat
1180 1179
 //go:cgo_import_dynamic libc_fchownat fchownat "/usr/lib/libSystem.B.dylib"
1181 1180
 
1182 1181
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1196,7 +1129,6 @@ func Fclonefileat(srcDirfd int, dstDirfd int, dst string, flags int) (err error)
1196 1196
 
1197 1197
 func libc_fclonefileat_trampoline()
1198 1198
 
1199
-//go:linkname libc_fclonefileat libc_fclonefileat
1200 1199
 //go:cgo_import_dynamic libc_fclonefileat fclonefileat "/usr/lib/libSystem.B.dylib"
1201 1200
 
1202 1201
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1211,7 +1143,6 @@ func Flock(fd int, how int) (err error) {
1211 1211
 
1212 1212
 func libc_flock_trampoline()
1213 1213
 
1214
-//go:linkname libc_flock libc_flock
1215 1214
 //go:cgo_import_dynamic libc_flock flock "/usr/lib/libSystem.B.dylib"
1216 1215
 
1217 1216
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1227,7 +1158,6 @@ func Fpathconf(fd int, name int) (val int, err error) {
1227 1227
 
1228 1228
 func libc_fpathconf_trampoline()
1229 1229
 
1230
-//go:linkname libc_fpathconf libc_fpathconf
1231 1230
 //go:cgo_import_dynamic libc_fpathconf fpathconf "/usr/lib/libSystem.B.dylib"
1232 1231
 
1233 1232
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1242,7 +1172,6 @@ func Fsync(fd int) (err error) {
1242 1242
 
1243 1243
 func libc_fsync_trampoline()
1244 1244
 
1245
-//go:linkname libc_fsync libc_fsync
1246 1245
 //go:cgo_import_dynamic libc_fsync fsync "/usr/lib/libSystem.B.dylib"
1247 1246
 
1248 1247
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1257,7 +1186,6 @@ func Ftruncate(fd int, length int64) (err error) {
1257 1257
 
1258 1258
 func libc_ftruncate_trampoline()
1259 1259
 
1260
-//go:linkname libc_ftruncate libc_ftruncate
1261 1260
 //go:cgo_import_dynamic libc_ftruncate ftruncate "/usr/lib/libSystem.B.dylib"
1262 1261
 
1263 1262
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1279,7 +1207,6 @@ func Getcwd(buf []byte) (n int, err error) {
1279 1279
 
1280 1280
 func libc_getcwd_trampoline()
1281 1281
 
1282
-//go:linkname libc_getcwd libc_getcwd
1283 1282
 //go:cgo_import_dynamic libc_getcwd getcwd "/usr/lib/libSystem.B.dylib"
1284 1283
 
1285 1284
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1292,7 +1219,6 @@ func Getdtablesize() (size int) {
1292 1292
 
1293 1293
 func libc_getdtablesize_trampoline()
1294 1294
 
1295
-//go:linkname libc_getdtablesize libc_getdtablesize
1296 1295
 //go:cgo_import_dynamic libc_getdtablesize getdtablesize "/usr/lib/libSystem.B.dylib"
1297 1296
 
1298 1297
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1305,7 +1231,6 @@ func Getegid() (egid int) {
1305 1305
 
1306 1306
 func libc_getegid_trampoline()
1307 1307
 
1308
-//go:linkname libc_getegid libc_getegid
1309 1308
 //go:cgo_import_dynamic libc_getegid getegid "/usr/lib/libSystem.B.dylib"
1310 1309
 
1311 1310
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1318,7 +1243,6 @@ func Geteuid() (uid int) {
1318 1318
 
1319 1319
 func libc_geteuid_trampoline()
1320 1320
 
1321
-//go:linkname libc_geteuid libc_geteuid
1322 1321
 //go:cgo_import_dynamic libc_geteuid geteuid "/usr/lib/libSystem.B.dylib"
1323 1322
 
1324 1323
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1331,7 +1255,6 @@ func Getgid() (gid int) {
1331 1331
 
1332 1332
 func libc_getgid_trampoline()
1333 1333
 
1334
-//go:linkname libc_getgid libc_getgid
1335 1334
 //go:cgo_import_dynamic libc_getgid getgid "/usr/lib/libSystem.B.dylib"
1336 1335
 
1337 1336
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1347,7 +1270,6 @@ func Getpgid(pid int) (pgid int, err error) {
1347 1347
 
1348 1348
 func libc_getpgid_trampoline()
1349 1349
 
1350
-//go:linkname libc_getpgid libc_getpgid
1351 1350
 //go:cgo_import_dynamic libc_getpgid getpgid "/usr/lib/libSystem.B.dylib"
1352 1351
 
1353 1352
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1360,7 +1282,6 @@ func Getpgrp() (pgrp int) {
1360 1360
 
1361 1361
 func libc_getpgrp_trampoline()
1362 1362
 
1363
-//go:linkname libc_getpgrp libc_getpgrp
1364 1363
 //go:cgo_import_dynamic libc_getpgrp getpgrp "/usr/lib/libSystem.B.dylib"
1365 1364
 
1366 1365
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1373,7 +1294,6 @@ func Getpid() (pid int) {
1373 1373
 
1374 1374
 func libc_getpid_trampoline()
1375 1375
 
1376
-//go:linkname libc_getpid libc_getpid
1377 1376
 //go:cgo_import_dynamic libc_getpid getpid "/usr/lib/libSystem.B.dylib"
1378 1377
 
1379 1378
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1386,7 +1306,6 @@ func Getppid() (ppid int) {
1386 1386
 
1387 1387
 func libc_getppid_trampoline()
1388 1388
 
1389
-//go:linkname libc_getppid libc_getppid
1390 1389
 //go:cgo_import_dynamic libc_getppid getppid "/usr/lib/libSystem.B.dylib"
1391 1390
 
1392 1391
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1402,7 +1321,6 @@ func Getpriority(which int, who int) (prio int, err error) {
1402 1402
 
1403 1403
 func libc_getpriority_trampoline()
1404 1404
 
1405
-//go:linkname libc_getpriority libc_getpriority
1406 1405
 //go:cgo_import_dynamic libc_getpriority getpriority "/usr/lib/libSystem.B.dylib"
1407 1406
 
1408 1407
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1417,7 +1335,6 @@ func Getrlimit(which int, lim *Rlimit) (err error) {
1417 1417
 
1418 1418
 func libc_getrlimit_trampoline()
1419 1419
 
1420
-//go:linkname libc_getrlimit libc_getrlimit
1421 1420
 //go:cgo_import_dynamic libc_getrlimit getrlimit "/usr/lib/libSystem.B.dylib"
1422 1421
 
1423 1422
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1432,7 +1349,6 @@ func Getrusage(who int, rusage *Rusage) (err error) {
1432 1432
 
1433 1433
 func libc_getrusage_trampoline()
1434 1434
 
1435
-//go:linkname libc_getrusage libc_getrusage
1436 1435
 //go:cgo_import_dynamic libc_getrusage getrusage "/usr/lib/libSystem.B.dylib"
1437 1436
 
1438 1437
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1448,7 +1364,6 @@ func Getsid(pid int) (sid int, err error) {
1448 1448
 
1449 1449
 func libc_getsid_trampoline()
1450 1450
 
1451
-//go:linkname libc_getsid libc_getsid
1452 1451
 //go:cgo_import_dynamic libc_getsid getsid "/usr/lib/libSystem.B.dylib"
1453 1452
 
1454 1453
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1463,7 +1378,6 @@ func Gettimeofday(tp *Timeval) (err error) {
1463 1463
 
1464 1464
 func libc_gettimeofday_trampoline()
1465 1465
 
1466
-//go:linkname libc_gettimeofday libc_gettimeofday
1467 1466
 //go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib"
1468 1467
 
1469 1468
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1476,7 +1390,6 @@ func Getuid() (uid int) {
1476 1476
 
1477 1477
 func libc_getuid_trampoline()
1478 1478
 
1479
-//go:linkname libc_getuid libc_getuid
1480 1479
 //go:cgo_import_dynamic libc_getuid getuid "/usr/lib/libSystem.B.dylib"
1481 1480
 
1482 1481
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1489,7 +1402,6 @@ func Issetugid() (tainted bool) {
1489 1489
 
1490 1490
 func libc_issetugid_trampoline()
1491 1491
 
1492
-//go:linkname libc_issetugid libc_issetugid
1493 1492
 //go:cgo_import_dynamic libc_issetugid issetugid "/usr/lib/libSystem.B.dylib"
1494 1493
 
1495 1494
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1505,7 +1417,6 @@ func Kqueue() (fd int, err error) {
1505 1505
 
1506 1506
 func libc_kqueue_trampoline()
1507 1507
 
1508
-//go:linkname libc_kqueue libc_kqueue
1509 1508
 //go:cgo_import_dynamic libc_kqueue kqueue "/usr/lib/libSystem.B.dylib"
1510 1509
 
1511 1510
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1525,7 +1436,6 @@ func Lchown(path string, uid int, gid int) (err error) {
1525 1525
 
1526 1526
 func libc_lchown_trampoline()
1527 1527
 
1528
-//go:linkname libc_lchown libc_lchown
1529 1528
 //go:cgo_import_dynamic libc_lchown lchown "/usr/lib/libSystem.B.dylib"
1530 1529
 
1531 1530
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1550,7 +1460,6 @@ func Link(path string, link string) (err error) {
1550 1550
 
1551 1551
 func libc_link_trampoline()
1552 1552
 
1553
-//go:linkname libc_link libc_link
1554 1553
 //go:cgo_import_dynamic libc_link link "/usr/lib/libSystem.B.dylib"
1555 1554
 
1556 1555
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1575,7 +1484,6 @@ func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err er
1575 1575
 
1576 1576
 func libc_linkat_trampoline()
1577 1577
 
1578
-//go:linkname libc_linkat libc_linkat
1579 1578
 //go:cgo_import_dynamic libc_linkat linkat "/usr/lib/libSystem.B.dylib"
1580 1579
 
1581 1580
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1590,7 +1498,6 @@ func Listen(s int, backlog int) (err error) {
1590 1590
 
1591 1591
 func libc_listen_trampoline()
1592 1592
 
1593
-//go:linkname libc_listen libc_listen
1594 1593
 //go:cgo_import_dynamic libc_listen listen "/usr/lib/libSystem.B.dylib"
1595 1594
 
1596 1595
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1610,7 +1517,6 @@ func Mkdir(path string, mode uint32) (err error) {
1610 1610
 
1611 1611
 func libc_mkdir_trampoline()
1612 1612
 
1613
-//go:linkname libc_mkdir libc_mkdir
1614 1613
 //go:cgo_import_dynamic libc_mkdir mkdir "/usr/lib/libSystem.B.dylib"
1615 1614
 
1616 1615
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1630,7 +1536,6 @@ func Mkdirat(dirfd int, path string, mode uint32) (err error) {
1630 1630
 
1631 1631
 func libc_mkdirat_trampoline()
1632 1632
 
1633
-//go:linkname libc_mkdirat libc_mkdirat
1634 1633
 //go:cgo_import_dynamic libc_mkdirat mkdirat "/usr/lib/libSystem.B.dylib"
1635 1634
 
1636 1635
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1650,7 +1555,6 @@ func Mkfifo(path string, mode uint32) (err error) {
1650 1650
 
1651 1651
 func libc_mkfifo_trampoline()
1652 1652
 
1653
-//go:linkname libc_mkfifo libc_mkfifo
1654 1653
 //go:cgo_import_dynamic libc_mkfifo mkfifo "/usr/lib/libSystem.B.dylib"
1655 1654
 
1656 1655
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1670,7 +1574,6 @@ func Mknod(path string, mode uint32, dev int) (err error) {
1670 1670
 
1671 1671
 func libc_mknod_trampoline()
1672 1672
 
1673
-//go:linkname libc_mknod libc_mknod
1674 1673
 //go:cgo_import_dynamic libc_mknod mknod "/usr/lib/libSystem.B.dylib"
1675 1674
 
1676 1675
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1691,7 +1594,6 @@ func Open(path string, mode int, perm uint32) (fd int, err error) {
1691 1691
 
1692 1692
 func libc_open_trampoline()
1693 1693
 
1694
-//go:linkname libc_open libc_open
1695 1694
 //go:cgo_import_dynamic libc_open open "/usr/lib/libSystem.B.dylib"
1696 1695
 
1697 1696
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1712,7 +1614,6 @@ func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) {
1712 1712
 
1713 1713
 func libc_openat_trampoline()
1714 1714
 
1715
-//go:linkname libc_openat libc_openat
1716 1715
 //go:cgo_import_dynamic libc_openat openat "/usr/lib/libSystem.B.dylib"
1717 1716
 
1718 1717
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1733,7 +1634,6 @@ func Pathconf(path string, name int) (val int, err error) {
1733 1733
 
1734 1734
 func libc_pathconf_trampoline()
1735 1735
 
1736
-//go:linkname libc_pathconf libc_pathconf
1737 1736
 //go:cgo_import_dynamic libc_pathconf pathconf "/usr/lib/libSystem.B.dylib"
1738 1737
 
1739 1738
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1755,7 +1655,6 @@ func Pread(fd int, p []byte, offset int64) (n int, err error) {
1755 1755
 
1756 1756
 func libc_pread_trampoline()
1757 1757
 
1758
-//go:linkname libc_pread libc_pread
1759 1758
 //go:cgo_import_dynamic libc_pread pread "/usr/lib/libSystem.B.dylib"
1760 1759
 
1761 1760
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1777,7 +1676,6 @@ func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
1777 1777
 
1778 1778
 func libc_pwrite_trampoline()
1779 1779
 
1780
-//go:linkname libc_pwrite libc_pwrite
1781 1780
 //go:cgo_import_dynamic libc_pwrite pwrite "/usr/lib/libSystem.B.dylib"
1782 1781
 
1783 1782
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1799,7 +1697,6 @@ func read(fd int, p []byte) (n int, err error) {
1799 1799
 
1800 1800
 func libc_read_trampoline()
1801 1801
 
1802
-//go:linkname libc_read libc_read
1803 1802
 //go:cgo_import_dynamic libc_read read "/usr/lib/libSystem.B.dylib"
1804 1803
 
1805 1804
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1826,7 +1723,6 @@ func Readlink(path string, buf []byte) (n int, err error) {
1826 1826
 
1827 1827
 func libc_readlink_trampoline()
1828 1828
 
1829
-//go:linkname libc_readlink libc_readlink
1830 1829
 //go:cgo_import_dynamic libc_readlink readlink "/usr/lib/libSystem.B.dylib"
1831 1830
 
1832 1831
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1853,7 +1749,6 @@ func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
1853 1853
 
1854 1854
 func libc_readlinkat_trampoline()
1855 1855
 
1856
-//go:linkname libc_readlinkat libc_readlinkat
1857 1856
 //go:cgo_import_dynamic libc_readlinkat readlinkat "/usr/lib/libSystem.B.dylib"
1858 1857
 
1859 1858
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1878,7 +1773,6 @@ func Rename(from string, to string) (err error) {
1878 1878
 
1879 1879
 func libc_rename_trampoline()
1880 1880
 
1881
-//go:linkname libc_rename libc_rename
1882 1881
 //go:cgo_import_dynamic libc_rename rename "/usr/lib/libSystem.B.dylib"
1883 1882
 
1884 1883
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1903,7 +1797,6 @@ func Renameat(fromfd int, from string, tofd int, to string) (err error) {
1903 1903
 
1904 1904
 func libc_renameat_trampoline()
1905 1905
 
1906
-//go:linkname libc_renameat libc_renameat
1907 1906
 //go:cgo_import_dynamic libc_renameat renameat "/usr/lib/libSystem.B.dylib"
1908 1907
 
1909 1908
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1923,7 +1816,6 @@ func Revoke(path string) (err error) {
1923 1923
 
1924 1924
 func libc_revoke_trampoline()
1925 1925
 
1926
-//go:linkname libc_revoke libc_revoke
1927 1926
 //go:cgo_import_dynamic libc_revoke revoke "/usr/lib/libSystem.B.dylib"
1928 1927
 
1929 1928
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1943,7 +1835,6 @@ func Rmdir(path string) (err error) {
1943 1943
 
1944 1944
 func libc_rmdir_trampoline()
1945 1945
 
1946
-//go:linkname libc_rmdir libc_rmdir
1947 1946
 //go:cgo_import_dynamic libc_rmdir rmdir "/usr/lib/libSystem.B.dylib"
1948 1947
 
1949 1948
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1959,7 +1850,6 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1959 1959
 
1960 1960
 func libc_lseek_trampoline()
1961 1961
 
1962
-//go:linkname libc_lseek libc_lseek
1963 1962
 //go:cgo_import_dynamic libc_lseek lseek "/usr/lib/libSystem.B.dylib"
1964 1963
 
1965 1964
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1975,7 +1865,6 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
1975 1975
 
1976 1976
 func libc_select_trampoline()
1977 1977
 
1978
-//go:linkname libc_select libc_select
1979 1978
 //go:cgo_import_dynamic libc_select select "/usr/lib/libSystem.B.dylib"
1980 1979
 
1981 1980
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -1990,7 +1879,6 @@ func Setegid(egid int) (err error) {
1990 1990
 
1991 1991
 func libc_setegid_trampoline()
1992 1992
 
1993
-//go:linkname libc_setegid libc_setegid
1994 1993
 //go:cgo_import_dynamic libc_setegid setegid "/usr/lib/libSystem.B.dylib"
1995 1994
 
1996 1995
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2005,7 +1893,6 @@ func Seteuid(euid int) (err error) {
2005 2005
 
2006 2006
 func libc_seteuid_trampoline()
2007 2007
 
2008
-//go:linkname libc_seteuid libc_seteuid
2009 2008
 //go:cgo_import_dynamic libc_seteuid seteuid "/usr/lib/libSystem.B.dylib"
2010 2009
 
2011 2010
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2020,7 +1907,6 @@ func Setgid(gid int) (err error) {
2020 2020
 
2021 2021
 func libc_setgid_trampoline()
2022 2022
 
2023
-//go:linkname libc_setgid libc_setgid
2024 2023
 //go:cgo_import_dynamic libc_setgid setgid "/usr/lib/libSystem.B.dylib"
2025 2024
 
2026 2025
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2040,7 +1926,6 @@ func Setlogin(name string) (err error) {
2040 2040
 
2041 2041
 func libc_setlogin_trampoline()
2042 2042
 
2043
-//go:linkname libc_setlogin libc_setlogin
2044 2043
 //go:cgo_import_dynamic libc_setlogin setlogin "/usr/lib/libSystem.B.dylib"
2045 2044
 
2046 2045
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2055,7 +1940,6 @@ func Setpgid(pid int, pgid int) (err error) {
2055 2055
 
2056 2056
 func libc_setpgid_trampoline()
2057 2057
 
2058
-//go:linkname libc_setpgid libc_setpgid
2059 2058
 //go:cgo_import_dynamic libc_setpgid setpgid "/usr/lib/libSystem.B.dylib"
2060 2059
 
2061 2060
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2070,7 +1954,6 @@ func Setpriority(which int, who int, prio int) (err error) {
2070 2070
 
2071 2071
 func libc_setpriority_trampoline()
2072 2072
 
2073
-//go:linkname libc_setpriority libc_setpriority
2074 2073
 //go:cgo_import_dynamic libc_setpriority setpriority "/usr/lib/libSystem.B.dylib"
2075 2074
 
2076 2075
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2085,7 +1968,6 @@ func Setprivexec(flag int) (err error) {
2085 2085
 
2086 2086
 func libc_setprivexec_trampoline()
2087 2087
 
2088
-//go:linkname libc_setprivexec libc_setprivexec
2089 2088
 //go:cgo_import_dynamic libc_setprivexec setprivexec "/usr/lib/libSystem.B.dylib"
2090 2089
 
2091 2090
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2100,7 +1982,6 @@ func Setregid(rgid int, egid int) (err error) {
2100 2100
 
2101 2101
 func libc_setregid_trampoline()
2102 2102
 
2103
-//go:linkname libc_setregid libc_setregid
2104 2103
 //go:cgo_import_dynamic libc_setregid setregid "/usr/lib/libSystem.B.dylib"
2105 2104
 
2106 2105
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2115,7 +1996,6 @@ func Setreuid(ruid int, euid int) (err error) {
2115 2115
 
2116 2116
 func libc_setreuid_trampoline()
2117 2117
 
2118
-//go:linkname libc_setreuid libc_setreuid
2119 2118
 //go:cgo_import_dynamic libc_setreuid setreuid "/usr/lib/libSystem.B.dylib"
2120 2119
 
2121 2120
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2130,7 +2010,6 @@ func Setrlimit(which int, lim *Rlimit) (err error) {
2130 2130
 
2131 2131
 func libc_setrlimit_trampoline()
2132 2132
 
2133
-//go:linkname libc_setrlimit libc_setrlimit
2134 2133
 //go:cgo_import_dynamic libc_setrlimit setrlimit "/usr/lib/libSystem.B.dylib"
2135 2134
 
2136 2135
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2146,7 +2025,6 @@ func Setsid() (pid int, err error) {
2146 2146
 
2147 2147
 func libc_setsid_trampoline()
2148 2148
 
2149
-//go:linkname libc_setsid libc_setsid
2150 2149
 //go:cgo_import_dynamic libc_setsid setsid "/usr/lib/libSystem.B.dylib"
2151 2150
 
2152 2151
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2161,7 +2039,6 @@ func Settimeofday(tp *Timeval) (err error) {
2161 2161
 
2162 2162
 func libc_settimeofday_trampoline()
2163 2163
 
2164
-//go:linkname libc_settimeofday libc_settimeofday
2165 2164
 //go:cgo_import_dynamic libc_settimeofday settimeofday "/usr/lib/libSystem.B.dylib"
2166 2165
 
2167 2166
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2176,7 +2053,6 @@ func Setuid(uid int) (err error) {
2176 2176
 
2177 2177
 func libc_setuid_trampoline()
2178 2178
 
2179
-//go:linkname libc_setuid libc_setuid
2180 2179
 //go:cgo_import_dynamic libc_setuid setuid "/usr/lib/libSystem.B.dylib"
2181 2180
 
2182 2181
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2201,7 +2077,6 @@ func Symlink(path string, link string) (err error) {
2201 2201
 
2202 2202
 func libc_symlink_trampoline()
2203 2203
 
2204
-//go:linkname libc_symlink libc_symlink
2205 2204
 //go:cgo_import_dynamic libc_symlink symlink "/usr/lib/libSystem.B.dylib"
2206 2205
 
2207 2206
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2226,7 +2101,6 @@ func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
2226 2226
 
2227 2227
 func libc_symlinkat_trampoline()
2228 2228
 
2229
-//go:linkname libc_symlinkat libc_symlinkat
2230 2229
 //go:cgo_import_dynamic libc_symlinkat symlinkat "/usr/lib/libSystem.B.dylib"
2231 2230
 
2232 2231
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2241,7 +2115,6 @@ func Sync() (err error) {
2241 2241
 
2242 2242
 func libc_sync_trampoline()
2243 2243
 
2244
-//go:linkname libc_sync libc_sync
2245 2244
 //go:cgo_import_dynamic libc_sync sync "/usr/lib/libSystem.B.dylib"
2246 2245
 
2247 2246
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2261,7 +2134,6 @@ func Truncate(path string, length int64) (err error) {
2261 2261
 
2262 2262
 func libc_truncate_trampoline()
2263 2263
 
2264
-//go:linkname libc_truncate libc_truncate
2265 2264
 //go:cgo_import_dynamic libc_truncate truncate "/usr/lib/libSystem.B.dylib"
2266 2265
 
2267 2266
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2274,7 +2146,6 @@ func Umask(newmask int) (oldmask int) {
2274 2274
 
2275 2275
 func libc_umask_trampoline()
2276 2276
 
2277
-//go:linkname libc_umask libc_umask
2278 2277
 //go:cgo_import_dynamic libc_umask umask "/usr/lib/libSystem.B.dylib"
2279 2278
 
2280 2279
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2294,7 +2165,6 @@ func Undelete(path string) (err error) {
2294 2294
 
2295 2295
 func libc_undelete_trampoline()
2296 2296
 
2297
-//go:linkname libc_undelete libc_undelete
2298 2297
 //go:cgo_import_dynamic libc_undelete undelete "/usr/lib/libSystem.B.dylib"
2299 2298
 
2300 2299
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2314,7 +2184,6 @@ func Unlink(path string) (err error) {
2314 2314
 
2315 2315
 func libc_unlink_trampoline()
2316 2316
 
2317
-//go:linkname libc_unlink libc_unlink
2318 2317
 //go:cgo_import_dynamic libc_unlink unlink "/usr/lib/libSystem.B.dylib"
2319 2318
 
2320 2319
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2334,7 +2203,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
2334 2334
 
2335 2335
 func libc_unlinkat_trampoline()
2336 2336
 
2337
-//go:linkname libc_unlinkat libc_unlinkat
2338 2337
 //go:cgo_import_dynamic libc_unlinkat unlinkat "/usr/lib/libSystem.B.dylib"
2339 2338
 
2340 2339
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2354,7 +2222,6 @@ func Unmount(path string, flags int) (err error) {
2354 2354
 
2355 2355
 func libc_unmount_trampoline()
2356 2356
 
2357
-//go:linkname libc_unmount libc_unmount
2358 2357
 //go:cgo_import_dynamic libc_unmount unmount "/usr/lib/libSystem.B.dylib"
2359 2358
 
2360 2359
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2376,7 +2243,6 @@ func write(fd int, p []byte) (n int, err error) {
2376 2376
 
2377 2377
 func libc_write_trampoline()
2378 2378
 
2379
-//go:linkname libc_write libc_write
2380 2379
 //go:cgo_import_dynamic libc_write write "/usr/lib/libSystem.B.dylib"
2381 2380
 
2382 2381
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2392,7 +2258,6 @@ func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (
2392 2392
 
2393 2393
 func libc_mmap_trampoline()
2394 2394
 
2395
-//go:linkname libc_mmap libc_mmap
2396 2395
 //go:cgo_import_dynamic libc_mmap mmap "/usr/lib/libSystem.B.dylib"
2397 2396
 
2398 2397
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2407,7 +2272,6 @@ func munmap(addr uintptr, length uintptr) (err error) {
2407 2407
 
2408 2408
 func libc_munmap_trampoline()
2409 2409
 
2410
-//go:linkname libc_munmap libc_munmap
2411 2410
 //go:cgo_import_dynamic libc_munmap munmap "/usr/lib/libSystem.B.dylib"
2412 2411
 
2413 2412
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2444,7 +2308,6 @@ func Fstat(fd int, stat *Stat_t) (err error) {
2444 2444
 
2445 2445
 func libc_fstat_trampoline()
2446 2446
 
2447
-//go:linkname libc_fstat libc_fstat
2448 2447
 //go:cgo_import_dynamic libc_fstat fstat "/usr/lib/libSystem.B.dylib"
2449 2448
 
2450 2449
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2464,7 +2327,6 @@ func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
2464 2464
 
2465 2465
 func libc_fstatat_trampoline()
2466 2466
 
2467
-//go:linkname libc_fstatat libc_fstatat
2468 2467
 //go:cgo_import_dynamic libc_fstatat fstatat "/usr/lib/libSystem.B.dylib"
2469 2468
 
2470 2469
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2479,7 +2341,6 @@ func Fstatfs(fd int, stat *Statfs_t) (err error) {
2479 2479
 
2480 2480
 func libc_fstatfs_trampoline()
2481 2481
 
2482
-//go:linkname libc_fstatfs libc_fstatfs
2483 2482
 //go:cgo_import_dynamic libc_fstatfs fstatfs "/usr/lib/libSystem.B.dylib"
2484 2483
 
2485 2484
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2495,7 +2356,6 @@ func getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) {
2495 2495
 
2496 2496
 func libc_getfsstat_trampoline()
2497 2497
 
2498
-//go:linkname libc_getfsstat libc_getfsstat
2499 2498
 //go:cgo_import_dynamic libc_getfsstat getfsstat "/usr/lib/libSystem.B.dylib"
2500 2499
 
2501 2500
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2515,12 +2375,11 @@ func Lstat(path string, stat *Stat_t) (err error) {
2515 2515
 
2516 2516
 func libc_lstat_trampoline()
2517 2517
 
2518
-//go:linkname libc_lstat libc_lstat
2519 2518
 //go:cgo_import_dynamic libc_lstat lstat "/usr/lib/libSystem.B.dylib"
2520 2519
 
2521 2520
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2522 2521
 
2523
-func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
2522
+func ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) {
2524 2523
 	_, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
2525 2524
 	if e1 != 0 {
2526 2525
 		err = errnoErr(e1)
... ...
@@ -2530,7 +2389,6 @@ func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
2530 2530
 
2531 2531
 func libc_ptrace_trampoline()
2532 2532
 
2533
-//go:linkname libc_ptrace libc_ptrace
2534 2533
 //go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
2535 2534
 
2536 2535
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2550,7 +2408,6 @@ func Stat(path string, stat *Stat_t) (err error) {
2550 2550
 
2551 2551
 func libc_stat_trampoline()
2552 2552
 
2553
-//go:linkname libc_stat libc_stat
2554 2553
 //go:cgo_import_dynamic libc_stat stat "/usr/lib/libSystem.B.dylib"
2555 2554
 
2556 2555
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -2570,5 +2427,4 @@ func Statfs(path string, stat *Statfs_t) (err error) {
2570 2570
 
2571 2571
 func libc_statfs_trampoline()
2572 2572
 
2573
-//go:linkname libc_statfs libc_statfs
2574 2573
 //go:cgo_import_dynamic libc_statfs statfs "/usr/lib/libSystem.B.dylib"
... ...
@@ -362,6 +362,16 @@ func pipe() (r int, w int, err error) {
362 362
 
363 363
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
364 364
 
365
+func pipe2(p *[2]_C_int, flags int) (err error) {
366
+	_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
367
+	if e1 != 0 {
368
+		err = errnoErr(e1)
369
+	}
370
+	return
371
+}
372
+
373
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
374
+
365 375
 func extpread(fd int, p []byte, flags int, offset int64) (n int, err error) {
366 376
 	var _p0 unsafe.Pointer
367 377
 	if len(p) > 0 {
... ...
@@ -14,22 +14,19 @@ import (
14 14
 //go:cgo_import_dynamic libc_writev writev "libc.so"
15 15
 //go:cgo_import_dynamic libc_pwritev pwritev "libc.so"
16 16
 //go:cgo_import_dynamic libc_accept4 accept4 "libsocket.so"
17
-//go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so"
18 17
 
19 18
 //go:linkname procreadv libc_readv
20 19
 //go:linkname procpreadv libc_preadv
21 20
 //go:linkname procwritev libc_writev
22 21
 //go:linkname procpwritev libc_pwritev
23 22
 //go:linkname procaccept4 libc_accept4
24
-//go:linkname procpipe2 libc_pipe2
25 23
 
26 24
 var (
27 25
 	procreadv,
28 26
 	procpreadv,
29 27
 	procwritev,
30 28
 	procpwritev,
31
-	procaccept4,
32
-	procpipe2 syscallFunc
29
+	procaccept4 syscallFunc
33 30
 )
34 31
 
35 32
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
... ...
@@ -102,13 +99,3 @@ func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int,
102 102
 	}
103 103
 	return
104 104
 }
105
-
106
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
107
-
108
-func pipe2(p *[2]_C_int, flags int) (err error) {
109
-	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procpipe2)), 2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0, 0, 0, 0)
110
-	if e1 != 0 {
111
-		err = e1
112
-	}
113
-	return
114
-}
... ...
@@ -11,6 +11,7 @@ import (
11 11
 )
12 12
 
13 13
 //go:cgo_import_dynamic libc_pipe pipe "libc.so"
14
+//go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so"
14 15
 //go:cgo_import_dynamic libc_getsockname getsockname "libsocket.so"
15 16
 //go:cgo_import_dynamic libc_getcwd getcwd "libc.so"
16 17
 //go:cgo_import_dynamic libc_getgroups getgroups "libc.so"
... ...
@@ -140,6 +141,7 @@ import (
140 140
 //go:cgo_import_dynamic libc_recvfrom recvfrom "libsocket.so"
141 141
 
142 142
 //go:linkname procpipe libc_pipe
143
+//go:linkname procpipe2 libc_pipe2
143 144
 //go:linkname procgetsockname libc_getsockname
144 145
 //go:linkname procGetcwd libc_getcwd
145 146
 //go:linkname procgetgroups libc_getgroups
... ...
@@ -270,6 +272,7 @@ import (
270 270
 
271 271
 var (
272 272
 	procpipe,
273
+	procpipe2,
273 274
 	procgetsockname,
274 275
 	procGetcwd,
275 276
 	procgetgroups,
... ...
@@ -412,6 +415,16 @@ func pipe(p *[2]_C_int) (n int, err error) {
412 412
 
413 413
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
414 414
 
415
+func pipe2(p *[2]_C_int, flags int) (err error) {
416
+	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procpipe2)), 2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0, 0, 0, 0)
417
+	if e1 != 0 {
418
+		err = e1
419
+	}
420
+	return
421
+}
422
+
423
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
424
+
415 425
 func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
416 426
 	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgetsockname)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
417 427
 	if e1 != 0 {
418 428
new file mode 100644
... ...
@@ -0,0 +1,437 @@
0
+// go run mksysnum.go /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/sys/syscall.h
1
+// Code generated by the command above; see README.md. DO NOT EDIT.
2
+
3
+// +build 386,darwin
4
+
5
+package unix
6
+
7
+// Deprecated: Use libSystem wrappers instead of direct syscalls.
8
+const (
9
+	SYS_SYSCALL                        = 0
10
+	SYS_EXIT                           = 1
11
+	SYS_FORK                           = 2
12
+	SYS_READ                           = 3
13
+	SYS_WRITE                          = 4
14
+	SYS_OPEN                           = 5
15
+	SYS_CLOSE                          = 6
16
+	SYS_WAIT4                          = 7
17
+	SYS_LINK                           = 9
18
+	SYS_UNLINK                         = 10
19
+	SYS_CHDIR                          = 12
20
+	SYS_FCHDIR                         = 13
21
+	SYS_MKNOD                          = 14
22
+	SYS_CHMOD                          = 15
23
+	SYS_CHOWN                          = 16
24
+	SYS_GETFSSTAT                      = 18
25
+	SYS_GETPID                         = 20
26
+	SYS_SETUID                         = 23
27
+	SYS_GETUID                         = 24
28
+	SYS_GETEUID                        = 25
29
+	SYS_PTRACE                         = 26
30
+	SYS_RECVMSG                        = 27
31
+	SYS_SENDMSG                        = 28
32
+	SYS_RECVFROM                       = 29
33
+	SYS_ACCEPT                         = 30
34
+	SYS_GETPEERNAME                    = 31
35
+	SYS_GETSOCKNAME                    = 32
36
+	SYS_ACCESS                         = 33
37
+	SYS_CHFLAGS                        = 34
38
+	SYS_FCHFLAGS                       = 35
39
+	SYS_SYNC                           = 36
40
+	SYS_KILL                           = 37
41
+	SYS_GETPPID                        = 39
42
+	SYS_DUP                            = 41
43
+	SYS_PIPE                           = 42
44
+	SYS_GETEGID                        = 43
45
+	SYS_SIGACTION                      = 46
46
+	SYS_GETGID                         = 47
47
+	SYS_SIGPROCMASK                    = 48
48
+	SYS_GETLOGIN                       = 49
49
+	SYS_SETLOGIN                       = 50
50
+	SYS_ACCT                           = 51
51
+	SYS_SIGPENDING                     = 52
52
+	SYS_SIGALTSTACK                    = 53
53
+	SYS_IOCTL                          = 54
54
+	SYS_REBOOT                         = 55
55
+	SYS_REVOKE                         = 56
56
+	SYS_SYMLINK                        = 57
57
+	SYS_READLINK                       = 58
58
+	SYS_EXECVE                         = 59
59
+	SYS_UMASK                          = 60
60
+	SYS_CHROOT                         = 61
61
+	SYS_MSYNC                          = 65
62
+	SYS_VFORK                          = 66
63
+	SYS_MUNMAP                         = 73
64
+	SYS_MPROTECT                       = 74
65
+	SYS_MADVISE                        = 75
66
+	SYS_MINCORE                        = 78
67
+	SYS_GETGROUPS                      = 79
68
+	SYS_SETGROUPS                      = 80
69
+	SYS_GETPGRP                        = 81
70
+	SYS_SETPGID                        = 82
71
+	SYS_SETITIMER                      = 83
72
+	SYS_SWAPON                         = 85
73
+	SYS_GETITIMER                      = 86
74
+	SYS_GETDTABLESIZE                  = 89
75
+	SYS_DUP2                           = 90
76
+	SYS_FCNTL                          = 92
77
+	SYS_SELECT                         = 93
78
+	SYS_FSYNC                          = 95
79
+	SYS_SETPRIORITY                    = 96
80
+	SYS_SOCKET                         = 97
81
+	SYS_CONNECT                        = 98
82
+	SYS_GETPRIORITY                    = 100
83
+	SYS_BIND                           = 104
84
+	SYS_SETSOCKOPT                     = 105
85
+	SYS_LISTEN                         = 106
86
+	SYS_SIGSUSPEND                     = 111
87
+	SYS_GETTIMEOFDAY                   = 116
88
+	SYS_GETRUSAGE                      = 117
89
+	SYS_GETSOCKOPT                     = 118
90
+	SYS_READV                          = 120
91
+	SYS_WRITEV                         = 121
92
+	SYS_SETTIMEOFDAY                   = 122
93
+	SYS_FCHOWN                         = 123
94
+	SYS_FCHMOD                         = 124
95
+	SYS_SETREUID                       = 126
96
+	SYS_SETREGID                       = 127
97
+	SYS_RENAME                         = 128
98
+	SYS_FLOCK                          = 131
99
+	SYS_MKFIFO                         = 132
100
+	SYS_SENDTO                         = 133
101
+	SYS_SHUTDOWN                       = 134
102
+	SYS_SOCKETPAIR                     = 135
103
+	SYS_MKDIR                          = 136
104
+	SYS_RMDIR                          = 137
105
+	SYS_UTIMES                         = 138
106
+	SYS_FUTIMES                        = 139
107
+	SYS_ADJTIME                        = 140
108
+	SYS_GETHOSTUUID                    = 142
109
+	SYS_SETSID                         = 147
110
+	SYS_GETPGID                        = 151
111
+	SYS_SETPRIVEXEC                    = 152
112
+	SYS_PREAD                          = 153
113
+	SYS_PWRITE                         = 154
114
+	SYS_NFSSVC                         = 155
115
+	SYS_STATFS                         = 157
116
+	SYS_FSTATFS                        = 158
117
+	SYS_UNMOUNT                        = 159
118
+	SYS_GETFH                          = 161
119
+	SYS_QUOTACTL                       = 165
120
+	SYS_MOUNT                          = 167
121
+	SYS_CSOPS                          = 169
122
+	SYS_CSOPS_AUDITTOKEN               = 170
123
+	SYS_WAITID                         = 173
124
+	SYS_KDEBUG_TYPEFILTER              = 177
125
+	SYS_KDEBUG_TRACE_STRING            = 178
126
+	SYS_KDEBUG_TRACE64                 = 179
127
+	SYS_KDEBUG_TRACE                   = 180
128
+	SYS_SETGID                         = 181
129
+	SYS_SETEGID                        = 182
130
+	SYS_SETEUID                        = 183
131
+	SYS_SIGRETURN                      = 184
132
+	SYS_THREAD_SELFCOUNTS              = 186
133
+	SYS_FDATASYNC                      = 187
134
+	SYS_STAT                           = 188
135
+	SYS_FSTAT                          = 189
136
+	SYS_LSTAT                          = 190
137
+	SYS_PATHCONF                       = 191
138
+	SYS_FPATHCONF                      = 192
139
+	SYS_GETRLIMIT                      = 194
140
+	SYS_SETRLIMIT                      = 195
141
+	SYS_GETDIRENTRIES                  = 196
142
+	SYS_MMAP                           = 197
143
+	SYS_LSEEK                          = 199
144
+	SYS_TRUNCATE                       = 200
145
+	SYS_FTRUNCATE                      = 201
146
+	SYS_SYSCTL                         = 202
147
+	SYS_MLOCK                          = 203
148
+	SYS_MUNLOCK                        = 204
149
+	SYS_UNDELETE                       = 205
150
+	SYS_OPEN_DPROTECTED_NP             = 216
151
+	SYS_GETATTRLIST                    = 220
152
+	SYS_SETATTRLIST                    = 221
153
+	SYS_GETDIRENTRIESATTR              = 222
154
+	SYS_EXCHANGEDATA                   = 223
155
+	SYS_SEARCHFS                       = 225
156
+	SYS_DELETE                         = 226
157
+	SYS_COPYFILE                       = 227
158
+	SYS_FGETATTRLIST                   = 228
159
+	SYS_FSETATTRLIST                   = 229
160
+	SYS_POLL                           = 230
161
+	SYS_WATCHEVENT                     = 231
162
+	SYS_WAITEVENT                      = 232
163
+	SYS_MODWATCH                       = 233
164
+	SYS_GETXATTR                       = 234
165
+	SYS_FGETXATTR                      = 235
166
+	SYS_SETXATTR                       = 236
167
+	SYS_FSETXATTR                      = 237
168
+	SYS_REMOVEXATTR                    = 238
169
+	SYS_FREMOVEXATTR                   = 239
170
+	SYS_LISTXATTR                      = 240
171
+	SYS_FLISTXATTR                     = 241
172
+	SYS_FSCTL                          = 242
173
+	SYS_INITGROUPS                     = 243
174
+	SYS_POSIX_SPAWN                    = 244
175
+	SYS_FFSCTL                         = 245
176
+	SYS_NFSCLNT                        = 247
177
+	SYS_FHOPEN                         = 248
178
+	SYS_MINHERIT                       = 250
179
+	SYS_SEMSYS                         = 251
180
+	SYS_MSGSYS                         = 252
181
+	SYS_SHMSYS                         = 253
182
+	SYS_SEMCTL                         = 254
183
+	SYS_SEMGET                         = 255
184
+	SYS_SEMOP                          = 256
185
+	SYS_MSGCTL                         = 258
186
+	SYS_MSGGET                         = 259
187
+	SYS_MSGSND                         = 260
188
+	SYS_MSGRCV                         = 261
189
+	SYS_SHMAT                          = 262
190
+	SYS_SHMCTL                         = 263
191
+	SYS_SHMDT                          = 264
192
+	SYS_SHMGET                         = 265
193
+	SYS_SHM_OPEN                       = 266
194
+	SYS_SHM_UNLINK                     = 267
195
+	SYS_SEM_OPEN                       = 268
196
+	SYS_SEM_CLOSE                      = 269
197
+	SYS_SEM_UNLINK                     = 270
198
+	SYS_SEM_WAIT                       = 271
199
+	SYS_SEM_TRYWAIT                    = 272
200
+	SYS_SEM_POST                       = 273
201
+	SYS_SYSCTLBYNAME                   = 274
202
+	SYS_OPEN_EXTENDED                  = 277
203
+	SYS_UMASK_EXTENDED                 = 278
204
+	SYS_STAT_EXTENDED                  = 279
205
+	SYS_LSTAT_EXTENDED                 = 280
206
+	SYS_FSTAT_EXTENDED                 = 281
207
+	SYS_CHMOD_EXTENDED                 = 282
208
+	SYS_FCHMOD_EXTENDED                = 283
209
+	SYS_ACCESS_EXTENDED                = 284
210
+	SYS_SETTID                         = 285
211
+	SYS_GETTID                         = 286
212
+	SYS_SETSGROUPS                     = 287
213
+	SYS_GETSGROUPS                     = 288
214
+	SYS_SETWGROUPS                     = 289
215
+	SYS_GETWGROUPS                     = 290
216
+	SYS_MKFIFO_EXTENDED                = 291
217
+	SYS_MKDIR_EXTENDED                 = 292
218
+	SYS_IDENTITYSVC                    = 293
219
+	SYS_SHARED_REGION_CHECK_NP         = 294
220
+	SYS_VM_PRESSURE_MONITOR            = 296
221
+	SYS_PSYNCH_RW_LONGRDLOCK           = 297
222
+	SYS_PSYNCH_RW_YIELDWRLOCK          = 298
223
+	SYS_PSYNCH_RW_DOWNGRADE            = 299
224
+	SYS_PSYNCH_RW_UPGRADE              = 300
225
+	SYS_PSYNCH_MUTEXWAIT               = 301
226
+	SYS_PSYNCH_MUTEXDROP               = 302
227
+	SYS_PSYNCH_CVBROAD                 = 303
228
+	SYS_PSYNCH_CVSIGNAL                = 304
229
+	SYS_PSYNCH_CVWAIT                  = 305
230
+	SYS_PSYNCH_RW_RDLOCK               = 306
231
+	SYS_PSYNCH_RW_WRLOCK               = 307
232
+	SYS_PSYNCH_RW_UNLOCK               = 308
233
+	SYS_PSYNCH_RW_UNLOCK2              = 309
234
+	SYS_GETSID                         = 310
235
+	SYS_SETTID_WITH_PID                = 311
236
+	SYS_PSYNCH_CVCLRPREPOST            = 312
237
+	SYS_AIO_FSYNC                      = 313
238
+	SYS_AIO_RETURN                     = 314
239
+	SYS_AIO_SUSPEND                    = 315
240
+	SYS_AIO_CANCEL                     = 316
241
+	SYS_AIO_ERROR                      = 317
242
+	SYS_AIO_READ                       = 318
243
+	SYS_AIO_WRITE                      = 319
244
+	SYS_LIO_LISTIO                     = 320
245
+	SYS_IOPOLICYSYS                    = 322
246
+	SYS_PROCESS_POLICY                 = 323
247
+	SYS_MLOCKALL                       = 324
248
+	SYS_MUNLOCKALL                     = 325
249
+	SYS_ISSETUGID                      = 327
250
+	SYS___PTHREAD_KILL                 = 328
251
+	SYS___PTHREAD_SIGMASK              = 329
252
+	SYS___SIGWAIT                      = 330
253
+	SYS___DISABLE_THREADSIGNAL         = 331
254
+	SYS___PTHREAD_MARKCANCEL           = 332
255
+	SYS___PTHREAD_CANCELED             = 333
256
+	SYS___SEMWAIT_SIGNAL               = 334
257
+	SYS_PROC_INFO                      = 336
258
+	SYS_SENDFILE                       = 337
259
+	SYS_STAT64                         = 338
260
+	SYS_FSTAT64                        = 339
261
+	SYS_LSTAT64                        = 340
262
+	SYS_STAT64_EXTENDED                = 341
263
+	SYS_LSTAT64_EXTENDED               = 342
264
+	SYS_FSTAT64_EXTENDED               = 343
265
+	SYS_GETDIRENTRIES64                = 344
266
+	SYS_STATFS64                       = 345
267
+	SYS_FSTATFS64                      = 346
268
+	SYS_GETFSSTAT64                    = 347
269
+	SYS___PTHREAD_CHDIR                = 348
270
+	SYS___PTHREAD_FCHDIR               = 349
271
+	SYS_AUDIT                          = 350
272
+	SYS_AUDITON                        = 351
273
+	SYS_GETAUID                        = 353
274
+	SYS_SETAUID                        = 354
275
+	SYS_GETAUDIT_ADDR                  = 357
276
+	SYS_SETAUDIT_ADDR                  = 358
277
+	SYS_AUDITCTL                       = 359
278
+	SYS_BSDTHREAD_CREATE               = 360
279
+	SYS_BSDTHREAD_TERMINATE            = 361
280
+	SYS_KQUEUE                         = 362
281
+	SYS_KEVENT                         = 363
282
+	SYS_LCHOWN                         = 364
283
+	SYS_BSDTHREAD_REGISTER             = 366
284
+	SYS_WORKQ_OPEN                     = 367
285
+	SYS_WORKQ_KERNRETURN               = 368
286
+	SYS_KEVENT64                       = 369
287
+	SYS___OLD_SEMWAIT_SIGNAL           = 370
288
+	SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL  = 371
289
+	SYS_THREAD_SELFID                  = 372
290
+	SYS_LEDGER                         = 373
291
+	SYS_KEVENT_QOS                     = 374
292
+	SYS_KEVENT_ID                      = 375
293
+	SYS___MAC_EXECVE                   = 380
294
+	SYS___MAC_SYSCALL                  = 381
295
+	SYS___MAC_GET_FILE                 = 382
296
+	SYS___MAC_SET_FILE                 = 383
297
+	SYS___MAC_GET_LINK                 = 384
298
+	SYS___MAC_SET_LINK                 = 385
299
+	SYS___MAC_GET_PROC                 = 386
300
+	SYS___MAC_SET_PROC                 = 387
301
+	SYS___MAC_GET_FD                   = 388
302
+	SYS___MAC_SET_FD                   = 389
303
+	SYS___MAC_GET_PID                  = 390
304
+	SYS_PSELECT                        = 394
305
+	SYS_PSELECT_NOCANCEL               = 395
306
+	SYS_READ_NOCANCEL                  = 396
307
+	SYS_WRITE_NOCANCEL                 = 397
308
+	SYS_OPEN_NOCANCEL                  = 398
309
+	SYS_CLOSE_NOCANCEL                 = 399
310
+	SYS_WAIT4_NOCANCEL                 = 400
311
+	SYS_RECVMSG_NOCANCEL               = 401
312
+	SYS_SENDMSG_NOCANCEL               = 402
313
+	SYS_RECVFROM_NOCANCEL              = 403
314
+	SYS_ACCEPT_NOCANCEL                = 404
315
+	SYS_MSYNC_NOCANCEL                 = 405
316
+	SYS_FCNTL_NOCANCEL                 = 406
317
+	SYS_SELECT_NOCANCEL                = 407
318
+	SYS_FSYNC_NOCANCEL                 = 408
319
+	SYS_CONNECT_NOCANCEL               = 409
320
+	SYS_SIGSUSPEND_NOCANCEL            = 410
321
+	SYS_READV_NOCANCEL                 = 411
322
+	SYS_WRITEV_NOCANCEL                = 412
323
+	SYS_SENDTO_NOCANCEL                = 413
324
+	SYS_PREAD_NOCANCEL                 = 414
325
+	SYS_PWRITE_NOCANCEL                = 415
326
+	SYS_WAITID_NOCANCEL                = 416
327
+	SYS_POLL_NOCANCEL                  = 417
328
+	SYS_MSGSND_NOCANCEL                = 418
329
+	SYS_MSGRCV_NOCANCEL                = 419
330
+	SYS_SEM_WAIT_NOCANCEL              = 420
331
+	SYS_AIO_SUSPEND_NOCANCEL           = 421
332
+	SYS___SIGWAIT_NOCANCEL             = 422
333
+	SYS___SEMWAIT_SIGNAL_NOCANCEL      = 423
334
+	SYS___MAC_MOUNT                    = 424
335
+	SYS___MAC_GET_MOUNT                = 425
336
+	SYS___MAC_GETFSSTAT                = 426
337
+	SYS_FSGETPATH                      = 427
338
+	SYS_AUDIT_SESSION_SELF             = 428
339
+	SYS_AUDIT_SESSION_JOIN             = 429
340
+	SYS_FILEPORT_MAKEPORT              = 430
341
+	SYS_FILEPORT_MAKEFD                = 431
342
+	SYS_AUDIT_SESSION_PORT             = 432
343
+	SYS_PID_SUSPEND                    = 433
344
+	SYS_PID_RESUME                     = 434
345
+	SYS_PID_HIBERNATE                  = 435
346
+	SYS_PID_SHUTDOWN_SOCKETS           = 436
347
+	SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438
348
+	SYS_KAS_INFO                       = 439
349
+	SYS_MEMORYSTATUS_CONTROL           = 440
350
+	SYS_GUARDED_OPEN_NP                = 441
351
+	SYS_GUARDED_CLOSE_NP               = 442
352
+	SYS_GUARDED_KQUEUE_NP              = 443
353
+	SYS_CHANGE_FDGUARD_NP              = 444
354
+	SYS_USRCTL                         = 445
355
+	SYS_PROC_RLIMIT_CONTROL            = 446
356
+	SYS_CONNECTX                       = 447
357
+	SYS_DISCONNECTX                    = 448
358
+	SYS_PEELOFF                        = 449
359
+	SYS_SOCKET_DELEGATE                = 450
360
+	SYS_TELEMETRY                      = 451
361
+	SYS_PROC_UUID_POLICY               = 452
362
+	SYS_MEMORYSTATUS_GET_LEVEL         = 453
363
+	SYS_SYSTEM_OVERRIDE                = 454
364
+	SYS_VFS_PURGE                      = 455
365
+	SYS_SFI_CTL                        = 456
366
+	SYS_SFI_PIDCTL                     = 457
367
+	SYS_COALITION                      = 458
368
+	SYS_COALITION_INFO                 = 459
369
+	SYS_NECP_MATCH_POLICY              = 460
370
+	SYS_GETATTRLISTBULK                = 461
371
+	SYS_CLONEFILEAT                    = 462
372
+	SYS_OPENAT                         = 463
373
+	SYS_OPENAT_NOCANCEL                = 464
374
+	SYS_RENAMEAT                       = 465
375
+	SYS_FACCESSAT                      = 466
376
+	SYS_FCHMODAT                       = 467
377
+	SYS_FCHOWNAT                       = 468
378
+	SYS_FSTATAT                        = 469
379
+	SYS_FSTATAT64                      = 470
380
+	SYS_LINKAT                         = 471
381
+	SYS_UNLINKAT                       = 472
382
+	SYS_READLINKAT                     = 473
383
+	SYS_SYMLINKAT                      = 474
384
+	SYS_MKDIRAT                        = 475
385
+	SYS_GETATTRLISTAT                  = 476
386
+	SYS_PROC_TRACE_LOG                 = 477
387
+	SYS_BSDTHREAD_CTL                  = 478
388
+	SYS_OPENBYID_NP                    = 479
389
+	SYS_RECVMSG_X                      = 480
390
+	SYS_SENDMSG_X                      = 481
391
+	SYS_THREAD_SELFUSAGE               = 482
392
+	SYS_CSRCTL                         = 483
393
+	SYS_GUARDED_OPEN_DPROTECTED_NP     = 484
394
+	SYS_GUARDED_WRITE_NP               = 485
395
+	SYS_GUARDED_PWRITE_NP              = 486
396
+	SYS_GUARDED_WRITEV_NP              = 487
397
+	SYS_RENAMEATX_NP                   = 488
398
+	SYS_MREMAP_ENCRYPTED               = 489
399
+	SYS_NETAGENT_TRIGGER               = 490
400
+	SYS_STACK_SNAPSHOT_WITH_CONFIG     = 491
401
+	SYS_MICROSTACKSHOT                 = 492
402
+	SYS_GRAB_PGO_DATA                  = 493
403
+	SYS_PERSONA                        = 494
404
+	SYS_WORK_INTERVAL_CTL              = 499
405
+	SYS_GETENTROPY                     = 500
406
+	SYS_NECP_OPEN                      = 501
407
+	SYS_NECP_CLIENT_ACTION             = 502
408
+	SYS___NEXUS_OPEN                   = 503
409
+	SYS___NEXUS_REGISTER               = 504
410
+	SYS___NEXUS_DEREGISTER             = 505
411
+	SYS___NEXUS_CREATE                 = 506
412
+	SYS___NEXUS_DESTROY                = 507
413
+	SYS___NEXUS_GET_OPT                = 508
414
+	SYS___NEXUS_SET_OPT                = 509
415
+	SYS___CHANNEL_OPEN                 = 510
416
+	SYS___CHANNEL_GET_INFO             = 511
417
+	SYS___CHANNEL_SYNC                 = 512
418
+	SYS___CHANNEL_GET_OPT              = 513
419
+	SYS___CHANNEL_SET_OPT              = 514
420
+	SYS_ULOCK_WAIT                     = 515
421
+	SYS_ULOCK_WAKE                     = 516
422
+	SYS_FCLONEFILEAT                   = 517
423
+	SYS_FS_SNAPSHOT                    = 518
424
+	SYS_TERMINATE_WITH_PAYLOAD         = 520
425
+	SYS_ABORT_WITH_PAYLOAD             = 521
426
+	SYS_NECP_SESSION_OPEN              = 522
427
+	SYS_NECP_SESSION_ACTION            = 523
428
+	SYS_SETATTRLISTAT                  = 524
429
+	SYS_NET_QOS_GUIDELINE              = 525
430
+	SYS_FMOUNT                         = 526
431
+	SYS_NTP_ADJTIME                    = 527
432
+	SYS_NTP_GETTIME                    = 528
433
+	SYS_OS_FAULT_WITH_PAYLOAD          = 529
434
+	SYS_MAXSYSCALL                     = 530
435
+	SYS_INVALID                        = 63
436
+)
0 437
new file mode 100644
... ...
@@ -0,0 +1,439 @@
0
+// go run mksysnum.go /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/syscall.h
1
+// Code generated by the command above; see README.md. DO NOT EDIT.
2
+
3
+// +build amd64,darwin
4
+
5
+package unix
6
+
7
+// Deprecated: Use libSystem wrappers instead of direct syscalls.
8
+const (
9
+	SYS_SYSCALL                        = 0
10
+	SYS_EXIT                           = 1
11
+	SYS_FORK                           = 2
12
+	SYS_READ                           = 3
13
+	SYS_WRITE                          = 4
14
+	SYS_OPEN                           = 5
15
+	SYS_CLOSE                          = 6
16
+	SYS_WAIT4                          = 7
17
+	SYS_LINK                           = 9
18
+	SYS_UNLINK                         = 10
19
+	SYS_CHDIR                          = 12
20
+	SYS_FCHDIR                         = 13
21
+	SYS_MKNOD                          = 14
22
+	SYS_CHMOD                          = 15
23
+	SYS_CHOWN                          = 16
24
+	SYS_GETFSSTAT                      = 18
25
+	SYS_GETPID                         = 20
26
+	SYS_SETUID                         = 23
27
+	SYS_GETUID                         = 24
28
+	SYS_GETEUID                        = 25
29
+	SYS_PTRACE                         = 26
30
+	SYS_RECVMSG                        = 27
31
+	SYS_SENDMSG                        = 28
32
+	SYS_RECVFROM                       = 29
33
+	SYS_ACCEPT                         = 30
34
+	SYS_GETPEERNAME                    = 31
35
+	SYS_GETSOCKNAME                    = 32
36
+	SYS_ACCESS                         = 33
37
+	SYS_CHFLAGS                        = 34
38
+	SYS_FCHFLAGS                       = 35
39
+	SYS_SYNC                           = 36
40
+	SYS_KILL                           = 37
41
+	SYS_GETPPID                        = 39
42
+	SYS_DUP                            = 41
43
+	SYS_PIPE                           = 42
44
+	SYS_GETEGID                        = 43
45
+	SYS_SIGACTION                      = 46
46
+	SYS_GETGID                         = 47
47
+	SYS_SIGPROCMASK                    = 48
48
+	SYS_GETLOGIN                       = 49
49
+	SYS_SETLOGIN                       = 50
50
+	SYS_ACCT                           = 51
51
+	SYS_SIGPENDING                     = 52
52
+	SYS_SIGALTSTACK                    = 53
53
+	SYS_IOCTL                          = 54
54
+	SYS_REBOOT                         = 55
55
+	SYS_REVOKE                         = 56
56
+	SYS_SYMLINK                        = 57
57
+	SYS_READLINK                       = 58
58
+	SYS_EXECVE                         = 59
59
+	SYS_UMASK                          = 60
60
+	SYS_CHROOT                         = 61
61
+	SYS_MSYNC                          = 65
62
+	SYS_VFORK                          = 66
63
+	SYS_MUNMAP                         = 73
64
+	SYS_MPROTECT                       = 74
65
+	SYS_MADVISE                        = 75
66
+	SYS_MINCORE                        = 78
67
+	SYS_GETGROUPS                      = 79
68
+	SYS_SETGROUPS                      = 80
69
+	SYS_GETPGRP                        = 81
70
+	SYS_SETPGID                        = 82
71
+	SYS_SETITIMER                      = 83
72
+	SYS_SWAPON                         = 85
73
+	SYS_GETITIMER                      = 86
74
+	SYS_GETDTABLESIZE                  = 89
75
+	SYS_DUP2                           = 90
76
+	SYS_FCNTL                          = 92
77
+	SYS_SELECT                         = 93
78
+	SYS_FSYNC                          = 95
79
+	SYS_SETPRIORITY                    = 96
80
+	SYS_SOCKET                         = 97
81
+	SYS_CONNECT                        = 98
82
+	SYS_GETPRIORITY                    = 100
83
+	SYS_BIND                           = 104
84
+	SYS_SETSOCKOPT                     = 105
85
+	SYS_LISTEN                         = 106
86
+	SYS_SIGSUSPEND                     = 111
87
+	SYS_GETTIMEOFDAY                   = 116
88
+	SYS_GETRUSAGE                      = 117
89
+	SYS_GETSOCKOPT                     = 118
90
+	SYS_READV                          = 120
91
+	SYS_WRITEV                         = 121
92
+	SYS_SETTIMEOFDAY                   = 122
93
+	SYS_FCHOWN                         = 123
94
+	SYS_FCHMOD                         = 124
95
+	SYS_SETREUID                       = 126
96
+	SYS_SETREGID                       = 127
97
+	SYS_RENAME                         = 128
98
+	SYS_FLOCK                          = 131
99
+	SYS_MKFIFO                         = 132
100
+	SYS_SENDTO                         = 133
101
+	SYS_SHUTDOWN                       = 134
102
+	SYS_SOCKETPAIR                     = 135
103
+	SYS_MKDIR                          = 136
104
+	SYS_RMDIR                          = 137
105
+	SYS_UTIMES                         = 138
106
+	SYS_FUTIMES                        = 139
107
+	SYS_ADJTIME                        = 140
108
+	SYS_GETHOSTUUID                    = 142
109
+	SYS_SETSID                         = 147
110
+	SYS_GETPGID                        = 151
111
+	SYS_SETPRIVEXEC                    = 152
112
+	SYS_PREAD                          = 153
113
+	SYS_PWRITE                         = 154
114
+	SYS_NFSSVC                         = 155
115
+	SYS_STATFS                         = 157
116
+	SYS_FSTATFS                        = 158
117
+	SYS_UNMOUNT                        = 159
118
+	SYS_GETFH                          = 161
119
+	SYS_QUOTACTL                       = 165
120
+	SYS_MOUNT                          = 167
121
+	SYS_CSOPS                          = 169
122
+	SYS_CSOPS_AUDITTOKEN               = 170
123
+	SYS_WAITID                         = 173
124
+	SYS_KDEBUG_TYPEFILTER              = 177
125
+	SYS_KDEBUG_TRACE_STRING            = 178
126
+	SYS_KDEBUG_TRACE64                 = 179
127
+	SYS_KDEBUG_TRACE                   = 180
128
+	SYS_SETGID                         = 181
129
+	SYS_SETEGID                        = 182
130
+	SYS_SETEUID                        = 183
131
+	SYS_SIGRETURN                      = 184
132
+	SYS_THREAD_SELFCOUNTS              = 186
133
+	SYS_FDATASYNC                      = 187
134
+	SYS_STAT                           = 188
135
+	SYS_FSTAT                          = 189
136
+	SYS_LSTAT                          = 190
137
+	SYS_PATHCONF                       = 191
138
+	SYS_FPATHCONF                      = 192
139
+	SYS_GETRLIMIT                      = 194
140
+	SYS_SETRLIMIT                      = 195
141
+	SYS_GETDIRENTRIES                  = 196
142
+	SYS_MMAP                           = 197
143
+	SYS_LSEEK                          = 199
144
+	SYS_TRUNCATE                       = 200
145
+	SYS_FTRUNCATE                      = 201
146
+	SYS_SYSCTL                         = 202
147
+	SYS_MLOCK                          = 203
148
+	SYS_MUNLOCK                        = 204
149
+	SYS_UNDELETE                       = 205
150
+	SYS_OPEN_DPROTECTED_NP             = 216
151
+	SYS_GETATTRLIST                    = 220
152
+	SYS_SETATTRLIST                    = 221
153
+	SYS_GETDIRENTRIESATTR              = 222
154
+	SYS_EXCHANGEDATA                   = 223
155
+	SYS_SEARCHFS                       = 225
156
+	SYS_DELETE                         = 226
157
+	SYS_COPYFILE                       = 227
158
+	SYS_FGETATTRLIST                   = 228
159
+	SYS_FSETATTRLIST                   = 229
160
+	SYS_POLL                           = 230
161
+	SYS_WATCHEVENT                     = 231
162
+	SYS_WAITEVENT                      = 232
163
+	SYS_MODWATCH                       = 233
164
+	SYS_GETXATTR                       = 234
165
+	SYS_FGETXATTR                      = 235
166
+	SYS_SETXATTR                       = 236
167
+	SYS_FSETXATTR                      = 237
168
+	SYS_REMOVEXATTR                    = 238
169
+	SYS_FREMOVEXATTR                   = 239
170
+	SYS_LISTXATTR                      = 240
171
+	SYS_FLISTXATTR                     = 241
172
+	SYS_FSCTL                          = 242
173
+	SYS_INITGROUPS                     = 243
174
+	SYS_POSIX_SPAWN                    = 244
175
+	SYS_FFSCTL                         = 245
176
+	SYS_NFSCLNT                        = 247
177
+	SYS_FHOPEN                         = 248
178
+	SYS_MINHERIT                       = 250
179
+	SYS_SEMSYS                         = 251
180
+	SYS_MSGSYS                         = 252
181
+	SYS_SHMSYS                         = 253
182
+	SYS_SEMCTL                         = 254
183
+	SYS_SEMGET                         = 255
184
+	SYS_SEMOP                          = 256
185
+	SYS_MSGCTL                         = 258
186
+	SYS_MSGGET                         = 259
187
+	SYS_MSGSND                         = 260
188
+	SYS_MSGRCV                         = 261
189
+	SYS_SHMAT                          = 262
190
+	SYS_SHMCTL                         = 263
191
+	SYS_SHMDT                          = 264
192
+	SYS_SHMGET                         = 265
193
+	SYS_SHM_OPEN                       = 266
194
+	SYS_SHM_UNLINK                     = 267
195
+	SYS_SEM_OPEN                       = 268
196
+	SYS_SEM_CLOSE                      = 269
197
+	SYS_SEM_UNLINK                     = 270
198
+	SYS_SEM_WAIT                       = 271
199
+	SYS_SEM_TRYWAIT                    = 272
200
+	SYS_SEM_POST                       = 273
201
+	SYS_SYSCTLBYNAME                   = 274
202
+	SYS_OPEN_EXTENDED                  = 277
203
+	SYS_UMASK_EXTENDED                 = 278
204
+	SYS_STAT_EXTENDED                  = 279
205
+	SYS_LSTAT_EXTENDED                 = 280
206
+	SYS_FSTAT_EXTENDED                 = 281
207
+	SYS_CHMOD_EXTENDED                 = 282
208
+	SYS_FCHMOD_EXTENDED                = 283
209
+	SYS_ACCESS_EXTENDED                = 284
210
+	SYS_SETTID                         = 285
211
+	SYS_GETTID                         = 286
212
+	SYS_SETSGROUPS                     = 287
213
+	SYS_GETSGROUPS                     = 288
214
+	SYS_SETWGROUPS                     = 289
215
+	SYS_GETWGROUPS                     = 290
216
+	SYS_MKFIFO_EXTENDED                = 291
217
+	SYS_MKDIR_EXTENDED                 = 292
218
+	SYS_IDENTITYSVC                    = 293
219
+	SYS_SHARED_REGION_CHECK_NP         = 294
220
+	SYS_VM_PRESSURE_MONITOR            = 296
221
+	SYS_PSYNCH_RW_LONGRDLOCK           = 297
222
+	SYS_PSYNCH_RW_YIELDWRLOCK          = 298
223
+	SYS_PSYNCH_RW_DOWNGRADE            = 299
224
+	SYS_PSYNCH_RW_UPGRADE              = 300
225
+	SYS_PSYNCH_MUTEXWAIT               = 301
226
+	SYS_PSYNCH_MUTEXDROP               = 302
227
+	SYS_PSYNCH_CVBROAD                 = 303
228
+	SYS_PSYNCH_CVSIGNAL                = 304
229
+	SYS_PSYNCH_CVWAIT                  = 305
230
+	SYS_PSYNCH_RW_RDLOCK               = 306
231
+	SYS_PSYNCH_RW_WRLOCK               = 307
232
+	SYS_PSYNCH_RW_UNLOCK               = 308
233
+	SYS_PSYNCH_RW_UNLOCK2              = 309
234
+	SYS_GETSID                         = 310
235
+	SYS_SETTID_WITH_PID                = 311
236
+	SYS_PSYNCH_CVCLRPREPOST            = 312
237
+	SYS_AIO_FSYNC                      = 313
238
+	SYS_AIO_RETURN                     = 314
239
+	SYS_AIO_SUSPEND                    = 315
240
+	SYS_AIO_CANCEL                     = 316
241
+	SYS_AIO_ERROR                      = 317
242
+	SYS_AIO_READ                       = 318
243
+	SYS_AIO_WRITE                      = 319
244
+	SYS_LIO_LISTIO                     = 320
245
+	SYS_IOPOLICYSYS                    = 322
246
+	SYS_PROCESS_POLICY                 = 323
247
+	SYS_MLOCKALL                       = 324
248
+	SYS_MUNLOCKALL                     = 325
249
+	SYS_ISSETUGID                      = 327
250
+	SYS___PTHREAD_KILL                 = 328
251
+	SYS___PTHREAD_SIGMASK              = 329
252
+	SYS___SIGWAIT                      = 330
253
+	SYS___DISABLE_THREADSIGNAL         = 331
254
+	SYS___PTHREAD_MARKCANCEL           = 332
255
+	SYS___PTHREAD_CANCELED             = 333
256
+	SYS___SEMWAIT_SIGNAL               = 334
257
+	SYS_PROC_INFO                      = 336
258
+	SYS_SENDFILE                       = 337
259
+	SYS_STAT64                         = 338
260
+	SYS_FSTAT64                        = 339
261
+	SYS_LSTAT64                        = 340
262
+	SYS_STAT64_EXTENDED                = 341
263
+	SYS_LSTAT64_EXTENDED               = 342
264
+	SYS_FSTAT64_EXTENDED               = 343
265
+	SYS_GETDIRENTRIES64                = 344
266
+	SYS_STATFS64                       = 345
267
+	SYS_FSTATFS64                      = 346
268
+	SYS_GETFSSTAT64                    = 347
269
+	SYS___PTHREAD_CHDIR                = 348
270
+	SYS___PTHREAD_FCHDIR               = 349
271
+	SYS_AUDIT                          = 350
272
+	SYS_AUDITON                        = 351
273
+	SYS_GETAUID                        = 353
274
+	SYS_SETAUID                        = 354
275
+	SYS_GETAUDIT_ADDR                  = 357
276
+	SYS_SETAUDIT_ADDR                  = 358
277
+	SYS_AUDITCTL                       = 359
278
+	SYS_BSDTHREAD_CREATE               = 360
279
+	SYS_BSDTHREAD_TERMINATE            = 361
280
+	SYS_KQUEUE                         = 362
281
+	SYS_KEVENT                         = 363
282
+	SYS_LCHOWN                         = 364
283
+	SYS_BSDTHREAD_REGISTER             = 366
284
+	SYS_WORKQ_OPEN                     = 367
285
+	SYS_WORKQ_KERNRETURN               = 368
286
+	SYS_KEVENT64                       = 369
287
+	SYS___OLD_SEMWAIT_SIGNAL           = 370
288
+	SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL  = 371
289
+	SYS_THREAD_SELFID                  = 372
290
+	SYS_LEDGER                         = 373
291
+	SYS_KEVENT_QOS                     = 374
292
+	SYS_KEVENT_ID                      = 375
293
+	SYS___MAC_EXECVE                   = 380
294
+	SYS___MAC_SYSCALL                  = 381
295
+	SYS___MAC_GET_FILE                 = 382
296
+	SYS___MAC_SET_FILE                 = 383
297
+	SYS___MAC_GET_LINK                 = 384
298
+	SYS___MAC_SET_LINK                 = 385
299
+	SYS___MAC_GET_PROC                 = 386
300
+	SYS___MAC_SET_PROC                 = 387
301
+	SYS___MAC_GET_FD                   = 388
302
+	SYS___MAC_SET_FD                   = 389
303
+	SYS___MAC_GET_PID                  = 390
304
+	SYS_PSELECT                        = 394
305
+	SYS_PSELECT_NOCANCEL               = 395
306
+	SYS_READ_NOCANCEL                  = 396
307
+	SYS_WRITE_NOCANCEL                 = 397
308
+	SYS_OPEN_NOCANCEL                  = 398
309
+	SYS_CLOSE_NOCANCEL                 = 399
310
+	SYS_WAIT4_NOCANCEL                 = 400
311
+	SYS_RECVMSG_NOCANCEL               = 401
312
+	SYS_SENDMSG_NOCANCEL               = 402
313
+	SYS_RECVFROM_NOCANCEL              = 403
314
+	SYS_ACCEPT_NOCANCEL                = 404
315
+	SYS_MSYNC_NOCANCEL                 = 405
316
+	SYS_FCNTL_NOCANCEL                 = 406
317
+	SYS_SELECT_NOCANCEL                = 407
318
+	SYS_FSYNC_NOCANCEL                 = 408
319
+	SYS_CONNECT_NOCANCEL               = 409
320
+	SYS_SIGSUSPEND_NOCANCEL            = 410
321
+	SYS_READV_NOCANCEL                 = 411
322
+	SYS_WRITEV_NOCANCEL                = 412
323
+	SYS_SENDTO_NOCANCEL                = 413
324
+	SYS_PREAD_NOCANCEL                 = 414
325
+	SYS_PWRITE_NOCANCEL                = 415
326
+	SYS_WAITID_NOCANCEL                = 416
327
+	SYS_POLL_NOCANCEL                  = 417
328
+	SYS_MSGSND_NOCANCEL                = 418
329
+	SYS_MSGRCV_NOCANCEL                = 419
330
+	SYS_SEM_WAIT_NOCANCEL              = 420
331
+	SYS_AIO_SUSPEND_NOCANCEL           = 421
332
+	SYS___SIGWAIT_NOCANCEL             = 422
333
+	SYS___SEMWAIT_SIGNAL_NOCANCEL      = 423
334
+	SYS___MAC_MOUNT                    = 424
335
+	SYS___MAC_GET_MOUNT                = 425
336
+	SYS___MAC_GETFSSTAT                = 426
337
+	SYS_FSGETPATH                      = 427
338
+	SYS_AUDIT_SESSION_SELF             = 428
339
+	SYS_AUDIT_SESSION_JOIN             = 429
340
+	SYS_FILEPORT_MAKEPORT              = 430
341
+	SYS_FILEPORT_MAKEFD                = 431
342
+	SYS_AUDIT_SESSION_PORT             = 432
343
+	SYS_PID_SUSPEND                    = 433
344
+	SYS_PID_RESUME                     = 434
345
+	SYS_PID_HIBERNATE                  = 435
346
+	SYS_PID_SHUTDOWN_SOCKETS           = 436
347
+	SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438
348
+	SYS_KAS_INFO                       = 439
349
+	SYS_MEMORYSTATUS_CONTROL           = 440
350
+	SYS_GUARDED_OPEN_NP                = 441
351
+	SYS_GUARDED_CLOSE_NP               = 442
352
+	SYS_GUARDED_KQUEUE_NP              = 443
353
+	SYS_CHANGE_FDGUARD_NP              = 444
354
+	SYS_USRCTL                         = 445
355
+	SYS_PROC_RLIMIT_CONTROL            = 446
356
+	SYS_CONNECTX                       = 447
357
+	SYS_DISCONNECTX                    = 448
358
+	SYS_PEELOFF                        = 449
359
+	SYS_SOCKET_DELEGATE                = 450
360
+	SYS_TELEMETRY                      = 451
361
+	SYS_PROC_UUID_POLICY               = 452
362
+	SYS_MEMORYSTATUS_GET_LEVEL         = 453
363
+	SYS_SYSTEM_OVERRIDE                = 454
364
+	SYS_VFS_PURGE                      = 455
365
+	SYS_SFI_CTL                        = 456
366
+	SYS_SFI_PIDCTL                     = 457
367
+	SYS_COALITION                      = 458
368
+	SYS_COALITION_INFO                 = 459
369
+	SYS_NECP_MATCH_POLICY              = 460
370
+	SYS_GETATTRLISTBULK                = 461
371
+	SYS_CLONEFILEAT                    = 462
372
+	SYS_OPENAT                         = 463
373
+	SYS_OPENAT_NOCANCEL                = 464
374
+	SYS_RENAMEAT                       = 465
375
+	SYS_FACCESSAT                      = 466
376
+	SYS_FCHMODAT                       = 467
377
+	SYS_FCHOWNAT                       = 468
378
+	SYS_FSTATAT                        = 469
379
+	SYS_FSTATAT64                      = 470
380
+	SYS_LINKAT                         = 471
381
+	SYS_UNLINKAT                       = 472
382
+	SYS_READLINKAT                     = 473
383
+	SYS_SYMLINKAT                      = 474
384
+	SYS_MKDIRAT                        = 475
385
+	SYS_GETATTRLISTAT                  = 476
386
+	SYS_PROC_TRACE_LOG                 = 477
387
+	SYS_BSDTHREAD_CTL                  = 478
388
+	SYS_OPENBYID_NP                    = 479
389
+	SYS_RECVMSG_X                      = 480
390
+	SYS_SENDMSG_X                      = 481
391
+	SYS_THREAD_SELFUSAGE               = 482
392
+	SYS_CSRCTL                         = 483
393
+	SYS_GUARDED_OPEN_DPROTECTED_NP     = 484
394
+	SYS_GUARDED_WRITE_NP               = 485
395
+	SYS_GUARDED_PWRITE_NP              = 486
396
+	SYS_GUARDED_WRITEV_NP              = 487
397
+	SYS_RENAMEATX_NP                   = 488
398
+	SYS_MREMAP_ENCRYPTED               = 489
399
+	SYS_NETAGENT_TRIGGER               = 490
400
+	SYS_STACK_SNAPSHOT_WITH_CONFIG     = 491
401
+	SYS_MICROSTACKSHOT                 = 492
402
+	SYS_GRAB_PGO_DATA                  = 493
403
+	SYS_PERSONA                        = 494
404
+	SYS_WORK_INTERVAL_CTL              = 499
405
+	SYS_GETENTROPY                     = 500
406
+	SYS_NECP_OPEN                      = 501
407
+	SYS_NECP_CLIENT_ACTION             = 502
408
+	SYS___NEXUS_OPEN                   = 503
409
+	SYS___NEXUS_REGISTER               = 504
410
+	SYS___NEXUS_DEREGISTER             = 505
411
+	SYS___NEXUS_CREATE                 = 506
412
+	SYS___NEXUS_DESTROY                = 507
413
+	SYS___NEXUS_GET_OPT                = 508
414
+	SYS___NEXUS_SET_OPT                = 509
415
+	SYS___CHANNEL_OPEN                 = 510
416
+	SYS___CHANNEL_GET_INFO             = 511
417
+	SYS___CHANNEL_SYNC                 = 512
418
+	SYS___CHANNEL_GET_OPT              = 513
419
+	SYS___CHANNEL_SET_OPT              = 514
420
+	SYS_ULOCK_WAIT                     = 515
421
+	SYS_ULOCK_WAKE                     = 516
422
+	SYS_FCLONEFILEAT                   = 517
423
+	SYS_FS_SNAPSHOT                    = 518
424
+	SYS_TERMINATE_WITH_PAYLOAD         = 520
425
+	SYS_ABORT_WITH_PAYLOAD             = 521
426
+	SYS_NECP_SESSION_OPEN              = 522
427
+	SYS_NECP_SESSION_ACTION            = 523
428
+	SYS_SETATTRLISTAT                  = 524
429
+	SYS_NET_QOS_GUIDELINE              = 525
430
+	SYS_FMOUNT                         = 526
431
+	SYS_NTP_ADJTIME                    = 527
432
+	SYS_NTP_GETTIME                    = 528
433
+	SYS_OS_FAULT_WITH_PAYLOAD          = 529
434
+	SYS_KQUEUE_WORKLOOP_CTL            = 530
435
+	SYS___MACH_BRIDGE_REMOTE_TIME      = 531
436
+	SYS_MAXSYSCALL                     = 532
437
+	SYS_INVALID                        = 63
438
+)
0 439
new file mode 100644
... ...
@@ -0,0 +1,437 @@
0
+// go run mksysnum.go /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.1.sdk/usr/include/sys/syscall.h
1
+// Code generated by the command above; see README.md. DO NOT EDIT.
2
+
3
+// +build arm,darwin
4
+
5
+package unix
6
+
7
+// Deprecated: Use libSystem wrappers instead of direct syscalls.
8
+const (
9
+	SYS_SYSCALL                        = 0
10
+	SYS_EXIT                           = 1
11
+	SYS_FORK                           = 2
12
+	SYS_READ                           = 3
13
+	SYS_WRITE                          = 4
14
+	SYS_OPEN                           = 5
15
+	SYS_CLOSE                          = 6
16
+	SYS_WAIT4                          = 7
17
+	SYS_LINK                           = 9
18
+	SYS_UNLINK                         = 10
19
+	SYS_CHDIR                          = 12
20
+	SYS_FCHDIR                         = 13
21
+	SYS_MKNOD                          = 14
22
+	SYS_CHMOD                          = 15
23
+	SYS_CHOWN                          = 16
24
+	SYS_GETFSSTAT                      = 18
25
+	SYS_GETPID                         = 20
26
+	SYS_SETUID                         = 23
27
+	SYS_GETUID                         = 24
28
+	SYS_GETEUID                        = 25
29
+	SYS_PTRACE                         = 26
30
+	SYS_RECVMSG                        = 27
31
+	SYS_SENDMSG                        = 28
32
+	SYS_RECVFROM                       = 29
33
+	SYS_ACCEPT                         = 30
34
+	SYS_GETPEERNAME                    = 31
35
+	SYS_GETSOCKNAME                    = 32
36
+	SYS_ACCESS                         = 33
37
+	SYS_CHFLAGS                        = 34
38
+	SYS_FCHFLAGS                       = 35
39
+	SYS_SYNC                           = 36
40
+	SYS_KILL                           = 37
41
+	SYS_GETPPID                        = 39
42
+	SYS_DUP                            = 41
43
+	SYS_PIPE                           = 42
44
+	SYS_GETEGID                        = 43
45
+	SYS_SIGACTION                      = 46
46
+	SYS_GETGID                         = 47
47
+	SYS_SIGPROCMASK                    = 48
48
+	SYS_GETLOGIN                       = 49
49
+	SYS_SETLOGIN                       = 50
50
+	SYS_ACCT                           = 51
51
+	SYS_SIGPENDING                     = 52
52
+	SYS_SIGALTSTACK                    = 53
53
+	SYS_IOCTL                          = 54
54
+	SYS_REBOOT                         = 55
55
+	SYS_REVOKE                         = 56
56
+	SYS_SYMLINK                        = 57
57
+	SYS_READLINK                       = 58
58
+	SYS_EXECVE                         = 59
59
+	SYS_UMASK                          = 60
60
+	SYS_CHROOT                         = 61
61
+	SYS_MSYNC                          = 65
62
+	SYS_VFORK                          = 66
63
+	SYS_MUNMAP                         = 73
64
+	SYS_MPROTECT                       = 74
65
+	SYS_MADVISE                        = 75
66
+	SYS_MINCORE                        = 78
67
+	SYS_GETGROUPS                      = 79
68
+	SYS_SETGROUPS                      = 80
69
+	SYS_GETPGRP                        = 81
70
+	SYS_SETPGID                        = 82
71
+	SYS_SETITIMER                      = 83
72
+	SYS_SWAPON                         = 85
73
+	SYS_GETITIMER                      = 86
74
+	SYS_GETDTABLESIZE                  = 89
75
+	SYS_DUP2                           = 90
76
+	SYS_FCNTL                          = 92
77
+	SYS_SELECT                         = 93
78
+	SYS_FSYNC                          = 95
79
+	SYS_SETPRIORITY                    = 96
80
+	SYS_SOCKET                         = 97
81
+	SYS_CONNECT                        = 98
82
+	SYS_GETPRIORITY                    = 100
83
+	SYS_BIND                           = 104
84
+	SYS_SETSOCKOPT                     = 105
85
+	SYS_LISTEN                         = 106
86
+	SYS_SIGSUSPEND                     = 111
87
+	SYS_GETTIMEOFDAY                   = 116
88
+	SYS_GETRUSAGE                      = 117
89
+	SYS_GETSOCKOPT                     = 118
90
+	SYS_READV                          = 120
91
+	SYS_WRITEV                         = 121
92
+	SYS_SETTIMEOFDAY                   = 122
93
+	SYS_FCHOWN                         = 123
94
+	SYS_FCHMOD                         = 124
95
+	SYS_SETREUID                       = 126
96
+	SYS_SETREGID                       = 127
97
+	SYS_RENAME                         = 128
98
+	SYS_FLOCK                          = 131
99
+	SYS_MKFIFO                         = 132
100
+	SYS_SENDTO                         = 133
101
+	SYS_SHUTDOWN                       = 134
102
+	SYS_SOCKETPAIR                     = 135
103
+	SYS_MKDIR                          = 136
104
+	SYS_RMDIR                          = 137
105
+	SYS_UTIMES                         = 138
106
+	SYS_FUTIMES                        = 139
107
+	SYS_ADJTIME                        = 140
108
+	SYS_GETHOSTUUID                    = 142
109
+	SYS_SETSID                         = 147
110
+	SYS_GETPGID                        = 151
111
+	SYS_SETPRIVEXEC                    = 152
112
+	SYS_PREAD                          = 153
113
+	SYS_PWRITE                         = 154
114
+	SYS_NFSSVC                         = 155
115
+	SYS_STATFS                         = 157
116
+	SYS_FSTATFS                        = 158
117
+	SYS_UNMOUNT                        = 159
118
+	SYS_GETFH                          = 161
119
+	SYS_QUOTACTL                       = 165
120
+	SYS_MOUNT                          = 167
121
+	SYS_CSOPS                          = 169
122
+	SYS_CSOPS_AUDITTOKEN               = 170
123
+	SYS_WAITID                         = 173
124
+	SYS_KDEBUG_TYPEFILTER              = 177
125
+	SYS_KDEBUG_TRACE_STRING            = 178
126
+	SYS_KDEBUG_TRACE64                 = 179
127
+	SYS_KDEBUG_TRACE                   = 180
128
+	SYS_SETGID                         = 181
129
+	SYS_SETEGID                        = 182
130
+	SYS_SETEUID                        = 183
131
+	SYS_SIGRETURN                      = 184
132
+	SYS_THREAD_SELFCOUNTS              = 186
133
+	SYS_FDATASYNC                      = 187
134
+	SYS_STAT                           = 188
135
+	SYS_FSTAT                          = 189
136
+	SYS_LSTAT                          = 190
137
+	SYS_PATHCONF                       = 191
138
+	SYS_FPATHCONF                      = 192
139
+	SYS_GETRLIMIT                      = 194
140
+	SYS_SETRLIMIT                      = 195
141
+	SYS_GETDIRENTRIES                  = 196
142
+	SYS_MMAP                           = 197
143
+	SYS_LSEEK                          = 199
144
+	SYS_TRUNCATE                       = 200
145
+	SYS_FTRUNCATE                      = 201
146
+	SYS_SYSCTL                         = 202
147
+	SYS_MLOCK                          = 203
148
+	SYS_MUNLOCK                        = 204
149
+	SYS_UNDELETE                       = 205
150
+	SYS_OPEN_DPROTECTED_NP             = 216
151
+	SYS_GETATTRLIST                    = 220
152
+	SYS_SETATTRLIST                    = 221
153
+	SYS_GETDIRENTRIESATTR              = 222
154
+	SYS_EXCHANGEDATA                   = 223
155
+	SYS_SEARCHFS                       = 225
156
+	SYS_DELETE                         = 226
157
+	SYS_COPYFILE                       = 227
158
+	SYS_FGETATTRLIST                   = 228
159
+	SYS_FSETATTRLIST                   = 229
160
+	SYS_POLL                           = 230
161
+	SYS_WATCHEVENT                     = 231
162
+	SYS_WAITEVENT                      = 232
163
+	SYS_MODWATCH                       = 233
164
+	SYS_GETXATTR                       = 234
165
+	SYS_FGETXATTR                      = 235
166
+	SYS_SETXATTR                       = 236
167
+	SYS_FSETXATTR                      = 237
168
+	SYS_REMOVEXATTR                    = 238
169
+	SYS_FREMOVEXATTR                   = 239
170
+	SYS_LISTXATTR                      = 240
171
+	SYS_FLISTXATTR                     = 241
172
+	SYS_FSCTL                          = 242
173
+	SYS_INITGROUPS                     = 243
174
+	SYS_POSIX_SPAWN                    = 244
175
+	SYS_FFSCTL                         = 245
176
+	SYS_NFSCLNT                        = 247
177
+	SYS_FHOPEN                         = 248
178
+	SYS_MINHERIT                       = 250
179
+	SYS_SEMSYS                         = 251
180
+	SYS_MSGSYS                         = 252
181
+	SYS_SHMSYS                         = 253
182
+	SYS_SEMCTL                         = 254
183
+	SYS_SEMGET                         = 255
184
+	SYS_SEMOP                          = 256
185
+	SYS_MSGCTL                         = 258
186
+	SYS_MSGGET                         = 259
187
+	SYS_MSGSND                         = 260
188
+	SYS_MSGRCV                         = 261
189
+	SYS_SHMAT                          = 262
190
+	SYS_SHMCTL                         = 263
191
+	SYS_SHMDT                          = 264
192
+	SYS_SHMGET                         = 265
193
+	SYS_SHM_OPEN                       = 266
194
+	SYS_SHM_UNLINK                     = 267
195
+	SYS_SEM_OPEN                       = 268
196
+	SYS_SEM_CLOSE                      = 269
197
+	SYS_SEM_UNLINK                     = 270
198
+	SYS_SEM_WAIT                       = 271
199
+	SYS_SEM_TRYWAIT                    = 272
200
+	SYS_SEM_POST                       = 273
201
+	SYS_SYSCTLBYNAME                   = 274
202
+	SYS_OPEN_EXTENDED                  = 277
203
+	SYS_UMASK_EXTENDED                 = 278
204
+	SYS_STAT_EXTENDED                  = 279
205
+	SYS_LSTAT_EXTENDED                 = 280
206
+	SYS_FSTAT_EXTENDED                 = 281
207
+	SYS_CHMOD_EXTENDED                 = 282
208
+	SYS_FCHMOD_EXTENDED                = 283
209
+	SYS_ACCESS_EXTENDED                = 284
210
+	SYS_SETTID                         = 285
211
+	SYS_GETTID                         = 286
212
+	SYS_SETSGROUPS                     = 287
213
+	SYS_GETSGROUPS                     = 288
214
+	SYS_SETWGROUPS                     = 289
215
+	SYS_GETWGROUPS                     = 290
216
+	SYS_MKFIFO_EXTENDED                = 291
217
+	SYS_MKDIR_EXTENDED                 = 292
218
+	SYS_IDENTITYSVC                    = 293
219
+	SYS_SHARED_REGION_CHECK_NP         = 294
220
+	SYS_VM_PRESSURE_MONITOR            = 296
221
+	SYS_PSYNCH_RW_LONGRDLOCK           = 297
222
+	SYS_PSYNCH_RW_YIELDWRLOCK          = 298
223
+	SYS_PSYNCH_RW_DOWNGRADE            = 299
224
+	SYS_PSYNCH_RW_UPGRADE              = 300
225
+	SYS_PSYNCH_MUTEXWAIT               = 301
226
+	SYS_PSYNCH_MUTEXDROP               = 302
227
+	SYS_PSYNCH_CVBROAD                 = 303
228
+	SYS_PSYNCH_CVSIGNAL                = 304
229
+	SYS_PSYNCH_CVWAIT                  = 305
230
+	SYS_PSYNCH_RW_RDLOCK               = 306
231
+	SYS_PSYNCH_RW_WRLOCK               = 307
232
+	SYS_PSYNCH_RW_UNLOCK               = 308
233
+	SYS_PSYNCH_RW_UNLOCK2              = 309
234
+	SYS_GETSID                         = 310
235
+	SYS_SETTID_WITH_PID                = 311
236
+	SYS_PSYNCH_CVCLRPREPOST            = 312
237
+	SYS_AIO_FSYNC                      = 313
238
+	SYS_AIO_RETURN                     = 314
239
+	SYS_AIO_SUSPEND                    = 315
240
+	SYS_AIO_CANCEL                     = 316
241
+	SYS_AIO_ERROR                      = 317
242
+	SYS_AIO_READ                       = 318
243
+	SYS_AIO_WRITE                      = 319
244
+	SYS_LIO_LISTIO                     = 320
245
+	SYS_IOPOLICYSYS                    = 322
246
+	SYS_PROCESS_POLICY                 = 323
247
+	SYS_MLOCKALL                       = 324
248
+	SYS_MUNLOCKALL                     = 325
249
+	SYS_ISSETUGID                      = 327
250
+	SYS___PTHREAD_KILL                 = 328
251
+	SYS___PTHREAD_SIGMASK              = 329
252
+	SYS___SIGWAIT                      = 330
253
+	SYS___DISABLE_THREADSIGNAL         = 331
254
+	SYS___PTHREAD_MARKCANCEL           = 332
255
+	SYS___PTHREAD_CANCELED             = 333
256
+	SYS___SEMWAIT_SIGNAL               = 334
257
+	SYS_PROC_INFO                      = 336
258
+	SYS_SENDFILE                       = 337
259
+	SYS_STAT64                         = 338
260
+	SYS_FSTAT64                        = 339
261
+	SYS_LSTAT64                        = 340
262
+	SYS_STAT64_EXTENDED                = 341
263
+	SYS_LSTAT64_EXTENDED               = 342
264
+	SYS_FSTAT64_EXTENDED               = 343
265
+	SYS_GETDIRENTRIES64                = 344
266
+	SYS_STATFS64                       = 345
267
+	SYS_FSTATFS64                      = 346
268
+	SYS_GETFSSTAT64                    = 347
269
+	SYS___PTHREAD_CHDIR                = 348
270
+	SYS___PTHREAD_FCHDIR               = 349
271
+	SYS_AUDIT                          = 350
272
+	SYS_AUDITON                        = 351
273
+	SYS_GETAUID                        = 353
274
+	SYS_SETAUID                        = 354
275
+	SYS_GETAUDIT_ADDR                  = 357
276
+	SYS_SETAUDIT_ADDR                  = 358
277
+	SYS_AUDITCTL                       = 359
278
+	SYS_BSDTHREAD_CREATE               = 360
279
+	SYS_BSDTHREAD_TERMINATE            = 361
280
+	SYS_KQUEUE                         = 362
281
+	SYS_KEVENT                         = 363
282
+	SYS_LCHOWN                         = 364
283
+	SYS_BSDTHREAD_REGISTER             = 366
284
+	SYS_WORKQ_OPEN                     = 367
285
+	SYS_WORKQ_KERNRETURN               = 368
286
+	SYS_KEVENT64                       = 369
287
+	SYS___OLD_SEMWAIT_SIGNAL           = 370
288
+	SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL  = 371
289
+	SYS_THREAD_SELFID                  = 372
290
+	SYS_LEDGER                         = 373
291
+	SYS_KEVENT_QOS                     = 374
292
+	SYS_KEVENT_ID                      = 375
293
+	SYS___MAC_EXECVE                   = 380
294
+	SYS___MAC_SYSCALL                  = 381
295
+	SYS___MAC_GET_FILE                 = 382
296
+	SYS___MAC_SET_FILE                 = 383
297
+	SYS___MAC_GET_LINK                 = 384
298
+	SYS___MAC_SET_LINK                 = 385
299
+	SYS___MAC_GET_PROC                 = 386
300
+	SYS___MAC_SET_PROC                 = 387
301
+	SYS___MAC_GET_FD                   = 388
302
+	SYS___MAC_SET_FD                   = 389
303
+	SYS___MAC_GET_PID                  = 390
304
+	SYS_PSELECT                        = 394
305
+	SYS_PSELECT_NOCANCEL               = 395
306
+	SYS_READ_NOCANCEL                  = 396
307
+	SYS_WRITE_NOCANCEL                 = 397
308
+	SYS_OPEN_NOCANCEL                  = 398
309
+	SYS_CLOSE_NOCANCEL                 = 399
310
+	SYS_WAIT4_NOCANCEL                 = 400
311
+	SYS_RECVMSG_NOCANCEL               = 401
312
+	SYS_SENDMSG_NOCANCEL               = 402
313
+	SYS_RECVFROM_NOCANCEL              = 403
314
+	SYS_ACCEPT_NOCANCEL                = 404
315
+	SYS_MSYNC_NOCANCEL                 = 405
316
+	SYS_FCNTL_NOCANCEL                 = 406
317
+	SYS_SELECT_NOCANCEL                = 407
318
+	SYS_FSYNC_NOCANCEL                 = 408
319
+	SYS_CONNECT_NOCANCEL               = 409
320
+	SYS_SIGSUSPEND_NOCANCEL            = 410
321
+	SYS_READV_NOCANCEL                 = 411
322
+	SYS_WRITEV_NOCANCEL                = 412
323
+	SYS_SENDTO_NOCANCEL                = 413
324
+	SYS_PREAD_NOCANCEL                 = 414
325
+	SYS_PWRITE_NOCANCEL                = 415
326
+	SYS_WAITID_NOCANCEL                = 416
327
+	SYS_POLL_NOCANCEL                  = 417
328
+	SYS_MSGSND_NOCANCEL                = 418
329
+	SYS_MSGRCV_NOCANCEL                = 419
330
+	SYS_SEM_WAIT_NOCANCEL              = 420
331
+	SYS_AIO_SUSPEND_NOCANCEL           = 421
332
+	SYS___SIGWAIT_NOCANCEL             = 422
333
+	SYS___SEMWAIT_SIGNAL_NOCANCEL      = 423
334
+	SYS___MAC_MOUNT                    = 424
335
+	SYS___MAC_GET_MOUNT                = 425
336
+	SYS___MAC_GETFSSTAT                = 426
337
+	SYS_FSGETPATH                      = 427
338
+	SYS_AUDIT_SESSION_SELF             = 428
339
+	SYS_AUDIT_SESSION_JOIN             = 429
340
+	SYS_FILEPORT_MAKEPORT              = 430
341
+	SYS_FILEPORT_MAKEFD                = 431
342
+	SYS_AUDIT_SESSION_PORT             = 432
343
+	SYS_PID_SUSPEND                    = 433
344
+	SYS_PID_RESUME                     = 434
345
+	SYS_PID_HIBERNATE                  = 435
346
+	SYS_PID_SHUTDOWN_SOCKETS           = 436
347
+	SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438
348
+	SYS_KAS_INFO                       = 439
349
+	SYS_MEMORYSTATUS_CONTROL           = 440
350
+	SYS_GUARDED_OPEN_NP                = 441
351
+	SYS_GUARDED_CLOSE_NP               = 442
352
+	SYS_GUARDED_KQUEUE_NP              = 443
353
+	SYS_CHANGE_FDGUARD_NP              = 444
354
+	SYS_USRCTL                         = 445
355
+	SYS_PROC_RLIMIT_CONTROL            = 446
356
+	SYS_CONNECTX                       = 447
357
+	SYS_DISCONNECTX                    = 448
358
+	SYS_PEELOFF                        = 449
359
+	SYS_SOCKET_DELEGATE                = 450
360
+	SYS_TELEMETRY                      = 451
361
+	SYS_PROC_UUID_POLICY               = 452
362
+	SYS_MEMORYSTATUS_GET_LEVEL         = 453
363
+	SYS_SYSTEM_OVERRIDE                = 454
364
+	SYS_VFS_PURGE                      = 455
365
+	SYS_SFI_CTL                        = 456
366
+	SYS_SFI_PIDCTL                     = 457
367
+	SYS_COALITION                      = 458
368
+	SYS_COALITION_INFO                 = 459
369
+	SYS_NECP_MATCH_POLICY              = 460
370
+	SYS_GETATTRLISTBULK                = 461
371
+	SYS_CLONEFILEAT                    = 462
372
+	SYS_OPENAT                         = 463
373
+	SYS_OPENAT_NOCANCEL                = 464
374
+	SYS_RENAMEAT                       = 465
375
+	SYS_FACCESSAT                      = 466
376
+	SYS_FCHMODAT                       = 467
377
+	SYS_FCHOWNAT                       = 468
378
+	SYS_FSTATAT                        = 469
379
+	SYS_FSTATAT64                      = 470
380
+	SYS_LINKAT                         = 471
381
+	SYS_UNLINKAT                       = 472
382
+	SYS_READLINKAT                     = 473
383
+	SYS_SYMLINKAT                      = 474
384
+	SYS_MKDIRAT                        = 475
385
+	SYS_GETATTRLISTAT                  = 476
386
+	SYS_PROC_TRACE_LOG                 = 477
387
+	SYS_BSDTHREAD_CTL                  = 478
388
+	SYS_OPENBYID_NP                    = 479
389
+	SYS_RECVMSG_X                      = 480
390
+	SYS_SENDMSG_X                      = 481
391
+	SYS_THREAD_SELFUSAGE               = 482
392
+	SYS_CSRCTL                         = 483
393
+	SYS_GUARDED_OPEN_DPROTECTED_NP     = 484
394
+	SYS_GUARDED_WRITE_NP               = 485
395
+	SYS_GUARDED_PWRITE_NP              = 486
396
+	SYS_GUARDED_WRITEV_NP              = 487
397
+	SYS_RENAMEATX_NP                   = 488
398
+	SYS_MREMAP_ENCRYPTED               = 489
399
+	SYS_NETAGENT_TRIGGER               = 490
400
+	SYS_STACK_SNAPSHOT_WITH_CONFIG     = 491
401
+	SYS_MICROSTACKSHOT                 = 492
402
+	SYS_GRAB_PGO_DATA                  = 493
403
+	SYS_PERSONA                        = 494
404
+	SYS_WORK_INTERVAL_CTL              = 499
405
+	SYS_GETENTROPY                     = 500
406
+	SYS_NECP_OPEN                      = 501
407
+	SYS_NECP_CLIENT_ACTION             = 502
408
+	SYS___NEXUS_OPEN                   = 503
409
+	SYS___NEXUS_REGISTER               = 504
410
+	SYS___NEXUS_DEREGISTER             = 505
411
+	SYS___NEXUS_CREATE                 = 506
412
+	SYS___NEXUS_DESTROY                = 507
413
+	SYS___NEXUS_GET_OPT                = 508
414
+	SYS___NEXUS_SET_OPT                = 509
415
+	SYS___CHANNEL_OPEN                 = 510
416
+	SYS___CHANNEL_GET_INFO             = 511
417
+	SYS___CHANNEL_SYNC                 = 512
418
+	SYS___CHANNEL_GET_OPT              = 513
419
+	SYS___CHANNEL_SET_OPT              = 514
420
+	SYS_ULOCK_WAIT                     = 515
421
+	SYS_ULOCK_WAKE                     = 516
422
+	SYS_FCLONEFILEAT                   = 517
423
+	SYS_FS_SNAPSHOT                    = 518
424
+	SYS_TERMINATE_WITH_PAYLOAD         = 520
425
+	SYS_ABORT_WITH_PAYLOAD             = 521
426
+	SYS_NECP_SESSION_OPEN              = 522
427
+	SYS_NECP_SESSION_ACTION            = 523
428
+	SYS_SETATTRLISTAT                  = 524
429
+	SYS_NET_QOS_GUIDELINE              = 525
430
+	SYS_FMOUNT                         = 526
431
+	SYS_NTP_ADJTIME                    = 527
432
+	SYS_NTP_GETTIME                    = 528
433
+	SYS_OS_FAULT_WITH_PAYLOAD          = 529
434
+	SYS_MAXSYSCALL                     = 530
435
+	SYS_INVALID                        = 63
436
+)
0 437
new file mode 100644
... ...
@@ -0,0 +1,437 @@
0
+// go run mksysnum.go /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.1.sdk/usr/include/sys/syscall.h
1
+// Code generated by the command above; see README.md. DO NOT EDIT.
2
+
3
+// +build arm64,darwin
4
+
5
+package unix
6
+
7
+// Deprecated: Use libSystem wrappers instead of direct syscalls.
8
+const (
9
+	SYS_SYSCALL                        = 0
10
+	SYS_EXIT                           = 1
11
+	SYS_FORK                           = 2
12
+	SYS_READ                           = 3
13
+	SYS_WRITE                          = 4
14
+	SYS_OPEN                           = 5
15
+	SYS_CLOSE                          = 6
16
+	SYS_WAIT4                          = 7
17
+	SYS_LINK                           = 9
18
+	SYS_UNLINK                         = 10
19
+	SYS_CHDIR                          = 12
20
+	SYS_FCHDIR                         = 13
21
+	SYS_MKNOD                          = 14
22
+	SYS_CHMOD                          = 15
23
+	SYS_CHOWN                          = 16
24
+	SYS_GETFSSTAT                      = 18
25
+	SYS_GETPID                         = 20
26
+	SYS_SETUID                         = 23
27
+	SYS_GETUID                         = 24
28
+	SYS_GETEUID                        = 25
29
+	SYS_PTRACE                         = 26
30
+	SYS_RECVMSG                        = 27
31
+	SYS_SENDMSG                        = 28
32
+	SYS_RECVFROM                       = 29
33
+	SYS_ACCEPT                         = 30
34
+	SYS_GETPEERNAME                    = 31
35
+	SYS_GETSOCKNAME                    = 32
36
+	SYS_ACCESS                         = 33
37
+	SYS_CHFLAGS                        = 34
38
+	SYS_FCHFLAGS                       = 35
39
+	SYS_SYNC                           = 36
40
+	SYS_KILL                           = 37
41
+	SYS_GETPPID                        = 39
42
+	SYS_DUP                            = 41
43
+	SYS_PIPE                           = 42
44
+	SYS_GETEGID                        = 43
45
+	SYS_SIGACTION                      = 46
46
+	SYS_GETGID                         = 47
47
+	SYS_SIGPROCMASK                    = 48
48
+	SYS_GETLOGIN                       = 49
49
+	SYS_SETLOGIN                       = 50
50
+	SYS_ACCT                           = 51
51
+	SYS_SIGPENDING                     = 52
52
+	SYS_SIGALTSTACK                    = 53
53
+	SYS_IOCTL                          = 54
54
+	SYS_REBOOT                         = 55
55
+	SYS_REVOKE                         = 56
56
+	SYS_SYMLINK                        = 57
57
+	SYS_READLINK                       = 58
58
+	SYS_EXECVE                         = 59
59
+	SYS_UMASK                          = 60
60
+	SYS_CHROOT                         = 61
61
+	SYS_MSYNC                          = 65
62
+	SYS_VFORK                          = 66
63
+	SYS_MUNMAP                         = 73
64
+	SYS_MPROTECT                       = 74
65
+	SYS_MADVISE                        = 75
66
+	SYS_MINCORE                        = 78
67
+	SYS_GETGROUPS                      = 79
68
+	SYS_SETGROUPS                      = 80
69
+	SYS_GETPGRP                        = 81
70
+	SYS_SETPGID                        = 82
71
+	SYS_SETITIMER                      = 83
72
+	SYS_SWAPON                         = 85
73
+	SYS_GETITIMER                      = 86
74
+	SYS_GETDTABLESIZE                  = 89
75
+	SYS_DUP2                           = 90
76
+	SYS_FCNTL                          = 92
77
+	SYS_SELECT                         = 93
78
+	SYS_FSYNC                          = 95
79
+	SYS_SETPRIORITY                    = 96
80
+	SYS_SOCKET                         = 97
81
+	SYS_CONNECT                        = 98
82
+	SYS_GETPRIORITY                    = 100
83
+	SYS_BIND                           = 104
84
+	SYS_SETSOCKOPT                     = 105
85
+	SYS_LISTEN                         = 106
86
+	SYS_SIGSUSPEND                     = 111
87
+	SYS_GETTIMEOFDAY                   = 116
88
+	SYS_GETRUSAGE                      = 117
89
+	SYS_GETSOCKOPT                     = 118
90
+	SYS_READV                          = 120
91
+	SYS_WRITEV                         = 121
92
+	SYS_SETTIMEOFDAY                   = 122
93
+	SYS_FCHOWN                         = 123
94
+	SYS_FCHMOD                         = 124
95
+	SYS_SETREUID                       = 126
96
+	SYS_SETREGID                       = 127
97
+	SYS_RENAME                         = 128
98
+	SYS_FLOCK                          = 131
99
+	SYS_MKFIFO                         = 132
100
+	SYS_SENDTO                         = 133
101
+	SYS_SHUTDOWN                       = 134
102
+	SYS_SOCKETPAIR                     = 135
103
+	SYS_MKDIR                          = 136
104
+	SYS_RMDIR                          = 137
105
+	SYS_UTIMES                         = 138
106
+	SYS_FUTIMES                        = 139
107
+	SYS_ADJTIME                        = 140
108
+	SYS_GETHOSTUUID                    = 142
109
+	SYS_SETSID                         = 147
110
+	SYS_GETPGID                        = 151
111
+	SYS_SETPRIVEXEC                    = 152
112
+	SYS_PREAD                          = 153
113
+	SYS_PWRITE                         = 154
114
+	SYS_NFSSVC                         = 155
115
+	SYS_STATFS                         = 157
116
+	SYS_FSTATFS                        = 158
117
+	SYS_UNMOUNT                        = 159
118
+	SYS_GETFH                          = 161
119
+	SYS_QUOTACTL                       = 165
120
+	SYS_MOUNT                          = 167
121
+	SYS_CSOPS                          = 169
122
+	SYS_CSOPS_AUDITTOKEN               = 170
123
+	SYS_WAITID                         = 173
124
+	SYS_KDEBUG_TYPEFILTER              = 177
125
+	SYS_KDEBUG_TRACE_STRING            = 178
126
+	SYS_KDEBUG_TRACE64                 = 179
127
+	SYS_KDEBUG_TRACE                   = 180
128
+	SYS_SETGID                         = 181
129
+	SYS_SETEGID                        = 182
130
+	SYS_SETEUID                        = 183
131
+	SYS_SIGRETURN                      = 184
132
+	SYS_THREAD_SELFCOUNTS              = 186
133
+	SYS_FDATASYNC                      = 187
134
+	SYS_STAT                           = 188
135
+	SYS_FSTAT                          = 189
136
+	SYS_LSTAT                          = 190
137
+	SYS_PATHCONF                       = 191
138
+	SYS_FPATHCONF                      = 192
139
+	SYS_GETRLIMIT                      = 194
140
+	SYS_SETRLIMIT                      = 195
141
+	SYS_GETDIRENTRIES                  = 196
142
+	SYS_MMAP                           = 197
143
+	SYS_LSEEK                          = 199
144
+	SYS_TRUNCATE                       = 200
145
+	SYS_FTRUNCATE                      = 201
146
+	SYS_SYSCTL                         = 202
147
+	SYS_MLOCK                          = 203
148
+	SYS_MUNLOCK                        = 204
149
+	SYS_UNDELETE                       = 205
150
+	SYS_OPEN_DPROTECTED_NP             = 216
151
+	SYS_GETATTRLIST                    = 220
152
+	SYS_SETATTRLIST                    = 221
153
+	SYS_GETDIRENTRIESATTR              = 222
154
+	SYS_EXCHANGEDATA                   = 223
155
+	SYS_SEARCHFS                       = 225
156
+	SYS_DELETE                         = 226
157
+	SYS_COPYFILE                       = 227
158
+	SYS_FGETATTRLIST                   = 228
159
+	SYS_FSETATTRLIST                   = 229
160
+	SYS_POLL                           = 230
161
+	SYS_WATCHEVENT                     = 231
162
+	SYS_WAITEVENT                      = 232
163
+	SYS_MODWATCH                       = 233
164
+	SYS_GETXATTR                       = 234
165
+	SYS_FGETXATTR                      = 235
166
+	SYS_SETXATTR                       = 236
167
+	SYS_FSETXATTR                      = 237
168
+	SYS_REMOVEXATTR                    = 238
169
+	SYS_FREMOVEXATTR                   = 239
170
+	SYS_LISTXATTR                      = 240
171
+	SYS_FLISTXATTR                     = 241
172
+	SYS_FSCTL                          = 242
173
+	SYS_INITGROUPS                     = 243
174
+	SYS_POSIX_SPAWN                    = 244
175
+	SYS_FFSCTL                         = 245
176
+	SYS_NFSCLNT                        = 247
177
+	SYS_FHOPEN                         = 248
178
+	SYS_MINHERIT                       = 250
179
+	SYS_SEMSYS                         = 251
180
+	SYS_MSGSYS                         = 252
181
+	SYS_SHMSYS                         = 253
182
+	SYS_SEMCTL                         = 254
183
+	SYS_SEMGET                         = 255
184
+	SYS_SEMOP                          = 256
185
+	SYS_MSGCTL                         = 258
186
+	SYS_MSGGET                         = 259
187
+	SYS_MSGSND                         = 260
188
+	SYS_MSGRCV                         = 261
189
+	SYS_SHMAT                          = 262
190
+	SYS_SHMCTL                         = 263
191
+	SYS_SHMDT                          = 264
192
+	SYS_SHMGET                         = 265
193
+	SYS_SHM_OPEN                       = 266
194
+	SYS_SHM_UNLINK                     = 267
195
+	SYS_SEM_OPEN                       = 268
196
+	SYS_SEM_CLOSE                      = 269
197
+	SYS_SEM_UNLINK                     = 270
198
+	SYS_SEM_WAIT                       = 271
199
+	SYS_SEM_TRYWAIT                    = 272
200
+	SYS_SEM_POST                       = 273
201
+	SYS_SYSCTLBYNAME                   = 274
202
+	SYS_OPEN_EXTENDED                  = 277
203
+	SYS_UMASK_EXTENDED                 = 278
204
+	SYS_STAT_EXTENDED                  = 279
205
+	SYS_LSTAT_EXTENDED                 = 280
206
+	SYS_FSTAT_EXTENDED                 = 281
207
+	SYS_CHMOD_EXTENDED                 = 282
208
+	SYS_FCHMOD_EXTENDED                = 283
209
+	SYS_ACCESS_EXTENDED                = 284
210
+	SYS_SETTID                         = 285
211
+	SYS_GETTID                         = 286
212
+	SYS_SETSGROUPS                     = 287
213
+	SYS_GETSGROUPS                     = 288
214
+	SYS_SETWGROUPS                     = 289
215
+	SYS_GETWGROUPS                     = 290
216
+	SYS_MKFIFO_EXTENDED                = 291
217
+	SYS_MKDIR_EXTENDED                 = 292
218
+	SYS_IDENTITYSVC                    = 293
219
+	SYS_SHARED_REGION_CHECK_NP         = 294
220
+	SYS_VM_PRESSURE_MONITOR            = 296
221
+	SYS_PSYNCH_RW_LONGRDLOCK           = 297
222
+	SYS_PSYNCH_RW_YIELDWRLOCK          = 298
223
+	SYS_PSYNCH_RW_DOWNGRADE            = 299
224
+	SYS_PSYNCH_RW_UPGRADE              = 300
225
+	SYS_PSYNCH_MUTEXWAIT               = 301
226
+	SYS_PSYNCH_MUTEXDROP               = 302
227
+	SYS_PSYNCH_CVBROAD                 = 303
228
+	SYS_PSYNCH_CVSIGNAL                = 304
229
+	SYS_PSYNCH_CVWAIT                  = 305
230
+	SYS_PSYNCH_RW_RDLOCK               = 306
231
+	SYS_PSYNCH_RW_WRLOCK               = 307
232
+	SYS_PSYNCH_RW_UNLOCK               = 308
233
+	SYS_PSYNCH_RW_UNLOCK2              = 309
234
+	SYS_GETSID                         = 310
235
+	SYS_SETTID_WITH_PID                = 311
236
+	SYS_PSYNCH_CVCLRPREPOST            = 312
237
+	SYS_AIO_FSYNC                      = 313
238
+	SYS_AIO_RETURN                     = 314
239
+	SYS_AIO_SUSPEND                    = 315
240
+	SYS_AIO_CANCEL                     = 316
241
+	SYS_AIO_ERROR                      = 317
242
+	SYS_AIO_READ                       = 318
243
+	SYS_AIO_WRITE                      = 319
244
+	SYS_LIO_LISTIO                     = 320
245
+	SYS_IOPOLICYSYS                    = 322
246
+	SYS_PROCESS_POLICY                 = 323
247
+	SYS_MLOCKALL                       = 324
248
+	SYS_MUNLOCKALL                     = 325
249
+	SYS_ISSETUGID                      = 327
250
+	SYS___PTHREAD_KILL                 = 328
251
+	SYS___PTHREAD_SIGMASK              = 329
252
+	SYS___SIGWAIT                      = 330
253
+	SYS___DISABLE_THREADSIGNAL         = 331
254
+	SYS___PTHREAD_MARKCANCEL           = 332
255
+	SYS___PTHREAD_CANCELED             = 333
256
+	SYS___SEMWAIT_SIGNAL               = 334
257
+	SYS_PROC_INFO                      = 336
258
+	SYS_SENDFILE                       = 337
259
+	SYS_STAT64                         = 338
260
+	SYS_FSTAT64                        = 339
261
+	SYS_LSTAT64                        = 340
262
+	SYS_STAT64_EXTENDED                = 341
263
+	SYS_LSTAT64_EXTENDED               = 342
264
+	SYS_FSTAT64_EXTENDED               = 343
265
+	SYS_GETDIRENTRIES64                = 344
266
+	SYS_STATFS64                       = 345
267
+	SYS_FSTATFS64                      = 346
268
+	SYS_GETFSSTAT64                    = 347
269
+	SYS___PTHREAD_CHDIR                = 348
270
+	SYS___PTHREAD_FCHDIR               = 349
271
+	SYS_AUDIT                          = 350
272
+	SYS_AUDITON                        = 351
273
+	SYS_GETAUID                        = 353
274
+	SYS_SETAUID                        = 354
275
+	SYS_GETAUDIT_ADDR                  = 357
276
+	SYS_SETAUDIT_ADDR                  = 358
277
+	SYS_AUDITCTL                       = 359
278
+	SYS_BSDTHREAD_CREATE               = 360
279
+	SYS_BSDTHREAD_TERMINATE            = 361
280
+	SYS_KQUEUE                         = 362
281
+	SYS_KEVENT                         = 363
282
+	SYS_LCHOWN                         = 364
283
+	SYS_BSDTHREAD_REGISTER             = 366
284
+	SYS_WORKQ_OPEN                     = 367
285
+	SYS_WORKQ_KERNRETURN               = 368
286
+	SYS_KEVENT64                       = 369
287
+	SYS___OLD_SEMWAIT_SIGNAL           = 370
288
+	SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL  = 371
289
+	SYS_THREAD_SELFID                  = 372
290
+	SYS_LEDGER                         = 373
291
+	SYS_KEVENT_QOS                     = 374
292
+	SYS_KEVENT_ID                      = 375
293
+	SYS___MAC_EXECVE                   = 380
294
+	SYS___MAC_SYSCALL                  = 381
295
+	SYS___MAC_GET_FILE                 = 382
296
+	SYS___MAC_SET_FILE                 = 383
297
+	SYS___MAC_GET_LINK                 = 384
298
+	SYS___MAC_SET_LINK                 = 385
299
+	SYS___MAC_GET_PROC                 = 386
300
+	SYS___MAC_SET_PROC                 = 387
301
+	SYS___MAC_GET_FD                   = 388
302
+	SYS___MAC_SET_FD                   = 389
303
+	SYS___MAC_GET_PID                  = 390
304
+	SYS_PSELECT                        = 394
305
+	SYS_PSELECT_NOCANCEL               = 395
306
+	SYS_READ_NOCANCEL                  = 396
307
+	SYS_WRITE_NOCANCEL                 = 397
308
+	SYS_OPEN_NOCANCEL                  = 398
309
+	SYS_CLOSE_NOCANCEL                 = 399
310
+	SYS_WAIT4_NOCANCEL                 = 400
311
+	SYS_RECVMSG_NOCANCEL               = 401
312
+	SYS_SENDMSG_NOCANCEL               = 402
313
+	SYS_RECVFROM_NOCANCEL              = 403
314
+	SYS_ACCEPT_NOCANCEL                = 404
315
+	SYS_MSYNC_NOCANCEL                 = 405
316
+	SYS_FCNTL_NOCANCEL                 = 406
317
+	SYS_SELECT_NOCANCEL                = 407
318
+	SYS_FSYNC_NOCANCEL                 = 408
319
+	SYS_CONNECT_NOCANCEL               = 409
320
+	SYS_SIGSUSPEND_NOCANCEL            = 410
321
+	SYS_READV_NOCANCEL                 = 411
322
+	SYS_WRITEV_NOCANCEL                = 412
323
+	SYS_SENDTO_NOCANCEL                = 413
324
+	SYS_PREAD_NOCANCEL                 = 414
325
+	SYS_PWRITE_NOCANCEL                = 415
326
+	SYS_WAITID_NOCANCEL                = 416
327
+	SYS_POLL_NOCANCEL                  = 417
328
+	SYS_MSGSND_NOCANCEL                = 418
329
+	SYS_MSGRCV_NOCANCEL                = 419
330
+	SYS_SEM_WAIT_NOCANCEL              = 420
331
+	SYS_AIO_SUSPEND_NOCANCEL           = 421
332
+	SYS___SIGWAIT_NOCANCEL             = 422
333
+	SYS___SEMWAIT_SIGNAL_NOCANCEL      = 423
334
+	SYS___MAC_MOUNT                    = 424
335
+	SYS___MAC_GET_MOUNT                = 425
336
+	SYS___MAC_GETFSSTAT                = 426
337
+	SYS_FSGETPATH                      = 427
338
+	SYS_AUDIT_SESSION_SELF             = 428
339
+	SYS_AUDIT_SESSION_JOIN             = 429
340
+	SYS_FILEPORT_MAKEPORT              = 430
341
+	SYS_FILEPORT_MAKEFD                = 431
342
+	SYS_AUDIT_SESSION_PORT             = 432
343
+	SYS_PID_SUSPEND                    = 433
344
+	SYS_PID_RESUME                     = 434
345
+	SYS_PID_HIBERNATE                  = 435
346
+	SYS_PID_SHUTDOWN_SOCKETS           = 436
347
+	SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438
348
+	SYS_KAS_INFO                       = 439
349
+	SYS_MEMORYSTATUS_CONTROL           = 440
350
+	SYS_GUARDED_OPEN_NP                = 441
351
+	SYS_GUARDED_CLOSE_NP               = 442
352
+	SYS_GUARDED_KQUEUE_NP              = 443
353
+	SYS_CHANGE_FDGUARD_NP              = 444
354
+	SYS_USRCTL                         = 445
355
+	SYS_PROC_RLIMIT_CONTROL            = 446
356
+	SYS_CONNECTX                       = 447
357
+	SYS_DISCONNECTX                    = 448
358
+	SYS_PEELOFF                        = 449
359
+	SYS_SOCKET_DELEGATE                = 450
360
+	SYS_TELEMETRY                      = 451
361
+	SYS_PROC_UUID_POLICY               = 452
362
+	SYS_MEMORYSTATUS_GET_LEVEL         = 453
363
+	SYS_SYSTEM_OVERRIDE                = 454
364
+	SYS_VFS_PURGE                      = 455
365
+	SYS_SFI_CTL                        = 456
366
+	SYS_SFI_PIDCTL                     = 457
367
+	SYS_COALITION                      = 458
368
+	SYS_COALITION_INFO                 = 459
369
+	SYS_NECP_MATCH_POLICY              = 460
370
+	SYS_GETATTRLISTBULK                = 461
371
+	SYS_CLONEFILEAT                    = 462
372
+	SYS_OPENAT                         = 463
373
+	SYS_OPENAT_NOCANCEL                = 464
374
+	SYS_RENAMEAT                       = 465
375
+	SYS_FACCESSAT                      = 466
376
+	SYS_FCHMODAT                       = 467
377
+	SYS_FCHOWNAT                       = 468
378
+	SYS_FSTATAT                        = 469
379
+	SYS_FSTATAT64                      = 470
380
+	SYS_LINKAT                         = 471
381
+	SYS_UNLINKAT                       = 472
382
+	SYS_READLINKAT                     = 473
383
+	SYS_SYMLINKAT                      = 474
384
+	SYS_MKDIRAT                        = 475
385
+	SYS_GETATTRLISTAT                  = 476
386
+	SYS_PROC_TRACE_LOG                 = 477
387
+	SYS_BSDTHREAD_CTL                  = 478
388
+	SYS_OPENBYID_NP                    = 479
389
+	SYS_RECVMSG_X                      = 480
390
+	SYS_SENDMSG_X                      = 481
391
+	SYS_THREAD_SELFUSAGE               = 482
392
+	SYS_CSRCTL                         = 483
393
+	SYS_GUARDED_OPEN_DPROTECTED_NP     = 484
394
+	SYS_GUARDED_WRITE_NP               = 485
395
+	SYS_GUARDED_PWRITE_NP              = 486
396
+	SYS_GUARDED_WRITEV_NP              = 487
397
+	SYS_RENAMEATX_NP                   = 488
398
+	SYS_MREMAP_ENCRYPTED               = 489
399
+	SYS_NETAGENT_TRIGGER               = 490
400
+	SYS_STACK_SNAPSHOT_WITH_CONFIG     = 491
401
+	SYS_MICROSTACKSHOT                 = 492
402
+	SYS_GRAB_PGO_DATA                  = 493
403
+	SYS_PERSONA                        = 494
404
+	SYS_WORK_INTERVAL_CTL              = 499
405
+	SYS_GETENTROPY                     = 500
406
+	SYS_NECP_OPEN                      = 501
407
+	SYS_NECP_CLIENT_ACTION             = 502
408
+	SYS___NEXUS_OPEN                   = 503
409
+	SYS___NEXUS_REGISTER               = 504
410
+	SYS___NEXUS_DEREGISTER             = 505
411
+	SYS___NEXUS_CREATE                 = 506
412
+	SYS___NEXUS_DESTROY                = 507
413
+	SYS___NEXUS_GET_OPT                = 508
414
+	SYS___NEXUS_SET_OPT                = 509
415
+	SYS___CHANNEL_OPEN                 = 510
416
+	SYS___CHANNEL_GET_INFO             = 511
417
+	SYS___CHANNEL_SYNC                 = 512
418
+	SYS___CHANNEL_GET_OPT              = 513
419
+	SYS___CHANNEL_SET_OPT              = 514
420
+	SYS_ULOCK_WAIT                     = 515
421
+	SYS_ULOCK_WAKE                     = 516
422
+	SYS_FCLONEFILEAT                   = 517
423
+	SYS_FS_SNAPSHOT                    = 518
424
+	SYS_TERMINATE_WITH_PAYLOAD         = 520
425
+	SYS_ABORT_WITH_PAYLOAD             = 521
426
+	SYS_NECP_SESSION_OPEN              = 522
427
+	SYS_NECP_SESSION_ACTION            = 523
428
+	SYS_SETATTRLISTAT                  = 524
429
+	SYS_NET_QOS_GUIDELINE              = 525
430
+	SYS_FMOUNT                         = 526
431
+	SYS_NTP_ADJTIME                    = 527
432
+	SYS_NTP_GETTIME                    = 528
433
+	SYS_OS_FAULT_WITH_PAYLOAD          = 529
434
+	SYS_MAXSYSCALL                     = 530
435
+	SYS_INVALID                        = 63
436
+)
... ...
@@ -435,4 +435,5 @@ const (
435 435
 	SYS_OPENAT2                      = 437
436 436
 	SYS_PIDFD_GETFD                  = 438
437 437
 	SYS_FACCESSAT2                   = 439
438
+	SYS_PROCESS_MADVISE              = 440
438 439
 )
... ...
@@ -357,4 +357,5 @@ const (
357 357
 	SYS_OPENAT2                = 437
358 358
 	SYS_PIDFD_GETFD            = 438
359 359
 	SYS_FACCESSAT2             = 439
360
+	SYS_PROCESS_MADVISE        = 440
360 361
 )
... ...
@@ -399,4 +399,5 @@ const (
399 399
 	SYS_OPENAT2                      = 437
400 400
 	SYS_PIDFD_GETFD                  = 438
401 401
 	SYS_FACCESSAT2                   = 439
402
+	SYS_PROCESS_MADVISE              = 440
402 403
 )
... ...
@@ -302,4 +302,5 @@ const (
302 302
 	SYS_OPENAT2                = 437
303 303
 	SYS_PIDFD_GETFD            = 438
304 304
 	SYS_FACCESSAT2             = 439
305
+	SYS_PROCESS_MADVISE        = 440
305 306
 )
... ...
@@ -420,4 +420,5 @@ const (
420 420
 	SYS_OPENAT2                      = 4437
421 421
 	SYS_PIDFD_GETFD                  = 4438
422 422
 	SYS_FACCESSAT2                   = 4439
423
+	SYS_PROCESS_MADVISE              = 4440
423 424
 )
... ...
@@ -350,4 +350,5 @@ const (
350 350
 	SYS_OPENAT2                = 5437
351 351
 	SYS_PIDFD_GETFD            = 5438
352 352
 	SYS_FACCESSAT2             = 5439
353
+	SYS_PROCESS_MADVISE        = 5440
353 354
 )
... ...
@@ -350,4 +350,5 @@ const (
350 350
 	SYS_OPENAT2                = 5437
351 351
 	SYS_PIDFD_GETFD            = 5438
352 352
 	SYS_FACCESSAT2             = 5439
353
+	SYS_PROCESS_MADVISE        = 5440
353 354
 )
... ...
@@ -420,4 +420,5 @@ const (
420 420
 	SYS_OPENAT2                      = 4437
421 421
 	SYS_PIDFD_GETFD                  = 4438
422 422
 	SYS_FACCESSAT2                   = 4439
423
+	SYS_PROCESS_MADVISE              = 4440
423 424
 )
... ...
@@ -399,4 +399,5 @@ const (
399 399
 	SYS_OPENAT2                = 437
400 400
 	SYS_PIDFD_GETFD            = 438
401 401
 	SYS_FACCESSAT2             = 439
402
+	SYS_PROCESS_MADVISE        = 440
402 403
 )
... ...
@@ -399,4 +399,5 @@ const (
399 399
 	SYS_OPENAT2                = 437
400 400
 	SYS_PIDFD_GETFD            = 438
401 401
 	SYS_FACCESSAT2             = 439
402
+	SYS_PROCESS_MADVISE        = 440
402 403
 )
... ...
@@ -301,4 +301,5 @@ const (
301 301
 	SYS_OPENAT2                = 437
302 302
 	SYS_PIDFD_GETFD            = 438
303 303
 	SYS_FACCESSAT2             = 439
304
+	SYS_PROCESS_MADVISE        = 440
304 305
 )
... ...
@@ -364,4 +364,5 @@ const (
364 364
 	SYS_OPENAT2                = 437
365 365
 	SYS_PIDFD_GETFD            = 438
366 366
 	SYS_FACCESSAT2             = 439
367
+	SYS_PROCESS_MADVISE        = 440
367 368
 )
... ...
@@ -378,4 +378,5 @@ const (
378 378
 	SYS_OPENAT2                = 437
379 379
 	SYS_PIDFD_GETFD            = 438
380 380
 	SYS_FACCESSAT2             = 439
381
+	SYS_PROCESS_MADVISE        = 440
381 382
 )
... ...
@@ -219,6 +219,7 @@ const (
219 219
 	SizeofSockaddrUnix     = 0x401
220 220
 	SizeofSockaddrDatalink = 0x80
221 221
 	SizeofLinger           = 0x8
222
+	SizeofIovec            = 0x8
222 223
 	SizeofIPMreq           = 0x8
223 224
 	SizeofIPv6Mreq         = 0x14
224 225
 	SizeofIPv6MTUInfo      = 0x20
... ...
@@ -223,6 +223,7 @@ const (
223 223
 	SizeofSockaddrUnix     = 0x401
224 224
 	SizeofSockaddrDatalink = 0x80
225 225
 	SizeofLinger           = 0x8
226
+	SizeofIovec            = 0x10
226 227
 	SizeofIPMreq           = 0x8
227 228
 	SizeofIPv6Mreq         = 0x14
228 229
 	SizeofIPv6MTUInfo      = 0x20
... ...
@@ -194,6 +194,15 @@ type RawSockaddrAny struct {
194 194
 	Pad  [92]int8
195 195
 }
196 196
 
197
+type RawSockaddrCtl struct {
198
+	Sc_len      uint8
199
+	Sc_family   uint8
200
+	Ss_sysaddr  uint16
201
+	Sc_id       uint32
202
+	Sc_unit     uint32
203
+	Sc_reserved [5]uint32
204
+}
205
+
197 206
 type _Socklen uint32
198 207
 
199 208
 type Linger struct {
... ...
@@ -258,7 +267,9 @@ const (
258 258
 	SizeofSockaddrAny      = 0x6c
259 259
 	SizeofSockaddrUnix     = 0x6a
260 260
 	SizeofSockaddrDatalink = 0x14
261
+	SizeofSockaddrCtl      = 0x20
261 262
 	SizeofLinger           = 0x8
263
+	SizeofIovec            = 0x8
262 264
 	SizeofIPMreq           = 0x8
263 265
 	SizeofIPv6Mreq         = 0x14
264 266
 	SizeofMsghdr           = 0x1c
... ...
@@ -199,6 +199,15 @@ type RawSockaddrAny struct {
199 199
 	Pad  [92]int8
200 200
 }
201 201
 
202
+type RawSockaddrCtl struct {
203
+	Sc_len      uint8
204
+	Sc_family   uint8
205
+	Ss_sysaddr  uint16
206
+	Sc_id       uint32
207
+	Sc_unit     uint32
208
+	Sc_reserved [5]uint32
209
+}
210
+
202 211
 type _Socklen uint32
203 212
 
204 213
 type Linger struct {
... ...
@@ -263,7 +272,9 @@ const (
263 263
 	SizeofSockaddrAny      = 0x6c
264 264
 	SizeofSockaddrUnix     = 0x6a
265 265
 	SizeofSockaddrDatalink = 0x14
266
+	SizeofSockaddrCtl      = 0x20
266 267
 	SizeofLinger           = 0x8
268
+	SizeofIovec            = 0x10
267 269
 	SizeofIPMreq           = 0x8
268 270
 	SizeofIPv6Mreq         = 0x14
269 271
 	SizeofMsghdr           = 0x30
... ...
@@ -194,6 +194,15 @@ type RawSockaddrAny struct {
194 194
 	Pad  [92]int8
195 195
 }
196 196
 
197
+type RawSockaddrCtl struct {
198
+	Sc_len      uint8
199
+	Sc_family   uint8
200
+	Ss_sysaddr  uint16
201
+	Sc_id       uint32
202
+	Sc_unit     uint32
203
+	Sc_reserved [5]uint32
204
+}
205
+
197 206
 type _Socklen uint32
198 207
 
199 208
 type Linger struct {
... ...
@@ -258,7 +267,9 @@ const (
258 258
 	SizeofSockaddrAny      = 0x6c
259 259
 	SizeofSockaddrUnix     = 0x6a
260 260
 	SizeofSockaddrDatalink = 0x14
261
+	SizeofSockaddrCtl      = 0x20
261 262
 	SizeofLinger           = 0x8
263
+	SizeofIovec            = 0x8
262 264
 	SizeofIPMreq           = 0x8
263 265
 	SizeofIPv6Mreq         = 0x14
264 266
 	SizeofMsghdr           = 0x1c
... ...
@@ -199,6 +199,15 @@ type RawSockaddrAny struct {
199 199
 	Pad  [92]int8
200 200
 }
201 201
 
202
+type RawSockaddrCtl struct {
203
+	Sc_len      uint8
204
+	Sc_family   uint8
205
+	Ss_sysaddr  uint16
206
+	Sc_id       uint32
207
+	Sc_unit     uint32
208
+	Sc_reserved [5]uint32
209
+}
210
+
202 211
 type _Socklen uint32
203 212
 
204 213
 type Linger struct {
... ...
@@ -263,7 +272,9 @@ const (
263 263
 	SizeofSockaddrAny      = 0x6c
264 264
 	SizeofSockaddrUnix     = 0x6a
265 265
 	SizeofSockaddrDatalink = 0x14
266
+	SizeofSockaddrCtl      = 0x20
266 267
 	SizeofLinger           = 0x8
268
+	SizeofIovec            = 0x10
267 269
 	SizeofIPMreq           = 0x8
268 270
 	SizeofIPv6Mreq         = 0x14
269 271
 	SizeofMsghdr           = 0x30
... ...
@@ -234,6 +234,7 @@ const (
234 234
 	SizeofSockaddrUnix     = 0x6a
235 235
 	SizeofSockaddrDatalink = 0x36
236 236
 	SizeofLinger           = 0x8
237
+	SizeofIovec            = 0x10
237 238
 	SizeofIPMreq           = 0x8
238 239
 	SizeofIPv6Mreq         = 0x14
239 240
 	SizeofMsghdr           = 0x30
... ...
@@ -313,6 +313,7 @@ const (
313 313
 	SizeofSockaddrUnix     = 0x6a
314 314
 	SizeofSockaddrDatalink = 0x36
315 315
 	SizeofLinger           = 0x8
316
+	SizeofIovec            = 0x8
316 317
 	SizeofIPMreq           = 0x8
317 318
 	SizeofIPMreqn          = 0xc
318 319
 	SizeofIPv6Mreq         = 0x14
... ...
@@ -309,6 +309,7 @@ const (
309 309
 	SizeofSockaddrUnix     = 0x6a
310 310
 	SizeofSockaddrDatalink = 0x36
311 311
 	SizeofLinger           = 0x8
312
+	SizeofIovec            = 0x10
312 313
 	SizeofIPMreq           = 0x8
313 314
 	SizeofIPMreqn          = 0xc
314 315
 	SizeofIPv6Mreq         = 0x14
... ...
@@ -311,6 +311,7 @@ const (
311 311
 	SizeofSockaddrUnix     = 0x6a
312 312
 	SizeofSockaddrDatalink = 0x36
313 313
 	SizeofLinger           = 0x8
314
+	SizeofIovec            = 0x8
314 315
 	SizeofIPMreq           = 0x8
315 316
 	SizeofIPMreqn          = 0xc
316 317
 	SizeofIPv6Mreq         = 0x14
... ...
@@ -309,6 +309,7 @@ const (
309 309
 	SizeofSockaddrUnix     = 0x6a
310 310
 	SizeofSockaddrDatalink = 0x36
311 311
 	SizeofLinger           = 0x8
312
+	SizeofIovec            = 0x10
312 313
 	SizeofIPMreq           = 0x8
313 314
 	SizeofIPMreqn          = 0xc
314 315
 	SizeofIPv6Mreq         = 0x14
... ...
@@ -462,170 +462,107 @@ const (
462 462
 )
463 463
 
464 464
 const (
465
-	NDA_UNSPEC              = 0x0
466
-	NDA_DST                 = 0x1
467
-	NDA_LLADDR              = 0x2
468
-	NDA_CACHEINFO           = 0x3
469
-	NDA_PROBES              = 0x4
470
-	NDA_VLAN                = 0x5
471
-	NDA_PORT                = 0x6
472
-	NDA_VNI                 = 0x7
473
-	NDA_IFINDEX             = 0x8
474
-	NDA_MASTER              = 0x9
475
-	NDA_LINK_NETNSID        = 0xa
476
-	NDA_SRC_VNI             = 0xb
477
-	NTF_USE                 = 0x1
478
-	NTF_SELF                = 0x2
479
-	NTF_MASTER              = 0x4
480
-	NTF_PROXY               = 0x8
481
-	NTF_EXT_LEARNED         = 0x10
482
-	NTF_OFFLOADED           = 0x20
483
-	NTF_ROUTER              = 0x80
484
-	NUD_INCOMPLETE          = 0x1
485
-	NUD_REACHABLE           = 0x2
486
-	NUD_STALE               = 0x4
487
-	NUD_DELAY               = 0x8
488
-	NUD_PROBE               = 0x10
489
-	NUD_FAILED              = 0x20
490
-	NUD_NOARP               = 0x40
491
-	NUD_PERMANENT           = 0x80
492
-	NUD_NONE                = 0x0
493
-	IFA_UNSPEC              = 0x0
494
-	IFA_ADDRESS             = 0x1
495
-	IFA_LOCAL               = 0x2
496
-	IFA_LABEL               = 0x3
497
-	IFA_BROADCAST           = 0x4
498
-	IFA_ANYCAST             = 0x5
499
-	IFA_CACHEINFO           = 0x6
500
-	IFA_MULTICAST           = 0x7
501
-	IFA_FLAGS               = 0x8
502
-	IFA_RT_PRIORITY         = 0x9
503
-	IFA_TARGET_NETNSID      = 0xa
504
-	IFLA_UNSPEC             = 0x0
505
-	IFLA_ADDRESS            = 0x1
506
-	IFLA_BROADCAST          = 0x2
507
-	IFLA_IFNAME             = 0x3
508
-	IFLA_MTU                = 0x4
509
-	IFLA_LINK               = 0x5
510
-	IFLA_QDISC              = 0x6
511
-	IFLA_STATS              = 0x7
512
-	IFLA_COST               = 0x8
513
-	IFLA_PRIORITY           = 0x9
514
-	IFLA_MASTER             = 0xa
515
-	IFLA_WIRELESS           = 0xb
516
-	IFLA_PROTINFO           = 0xc
517
-	IFLA_TXQLEN             = 0xd
518
-	IFLA_MAP                = 0xe
519
-	IFLA_WEIGHT             = 0xf
520
-	IFLA_OPERSTATE          = 0x10
521
-	IFLA_LINKMODE           = 0x11
522
-	IFLA_LINKINFO           = 0x12
523
-	IFLA_NET_NS_PID         = 0x13
524
-	IFLA_IFALIAS            = 0x14
525
-	IFLA_NUM_VF             = 0x15
526
-	IFLA_VFINFO_LIST        = 0x16
527
-	IFLA_STATS64            = 0x17
528
-	IFLA_VF_PORTS           = 0x18
529
-	IFLA_PORT_SELF          = 0x19
530
-	IFLA_AF_SPEC            = 0x1a
531
-	IFLA_GROUP              = 0x1b
532
-	IFLA_NET_NS_FD          = 0x1c
533
-	IFLA_EXT_MASK           = 0x1d
534
-	IFLA_PROMISCUITY        = 0x1e
535
-	IFLA_NUM_TX_QUEUES      = 0x1f
536
-	IFLA_NUM_RX_QUEUES      = 0x20
537
-	IFLA_CARRIER            = 0x21
538
-	IFLA_PHYS_PORT_ID       = 0x22
539
-	IFLA_CARRIER_CHANGES    = 0x23
540
-	IFLA_PHYS_SWITCH_ID     = 0x24
541
-	IFLA_LINK_NETNSID       = 0x25
542
-	IFLA_PHYS_PORT_NAME     = 0x26
543
-	IFLA_PROTO_DOWN         = 0x27
544
-	IFLA_GSO_MAX_SEGS       = 0x28
545
-	IFLA_GSO_MAX_SIZE       = 0x29
546
-	IFLA_PAD                = 0x2a
547
-	IFLA_XDP                = 0x2b
548
-	IFLA_EVENT              = 0x2c
549
-	IFLA_NEW_NETNSID        = 0x2d
550
-	IFLA_IF_NETNSID         = 0x2e
551
-	IFLA_TARGET_NETNSID     = 0x2e
552
-	IFLA_CARRIER_UP_COUNT   = 0x2f
553
-	IFLA_CARRIER_DOWN_COUNT = 0x30
554
-	IFLA_NEW_IFINDEX        = 0x31
555
-	IFLA_MIN_MTU            = 0x32
556
-	IFLA_MAX_MTU            = 0x33
557
-	IFLA_PROP_LIST          = 0x34
558
-	IFLA_ALT_IFNAME         = 0x35
559
-	IFLA_PERM_ADDRESS       = 0x36
560
-	IFLA_PROTO_DOWN_REASON  = 0x37
561
-	IFLA_MAX                = 0x37
562
-	IFLA_INFO_KIND          = 0x1
563
-	IFLA_INFO_DATA          = 0x2
564
-	IFLA_INFO_XSTATS        = 0x3
565
-	IFLA_INFO_SLAVE_KIND    = 0x4
566
-	IFLA_INFO_SLAVE_DATA    = 0x5
567
-	RT_SCOPE_UNIVERSE       = 0x0
568
-	RT_SCOPE_SITE           = 0xc8
569
-	RT_SCOPE_LINK           = 0xfd
570
-	RT_SCOPE_HOST           = 0xfe
571
-	RT_SCOPE_NOWHERE        = 0xff
572
-	RT_TABLE_UNSPEC         = 0x0
573
-	RT_TABLE_COMPAT         = 0xfc
574
-	RT_TABLE_DEFAULT        = 0xfd
575
-	RT_TABLE_MAIN           = 0xfe
576
-	RT_TABLE_LOCAL          = 0xff
577
-	RT_TABLE_MAX            = 0xffffffff
578
-	RTA_UNSPEC              = 0x0
579
-	RTA_DST                 = 0x1
580
-	RTA_SRC                 = 0x2
581
-	RTA_IIF                 = 0x3
582
-	RTA_OIF                 = 0x4
583
-	RTA_GATEWAY             = 0x5
584
-	RTA_PRIORITY            = 0x6
585
-	RTA_PREFSRC             = 0x7
586
-	RTA_METRICS             = 0x8
587
-	RTA_MULTIPATH           = 0x9
588
-	RTA_FLOW                = 0xb
589
-	RTA_CACHEINFO           = 0xc
590
-	RTA_TABLE               = 0xf
591
-	RTA_MARK                = 0x10
592
-	RTA_MFC_STATS           = 0x11
593
-	RTA_VIA                 = 0x12
594
-	RTA_NEWDST              = 0x13
595
-	RTA_PREF                = 0x14
596
-	RTA_ENCAP_TYPE          = 0x15
597
-	RTA_ENCAP               = 0x16
598
-	RTA_EXPIRES             = 0x17
599
-	RTA_PAD                 = 0x18
600
-	RTA_UID                 = 0x19
601
-	RTA_TTL_PROPAGATE       = 0x1a
602
-	RTA_IP_PROTO            = 0x1b
603
-	RTA_SPORT               = 0x1c
604
-	RTA_DPORT               = 0x1d
605
-	RTN_UNSPEC              = 0x0
606
-	RTN_UNICAST             = 0x1
607
-	RTN_LOCAL               = 0x2
608
-	RTN_BROADCAST           = 0x3
609
-	RTN_ANYCAST             = 0x4
610
-	RTN_MULTICAST           = 0x5
611
-	RTN_BLACKHOLE           = 0x6
612
-	RTN_UNREACHABLE         = 0x7
613
-	RTN_PROHIBIT            = 0x8
614
-	RTN_THROW               = 0x9
615
-	RTN_NAT                 = 0xa
616
-	RTN_XRESOLVE            = 0xb
617
-	SizeofNlMsghdr          = 0x10
618
-	SizeofNlMsgerr          = 0x14
619
-	SizeofRtGenmsg          = 0x1
620
-	SizeofNlAttr            = 0x4
621
-	SizeofRtAttr            = 0x4
622
-	SizeofIfInfomsg         = 0x10
623
-	SizeofIfAddrmsg         = 0x8
624
-	SizeofIfaCacheinfo      = 0x10
625
-	SizeofRtMsg             = 0xc
626
-	SizeofRtNexthop         = 0x8
627
-	SizeofNdUseroptmsg      = 0x10
628
-	SizeofNdMsg             = 0xc
465
+	NDA_UNSPEC         = 0x0
466
+	NDA_DST            = 0x1
467
+	NDA_LLADDR         = 0x2
468
+	NDA_CACHEINFO      = 0x3
469
+	NDA_PROBES         = 0x4
470
+	NDA_VLAN           = 0x5
471
+	NDA_PORT           = 0x6
472
+	NDA_VNI            = 0x7
473
+	NDA_IFINDEX        = 0x8
474
+	NDA_MASTER         = 0x9
475
+	NDA_LINK_NETNSID   = 0xa
476
+	NDA_SRC_VNI        = 0xb
477
+	NTF_USE            = 0x1
478
+	NTF_SELF           = 0x2
479
+	NTF_MASTER         = 0x4
480
+	NTF_PROXY          = 0x8
481
+	NTF_EXT_LEARNED    = 0x10
482
+	NTF_OFFLOADED      = 0x20
483
+	NTF_ROUTER         = 0x80
484
+	NUD_INCOMPLETE     = 0x1
485
+	NUD_REACHABLE      = 0x2
486
+	NUD_STALE          = 0x4
487
+	NUD_DELAY          = 0x8
488
+	NUD_PROBE          = 0x10
489
+	NUD_FAILED         = 0x20
490
+	NUD_NOARP          = 0x40
491
+	NUD_PERMANENT      = 0x80
492
+	NUD_NONE           = 0x0
493
+	IFA_UNSPEC         = 0x0
494
+	IFA_ADDRESS        = 0x1
495
+	IFA_LOCAL          = 0x2
496
+	IFA_LABEL          = 0x3
497
+	IFA_BROADCAST      = 0x4
498
+	IFA_ANYCAST        = 0x5
499
+	IFA_CACHEINFO      = 0x6
500
+	IFA_MULTICAST      = 0x7
501
+	IFA_FLAGS          = 0x8
502
+	IFA_RT_PRIORITY    = 0x9
503
+	IFA_TARGET_NETNSID = 0xa
504
+	RT_SCOPE_UNIVERSE  = 0x0
505
+	RT_SCOPE_SITE      = 0xc8
506
+	RT_SCOPE_LINK      = 0xfd
507
+	RT_SCOPE_HOST      = 0xfe
508
+	RT_SCOPE_NOWHERE   = 0xff
509
+	RT_TABLE_UNSPEC    = 0x0
510
+	RT_TABLE_COMPAT    = 0xfc
511
+	RT_TABLE_DEFAULT   = 0xfd
512
+	RT_TABLE_MAIN      = 0xfe
513
+	RT_TABLE_LOCAL     = 0xff
514
+	RT_TABLE_MAX       = 0xffffffff
515
+	RTA_UNSPEC         = 0x0
516
+	RTA_DST            = 0x1
517
+	RTA_SRC            = 0x2
518
+	RTA_IIF            = 0x3
519
+	RTA_OIF            = 0x4
520
+	RTA_GATEWAY        = 0x5
521
+	RTA_PRIORITY       = 0x6
522
+	RTA_PREFSRC        = 0x7
523
+	RTA_METRICS        = 0x8
524
+	RTA_MULTIPATH      = 0x9
525
+	RTA_FLOW           = 0xb
526
+	RTA_CACHEINFO      = 0xc
527
+	RTA_TABLE          = 0xf
528
+	RTA_MARK           = 0x10
529
+	RTA_MFC_STATS      = 0x11
530
+	RTA_VIA            = 0x12
531
+	RTA_NEWDST         = 0x13
532
+	RTA_PREF           = 0x14
533
+	RTA_ENCAP_TYPE     = 0x15
534
+	RTA_ENCAP          = 0x16
535
+	RTA_EXPIRES        = 0x17
536
+	RTA_PAD            = 0x18
537
+	RTA_UID            = 0x19
538
+	RTA_TTL_PROPAGATE  = 0x1a
539
+	RTA_IP_PROTO       = 0x1b
540
+	RTA_SPORT          = 0x1c
541
+	RTA_DPORT          = 0x1d
542
+	RTN_UNSPEC         = 0x0
543
+	RTN_UNICAST        = 0x1
544
+	RTN_LOCAL          = 0x2
545
+	RTN_BROADCAST      = 0x3
546
+	RTN_ANYCAST        = 0x4
547
+	RTN_MULTICAST      = 0x5
548
+	RTN_BLACKHOLE      = 0x6
549
+	RTN_UNREACHABLE    = 0x7
550
+	RTN_PROHIBIT       = 0x8
551
+	RTN_THROW          = 0x9
552
+	RTN_NAT            = 0xa
553
+	RTN_XRESOLVE       = 0xb
554
+	SizeofNlMsghdr     = 0x10
555
+	SizeofNlMsgerr     = 0x14
556
+	SizeofRtGenmsg     = 0x1
557
+	SizeofNlAttr       = 0x4
558
+	SizeofRtAttr       = 0x4
559
+	SizeofIfInfomsg    = 0x10
560
+	SizeofIfAddrmsg    = 0x8
561
+	SizeofIfaCacheinfo = 0x10
562
+	SizeofRtMsg        = 0xc
563
+	SizeofRtNexthop    = 0x8
564
+	SizeofNdUseroptmsg = 0x10
565
+	SizeofNdMsg        = 0xc
629 566
 )
630 567
 
631 568
 type NlMsghdr struct {
... ...
@@ -1388,6 +1325,401 @@ const (
1388 1388
 )
1389 1389
 
1390 1390
 const (
1391
+	IFLA_UNSPEC                                = 0x0
1392
+	IFLA_ADDRESS                               = 0x1
1393
+	IFLA_BROADCAST                             = 0x2
1394
+	IFLA_IFNAME                                = 0x3
1395
+	IFLA_MTU                                   = 0x4
1396
+	IFLA_LINK                                  = 0x5
1397
+	IFLA_QDISC                                 = 0x6
1398
+	IFLA_STATS                                 = 0x7
1399
+	IFLA_COST                                  = 0x8
1400
+	IFLA_PRIORITY                              = 0x9
1401
+	IFLA_MASTER                                = 0xa
1402
+	IFLA_WIRELESS                              = 0xb
1403
+	IFLA_PROTINFO                              = 0xc
1404
+	IFLA_TXQLEN                                = 0xd
1405
+	IFLA_MAP                                   = 0xe
1406
+	IFLA_WEIGHT                                = 0xf
1407
+	IFLA_OPERSTATE                             = 0x10
1408
+	IFLA_LINKMODE                              = 0x11
1409
+	IFLA_LINKINFO                              = 0x12
1410
+	IFLA_NET_NS_PID                            = 0x13
1411
+	IFLA_IFALIAS                               = 0x14
1412
+	IFLA_NUM_VF                                = 0x15
1413
+	IFLA_VFINFO_LIST                           = 0x16
1414
+	IFLA_STATS64                               = 0x17
1415
+	IFLA_VF_PORTS                              = 0x18
1416
+	IFLA_PORT_SELF                             = 0x19
1417
+	IFLA_AF_SPEC                               = 0x1a
1418
+	IFLA_GROUP                                 = 0x1b
1419
+	IFLA_NET_NS_FD                             = 0x1c
1420
+	IFLA_EXT_MASK                              = 0x1d
1421
+	IFLA_PROMISCUITY                           = 0x1e
1422
+	IFLA_NUM_TX_QUEUES                         = 0x1f
1423
+	IFLA_NUM_RX_QUEUES                         = 0x20
1424
+	IFLA_CARRIER                               = 0x21
1425
+	IFLA_PHYS_PORT_ID                          = 0x22
1426
+	IFLA_CARRIER_CHANGES                       = 0x23
1427
+	IFLA_PHYS_SWITCH_ID                        = 0x24
1428
+	IFLA_LINK_NETNSID                          = 0x25
1429
+	IFLA_PHYS_PORT_NAME                        = 0x26
1430
+	IFLA_PROTO_DOWN                            = 0x27
1431
+	IFLA_GSO_MAX_SEGS                          = 0x28
1432
+	IFLA_GSO_MAX_SIZE                          = 0x29
1433
+	IFLA_PAD                                   = 0x2a
1434
+	IFLA_XDP                                   = 0x2b
1435
+	IFLA_EVENT                                 = 0x2c
1436
+	IFLA_NEW_NETNSID                           = 0x2d
1437
+	IFLA_IF_NETNSID                            = 0x2e
1438
+	IFLA_TARGET_NETNSID                        = 0x2e
1439
+	IFLA_CARRIER_UP_COUNT                      = 0x2f
1440
+	IFLA_CARRIER_DOWN_COUNT                    = 0x30
1441
+	IFLA_NEW_IFINDEX                           = 0x31
1442
+	IFLA_MIN_MTU                               = 0x32
1443
+	IFLA_MAX_MTU                               = 0x33
1444
+	IFLA_PROP_LIST                             = 0x34
1445
+	IFLA_ALT_IFNAME                            = 0x35
1446
+	IFLA_PERM_ADDRESS                          = 0x36
1447
+	IFLA_PROTO_DOWN_REASON                     = 0x37
1448
+	IFLA_PROTO_DOWN_REASON_UNSPEC              = 0x0
1449
+	IFLA_PROTO_DOWN_REASON_MASK                = 0x1
1450
+	IFLA_PROTO_DOWN_REASON_VALUE               = 0x2
1451
+	IFLA_PROTO_DOWN_REASON_MAX                 = 0x2
1452
+	IFLA_INET_UNSPEC                           = 0x0
1453
+	IFLA_INET_CONF                             = 0x1
1454
+	IFLA_INET6_UNSPEC                          = 0x0
1455
+	IFLA_INET6_FLAGS                           = 0x1
1456
+	IFLA_INET6_CONF                            = 0x2
1457
+	IFLA_INET6_STATS                           = 0x3
1458
+	IFLA_INET6_MCAST                           = 0x4
1459
+	IFLA_INET6_CACHEINFO                       = 0x5
1460
+	IFLA_INET6_ICMP6STATS                      = 0x6
1461
+	IFLA_INET6_TOKEN                           = 0x7
1462
+	IFLA_INET6_ADDR_GEN_MODE                   = 0x8
1463
+	IFLA_BR_UNSPEC                             = 0x0
1464
+	IFLA_BR_FORWARD_DELAY                      = 0x1
1465
+	IFLA_BR_HELLO_TIME                         = 0x2
1466
+	IFLA_BR_MAX_AGE                            = 0x3
1467
+	IFLA_BR_AGEING_TIME                        = 0x4
1468
+	IFLA_BR_STP_STATE                          = 0x5
1469
+	IFLA_BR_PRIORITY                           = 0x6
1470
+	IFLA_BR_VLAN_FILTERING                     = 0x7
1471
+	IFLA_BR_VLAN_PROTOCOL                      = 0x8
1472
+	IFLA_BR_GROUP_FWD_MASK                     = 0x9
1473
+	IFLA_BR_ROOT_ID                            = 0xa
1474
+	IFLA_BR_BRIDGE_ID                          = 0xb
1475
+	IFLA_BR_ROOT_PORT                          = 0xc
1476
+	IFLA_BR_ROOT_PATH_COST                     = 0xd
1477
+	IFLA_BR_TOPOLOGY_CHANGE                    = 0xe
1478
+	IFLA_BR_TOPOLOGY_CHANGE_DETECTED           = 0xf
1479
+	IFLA_BR_HELLO_TIMER                        = 0x10
1480
+	IFLA_BR_TCN_TIMER                          = 0x11
1481
+	IFLA_BR_TOPOLOGY_CHANGE_TIMER              = 0x12
1482
+	IFLA_BR_GC_TIMER                           = 0x13
1483
+	IFLA_BR_GROUP_ADDR                         = 0x14
1484
+	IFLA_BR_FDB_FLUSH                          = 0x15
1485
+	IFLA_BR_MCAST_ROUTER                       = 0x16
1486
+	IFLA_BR_MCAST_SNOOPING                     = 0x17
1487
+	IFLA_BR_MCAST_QUERY_USE_IFADDR             = 0x18
1488
+	IFLA_BR_MCAST_QUERIER                      = 0x19
1489
+	IFLA_BR_MCAST_HASH_ELASTICITY              = 0x1a
1490
+	IFLA_BR_MCAST_HASH_MAX                     = 0x1b
1491
+	IFLA_BR_MCAST_LAST_MEMBER_CNT              = 0x1c
1492
+	IFLA_BR_MCAST_STARTUP_QUERY_CNT            = 0x1d
1493
+	IFLA_BR_MCAST_LAST_MEMBER_INTVL            = 0x1e
1494
+	IFLA_BR_MCAST_MEMBERSHIP_INTVL             = 0x1f
1495
+	IFLA_BR_MCAST_QUERIER_INTVL                = 0x20
1496
+	IFLA_BR_MCAST_QUERY_INTVL                  = 0x21
1497
+	IFLA_BR_MCAST_QUERY_RESPONSE_INTVL         = 0x22
1498
+	IFLA_BR_MCAST_STARTUP_QUERY_INTVL          = 0x23
1499
+	IFLA_BR_NF_CALL_IPTABLES                   = 0x24
1500
+	IFLA_BR_NF_CALL_IP6TABLES                  = 0x25
1501
+	IFLA_BR_NF_CALL_ARPTABLES                  = 0x26
1502
+	IFLA_BR_VLAN_DEFAULT_PVID                  = 0x27
1503
+	IFLA_BR_PAD                                = 0x28
1504
+	IFLA_BR_VLAN_STATS_ENABLED                 = 0x29
1505
+	IFLA_BR_MCAST_STATS_ENABLED                = 0x2a
1506
+	IFLA_BR_MCAST_IGMP_VERSION                 = 0x2b
1507
+	IFLA_BR_MCAST_MLD_VERSION                  = 0x2c
1508
+	IFLA_BR_VLAN_STATS_PER_PORT                = 0x2d
1509
+	IFLA_BR_MULTI_BOOLOPT                      = 0x2e
1510
+	IFLA_BRPORT_UNSPEC                         = 0x0
1511
+	IFLA_BRPORT_STATE                          = 0x1
1512
+	IFLA_BRPORT_PRIORITY                       = 0x2
1513
+	IFLA_BRPORT_COST                           = 0x3
1514
+	IFLA_BRPORT_MODE                           = 0x4
1515
+	IFLA_BRPORT_GUARD                          = 0x5
1516
+	IFLA_BRPORT_PROTECT                        = 0x6
1517
+	IFLA_BRPORT_FAST_LEAVE                     = 0x7
1518
+	IFLA_BRPORT_LEARNING                       = 0x8
1519
+	IFLA_BRPORT_UNICAST_FLOOD                  = 0x9
1520
+	IFLA_BRPORT_PROXYARP                       = 0xa
1521
+	IFLA_BRPORT_LEARNING_SYNC                  = 0xb
1522
+	IFLA_BRPORT_PROXYARP_WIFI                  = 0xc
1523
+	IFLA_BRPORT_ROOT_ID                        = 0xd
1524
+	IFLA_BRPORT_BRIDGE_ID                      = 0xe
1525
+	IFLA_BRPORT_DESIGNATED_PORT                = 0xf
1526
+	IFLA_BRPORT_DESIGNATED_COST                = 0x10
1527
+	IFLA_BRPORT_ID                             = 0x11
1528
+	IFLA_BRPORT_NO                             = 0x12
1529
+	IFLA_BRPORT_TOPOLOGY_CHANGE_ACK            = 0x13
1530
+	IFLA_BRPORT_CONFIG_PENDING                 = 0x14
1531
+	IFLA_BRPORT_MESSAGE_AGE_TIMER              = 0x15
1532
+	IFLA_BRPORT_FORWARD_DELAY_TIMER            = 0x16
1533
+	IFLA_BRPORT_HOLD_TIMER                     = 0x17
1534
+	IFLA_BRPORT_FLUSH                          = 0x18
1535
+	IFLA_BRPORT_MULTICAST_ROUTER               = 0x19
1536
+	IFLA_BRPORT_PAD                            = 0x1a
1537
+	IFLA_BRPORT_MCAST_FLOOD                    = 0x1b
1538
+	IFLA_BRPORT_MCAST_TO_UCAST                 = 0x1c
1539
+	IFLA_BRPORT_VLAN_TUNNEL                    = 0x1d
1540
+	IFLA_BRPORT_BCAST_FLOOD                    = 0x1e
1541
+	IFLA_BRPORT_GROUP_FWD_MASK                 = 0x1f
1542
+	IFLA_BRPORT_NEIGH_SUPPRESS                 = 0x20
1543
+	IFLA_BRPORT_ISOLATED                       = 0x21
1544
+	IFLA_BRPORT_BACKUP_PORT                    = 0x22
1545
+	IFLA_BRPORT_MRP_RING_OPEN                  = 0x23
1546
+	IFLA_BRPORT_MRP_IN_OPEN                    = 0x24
1547
+	IFLA_INFO_UNSPEC                           = 0x0
1548
+	IFLA_INFO_KIND                             = 0x1
1549
+	IFLA_INFO_DATA                             = 0x2
1550
+	IFLA_INFO_XSTATS                           = 0x3
1551
+	IFLA_INFO_SLAVE_KIND                       = 0x4
1552
+	IFLA_INFO_SLAVE_DATA                       = 0x5
1553
+	IFLA_VLAN_UNSPEC                           = 0x0
1554
+	IFLA_VLAN_ID                               = 0x1
1555
+	IFLA_VLAN_FLAGS                            = 0x2
1556
+	IFLA_VLAN_EGRESS_QOS                       = 0x3
1557
+	IFLA_VLAN_INGRESS_QOS                      = 0x4
1558
+	IFLA_VLAN_PROTOCOL                         = 0x5
1559
+	IFLA_VLAN_QOS_UNSPEC                       = 0x0
1560
+	IFLA_VLAN_QOS_MAPPING                      = 0x1
1561
+	IFLA_MACVLAN_UNSPEC                        = 0x0
1562
+	IFLA_MACVLAN_MODE                          = 0x1
1563
+	IFLA_MACVLAN_FLAGS                         = 0x2
1564
+	IFLA_MACVLAN_MACADDR_MODE                  = 0x3
1565
+	IFLA_MACVLAN_MACADDR                       = 0x4
1566
+	IFLA_MACVLAN_MACADDR_DATA                  = 0x5
1567
+	IFLA_MACVLAN_MACADDR_COUNT                 = 0x6
1568
+	IFLA_VRF_UNSPEC                            = 0x0
1569
+	IFLA_VRF_TABLE                             = 0x1
1570
+	IFLA_VRF_PORT_UNSPEC                       = 0x0
1571
+	IFLA_VRF_PORT_TABLE                        = 0x1
1572
+	IFLA_MACSEC_UNSPEC                         = 0x0
1573
+	IFLA_MACSEC_SCI                            = 0x1
1574
+	IFLA_MACSEC_PORT                           = 0x2
1575
+	IFLA_MACSEC_ICV_LEN                        = 0x3
1576
+	IFLA_MACSEC_CIPHER_SUITE                   = 0x4
1577
+	IFLA_MACSEC_WINDOW                         = 0x5
1578
+	IFLA_MACSEC_ENCODING_SA                    = 0x6
1579
+	IFLA_MACSEC_ENCRYPT                        = 0x7
1580
+	IFLA_MACSEC_PROTECT                        = 0x8
1581
+	IFLA_MACSEC_INC_SCI                        = 0x9
1582
+	IFLA_MACSEC_ES                             = 0xa
1583
+	IFLA_MACSEC_SCB                            = 0xb
1584
+	IFLA_MACSEC_REPLAY_PROTECT                 = 0xc
1585
+	IFLA_MACSEC_VALIDATION                     = 0xd
1586
+	IFLA_MACSEC_PAD                            = 0xe
1587
+	IFLA_MACSEC_OFFLOAD                        = 0xf
1588
+	IFLA_XFRM_UNSPEC                           = 0x0
1589
+	IFLA_XFRM_LINK                             = 0x1
1590
+	IFLA_XFRM_IF_ID                            = 0x2
1591
+	IFLA_IPVLAN_UNSPEC                         = 0x0
1592
+	IFLA_IPVLAN_MODE                           = 0x1
1593
+	IFLA_IPVLAN_FLAGS                          = 0x2
1594
+	IFLA_VXLAN_UNSPEC                          = 0x0
1595
+	IFLA_VXLAN_ID                              = 0x1
1596
+	IFLA_VXLAN_GROUP                           = 0x2
1597
+	IFLA_VXLAN_LINK                            = 0x3
1598
+	IFLA_VXLAN_LOCAL                           = 0x4
1599
+	IFLA_VXLAN_TTL                             = 0x5
1600
+	IFLA_VXLAN_TOS                             = 0x6
1601
+	IFLA_VXLAN_LEARNING                        = 0x7
1602
+	IFLA_VXLAN_AGEING                          = 0x8
1603
+	IFLA_VXLAN_LIMIT                           = 0x9
1604
+	IFLA_VXLAN_PORT_RANGE                      = 0xa
1605
+	IFLA_VXLAN_PROXY                           = 0xb
1606
+	IFLA_VXLAN_RSC                             = 0xc
1607
+	IFLA_VXLAN_L2MISS                          = 0xd
1608
+	IFLA_VXLAN_L3MISS                          = 0xe
1609
+	IFLA_VXLAN_PORT                            = 0xf
1610
+	IFLA_VXLAN_GROUP6                          = 0x10
1611
+	IFLA_VXLAN_LOCAL6                          = 0x11
1612
+	IFLA_VXLAN_UDP_CSUM                        = 0x12
1613
+	IFLA_VXLAN_UDP_ZERO_CSUM6_TX               = 0x13
1614
+	IFLA_VXLAN_UDP_ZERO_CSUM6_RX               = 0x14
1615
+	IFLA_VXLAN_REMCSUM_TX                      = 0x15
1616
+	IFLA_VXLAN_REMCSUM_RX                      = 0x16
1617
+	IFLA_VXLAN_GBP                             = 0x17
1618
+	IFLA_VXLAN_REMCSUM_NOPARTIAL               = 0x18
1619
+	IFLA_VXLAN_COLLECT_METADATA                = 0x19
1620
+	IFLA_VXLAN_LABEL                           = 0x1a
1621
+	IFLA_VXLAN_GPE                             = 0x1b
1622
+	IFLA_VXLAN_TTL_INHERIT                     = 0x1c
1623
+	IFLA_VXLAN_DF                              = 0x1d
1624
+	IFLA_GENEVE_UNSPEC                         = 0x0
1625
+	IFLA_GENEVE_ID                             = 0x1
1626
+	IFLA_GENEVE_REMOTE                         = 0x2
1627
+	IFLA_GENEVE_TTL                            = 0x3
1628
+	IFLA_GENEVE_TOS                            = 0x4
1629
+	IFLA_GENEVE_PORT                           = 0x5
1630
+	IFLA_GENEVE_COLLECT_METADATA               = 0x6
1631
+	IFLA_GENEVE_REMOTE6                        = 0x7
1632
+	IFLA_GENEVE_UDP_CSUM                       = 0x8
1633
+	IFLA_GENEVE_UDP_ZERO_CSUM6_TX              = 0x9
1634
+	IFLA_GENEVE_UDP_ZERO_CSUM6_RX              = 0xa
1635
+	IFLA_GENEVE_LABEL                          = 0xb
1636
+	IFLA_GENEVE_TTL_INHERIT                    = 0xc
1637
+	IFLA_GENEVE_DF                             = 0xd
1638
+	IFLA_BAREUDP_UNSPEC                        = 0x0
1639
+	IFLA_BAREUDP_PORT                          = 0x1
1640
+	IFLA_BAREUDP_ETHERTYPE                     = 0x2
1641
+	IFLA_BAREUDP_SRCPORT_MIN                   = 0x3
1642
+	IFLA_BAREUDP_MULTIPROTO_MODE               = 0x4
1643
+	IFLA_PPP_UNSPEC                            = 0x0
1644
+	IFLA_PPP_DEV_FD                            = 0x1
1645
+	IFLA_GTP_UNSPEC                            = 0x0
1646
+	IFLA_GTP_FD0                               = 0x1
1647
+	IFLA_GTP_FD1                               = 0x2
1648
+	IFLA_GTP_PDP_HASHSIZE                      = 0x3
1649
+	IFLA_GTP_ROLE                              = 0x4
1650
+	IFLA_BOND_UNSPEC                           = 0x0
1651
+	IFLA_BOND_MODE                             = 0x1
1652
+	IFLA_BOND_ACTIVE_SLAVE                     = 0x2
1653
+	IFLA_BOND_MIIMON                           = 0x3
1654
+	IFLA_BOND_UPDELAY                          = 0x4
1655
+	IFLA_BOND_DOWNDELAY                        = 0x5
1656
+	IFLA_BOND_USE_CARRIER                      = 0x6
1657
+	IFLA_BOND_ARP_INTERVAL                     = 0x7
1658
+	IFLA_BOND_ARP_IP_TARGET                    = 0x8
1659
+	IFLA_BOND_ARP_VALIDATE                     = 0x9
1660
+	IFLA_BOND_ARP_ALL_TARGETS                  = 0xa
1661
+	IFLA_BOND_PRIMARY                          = 0xb
1662
+	IFLA_BOND_PRIMARY_RESELECT                 = 0xc
1663
+	IFLA_BOND_FAIL_OVER_MAC                    = 0xd
1664
+	IFLA_BOND_XMIT_HASH_POLICY                 = 0xe
1665
+	IFLA_BOND_RESEND_IGMP                      = 0xf
1666
+	IFLA_BOND_NUM_PEER_NOTIF                   = 0x10
1667
+	IFLA_BOND_ALL_SLAVES_ACTIVE                = 0x11
1668
+	IFLA_BOND_MIN_LINKS                        = 0x12
1669
+	IFLA_BOND_LP_INTERVAL                      = 0x13
1670
+	IFLA_BOND_PACKETS_PER_SLAVE                = 0x14
1671
+	IFLA_BOND_AD_LACP_RATE                     = 0x15
1672
+	IFLA_BOND_AD_SELECT                        = 0x16
1673
+	IFLA_BOND_AD_INFO                          = 0x17
1674
+	IFLA_BOND_AD_ACTOR_SYS_PRIO                = 0x18
1675
+	IFLA_BOND_AD_USER_PORT_KEY                 = 0x19
1676
+	IFLA_BOND_AD_ACTOR_SYSTEM                  = 0x1a
1677
+	IFLA_BOND_TLB_DYNAMIC_LB                   = 0x1b
1678
+	IFLA_BOND_PEER_NOTIF_DELAY                 = 0x1c
1679
+	IFLA_BOND_AD_INFO_UNSPEC                   = 0x0
1680
+	IFLA_BOND_AD_INFO_AGGREGATOR               = 0x1
1681
+	IFLA_BOND_AD_INFO_NUM_PORTS                = 0x2
1682
+	IFLA_BOND_AD_INFO_ACTOR_KEY                = 0x3
1683
+	IFLA_BOND_AD_INFO_PARTNER_KEY              = 0x4
1684
+	IFLA_BOND_AD_INFO_PARTNER_MAC              = 0x5
1685
+	IFLA_BOND_SLAVE_UNSPEC                     = 0x0
1686
+	IFLA_BOND_SLAVE_STATE                      = 0x1
1687
+	IFLA_BOND_SLAVE_MII_STATUS                 = 0x2
1688
+	IFLA_BOND_SLAVE_LINK_FAILURE_COUNT         = 0x3
1689
+	IFLA_BOND_SLAVE_PERM_HWADDR                = 0x4
1690
+	IFLA_BOND_SLAVE_QUEUE_ID                   = 0x5
1691
+	IFLA_BOND_SLAVE_AD_AGGREGATOR_ID           = 0x6
1692
+	IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE   = 0x7
1693
+	IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 0x8
1694
+	IFLA_VF_INFO_UNSPEC                        = 0x0
1695
+	IFLA_VF_INFO                               = 0x1
1696
+	IFLA_VF_UNSPEC                             = 0x0
1697
+	IFLA_VF_MAC                                = 0x1
1698
+	IFLA_VF_VLAN                               = 0x2
1699
+	IFLA_VF_TX_RATE                            = 0x3
1700
+	IFLA_VF_SPOOFCHK                           = 0x4
1701
+	IFLA_VF_LINK_STATE                         = 0x5
1702
+	IFLA_VF_RATE                               = 0x6
1703
+	IFLA_VF_RSS_QUERY_EN                       = 0x7
1704
+	IFLA_VF_STATS                              = 0x8
1705
+	IFLA_VF_TRUST                              = 0x9
1706
+	IFLA_VF_IB_NODE_GUID                       = 0xa
1707
+	IFLA_VF_IB_PORT_GUID                       = 0xb
1708
+	IFLA_VF_VLAN_LIST                          = 0xc
1709
+	IFLA_VF_BROADCAST                          = 0xd
1710
+	IFLA_VF_VLAN_INFO_UNSPEC                   = 0x0
1711
+	IFLA_VF_VLAN_INFO                          = 0x1
1712
+	IFLA_VF_LINK_STATE_AUTO                    = 0x0
1713
+	IFLA_VF_LINK_STATE_ENABLE                  = 0x1
1714
+	IFLA_VF_LINK_STATE_DISABLE                 = 0x2
1715
+	IFLA_VF_STATS_RX_PACKETS                   = 0x0
1716
+	IFLA_VF_STATS_TX_PACKETS                   = 0x1
1717
+	IFLA_VF_STATS_RX_BYTES                     = 0x2
1718
+	IFLA_VF_STATS_TX_BYTES                     = 0x3
1719
+	IFLA_VF_STATS_BROADCAST                    = 0x4
1720
+	IFLA_VF_STATS_MULTICAST                    = 0x5
1721
+	IFLA_VF_STATS_PAD                          = 0x6
1722
+	IFLA_VF_STATS_RX_DROPPED                   = 0x7
1723
+	IFLA_VF_STATS_TX_DROPPED                   = 0x8
1724
+	IFLA_VF_PORT_UNSPEC                        = 0x0
1725
+	IFLA_VF_PORT                               = 0x1
1726
+	IFLA_PORT_UNSPEC                           = 0x0
1727
+	IFLA_PORT_VF                               = 0x1
1728
+	IFLA_PORT_PROFILE                          = 0x2
1729
+	IFLA_PORT_VSI_TYPE                         = 0x3
1730
+	IFLA_PORT_INSTANCE_UUID                    = 0x4
1731
+	IFLA_PORT_HOST_UUID                        = 0x5
1732
+	IFLA_PORT_REQUEST                          = 0x6
1733
+	IFLA_PORT_RESPONSE                         = 0x7
1734
+	IFLA_IPOIB_UNSPEC                          = 0x0
1735
+	IFLA_IPOIB_PKEY                            = 0x1
1736
+	IFLA_IPOIB_MODE                            = 0x2
1737
+	IFLA_IPOIB_UMCAST                          = 0x3
1738
+	IFLA_HSR_UNSPEC                            = 0x0
1739
+	IFLA_HSR_SLAVE1                            = 0x1
1740
+	IFLA_HSR_SLAVE2                            = 0x2
1741
+	IFLA_HSR_MULTICAST_SPEC                    = 0x3
1742
+	IFLA_HSR_SUPERVISION_ADDR                  = 0x4
1743
+	IFLA_HSR_SEQ_NR                            = 0x5
1744
+	IFLA_HSR_VERSION                           = 0x6
1745
+	IFLA_HSR_PROTOCOL                          = 0x7
1746
+	IFLA_STATS_UNSPEC                          = 0x0
1747
+	IFLA_STATS_LINK_64                         = 0x1
1748
+	IFLA_STATS_LINK_XSTATS                     = 0x2
1749
+	IFLA_STATS_LINK_XSTATS_SLAVE               = 0x3
1750
+	IFLA_STATS_LINK_OFFLOAD_XSTATS             = 0x4
1751
+	IFLA_STATS_AF_SPEC                         = 0x5
1752
+	IFLA_OFFLOAD_XSTATS_UNSPEC                 = 0x0
1753
+	IFLA_OFFLOAD_XSTATS_CPU_HIT                = 0x1
1754
+	IFLA_XDP_UNSPEC                            = 0x0
1755
+	IFLA_XDP_FD                                = 0x1
1756
+	IFLA_XDP_ATTACHED                          = 0x2
1757
+	IFLA_XDP_FLAGS                             = 0x3
1758
+	IFLA_XDP_PROG_ID                           = 0x4
1759
+	IFLA_XDP_DRV_PROG_ID                       = 0x5
1760
+	IFLA_XDP_SKB_PROG_ID                       = 0x6
1761
+	IFLA_XDP_HW_PROG_ID                        = 0x7
1762
+	IFLA_XDP_EXPECTED_FD                       = 0x8
1763
+	IFLA_EVENT_NONE                            = 0x0
1764
+	IFLA_EVENT_REBOOT                          = 0x1
1765
+	IFLA_EVENT_FEATURES                        = 0x2
1766
+	IFLA_EVENT_BONDING_FAILOVER                = 0x3
1767
+	IFLA_EVENT_NOTIFY_PEERS                    = 0x4
1768
+	IFLA_EVENT_IGMP_RESEND                     = 0x5
1769
+	IFLA_EVENT_BONDING_OPTIONS                 = 0x6
1770
+	IFLA_TUN_UNSPEC                            = 0x0
1771
+	IFLA_TUN_OWNER                             = 0x1
1772
+	IFLA_TUN_GROUP                             = 0x2
1773
+	IFLA_TUN_TYPE                              = 0x3
1774
+	IFLA_TUN_PI                                = 0x4
1775
+	IFLA_TUN_VNET_HDR                          = 0x5
1776
+	IFLA_TUN_PERSIST                           = 0x6
1777
+	IFLA_TUN_MULTI_QUEUE                       = 0x7
1778
+	IFLA_TUN_NUM_QUEUES                        = 0x8
1779
+	IFLA_TUN_NUM_DISABLED_QUEUES               = 0x9
1780
+	IFLA_RMNET_UNSPEC                          = 0x0
1781
+	IFLA_RMNET_MUX_ID                          = 0x1
1782
+	IFLA_RMNET_FLAGS                           = 0x2
1783
+)
1784
+
1785
+const (
1391 1786
 	NF_INET_PRE_ROUTING  = 0x0
1392 1787
 	NF_INET_LOCAL_IN     = 0x1
1393 1788
 	NF_INET_FORWARD      = 0x2
... ...
@@ -1892,10 +2224,12 @@ const (
1892 1892
 )
1893 1893
 
1894 1894
 const (
1895
-	NETNSA_NONE = 0x0
1896
-	NETNSA_NSID = 0x1
1897
-	NETNSA_PID  = 0x2
1898
-	NETNSA_FD   = 0x3
1895
+	NETNSA_NONE         = 0x0
1896
+	NETNSA_NSID         = 0x1
1897
+	NETNSA_PID          = 0x2
1898
+	NETNSA_FD           = 0x3
1899
+	NETNSA_TARGET_NSID  = 0x4
1900
+	NETNSA_CURRENT_NSID = 0x5
1899 1901
 )
1900 1902
 
1901 1903
 type XDPRingOffset struct {
... ...
@@ -2045,281 +2379,309 @@ const (
2045 2045
 )
2046 2046
 
2047 2047
 const (
2048
-	BPF_REG_0                               = 0x0
2049
-	BPF_REG_1                               = 0x1
2050
-	BPF_REG_2                               = 0x2
2051
-	BPF_REG_3                               = 0x3
2052
-	BPF_REG_4                               = 0x4
2053
-	BPF_REG_5                               = 0x5
2054
-	BPF_REG_6                               = 0x6
2055
-	BPF_REG_7                               = 0x7
2056
-	BPF_REG_8                               = 0x8
2057
-	BPF_REG_9                               = 0x9
2058
-	BPF_REG_10                              = 0xa
2059
-	BPF_MAP_CREATE                          = 0x0
2060
-	BPF_MAP_LOOKUP_ELEM                     = 0x1
2061
-	BPF_MAP_UPDATE_ELEM                     = 0x2
2062
-	BPF_MAP_DELETE_ELEM                     = 0x3
2063
-	BPF_MAP_GET_NEXT_KEY                    = 0x4
2064
-	BPF_PROG_LOAD                           = 0x5
2065
-	BPF_OBJ_PIN                             = 0x6
2066
-	BPF_OBJ_GET                             = 0x7
2067
-	BPF_PROG_ATTACH                         = 0x8
2068
-	BPF_PROG_DETACH                         = 0x9
2069
-	BPF_PROG_TEST_RUN                       = 0xa
2070
-	BPF_PROG_GET_NEXT_ID                    = 0xb
2071
-	BPF_MAP_GET_NEXT_ID                     = 0xc
2072
-	BPF_PROG_GET_FD_BY_ID                   = 0xd
2073
-	BPF_MAP_GET_FD_BY_ID                    = 0xe
2074
-	BPF_OBJ_GET_INFO_BY_FD                  = 0xf
2075
-	BPF_PROG_QUERY                          = 0x10
2076
-	BPF_RAW_TRACEPOINT_OPEN                 = 0x11
2077
-	BPF_BTF_LOAD                            = 0x12
2078
-	BPF_BTF_GET_FD_BY_ID                    = 0x13
2079
-	BPF_TASK_FD_QUERY                       = 0x14
2080
-	BPF_MAP_LOOKUP_AND_DELETE_ELEM          = 0x15
2081
-	BPF_MAP_FREEZE                          = 0x16
2082
-	BPF_BTF_GET_NEXT_ID                     = 0x17
2083
-	BPF_MAP_LOOKUP_BATCH                    = 0x18
2084
-	BPF_MAP_LOOKUP_AND_DELETE_BATCH         = 0x19
2085
-	BPF_MAP_UPDATE_BATCH                    = 0x1a
2086
-	BPF_MAP_DELETE_BATCH                    = 0x1b
2087
-	BPF_LINK_CREATE                         = 0x1c
2088
-	BPF_LINK_UPDATE                         = 0x1d
2089
-	BPF_LINK_GET_FD_BY_ID                   = 0x1e
2090
-	BPF_LINK_GET_NEXT_ID                    = 0x1f
2091
-	BPF_ENABLE_STATS                        = 0x20
2092
-	BPF_ITER_CREATE                         = 0x21
2093
-	BPF_MAP_TYPE_UNSPEC                     = 0x0
2094
-	BPF_MAP_TYPE_HASH                       = 0x1
2095
-	BPF_MAP_TYPE_ARRAY                      = 0x2
2096
-	BPF_MAP_TYPE_PROG_ARRAY                 = 0x3
2097
-	BPF_MAP_TYPE_PERF_EVENT_ARRAY           = 0x4
2098
-	BPF_MAP_TYPE_PERCPU_HASH                = 0x5
2099
-	BPF_MAP_TYPE_PERCPU_ARRAY               = 0x6
2100
-	BPF_MAP_TYPE_STACK_TRACE                = 0x7
2101
-	BPF_MAP_TYPE_CGROUP_ARRAY               = 0x8
2102
-	BPF_MAP_TYPE_LRU_HASH                   = 0x9
2103
-	BPF_MAP_TYPE_LRU_PERCPU_HASH            = 0xa
2104
-	BPF_MAP_TYPE_LPM_TRIE                   = 0xb
2105
-	BPF_MAP_TYPE_ARRAY_OF_MAPS              = 0xc
2106
-	BPF_MAP_TYPE_HASH_OF_MAPS               = 0xd
2107
-	BPF_MAP_TYPE_DEVMAP                     = 0xe
2108
-	BPF_MAP_TYPE_SOCKMAP                    = 0xf
2109
-	BPF_MAP_TYPE_CPUMAP                     = 0x10
2110
-	BPF_MAP_TYPE_XSKMAP                     = 0x11
2111
-	BPF_MAP_TYPE_SOCKHASH                   = 0x12
2112
-	BPF_MAP_TYPE_CGROUP_STORAGE             = 0x13
2113
-	BPF_MAP_TYPE_REUSEPORT_SOCKARRAY        = 0x14
2114
-	BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE      = 0x15
2115
-	BPF_MAP_TYPE_QUEUE                      = 0x16
2116
-	BPF_MAP_TYPE_STACK                      = 0x17
2117
-	BPF_MAP_TYPE_SK_STORAGE                 = 0x18
2118
-	BPF_MAP_TYPE_DEVMAP_HASH                = 0x19
2119
-	BPF_MAP_TYPE_STRUCT_OPS                 = 0x1a
2120
-	BPF_MAP_TYPE_RINGBUF                    = 0x1b
2121
-	BPF_PROG_TYPE_UNSPEC                    = 0x0
2122
-	BPF_PROG_TYPE_SOCKET_FILTER             = 0x1
2123
-	BPF_PROG_TYPE_KPROBE                    = 0x2
2124
-	BPF_PROG_TYPE_SCHED_CLS                 = 0x3
2125
-	BPF_PROG_TYPE_SCHED_ACT                 = 0x4
2126
-	BPF_PROG_TYPE_TRACEPOINT                = 0x5
2127
-	BPF_PROG_TYPE_XDP                       = 0x6
2128
-	BPF_PROG_TYPE_PERF_EVENT                = 0x7
2129
-	BPF_PROG_TYPE_CGROUP_SKB                = 0x8
2130
-	BPF_PROG_TYPE_CGROUP_SOCK               = 0x9
2131
-	BPF_PROG_TYPE_LWT_IN                    = 0xa
2132
-	BPF_PROG_TYPE_LWT_OUT                   = 0xb
2133
-	BPF_PROG_TYPE_LWT_XMIT                  = 0xc
2134
-	BPF_PROG_TYPE_SOCK_OPS                  = 0xd
2135
-	BPF_PROG_TYPE_SK_SKB                    = 0xe
2136
-	BPF_PROG_TYPE_CGROUP_DEVICE             = 0xf
2137
-	BPF_PROG_TYPE_SK_MSG                    = 0x10
2138
-	BPF_PROG_TYPE_RAW_TRACEPOINT            = 0x11
2139
-	BPF_PROG_TYPE_CGROUP_SOCK_ADDR          = 0x12
2140
-	BPF_PROG_TYPE_LWT_SEG6LOCAL             = 0x13
2141
-	BPF_PROG_TYPE_LIRC_MODE2                = 0x14
2142
-	BPF_PROG_TYPE_SK_REUSEPORT              = 0x15
2143
-	BPF_PROG_TYPE_FLOW_DISSECTOR            = 0x16
2144
-	BPF_PROG_TYPE_CGROUP_SYSCTL             = 0x17
2145
-	BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE   = 0x18
2146
-	BPF_PROG_TYPE_CGROUP_SOCKOPT            = 0x19
2147
-	BPF_PROG_TYPE_TRACING                   = 0x1a
2148
-	BPF_PROG_TYPE_STRUCT_OPS                = 0x1b
2149
-	BPF_PROG_TYPE_EXT                       = 0x1c
2150
-	BPF_PROG_TYPE_LSM                       = 0x1d
2151
-	BPF_CGROUP_INET_INGRESS                 = 0x0
2152
-	BPF_CGROUP_INET_EGRESS                  = 0x1
2153
-	BPF_CGROUP_INET_SOCK_CREATE             = 0x2
2154
-	BPF_CGROUP_SOCK_OPS                     = 0x3
2155
-	BPF_SK_SKB_STREAM_PARSER                = 0x4
2156
-	BPF_SK_SKB_STREAM_VERDICT               = 0x5
2157
-	BPF_CGROUP_DEVICE                       = 0x6
2158
-	BPF_SK_MSG_VERDICT                      = 0x7
2159
-	BPF_CGROUP_INET4_BIND                   = 0x8
2160
-	BPF_CGROUP_INET6_BIND                   = 0x9
2161
-	BPF_CGROUP_INET4_CONNECT                = 0xa
2162
-	BPF_CGROUP_INET6_CONNECT                = 0xb
2163
-	BPF_CGROUP_INET4_POST_BIND              = 0xc
2164
-	BPF_CGROUP_INET6_POST_BIND              = 0xd
2165
-	BPF_CGROUP_UDP4_SENDMSG                 = 0xe
2166
-	BPF_CGROUP_UDP6_SENDMSG                 = 0xf
2167
-	BPF_LIRC_MODE2                          = 0x10
2168
-	BPF_FLOW_DISSECTOR                      = 0x11
2169
-	BPF_CGROUP_SYSCTL                       = 0x12
2170
-	BPF_CGROUP_UDP4_RECVMSG                 = 0x13
2171
-	BPF_CGROUP_UDP6_RECVMSG                 = 0x14
2172
-	BPF_CGROUP_GETSOCKOPT                   = 0x15
2173
-	BPF_CGROUP_SETSOCKOPT                   = 0x16
2174
-	BPF_TRACE_RAW_TP                        = 0x17
2175
-	BPF_TRACE_FENTRY                        = 0x18
2176
-	BPF_TRACE_FEXIT                         = 0x19
2177
-	BPF_MODIFY_RETURN                       = 0x1a
2178
-	BPF_LSM_MAC                             = 0x1b
2179
-	BPF_TRACE_ITER                          = 0x1c
2180
-	BPF_CGROUP_INET4_GETPEERNAME            = 0x1d
2181
-	BPF_CGROUP_INET6_GETPEERNAME            = 0x1e
2182
-	BPF_CGROUP_INET4_GETSOCKNAME            = 0x1f
2183
-	BPF_CGROUP_INET6_GETSOCKNAME            = 0x20
2184
-	BPF_XDP_DEVMAP                          = 0x21
2185
-	BPF_LINK_TYPE_UNSPEC                    = 0x0
2186
-	BPF_LINK_TYPE_RAW_TRACEPOINT            = 0x1
2187
-	BPF_LINK_TYPE_TRACING                   = 0x2
2188
-	BPF_LINK_TYPE_CGROUP                    = 0x3
2189
-	BPF_LINK_TYPE_ITER                      = 0x4
2190
-	BPF_LINK_TYPE_NETNS                     = 0x5
2191
-	BPF_ANY                                 = 0x0
2192
-	BPF_NOEXIST                             = 0x1
2193
-	BPF_EXIST                               = 0x2
2194
-	BPF_F_LOCK                              = 0x4
2195
-	BPF_F_NO_PREALLOC                       = 0x1
2196
-	BPF_F_NO_COMMON_LRU                     = 0x2
2197
-	BPF_F_NUMA_NODE                         = 0x4
2198
-	BPF_F_RDONLY                            = 0x8
2199
-	BPF_F_WRONLY                            = 0x10
2200
-	BPF_F_STACK_BUILD_ID                    = 0x20
2201
-	BPF_F_ZERO_SEED                         = 0x40
2202
-	BPF_F_RDONLY_PROG                       = 0x80
2203
-	BPF_F_WRONLY_PROG                       = 0x100
2204
-	BPF_F_CLONE                             = 0x200
2205
-	BPF_F_MMAPABLE                          = 0x400
2206
-	BPF_STATS_RUN_TIME                      = 0x0
2207
-	BPF_STACK_BUILD_ID_EMPTY                = 0x0
2208
-	BPF_STACK_BUILD_ID_VALID                = 0x1
2209
-	BPF_STACK_BUILD_ID_IP                   = 0x2
2210
-	BPF_F_RECOMPUTE_CSUM                    = 0x1
2211
-	BPF_F_INVALIDATE_HASH                   = 0x2
2212
-	BPF_F_HDR_FIELD_MASK                    = 0xf
2213
-	BPF_F_PSEUDO_HDR                        = 0x10
2214
-	BPF_F_MARK_MANGLED_0                    = 0x20
2215
-	BPF_F_MARK_ENFORCE                      = 0x40
2216
-	BPF_F_INGRESS                           = 0x1
2217
-	BPF_F_TUNINFO_IPV6                      = 0x1
2218
-	BPF_F_SKIP_FIELD_MASK                   = 0xff
2219
-	BPF_F_USER_STACK                        = 0x100
2220
-	BPF_F_FAST_STACK_CMP                    = 0x200
2221
-	BPF_F_REUSE_STACKID                     = 0x400
2222
-	BPF_F_USER_BUILD_ID                     = 0x800
2223
-	BPF_F_ZERO_CSUM_TX                      = 0x2
2224
-	BPF_F_DONT_FRAGMENT                     = 0x4
2225
-	BPF_F_SEQ_NUMBER                        = 0x8
2226
-	BPF_F_INDEX_MASK                        = 0xffffffff
2227
-	BPF_F_CURRENT_CPU                       = 0xffffffff
2228
-	BPF_F_CTXLEN_MASK                       = 0xfffff00000000
2229
-	BPF_F_CURRENT_NETNS                     = -0x1
2230
-	BPF_CSUM_LEVEL_QUERY                    = 0x0
2231
-	BPF_CSUM_LEVEL_INC                      = 0x1
2232
-	BPF_CSUM_LEVEL_DEC                      = 0x2
2233
-	BPF_CSUM_LEVEL_RESET                    = 0x3
2234
-	BPF_F_ADJ_ROOM_FIXED_GSO                = 0x1
2235
-	BPF_F_ADJ_ROOM_ENCAP_L3_IPV4            = 0x2
2236
-	BPF_F_ADJ_ROOM_ENCAP_L3_IPV6            = 0x4
2237
-	BPF_F_ADJ_ROOM_ENCAP_L4_GRE             = 0x8
2238
-	BPF_F_ADJ_ROOM_ENCAP_L4_UDP             = 0x10
2239
-	BPF_F_ADJ_ROOM_NO_CSUM_RESET            = 0x20
2240
-	BPF_ADJ_ROOM_ENCAP_L2_MASK              = 0xff
2241
-	BPF_ADJ_ROOM_ENCAP_L2_SHIFT             = 0x38
2242
-	BPF_F_SYSCTL_BASE_NAME                  = 0x1
2243
-	BPF_SK_STORAGE_GET_F_CREATE             = 0x1
2244
-	BPF_F_GET_BRANCH_RECORDS_SIZE           = 0x1
2245
-	BPF_RB_NO_WAKEUP                        = 0x1
2246
-	BPF_RB_FORCE_WAKEUP                     = 0x2
2247
-	BPF_RB_AVAIL_DATA                       = 0x0
2248
-	BPF_RB_RING_SIZE                        = 0x1
2249
-	BPF_RB_CONS_POS                         = 0x2
2250
-	BPF_RB_PROD_POS                         = 0x3
2251
-	BPF_RINGBUF_BUSY_BIT                    = 0x80000000
2252
-	BPF_RINGBUF_DISCARD_BIT                 = 0x40000000
2253
-	BPF_RINGBUF_HDR_SZ                      = 0x8
2254
-	BPF_ADJ_ROOM_NET                        = 0x0
2255
-	BPF_ADJ_ROOM_MAC                        = 0x1
2256
-	BPF_HDR_START_MAC                       = 0x0
2257
-	BPF_HDR_START_NET                       = 0x1
2258
-	BPF_LWT_ENCAP_SEG6                      = 0x0
2259
-	BPF_LWT_ENCAP_SEG6_INLINE               = 0x1
2260
-	BPF_LWT_ENCAP_IP                        = 0x2
2261
-	BPF_OK                                  = 0x0
2262
-	BPF_DROP                                = 0x2
2263
-	BPF_REDIRECT                            = 0x7
2264
-	BPF_LWT_REROUTE                         = 0x80
2265
-	BPF_SOCK_OPS_RTO_CB_FLAG                = 0x1
2266
-	BPF_SOCK_OPS_RETRANS_CB_FLAG            = 0x2
2267
-	BPF_SOCK_OPS_STATE_CB_FLAG              = 0x4
2268
-	BPF_SOCK_OPS_RTT_CB_FLAG                = 0x8
2269
-	BPF_SOCK_OPS_ALL_CB_FLAGS               = 0xf
2270
-	BPF_SOCK_OPS_VOID                       = 0x0
2271
-	BPF_SOCK_OPS_TIMEOUT_INIT               = 0x1
2272
-	BPF_SOCK_OPS_RWND_INIT                  = 0x2
2273
-	BPF_SOCK_OPS_TCP_CONNECT_CB             = 0x3
2274
-	BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB      = 0x4
2275
-	BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB     = 0x5
2276
-	BPF_SOCK_OPS_NEEDS_ECN                  = 0x6
2277
-	BPF_SOCK_OPS_BASE_RTT                   = 0x7
2278
-	BPF_SOCK_OPS_RTO_CB                     = 0x8
2279
-	BPF_SOCK_OPS_RETRANS_CB                 = 0x9
2280
-	BPF_SOCK_OPS_STATE_CB                   = 0xa
2281
-	BPF_SOCK_OPS_TCP_LISTEN_CB              = 0xb
2282
-	BPF_SOCK_OPS_RTT_CB                     = 0xc
2283
-	BPF_TCP_ESTABLISHED                     = 0x1
2284
-	BPF_TCP_SYN_SENT                        = 0x2
2285
-	BPF_TCP_SYN_RECV                        = 0x3
2286
-	BPF_TCP_FIN_WAIT1                       = 0x4
2287
-	BPF_TCP_FIN_WAIT2                       = 0x5
2288
-	BPF_TCP_TIME_WAIT                       = 0x6
2289
-	BPF_TCP_CLOSE                           = 0x7
2290
-	BPF_TCP_CLOSE_WAIT                      = 0x8
2291
-	BPF_TCP_LAST_ACK                        = 0x9
2292
-	BPF_TCP_LISTEN                          = 0xa
2293
-	BPF_TCP_CLOSING                         = 0xb
2294
-	BPF_TCP_NEW_SYN_RECV                    = 0xc
2295
-	BPF_TCP_MAX_STATES                      = 0xd
2296
-	TCP_BPF_IW                              = 0x3e9
2297
-	TCP_BPF_SNDCWND_CLAMP                   = 0x3ea
2298
-	BPF_DEVCG_ACC_MKNOD                     = 0x1
2299
-	BPF_DEVCG_ACC_READ                      = 0x2
2300
-	BPF_DEVCG_ACC_WRITE                     = 0x4
2301
-	BPF_DEVCG_DEV_BLOCK                     = 0x1
2302
-	BPF_DEVCG_DEV_CHAR                      = 0x2
2303
-	BPF_FIB_LOOKUP_DIRECT                   = 0x1
2304
-	BPF_FIB_LOOKUP_OUTPUT                   = 0x2
2305
-	BPF_FIB_LKUP_RET_SUCCESS                = 0x0
2306
-	BPF_FIB_LKUP_RET_BLACKHOLE              = 0x1
2307
-	BPF_FIB_LKUP_RET_UNREACHABLE            = 0x2
2308
-	BPF_FIB_LKUP_RET_PROHIBIT               = 0x3
2309
-	BPF_FIB_LKUP_RET_NOT_FWDED              = 0x4
2310
-	BPF_FIB_LKUP_RET_FWD_DISABLED           = 0x5
2311
-	BPF_FIB_LKUP_RET_UNSUPP_LWT             = 0x6
2312
-	BPF_FIB_LKUP_RET_NO_NEIGH               = 0x7
2313
-	BPF_FIB_LKUP_RET_FRAG_NEEDED            = 0x8
2314
-	BPF_FD_TYPE_RAW_TRACEPOINT              = 0x0
2315
-	BPF_FD_TYPE_TRACEPOINT                  = 0x1
2316
-	BPF_FD_TYPE_KPROBE                      = 0x2
2317
-	BPF_FD_TYPE_KRETPROBE                   = 0x3
2318
-	BPF_FD_TYPE_UPROBE                      = 0x4
2319
-	BPF_FD_TYPE_URETPROBE                   = 0x5
2320
-	BPF_FLOW_DISSECTOR_F_PARSE_1ST_FRAG     = 0x1
2321
-	BPF_FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL = 0x2
2322
-	BPF_FLOW_DISSECTOR_F_STOP_AT_ENCAP      = 0x4
2048
+	BPF_REG_0                                  = 0x0
2049
+	BPF_REG_1                                  = 0x1
2050
+	BPF_REG_2                                  = 0x2
2051
+	BPF_REG_3                                  = 0x3
2052
+	BPF_REG_4                                  = 0x4
2053
+	BPF_REG_5                                  = 0x5
2054
+	BPF_REG_6                                  = 0x6
2055
+	BPF_REG_7                                  = 0x7
2056
+	BPF_REG_8                                  = 0x8
2057
+	BPF_REG_9                                  = 0x9
2058
+	BPF_REG_10                                 = 0xa
2059
+	BPF_MAP_CREATE                             = 0x0
2060
+	BPF_MAP_LOOKUP_ELEM                        = 0x1
2061
+	BPF_MAP_UPDATE_ELEM                        = 0x2
2062
+	BPF_MAP_DELETE_ELEM                        = 0x3
2063
+	BPF_MAP_GET_NEXT_KEY                       = 0x4
2064
+	BPF_PROG_LOAD                              = 0x5
2065
+	BPF_OBJ_PIN                                = 0x6
2066
+	BPF_OBJ_GET                                = 0x7
2067
+	BPF_PROG_ATTACH                            = 0x8
2068
+	BPF_PROG_DETACH                            = 0x9
2069
+	BPF_PROG_TEST_RUN                          = 0xa
2070
+	BPF_PROG_GET_NEXT_ID                       = 0xb
2071
+	BPF_MAP_GET_NEXT_ID                        = 0xc
2072
+	BPF_PROG_GET_FD_BY_ID                      = 0xd
2073
+	BPF_MAP_GET_FD_BY_ID                       = 0xe
2074
+	BPF_OBJ_GET_INFO_BY_FD                     = 0xf
2075
+	BPF_PROG_QUERY                             = 0x10
2076
+	BPF_RAW_TRACEPOINT_OPEN                    = 0x11
2077
+	BPF_BTF_LOAD                               = 0x12
2078
+	BPF_BTF_GET_FD_BY_ID                       = 0x13
2079
+	BPF_TASK_FD_QUERY                          = 0x14
2080
+	BPF_MAP_LOOKUP_AND_DELETE_ELEM             = 0x15
2081
+	BPF_MAP_FREEZE                             = 0x16
2082
+	BPF_BTF_GET_NEXT_ID                        = 0x17
2083
+	BPF_MAP_LOOKUP_BATCH                       = 0x18
2084
+	BPF_MAP_LOOKUP_AND_DELETE_BATCH            = 0x19
2085
+	BPF_MAP_UPDATE_BATCH                       = 0x1a
2086
+	BPF_MAP_DELETE_BATCH                       = 0x1b
2087
+	BPF_LINK_CREATE                            = 0x1c
2088
+	BPF_LINK_UPDATE                            = 0x1d
2089
+	BPF_LINK_GET_FD_BY_ID                      = 0x1e
2090
+	BPF_LINK_GET_NEXT_ID                       = 0x1f
2091
+	BPF_ENABLE_STATS                           = 0x20
2092
+	BPF_ITER_CREATE                            = 0x21
2093
+	BPF_LINK_DETACH                            = 0x22
2094
+	BPF_PROG_BIND_MAP                          = 0x23
2095
+	BPF_MAP_TYPE_UNSPEC                        = 0x0
2096
+	BPF_MAP_TYPE_HASH                          = 0x1
2097
+	BPF_MAP_TYPE_ARRAY                         = 0x2
2098
+	BPF_MAP_TYPE_PROG_ARRAY                    = 0x3
2099
+	BPF_MAP_TYPE_PERF_EVENT_ARRAY              = 0x4
2100
+	BPF_MAP_TYPE_PERCPU_HASH                   = 0x5
2101
+	BPF_MAP_TYPE_PERCPU_ARRAY                  = 0x6
2102
+	BPF_MAP_TYPE_STACK_TRACE                   = 0x7
2103
+	BPF_MAP_TYPE_CGROUP_ARRAY                  = 0x8
2104
+	BPF_MAP_TYPE_LRU_HASH                      = 0x9
2105
+	BPF_MAP_TYPE_LRU_PERCPU_HASH               = 0xa
2106
+	BPF_MAP_TYPE_LPM_TRIE                      = 0xb
2107
+	BPF_MAP_TYPE_ARRAY_OF_MAPS                 = 0xc
2108
+	BPF_MAP_TYPE_HASH_OF_MAPS                  = 0xd
2109
+	BPF_MAP_TYPE_DEVMAP                        = 0xe
2110
+	BPF_MAP_TYPE_SOCKMAP                       = 0xf
2111
+	BPF_MAP_TYPE_CPUMAP                        = 0x10
2112
+	BPF_MAP_TYPE_XSKMAP                        = 0x11
2113
+	BPF_MAP_TYPE_SOCKHASH                      = 0x12
2114
+	BPF_MAP_TYPE_CGROUP_STORAGE                = 0x13
2115
+	BPF_MAP_TYPE_REUSEPORT_SOCKARRAY           = 0x14
2116
+	BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE         = 0x15
2117
+	BPF_MAP_TYPE_QUEUE                         = 0x16
2118
+	BPF_MAP_TYPE_STACK                         = 0x17
2119
+	BPF_MAP_TYPE_SK_STORAGE                    = 0x18
2120
+	BPF_MAP_TYPE_DEVMAP_HASH                   = 0x19
2121
+	BPF_MAP_TYPE_STRUCT_OPS                    = 0x1a
2122
+	BPF_MAP_TYPE_RINGBUF                       = 0x1b
2123
+	BPF_MAP_TYPE_INODE_STORAGE                 = 0x1c
2124
+	BPF_PROG_TYPE_UNSPEC                       = 0x0
2125
+	BPF_PROG_TYPE_SOCKET_FILTER                = 0x1
2126
+	BPF_PROG_TYPE_KPROBE                       = 0x2
2127
+	BPF_PROG_TYPE_SCHED_CLS                    = 0x3
2128
+	BPF_PROG_TYPE_SCHED_ACT                    = 0x4
2129
+	BPF_PROG_TYPE_TRACEPOINT                   = 0x5
2130
+	BPF_PROG_TYPE_XDP                          = 0x6
2131
+	BPF_PROG_TYPE_PERF_EVENT                   = 0x7
2132
+	BPF_PROG_TYPE_CGROUP_SKB                   = 0x8
2133
+	BPF_PROG_TYPE_CGROUP_SOCK                  = 0x9
2134
+	BPF_PROG_TYPE_LWT_IN                       = 0xa
2135
+	BPF_PROG_TYPE_LWT_OUT                      = 0xb
2136
+	BPF_PROG_TYPE_LWT_XMIT                     = 0xc
2137
+	BPF_PROG_TYPE_SOCK_OPS                     = 0xd
2138
+	BPF_PROG_TYPE_SK_SKB                       = 0xe
2139
+	BPF_PROG_TYPE_CGROUP_DEVICE                = 0xf
2140
+	BPF_PROG_TYPE_SK_MSG                       = 0x10
2141
+	BPF_PROG_TYPE_RAW_TRACEPOINT               = 0x11
2142
+	BPF_PROG_TYPE_CGROUP_SOCK_ADDR             = 0x12
2143
+	BPF_PROG_TYPE_LWT_SEG6LOCAL                = 0x13
2144
+	BPF_PROG_TYPE_LIRC_MODE2                   = 0x14
2145
+	BPF_PROG_TYPE_SK_REUSEPORT                 = 0x15
2146
+	BPF_PROG_TYPE_FLOW_DISSECTOR               = 0x16
2147
+	BPF_PROG_TYPE_CGROUP_SYSCTL                = 0x17
2148
+	BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE      = 0x18
2149
+	BPF_PROG_TYPE_CGROUP_SOCKOPT               = 0x19
2150
+	BPF_PROG_TYPE_TRACING                      = 0x1a
2151
+	BPF_PROG_TYPE_STRUCT_OPS                   = 0x1b
2152
+	BPF_PROG_TYPE_EXT                          = 0x1c
2153
+	BPF_PROG_TYPE_LSM                          = 0x1d
2154
+	BPF_PROG_TYPE_SK_LOOKUP                    = 0x1e
2155
+	BPF_CGROUP_INET_INGRESS                    = 0x0
2156
+	BPF_CGROUP_INET_EGRESS                     = 0x1
2157
+	BPF_CGROUP_INET_SOCK_CREATE                = 0x2
2158
+	BPF_CGROUP_SOCK_OPS                        = 0x3
2159
+	BPF_SK_SKB_STREAM_PARSER                   = 0x4
2160
+	BPF_SK_SKB_STREAM_VERDICT                  = 0x5
2161
+	BPF_CGROUP_DEVICE                          = 0x6
2162
+	BPF_SK_MSG_VERDICT                         = 0x7
2163
+	BPF_CGROUP_INET4_BIND                      = 0x8
2164
+	BPF_CGROUP_INET6_BIND                      = 0x9
2165
+	BPF_CGROUP_INET4_CONNECT                   = 0xa
2166
+	BPF_CGROUP_INET6_CONNECT                   = 0xb
2167
+	BPF_CGROUP_INET4_POST_BIND                 = 0xc
2168
+	BPF_CGROUP_INET6_POST_BIND                 = 0xd
2169
+	BPF_CGROUP_UDP4_SENDMSG                    = 0xe
2170
+	BPF_CGROUP_UDP6_SENDMSG                    = 0xf
2171
+	BPF_LIRC_MODE2                             = 0x10
2172
+	BPF_FLOW_DISSECTOR                         = 0x11
2173
+	BPF_CGROUP_SYSCTL                          = 0x12
2174
+	BPF_CGROUP_UDP4_RECVMSG                    = 0x13
2175
+	BPF_CGROUP_UDP6_RECVMSG                    = 0x14
2176
+	BPF_CGROUP_GETSOCKOPT                      = 0x15
2177
+	BPF_CGROUP_SETSOCKOPT                      = 0x16
2178
+	BPF_TRACE_RAW_TP                           = 0x17
2179
+	BPF_TRACE_FENTRY                           = 0x18
2180
+	BPF_TRACE_FEXIT                            = 0x19
2181
+	BPF_MODIFY_RETURN                          = 0x1a
2182
+	BPF_LSM_MAC                                = 0x1b
2183
+	BPF_TRACE_ITER                             = 0x1c
2184
+	BPF_CGROUP_INET4_GETPEERNAME               = 0x1d
2185
+	BPF_CGROUP_INET6_GETPEERNAME               = 0x1e
2186
+	BPF_CGROUP_INET4_GETSOCKNAME               = 0x1f
2187
+	BPF_CGROUP_INET6_GETSOCKNAME               = 0x20
2188
+	BPF_XDP_DEVMAP                             = 0x21
2189
+	BPF_CGROUP_INET_SOCK_RELEASE               = 0x22
2190
+	BPF_XDP_CPUMAP                             = 0x23
2191
+	BPF_SK_LOOKUP                              = 0x24
2192
+	BPF_XDP                                    = 0x25
2193
+	BPF_LINK_TYPE_UNSPEC                       = 0x0
2194
+	BPF_LINK_TYPE_RAW_TRACEPOINT               = 0x1
2195
+	BPF_LINK_TYPE_TRACING                      = 0x2
2196
+	BPF_LINK_TYPE_CGROUP                       = 0x3
2197
+	BPF_LINK_TYPE_ITER                         = 0x4
2198
+	BPF_LINK_TYPE_NETNS                        = 0x5
2199
+	BPF_LINK_TYPE_XDP                          = 0x6
2200
+	BPF_ANY                                    = 0x0
2201
+	BPF_NOEXIST                                = 0x1
2202
+	BPF_EXIST                                  = 0x2
2203
+	BPF_F_LOCK                                 = 0x4
2204
+	BPF_F_NO_PREALLOC                          = 0x1
2205
+	BPF_F_NO_COMMON_LRU                        = 0x2
2206
+	BPF_F_NUMA_NODE                            = 0x4
2207
+	BPF_F_RDONLY                               = 0x8
2208
+	BPF_F_WRONLY                               = 0x10
2209
+	BPF_F_STACK_BUILD_ID                       = 0x20
2210
+	BPF_F_ZERO_SEED                            = 0x40
2211
+	BPF_F_RDONLY_PROG                          = 0x80
2212
+	BPF_F_WRONLY_PROG                          = 0x100
2213
+	BPF_F_CLONE                                = 0x200
2214
+	BPF_F_MMAPABLE                             = 0x400
2215
+	BPF_F_PRESERVE_ELEMS                       = 0x800
2216
+	BPF_F_INNER_MAP                            = 0x1000
2217
+	BPF_STATS_RUN_TIME                         = 0x0
2218
+	BPF_STACK_BUILD_ID_EMPTY                   = 0x0
2219
+	BPF_STACK_BUILD_ID_VALID                   = 0x1
2220
+	BPF_STACK_BUILD_ID_IP                      = 0x2
2221
+	BPF_F_RECOMPUTE_CSUM                       = 0x1
2222
+	BPF_F_INVALIDATE_HASH                      = 0x2
2223
+	BPF_F_HDR_FIELD_MASK                       = 0xf
2224
+	BPF_F_PSEUDO_HDR                           = 0x10
2225
+	BPF_F_MARK_MANGLED_0                       = 0x20
2226
+	BPF_F_MARK_ENFORCE                         = 0x40
2227
+	BPF_F_INGRESS                              = 0x1
2228
+	BPF_F_TUNINFO_IPV6                         = 0x1
2229
+	BPF_F_SKIP_FIELD_MASK                      = 0xff
2230
+	BPF_F_USER_STACK                           = 0x100
2231
+	BPF_F_FAST_STACK_CMP                       = 0x200
2232
+	BPF_F_REUSE_STACKID                        = 0x400
2233
+	BPF_F_USER_BUILD_ID                        = 0x800
2234
+	BPF_F_ZERO_CSUM_TX                         = 0x2
2235
+	BPF_F_DONT_FRAGMENT                        = 0x4
2236
+	BPF_F_SEQ_NUMBER                           = 0x8
2237
+	BPF_F_INDEX_MASK                           = 0xffffffff
2238
+	BPF_F_CURRENT_CPU                          = 0xffffffff
2239
+	BPF_F_CTXLEN_MASK                          = 0xfffff00000000
2240
+	BPF_F_CURRENT_NETNS                        = -0x1
2241
+	BPF_CSUM_LEVEL_QUERY                       = 0x0
2242
+	BPF_CSUM_LEVEL_INC                         = 0x1
2243
+	BPF_CSUM_LEVEL_DEC                         = 0x2
2244
+	BPF_CSUM_LEVEL_RESET                       = 0x3
2245
+	BPF_F_ADJ_ROOM_FIXED_GSO                   = 0x1
2246
+	BPF_F_ADJ_ROOM_ENCAP_L3_IPV4               = 0x2
2247
+	BPF_F_ADJ_ROOM_ENCAP_L3_IPV6               = 0x4
2248
+	BPF_F_ADJ_ROOM_ENCAP_L4_GRE                = 0x8
2249
+	BPF_F_ADJ_ROOM_ENCAP_L4_UDP                = 0x10
2250
+	BPF_F_ADJ_ROOM_NO_CSUM_RESET               = 0x20
2251
+	BPF_ADJ_ROOM_ENCAP_L2_MASK                 = 0xff
2252
+	BPF_ADJ_ROOM_ENCAP_L2_SHIFT                = 0x38
2253
+	BPF_F_SYSCTL_BASE_NAME                     = 0x1
2254
+	BPF_LOCAL_STORAGE_GET_F_CREATE             = 0x1
2255
+	BPF_SK_STORAGE_GET_F_CREATE                = 0x1
2256
+	BPF_F_GET_BRANCH_RECORDS_SIZE              = 0x1
2257
+	BPF_RB_NO_WAKEUP                           = 0x1
2258
+	BPF_RB_FORCE_WAKEUP                        = 0x2
2259
+	BPF_RB_AVAIL_DATA                          = 0x0
2260
+	BPF_RB_RING_SIZE                           = 0x1
2261
+	BPF_RB_CONS_POS                            = 0x2
2262
+	BPF_RB_PROD_POS                            = 0x3
2263
+	BPF_RINGBUF_BUSY_BIT                       = 0x80000000
2264
+	BPF_RINGBUF_DISCARD_BIT                    = 0x40000000
2265
+	BPF_RINGBUF_HDR_SZ                         = 0x8
2266
+	BPF_SK_LOOKUP_F_REPLACE                    = 0x1
2267
+	BPF_SK_LOOKUP_F_NO_REUSEPORT               = 0x2
2268
+	BPF_ADJ_ROOM_NET                           = 0x0
2269
+	BPF_ADJ_ROOM_MAC                           = 0x1
2270
+	BPF_HDR_START_MAC                          = 0x0
2271
+	BPF_HDR_START_NET                          = 0x1
2272
+	BPF_LWT_ENCAP_SEG6                         = 0x0
2273
+	BPF_LWT_ENCAP_SEG6_INLINE                  = 0x1
2274
+	BPF_LWT_ENCAP_IP                           = 0x2
2275
+	BPF_OK                                     = 0x0
2276
+	BPF_DROP                                   = 0x2
2277
+	BPF_REDIRECT                               = 0x7
2278
+	BPF_LWT_REROUTE                            = 0x80
2279
+	BPF_SOCK_OPS_RTO_CB_FLAG                   = 0x1
2280
+	BPF_SOCK_OPS_RETRANS_CB_FLAG               = 0x2
2281
+	BPF_SOCK_OPS_STATE_CB_FLAG                 = 0x4
2282
+	BPF_SOCK_OPS_RTT_CB_FLAG                   = 0x8
2283
+	BPF_SOCK_OPS_PARSE_ALL_HDR_OPT_CB_FLAG     = 0x10
2284
+	BPF_SOCK_OPS_PARSE_UNKNOWN_HDR_OPT_CB_FLAG = 0x20
2285
+	BPF_SOCK_OPS_WRITE_HDR_OPT_CB_FLAG         = 0x40
2286
+	BPF_SOCK_OPS_ALL_CB_FLAGS                  = 0x7f
2287
+	BPF_SOCK_OPS_VOID                          = 0x0
2288
+	BPF_SOCK_OPS_TIMEOUT_INIT                  = 0x1
2289
+	BPF_SOCK_OPS_RWND_INIT                     = 0x2
2290
+	BPF_SOCK_OPS_TCP_CONNECT_CB                = 0x3
2291
+	BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB         = 0x4
2292
+	BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB        = 0x5
2293
+	BPF_SOCK_OPS_NEEDS_ECN                     = 0x6
2294
+	BPF_SOCK_OPS_BASE_RTT                      = 0x7
2295
+	BPF_SOCK_OPS_RTO_CB                        = 0x8
2296
+	BPF_SOCK_OPS_RETRANS_CB                    = 0x9
2297
+	BPF_SOCK_OPS_STATE_CB                      = 0xa
2298
+	BPF_SOCK_OPS_TCP_LISTEN_CB                 = 0xb
2299
+	BPF_SOCK_OPS_RTT_CB                        = 0xc
2300
+	BPF_SOCK_OPS_PARSE_HDR_OPT_CB              = 0xd
2301
+	BPF_SOCK_OPS_HDR_OPT_LEN_CB                = 0xe
2302
+	BPF_SOCK_OPS_WRITE_HDR_OPT_CB              = 0xf
2303
+	BPF_TCP_ESTABLISHED                        = 0x1
2304
+	BPF_TCP_SYN_SENT                           = 0x2
2305
+	BPF_TCP_SYN_RECV                           = 0x3
2306
+	BPF_TCP_FIN_WAIT1                          = 0x4
2307
+	BPF_TCP_FIN_WAIT2                          = 0x5
2308
+	BPF_TCP_TIME_WAIT                          = 0x6
2309
+	BPF_TCP_CLOSE                              = 0x7
2310
+	BPF_TCP_CLOSE_WAIT                         = 0x8
2311
+	BPF_TCP_LAST_ACK                           = 0x9
2312
+	BPF_TCP_LISTEN                             = 0xa
2313
+	BPF_TCP_CLOSING                            = 0xb
2314
+	BPF_TCP_NEW_SYN_RECV                       = 0xc
2315
+	BPF_TCP_MAX_STATES                         = 0xd
2316
+	TCP_BPF_IW                                 = 0x3e9
2317
+	TCP_BPF_SNDCWND_CLAMP                      = 0x3ea
2318
+	TCP_BPF_DELACK_MAX                         = 0x3eb
2319
+	TCP_BPF_RTO_MIN                            = 0x3ec
2320
+	TCP_BPF_SYN                                = 0x3ed
2321
+	TCP_BPF_SYN_IP                             = 0x3ee
2322
+	TCP_BPF_SYN_MAC                            = 0x3ef
2323
+	BPF_LOAD_HDR_OPT_TCP_SYN                   = 0x1
2324
+	BPF_WRITE_HDR_TCP_CURRENT_MSS              = 0x1
2325
+	BPF_WRITE_HDR_TCP_SYNACK_COOKIE            = 0x2
2326
+	BPF_DEVCG_ACC_MKNOD                        = 0x1
2327
+	BPF_DEVCG_ACC_READ                         = 0x2
2328
+	BPF_DEVCG_ACC_WRITE                        = 0x4
2329
+	BPF_DEVCG_DEV_BLOCK                        = 0x1
2330
+	BPF_DEVCG_DEV_CHAR                         = 0x2
2331
+	BPF_FIB_LOOKUP_DIRECT                      = 0x1
2332
+	BPF_FIB_LOOKUP_OUTPUT                      = 0x2
2333
+	BPF_FIB_LKUP_RET_SUCCESS                   = 0x0
2334
+	BPF_FIB_LKUP_RET_BLACKHOLE                 = 0x1
2335
+	BPF_FIB_LKUP_RET_UNREACHABLE               = 0x2
2336
+	BPF_FIB_LKUP_RET_PROHIBIT                  = 0x3
2337
+	BPF_FIB_LKUP_RET_NOT_FWDED                 = 0x4
2338
+	BPF_FIB_LKUP_RET_FWD_DISABLED              = 0x5
2339
+	BPF_FIB_LKUP_RET_UNSUPP_LWT                = 0x6
2340
+	BPF_FIB_LKUP_RET_NO_NEIGH                  = 0x7
2341
+	BPF_FIB_LKUP_RET_FRAG_NEEDED               = 0x8
2342
+	BPF_FD_TYPE_RAW_TRACEPOINT                 = 0x0
2343
+	BPF_FD_TYPE_TRACEPOINT                     = 0x1
2344
+	BPF_FD_TYPE_KPROBE                         = 0x2
2345
+	BPF_FD_TYPE_KRETPROBE                      = 0x3
2346
+	BPF_FD_TYPE_UPROBE                         = 0x4
2347
+	BPF_FD_TYPE_URETPROBE                      = 0x5
2348
+	BPF_FLOW_DISSECTOR_F_PARSE_1ST_FRAG        = 0x1
2349
+	BPF_FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL    = 0x2
2350
+	BPF_FLOW_DISSECTOR_F_STOP_AT_ENCAP         = 0x4
2323 2351
 )
2324 2352
 
2325 2353
 const (
... ...
@@ -2356,6 +2718,7 @@ const (
2356 2356
 	RTNLGRP_IPV4_MROUTE_R = 0x1e
2357 2357
 	RTNLGRP_IPV6_MROUTE_R = 0x1f
2358 2358
 	RTNLGRP_NEXTHOP       = 0x20
2359
+	RTNLGRP_BRVLAN        = 0x21
2359 2360
 )
2360 2361
 
2361 2362
 type CapUserHeader struct {
... ...
@@ -2450,132 +2813,317 @@ const (
2450 2450
 )
2451 2451
 
2452 2452
 const (
2453
-	DEVLINK_CMD_UNSPEC                        = 0x0
2454
-	DEVLINK_CMD_GET                           = 0x1
2455
-	DEVLINK_CMD_SET                           = 0x2
2456
-	DEVLINK_CMD_NEW                           = 0x3
2457
-	DEVLINK_CMD_DEL                           = 0x4
2458
-	DEVLINK_CMD_PORT_GET                      = 0x5
2459
-	DEVLINK_CMD_PORT_SET                      = 0x6
2460
-	DEVLINK_CMD_PORT_NEW                      = 0x7
2461
-	DEVLINK_CMD_PORT_DEL                      = 0x8
2462
-	DEVLINK_CMD_PORT_SPLIT                    = 0x9
2463
-	DEVLINK_CMD_PORT_UNSPLIT                  = 0xa
2464
-	DEVLINK_CMD_SB_GET                        = 0xb
2465
-	DEVLINK_CMD_SB_SET                        = 0xc
2466
-	DEVLINK_CMD_SB_NEW                        = 0xd
2467
-	DEVLINK_CMD_SB_DEL                        = 0xe
2468
-	DEVLINK_CMD_SB_POOL_GET                   = 0xf
2469
-	DEVLINK_CMD_SB_POOL_SET                   = 0x10
2470
-	DEVLINK_CMD_SB_POOL_NEW                   = 0x11
2471
-	DEVLINK_CMD_SB_POOL_DEL                   = 0x12
2472
-	DEVLINK_CMD_SB_PORT_POOL_GET              = 0x13
2473
-	DEVLINK_CMD_SB_PORT_POOL_SET              = 0x14
2474
-	DEVLINK_CMD_SB_PORT_POOL_NEW              = 0x15
2475
-	DEVLINK_CMD_SB_PORT_POOL_DEL              = 0x16
2476
-	DEVLINK_CMD_SB_TC_POOL_BIND_GET           = 0x17
2477
-	DEVLINK_CMD_SB_TC_POOL_BIND_SET           = 0x18
2478
-	DEVLINK_CMD_SB_TC_POOL_BIND_NEW           = 0x19
2479
-	DEVLINK_CMD_SB_TC_POOL_BIND_DEL           = 0x1a
2480
-	DEVLINK_CMD_SB_OCC_SNAPSHOT               = 0x1b
2481
-	DEVLINK_CMD_SB_OCC_MAX_CLEAR              = 0x1c
2482
-	DEVLINK_CMD_ESWITCH_GET                   = 0x1d
2483
-	DEVLINK_CMD_ESWITCH_SET                   = 0x1e
2484
-	DEVLINK_CMD_DPIPE_TABLE_GET               = 0x1f
2485
-	DEVLINK_CMD_DPIPE_ENTRIES_GET             = 0x20
2486
-	DEVLINK_CMD_DPIPE_HEADERS_GET             = 0x21
2487
-	DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET      = 0x22
2488
-	DEVLINK_CMD_MAX                           = 0x48
2489
-	DEVLINK_PORT_TYPE_NOTSET                  = 0x0
2490
-	DEVLINK_PORT_TYPE_AUTO                    = 0x1
2491
-	DEVLINK_PORT_TYPE_ETH                     = 0x2
2492
-	DEVLINK_PORT_TYPE_IB                      = 0x3
2493
-	DEVLINK_SB_POOL_TYPE_INGRESS              = 0x0
2494
-	DEVLINK_SB_POOL_TYPE_EGRESS               = 0x1
2495
-	DEVLINK_SB_THRESHOLD_TYPE_STATIC          = 0x0
2496
-	DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC         = 0x1
2497
-	DEVLINK_ESWITCH_MODE_LEGACY               = 0x0
2498
-	DEVLINK_ESWITCH_MODE_SWITCHDEV            = 0x1
2499
-	DEVLINK_ESWITCH_INLINE_MODE_NONE          = 0x0
2500
-	DEVLINK_ESWITCH_INLINE_MODE_LINK          = 0x1
2501
-	DEVLINK_ESWITCH_INLINE_MODE_NETWORK       = 0x2
2502
-	DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT     = 0x3
2503
-	DEVLINK_ESWITCH_ENCAP_MODE_NONE           = 0x0
2504
-	DEVLINK_ESWITCH_ENCAP_MODE_BASIC          = 0x1
2505
-	DEVLINK_ATTR_UNSPEC                       = 0x0
2506
-	DEVLINK_ATTR_BUS_NAME                     = 0x1
2507
-	DEVLINK_ATTR_DEV_NAME                     = 0x2
2508
-	DEVLINK_ATTR_PORT_INDEX                   = 0x3
2509
-	DEVLINK_ATTR_PORT_TYPE                    = 0x4
2510
-	DEVLINK_ATTR_PORT_DESIRED_TYPE            = 0x5
2511
-	DEVLINK_ATTR_PORT_NETDEV_IFINDEX          = 0x6
2512
-	DEVLINK_ATTR_PORT_NETDEV_NAME             = 0x7
2513
-	DEVLINK_ATTR_PORT_IBDEV_NAME              = 0x8
2514
-	DEVLINK_ATTR_PORT_SPLIT_COUNT             = 0x9
2515
-	DEVLINK_ATTR_PORT_SPLIT_GROUP             = 0xa
2516
-	DEVLINK_ATTR_SB_INDEX                     = 0xb
2517
-	DEVLINK_ATTR_SB_SIZE                      = 0xc
2518
-	DEVLINK_ATTR_SB_INGRESS_POOL_COUNT        = 0xd
2519
-	DEVLINK_ATTR_SB_EGRESS_POOL_COUNT         = 0xe
2520
-	DEVLINK_ATTR_SB_INGRESS_TC_COUNT          = 0xf
2521
-	DEVLINK_ATTR_SB_EGRESS_TC_COUNT           = 0x10
2522
-	DEVLINK_ATTR_SB_POOL_INDEX                = 0x11
2523
-	DEVLINK_ATTR_SB_POOL_TYPE                 = 0x12
2524
-	DEVLINK_ATTR_SB_POOL_SIZE                 = 0x13
2525
-	DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE       = 0x14
2526
-	DEVLINK_ATTR_SB_THRESHOLD                 = 0x15
2527
-	DEVLINK_ATTR_SB_TC_INDEX                  = 0x16
2528
-	DEVLINK_ATTR_SB_OCC_CUR                   = 0x17
2529
-	DEVLINK_ATTR_SB_OCC_MAX                   = 0x18
2530
-	DEVLINK_ATTR_ESWITCH_MODE                 = 0x19
2531
-	DEVLINK_ATTR_ESWITCH_INLINE_MODE          = 0x1a
2532
-	DEVLINK_ATTR_DPIPE_TABLES                 = 0x1b
2533
-	DEVLINK_ATTR_DPIPE_TABLE                  = 0x1c
2534
-	DEVLINK_ATTR_DPIPE_TABLE_NAME             = 0x1d
2535
-	DEVLINK_ATTR_DPIPE_TABLE_SIZE             = 0x1e
2536
-	DEVLINK_ATTR_DPIPE_TABLE_MATCHES          = 0x1f
2537
-	DEVLINK_ATTR_DPIPE_TABLE_ACTIONS          = 0x20
2538
-	DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
2539
-	DEVLINK_ATTR_DPIPE_ENTRIES                = 0x22
2540
-	DEVLINK_ATTR_DPIPE_ENTRY                  = 0x23
2541
-	DEVLINK_ATTR_DPIPE_ENTRY_INDEX            = 0x24
2542
-	DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES     = 0x25
2543
-	DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES    = 0x26
2544
-	DEVLINK_ATTR_DPIPE_ENTRY_COUNTER          = 0x27
2545
-	DEVLINK_ATTR_DPIPE_MATCH                  = 0x28
2546
-	DEVLINK_ATTR_DPIPE_MATCH_VALUE            = 0x29
2547
-	DEVLINK_ATTR_DPIPE_MATCH_TYPE             = 0x2a
2548
-	DEVLINK_ATTR_DPIPE_ACTION                 = 0x2b
2549
-	DEVLINK_ATTR_DPIPE_ACTION_VALUE           = 0x2c
2550
-	DEVLINK_ATTR_DPIPE_ACTION_TYPE            = 0x2d
2551
-	DEVLINK_ATTR_DPIPE_VALUE                  = 0x2e
2552
-	DEVLINK_ATTR_DPIPE_VALUE_MASK             = 0x2f
2553
-	DEVLINK_ATTR_DPIPE_VALUE_MAPPING          = 0x30
2554
-	DEVLINK_ATTR_DPIPE_HEADERS                = 0x31
2555
-	DEVLINK_ATTR_DPIPE_HEADER                 = 0x32
2556
-	DEVLINK_ATTR_DPIPE_HEADER_NAME            = 0x33
2557
-	DEVLINK_ATTR_DPIPE_HEADER_ID              = 0x34
2558
-	DEVLINK_ATTR_DPIPE_HEADER_FIELDS          = 0x35
2559
-	DEVLINK_ATTR_DPIPE_HEADER_GLOBAL          = 0x36
2560
-	DEVLINK_ATTR_DPIPE_HEADER_INDEX           = 0x37
2561
-	DEVLINK_ATTR_DPIPE_FIELD                  = 0x38
2562
-	DEVLINK_ATTR_DPIPE_FIELD_NAME             = 0x39
2563
-	DEVLINK_ATTR_DPIPE_FIELD_ID               = 0x3a
2564
-	DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH         = 0x3b
2565
-	DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE     = 0x3c
2566
-	DEVLINK_ATTR_PAD                          = 0x3d
2567
-	DEVLINK_ATTR_ESWITCH_ENCAP_MODE           = 0x3e
2568
-	DEVLINK_ATTR_MAX                          = 0x94
2569
-	DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE     = 0x0
2570
-	DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX  = 0x1
2571
-	DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT      = 0x0
2572
-	DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY    = 0x0
2573
-	DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC      = 0x0
2574
-	DEVLINK_DPIPE_FIELD_IPV4_DST_IP           = 0x0
2575
-	DEVLINK_DPIPE_FIELD_IPV6_DST_IP           = 0x0
2576
-	DEVLINK_DPIPE_HEADER_ETHERNET             = 0x0
2577
-	DEVLINK_DPIPE_HEADER_IPV4                 = 0x1
2578
-	DEVLINK_DPIPE_HEADER_IPV6                 = 0x2
2453
+	DEVLINK_CMD_UNSPEC                                 = 0x0
2454
+	DEVLINK_CMD_GET                                    = 0x1
2455
+	DEVLINK_CMD_SET                                    = 0x2
2456
+	DEVLINK_CMD_NEW                                    = 0x3
2457
+	DEVLINK_CMD_DEL                                    = 0x4
2458
+	DEVLINK_CMD_PORT_GET                               = 0x5
2459
+	DEVLINK_CMD_PORT_SET                               = 0x6
2460
+	DEVLINK_CMD_PORT_NEW                               = 0x7
2461
+	DEVLINK_CMD_PORT_DEL                               = 0x8
2462
+	DEVLINK_CMD_PORT_SPLIT                             = 0x9
2463
+	DEVLINK_CMD_PORT_UNSPLIT                           = 0xa
2464
+	DEVLINK_CMD_SB_GET                                 = 0xb
2465
+	DEVLINK_CMD_SB_SET                                 = 0xc
2466
+	DEVLINK_CMD_SB_NEW                                 = 0xd
2467
+	DEVLINK_CMD_SB_DEL                                 = 0xe
2468
+	DEVLINK_CMD_SB_POOL_GET                            = 0xf
2469
+	DEVLINK_CMD_SB_POOL_SET                            = 0x10
2470
+	DEVLINK_CMD_SB_POOL_NEW                            = 0x11
2471
+	DEVLINK_CMD_SB_POOL_DEL                            = 0x12
2472
+	DEVLINK_CMD_SB_PORT_POOL_GET                       = 0x13
2473
+	DEVLINK_CMD_SB_PORT_POOL_SET                       = 0x14
2474
+	DEVLINK_CMD_SB_PORT_POOL_NEW                       = 0x15
2475
+	DEVLINK_CMD_SB_PORT_POOL_DEL                       = 0x16
2476
+	DEVLINK_CMD_SB_TC_POOL_BIND_GET                    = 0x17
2477
+	DEVLINK_CMD_SB_TC_POOL_BIND_SET                    = 0x18
2478
+	DEVLINK_CMD_SB_TC_POOL_BIND_NEW                    = 0x19
2479
+	DEVLINK_CMD_SB_TC_POOL_BIND_DEL                    = 0x1a
2480
+	DEVLINK_CMD_SB_OCC_SNAPSHOT                        = 0x1b
2481
+	DEVLINK_CMD_SB_OCC_MAX_CLEAR                       = 0x1c
2482
+	DEVLINK_CMD_ESWITCH_GET                            = 0x1d
2483
+	DEVLINK_CMD_ESWITCH_SET                            = 0x1e
2484
+	DEVLINK_CMD_DPIPE_TABLE_GET                        = 0x1f
2485
+	DEVLINK_CMD_DPIPE_ENTRIES_GET                      = 0x20
2486
+	DEVLINK_CMD_DPIPE_HEADERS_GET                      = 0x21
2487
+	DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET               = 0x22
2488
+	DEVLINK_CMD_RESOURCE_SET                           = 0x23
2489
+	DEVLINK_CMD_RESOURCE_DUMP                          = 0x24
2490
+	DEVLINK_CMD_RELOAD                                 = 0x25
2491
+	DEVLINK_CMD_PARAM_GET                              = 0x26
2492
+	DEVLINK_CMD_PARAM_SET                              = 0x27
2493
+	DEVLINK_CMD_PARAM_NEW                              = 0x28
2494
+	DEVLINK_CMD_PARAM_DEL                              = 0x29
2495
+	DEVLINK_CMD_REGION_GET                             = 0x2a
2496
+	DEVLINK_CMD_REGION_SET                             = 0x2b
2497
+	DEVLINK_CMD_REGION_NEW                             = 0x2c
2498
+	DEVLINK_CMD_REGION_DEL                             = 0x2d
2499
+	DEVLINK_CMD_REGION_READ                            = 0x2e
2500
+	DEVLINK_CMD_PORT_PARAM_GET                         = 0x2f
2501
+	DEVLINK_CMD_PORT_PARAM_SET                         = 0x30
2502
+	DEVLINK_CMD_PORT_PARAM_NEW                         = 0x31
2503
+	DEVLINK_CMD_PORT_PARAM_DEL                         = 0x32
2504
+	DEVLINK_CMD_INFO_GET                               = 0x33
2505
+	DEVLINK_CMD_HEALTH_REPORTER_GET                    = 0x34
2506
+	DEVLINK_CMD_HEALTH_REPORTER_SET                    = 0x35
2507
+	DEVLINK_CMD_HEALTH_REPORTER_RECOVER                = 0x36
2508
+	DEVLINK_CMD_HEALTH_REPORTER_DIAGNOSE               = 0x37
2509
+	DEVLINK_CMD_HEALTH_REPORTER_DUMP_GET               = 0x38
2510
+	DEVLINK_CMD_HEALTH_REPORTER_DUMP_CLEAR             = 0x39
2511
+	DEVLINK_CMD_FLASH_UPDATE                           = 0x3a
2512
+	DEVLINK_CMD_FLASH_UPDATE_END                       = 0x3b
2513
+	DEVLINK_CMD_FLASH_UPDATE_STATUS                    = 0x3c
2514
+	DEVLINK_CMD_TRAP_GET                               = 0x3d
2515
+	DEVLINK_CMD_TRAP_SET                               = 0x3e
2516
+	DEVLINK_CMD_TRAP_NEW                               = 0x3f
2517
+	DEVLINK_CMD_TRAP_DEL                               = 0x40
2518
+	DEVLINK_CMD_TRAP_GROUP_GET                         = 0x41
2519
+	DEVLINK_CMD_TRAP_GROUP_SET                         = 0x42
2520
+	DEVLINK_CMD_TRAP_GROUP_NEW                         = 0x43
2521
+	DEVLINK_CMD_TRAP_GROUP_DEL                         = 0x44
2522
+	DEVLINK_CMD_TRAP_POLICER_GET                       = 0x45
2523
+	DEVLINK_CMD_TRAP_POLICER_SET                       = 0x46
2524
+	DEVLINK_CMD_TRAP_POLICER_NEW                       = 0x47
2525
+	DEVLINK_CMD_TRAP_POLICER_DEL                       = 0x48
2526
+	DEVLINK_CMD_HEALTH_REPORTER_TEST                   = 0x49
2527
+	DEVLINK_CMD_MAX                                    = 0x49
2528
+	DEVLINK_PORT_TYPE_NOTSET                           = 0x0
2529
+	DEVLINK_PORT_TYPE_AUTO                             = 0x1
2530
+	DEVLINK_PORT_TYPE_ETH                              = 0x2
2531
+	DEVLINK_PORT_TYPE_IB                               = 0x3
2532
+	DEVLINK_SB_POOL_TYPE_INGRESS                       = 0x0
2533
+	DEVLINK_SB_POOL_TYPE_EGRESS                        = 0x1
2534
+	DEVLINK_SB_THRESHOLD_TYPE_STATIC                   = 0x0
2535
+	DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC                  = 0x1
2536
+	DEVLINK_ESWITCH_MODE_LEGACY                        = 0x0
2537
+	DEVLINK_ESWITCH_MODE_SWITCHDEV                     = 0x1
2538
+	DEVLINK_ESWITCH_INLINE_MODE_NONE                   = 0x0
2539
+	DEVLINK_ESWITCH_INLINE_MODE_LINK                   = 0x1
2540
+	DEVLINK_ESWITCH_INLINE_MODE_NETWORK                = 0x2
2541
+	DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT              = 0x3
2542
+	DEVLINK_ESWITCH_ENCAP_MODE_NONE                    = 0x0
2543
+	DEVLINK_ESWITCH_ENCAP_MODE_BASIC                   = 0x1
2544
+	DEVLINK_PORT_FLAVOUR_PHYSICAL                      = 0x0
2545
+	DEVLINK_PORT_FLAVOUR_CPU                           = 0x1
2546
+	DEVLINK_PORT_FLAVOUR_DSA                           = 0x2
2547
+	DEVLINK_PORT_FLAVOUR_PCI_PF                        = 0x3
2548
+	DEVLINK_PORT_FLAVOUR_PCI_VF                        = 0x4
2549
+	DEVLINK_PORT_FLAVOUR_VIRTUAL                       = 0x5
2550
+	DEVLINK_PORT_FLAVOUR_UNUSED                        = 0x6
2551
+	DEVLINK_PARAM_CMODE_RUNTIME                        = 0x0
2552
+	DEVLINK_PARAM_CMODE_DRIVERINIT                     = 0x1
2553
+	DEVLINK_PARAM_CMODE_PERMANENT                      = 0x2
2554
+	DEVLINK_PARAM_CMODE_MAX                            = 0x2
2555
+	DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DRIVER          = 0x0
2556
+	DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH           = 0x1
2557
+	DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DISK            = 0x2
2558
+	DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_UNKNOWN         = 0x3
2559
+	DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_UNKNOWN = 0x0
2560
+	DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_ALWAYS  = 0x1
2561
+	DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_NEVER   = 0x2
2562
+	DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_DISK    = 0x3
2563
+	DEVLINK_ATTR_STATS_RX_PACKETS                      = 0x0
2564
+	DEVLINK_ATTR_STATS_RX_BYTES                        = 0x1
2565
+	DEVLINK_ATTR_STATS_RX_DROPPED                      = 0x2
2566
+	DEVLINK_ATTR_STATS_MAX                             = 0x2
2567
+	DEVLINK_FLASH_OVERWRITE_SETTINGS_BIT               = 0x0
2568
+	DEVLINK_FLASH_OVERWRITE_IDENTIFIERS_BIT            = 0x1
2569
+	DEVLINK_FLASH_OVERWRITE_MAX_BIT                    = 0x1
2570
+	DEVLINK_TRAP_ACTION_DROP                           = 0x0
2571
+	DEVLINK_TRAP_ACTION_TRAP                           = 0x1
2572
+	DEVLINK_TRAP_ACTION_MIRROR                         = 0x2
2573
+	DEVLINK_TRAP_TYPE_DROP                             = 0x0
2574
+	DEVLINK_TRAP_TYPE_EXCEPTION                        = 0x1
2575
+	DEVLINK_TRAP_TYPE_CONTROL                          = 0x2
2576
+	DEVLINK_ATTR_TRAP_METADATA_TYPE_IN_PORT            = 0x0
2577
+	DEVLINK_ATTR_TRAP_METADATA_TYPE_FA_COOKIE          = 0x1
2578
+	DEVLINK_RELOAD_ACTION_UNSPEC                       = 0x0
2579
+	DEVLINK_RELOAD_ACTION_DRIVER_REINIT                = 0x1
2580
+	DEVLINK_RELOAD_ACTION_FW_ACTIVATE                  = 0x2
2581
+	DEVLINK_RELOAD_ACTION_MAX                          = 0x2
2582
+	DEVLINK_RELOAD_LIMIT_UNSPEC                        = 0x0
2583
+	DEVLINK_RELOAD_LIMIT_NO_RESET                      = 0x1
2584
+	DEVLINK_RELOAD_LIMIT_MAX                           = 0x1
2585
+	DEVLINK_ATTR_UNSPEC                                = 0x0
2586
+	DEVLINK_ATTR_BUS_NAME                              = 0x1
2587
+	DEVLINK_ATTR_DEV_NAME                              = 0x2
2588
+	DEVLINK_ATTR_PORT_INDEX                            = 0x3
2589
+	DEVLINK_ATTR_PORT_TYPE                             = 0x4
2590
+	DEVLINK_ATTR_PORT_DESIRED_TYPE                     = 0x5
2591
+	DEVLINK_ATTR_PORT_NETDEV_IFINDEX                   = 0x6
2592
+	DEVLINK_ATTR_PORT_NETDEV_NAME                      = 0x7
2593
+	DEVLINK_ATTR_PORT_IBDEV_NAME                       = 0x8
2594
+	DEVLINK_ATTR_PORT_SPLIT_COUNT                      = 0x9
2595
+	DEVLINK_ATTR_PORT_SPLIT_GROUP                      = 0xa
2596
+	DEVLINK_ATTR_SB_INDEX                              = 0xb
2597
+	DEVLINK_ATTR_SB_SIZE                               = 0xc
2598
+	DEVLINK_ATTR_SB_INGRESS_POOL_COUNT                 = 0xd
2599
+	DEVLINK_ATTR_SB_EGRESS_POOL_COUNT                  = 0xe
2600
+	DEVLINK_ATTR_SB_INGRESS_TC_COUNT                   = 0xf
2601
+	DEVLINK_ATTR_SB_EGRESS_TC_COUNT                    = 0x10
2602
+	DEVLINK_ATTR_SB_POOL_INDEX                         = 0x11
2603
+	DEVLINK_ATTR_SB_POOL_TYPE                          = 0x12
2604
+	DEVLINK_ATTR_SB_POOL_SIZE                          = 0x13
2605
+	DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE                = 0x14
2606
+	DEVLINK_ATTR_SB_THRESHOLD                          = 0x15
2607
+	DEVLINK_ATTR_SB_TC_INDEX                           = 0x16
2608
+	DEVLINK_ATTR_SB_OCC_CUR                            = 0x17
2609
+	DEVLINK_ATTR_SB_OCC_MAX                            = 0x18
2610
+	DEVLINK_ATTR_ESWITCH_MODE                          = 0x19
2611
+	DEVLINK_ATTR_ESWITCH_INLINE_MODE                   = 0x1a
2612
+	DEVLINK_ATTR_DPIPE_TABLES                          = 0x1b
2613
+	DEVLINK_ATTR_DPIPE_TABLE                           = 0x1c
2614
+	DEVLINK_ATTR_DPIPE_TABLE_NAME                      = 0x1d
2615
+	DEVLINK_ATTR_DPIPE_TABLE_SIZE                      = 0x1e
2616
+	DEVLINK_ATTR_DPIPE_TABLE_MATCHES                   = 0x1f
2617
+	DEVLINK_ATTR_DPIPE_TABLE_ACTIONS                   = 0x20
2618
+	DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED          = 0x21
2619
+	DEVLINK_ATTR_DPIPE_ENTRIES                         = 0x22
2620
+	DEVLINK_ATTR_DPIPE_ENTRY                           = 0x23
2621
+	DEVLINK_ATTR_DPIPE_ENTRY_INDEX                     = 0x24
2622
+	DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES              = 0x25
2623
+	DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES             = 0x26
2624
+	DEVLINK_ATTR_DPIPE_ENTRY_COUNTER                   = 0x27
2625
+	DEVLINK_ATTR_DPIPE_MATCH                           = 0x28
2626
+	DEVLINK_ATTR_DPIPE_MATCH_VALUE                     = 0x29
2627
+	DEVLINK_ATTR_DPIPE_MATCH_TYPE                      = 0x2a
2628
+	DEVLINK_ATTR_DPIPE_ACTION                          = 0x2b
2629
+	DEVLINK_ATTR_DPIPE_ACTION_VALUE                    = 0x2c
2630
+	DEVLINK_ATTR_DPIPE_ACTION_TYPE                     = 0x2d
2631
+	DEVLINK_ATTR_DPIPE_VALUE                           = 0x2e
2632
+	DEVLINK_ATTR_DPIPE_VALUE_MASK                      = 0x2f
2633
+	DEVLINK_ATTR_DPIPE_VALUE_MAPPING                   = 0x30
2634
+	DEVLINK_ATTR_DPIPE_HEADERS                         = 0x31
2635
+	DEVLINK_ATTR_DPIPE_HEADER                          = 0x32
2636
+	DEVLINK_ATTR_DPIPE_HEADER_NAME                     = 0x33
2637
+	DEVLINK_ATTR_DPIPE_HEADER_ID                       = 0x34
2638
+	DEVLINK_ATTR_DPIPE_HEADER_FIELDS                   = 0x35
2639
+	DEVLINK_ATTR_DPIPE_HEADER_GLOBAL                   = 0x36
2640
+	DEVLINK_ATTR_DPIPE_HEADER_INDEX                    = 0x37
2641
+	DEVLINK_ATTR_DPIPE_FIELD                           = 0x38
2642
+	DEVLINK_ATTR_DPIPE_FIELD_NAME                      = 0x39
2643
+	DEVLINK_ATTR_DPIPE_FIELD_ID                        = 0x3a
2644
+	DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH                  = 0x3b
2645
+	DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE              = 0x3c
2646
+	DEVLINK_ATTR_PAD                                   = 0x3d
2647
+	DEVLINK_ATTR_ESWITCH_ENCAP_MODE                    = 0x3e
2648
+	DEVLINK_ATTR_RESOURCE_LIST                         = 0x3f
2649
+	DEVLINK_ATTR_RESOURCE                              = 0x40
2650
+	DEVLINK_ATTR_RESOURCE_NAME                         = 0x41
2651
+	DEVLINK_ATTR_RESOURCE_ID                           = 0x42
2652
+	DEVLINK_ATTR_RESOURCE_SIZE                         = 0x43
2653
+	DEVLINK_ATTR_RESOURCE_SIZE_NEW                     = 0x44
2654
+	DEVLINK_ATTR_RESOURCE_SIZE_VALID                   = 0x45
2655
+	DEVLINK_ATTR_RESOURCE_SIZE_MIN                     = 0x46
2656
+	DEVLINK_ATTR_RESOURCE_SIZE_MAX                     = 0x47
2657
+	DEVLINK_ATTR_RESOURCE_SIZE_GRAN                    = 0x48
2658
+	DEVLINK_ATTR_RESOURCE_UNIT                         = 0x49
2659
+	DEVLINK_ATTR_RESOURCE_OCC                          = 0x4a
2660
+	DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_ID               = 0x4b
2661
+	DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_UNITS            = 0x4c
2662
+	DEVLINK_ATTR_PORT_FLAVOUR                          = 0x4d
2663
+	DEVLINK_ATTR_PORT_NUMBER                           = 0x4e
2664
+	DEVLINK_ATTR_PORT_SPLIT_SUBPORT_NUMBER             = 0x4f
2665
+	DEVLINK_ATTR_PARAM                                 = 0x50
2666
+	DEVLINK_ATTR_PARAM_NAME                            = 0x51
2667
+	DEVLINK_ATTR_PARAM_GENERIC                         = 0x52
2668
+	DEVLINK_ATTR_PARAM_TYPE                            = 0x53
2669
+	DEVLINK_ATTR_PARAM_VALUES_LIST                     = 0x54
2670
+	DEVLINK_ATTR_PARAM_VALUE                           = 0x55
2671
+	DEVLINK_ATTR_PARAM_VALUE_DATA                      = 0x56
2672
+	DEVLINK_ATTR_PARAM_VALUE_CMODE                     = 0x57
2673
+	DEVLINK_ATTR_REGION_NAME                           = 0x58
2674
+	DEVLINK_ATTR_REGION_SIZE                           = 0x59
2675
+	DEVLINK_ATTR_REGION_SNAPSHOTS                      = 0x5a
2676
+	DEVLINK_ATTR_REGION_SNAPSHOT                       = 0x5b
2677
+	DEVLINK_ATTR_REGION_SNAPSHOT_ID                    = 0x5c
2678
+	DEVLINK_ATTR_REGION_CHUNKS                         = 0x5d
2679
+	DEVLINK_ATTR_REGION_CHUNK                          = 0x5e
2680
+	DEVLINK_ATTR_REGION_CHUNK_DATA                     = 0x5f
2681
+	DEVLINK_ATTR_REGION_CHUNK_ADDR                     = 0x60
2682
+	DEVLINK_ATTR_REGION_CHUNK_LEN                      = 0x61
2683
+	DEVLINK_ATTR_INFO_DRIVER_NAME                      = 0x62
2684
+	DEVLINK_ATTR_INFO_SERIAL_NUMBER                    = 0x63
2685
+	DEVLINK_ATTR_INFO_VERSION_FIXED                    = 0x64
2686
+	DEVLINK_ATTR_INFO_VERSION_RUNNING                  = 0x65
2687
+	DEVLINK_ATTR_INFO_VERSION_STORED                   = 0x66
2688
+	DEVLINK_ATTR_INFO_VERSION_NAME                     = 0x67
2689
+	DEVLINK_ATTR_INFO_VERSION_VALUE                    = 0x68
2690
+	DEVLINK_ATTR_SB_POOL_CELL_SIZE                     = 0x69
2691
+	DEVLINK_ATTR_FMSG                                  = 0x6a
2692
+	DEVLINK_ATTR_FMSG_OBJ_NEST_START                   = 0x6b
2693
+	DEVLINK_ATTR_FMSG_PAIR_NEST_START                  = 0x6c
2694
+	DEVLINK_ATTR_FMSG_ARR_NEST_START                   = 0x6d
2695
+	DEVLINK_ATTR_FMSG_NEST_END                         = 0x6e
2696
+	DEVLINK_ATTR_FMSG_OBJ_NAME                         = 0x6f
2697
+	DEVLINK_ATTR_FMSG_OBJ_VALUE_TYPE                   = 0x70
2698
+	DEVLINK_ATTR_FMSG_OBJ_VALUE_DATA                   = 0x71
2699
+	DEVLINK_ATTR_HEALTH_REPORTER                       = 0x72
2700
+	DEVLINK_ATTR_HEALTH_REPORTER_NAME                  = 0x73
2701
+	DEVLINK_ATTR_HEALTH_REPORTER_STATE                 = 0x74
2702
+	DEVLINK_ATTR_HEALTH_REPORTER_ERR_COUNT             = 0x75
2703
+	DEVLINK_ATTR_HEALTH_REPORTER_RECOVER_COUNT         = 0x76
2704
+	DEVLINK_ATTR_HEALTH_REPORTER_DUMP_TS               = 0x77
2705
+	DEVLINK_ATTR_HEALTH_REPORTER_GRACEFUL_PERIOD       = 0x78
2706
+	DEVLINK_ATTR_HEALTH_REPORTER_AUTO_RECOVER          = 0x79
2707
+	DEVLINK_ATTR_FLASH_UPDATE_FILE_NAME                = 0x7a
2708
+	DEVLINK_ATTR_FLASH_UPDATE_COMPONENT                = 0x7b
2709
+	DEVLINK_ATTR_FLASH_UPDATE_STATUS_MSG               = 0x7c
2710
+	DEVLINK_ATTR_FLASH_UPDATE_STATUS_DONE              = 0x7d
2711
+	DEVLINK_ATTR_FLASH_UPDATE_STATUS_TOTAL             = 0x7e
2712
+	DEVLINK_ATTR_PORT_PCI_PF_NUMBER                    = 0x7f
2713
+	DEVLINK_ATTR_PORT_PCI_VF_NUMBER                    = 0x80
2714
+	DEVLINK_ATTR_STATS                                 = 0x81
2715
+	DEVLINK_ATTR_TRAP_NAME                             = 0x82
2716
+	DEVLINK_ATTR_TRAP_ACTION                           = 0x83
2717
+	DEVLINK_ATTR_TRAP_TYPE                             = 0x84
2718
+	DEVLINK_ATTR_TRAP_GENERIC                          = 0x85
2719
+	DEVLINK_ATTR_TRAP_METADATA                         = 0x86
2720
+	DEVLINK_ATTR_TRAP_GROUP_NAME                       = 0x87
2721
+	DEVLINK_ATTR_RELOAD_FAILED                         = 0x88
2722
+	DEVLINK_ATTR_HEALTH_REPORTER_DUMP_TS_NS            = 0x89
2723
+	DEVLINK_ATTR_NETNS_FD                              = 0x8a
2724
+	DEVLINK_ATTR_NETNS_PID                             = 0x8b
2725
+	DEVLINK_ATTR_NETNS_ID                              = 0x8c
2726
+	DEVLINK_ATTR_HEALTH_REPORTER_AUTO_DUMP             = 0x8d
2727
+	DEVLINK_ATTR_TRAP_POLICER_ID                       = 0x8e
2728
+	DEVLINK_ATTR_TRAP_POLICER_RATE                     = 0x8f
2729
+	DEVLINK_ATTR_TRAP_POLICER_BURST                    = 0x90
2730
+	DEVLINK_ATTR_PORT_FUNCTION                         = 0x91
2731
+	DEVLINK_ATTR_INFO_BOARD_SERIAL_NUMBER              = 0x92
2732
+	DEVLINK_ATTR_PORT_LANES                            = 0x93
2733
+	DEVLINK_ATTR_PORT_SPLITTABLE                       = 0x94
2734
+	DEVLINK_ATTR_PORT_EXTERNAL                         = 0x95
2735
+	DEVLINK_ATTR_PORT_CONTROLLER_NUMBER                = 0x96
2736
+	DEVLINK_ATTR_FLASH_UPDATE_STATUS_TIMEOUT           = 0x97
2737
+	DEVLINK_ATTR_FLASH_UPDATE_OVERWRITE_MASK           = 0x98
2738
+	DEVLINK_ATTR_RELOAD_ACTION                         = 0x99
2739
+	DEVLINK_ATTR_RELOAD_ACTIONS_PERFORMED              = 0x9a
2740
+	DEVLINK_ATTR_RELOAD_LIMITS                         = 0x9b
2741
+	DEVLINK_ATTR_DEV_STATS                             = 0x9c
2742
+	DEVLINK_ATTR_RELOAD_STATS                          = 0x9d
2743
+	DEVLINK_ATTR_RELOAD_STATS_ENTRY                    = 0x9e
2744
+	DEVLINK_ATTR_RELOAD_STATS_LIMIT                    = 0x9f
2745
+	DEVLINK_ATTR_RELOAD_STATS_VALUE                    = 0xa0
2746
+	DEVLINK_ATTR_REMOTE_RELOAD_STATS                   = 0xa1
2747
+	DEVLINK_ATTR_RELOAD_ACTION_INFO                    = 0xa2
2748
+	DEVLINK_ATTR_RELOAD_ACTION_STATS                   = 0xa3
2749
+	DEVLINK_ATTR_MAX                                   = 0xa3
2750
+	DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE              = 0x0
2751
+	DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX           = 0x1
2752
+	DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT               = 0x0
2753
+	DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY             = 0x0
2754
+	DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC               = 0x0
2755
+	DEVLINK_DPIPE_FIELD_IPV4_DST_IP                    = 0x0
2756
+	DEVLINK_DPIPE_FIELD_IPV6_DST_IP                    = 0x0
2757
+	DEVLINK_DPIPE_HEADER_ETHERNET                      = 0x0
2758
+	DEVLINK_DPIPE_HEADER_IPV4                          = 0x1
2759
+	DEVLINK_DPIPE_HEADER_IPV6                          = 0x2
2760
+	DEVLINK_RESOURCE_UNIT_ENTRY                        = 0x0
2761
+	DEVLINK_PORT_FUNCTION_ATTR_UNSPEC                  = 0x0
2762
+	DEVLINK_PORT_FUNCTION_ATTR_HW_ADDR                 = 0x1
2763
+	DEVLINK_PORT_FUNCTION_ATTR_MAX                     = 0x1
2579 2764
 )
2580 2765
 
2581 2766
 type FsverityDigest struct {
... ...
@@ -2638,3 +3186,497 @@ type WatchdogInfo struct {
2638 2638
 	Version  uint32
2639 2639
 	Identity [32]uint8
2640 2640
 }
2641
+
2642
+type PPSFData struct {
2643
+	Info    PPSKInfo
2644
+	Timeout PPSKTime
2645
+}
2646
+
2647
+type PPSKParams struct {
2648
+	Api_version   int32
2649
+	Mode          int32
2650
+	Assert_off_tu PPSKTime
2651
+	Clear_off_tu  PPSKTime
2652
+}
2653
+
2654
+type PPSKTime struct {
2655
+	Sec   int64
2656
+	Nsec  int32
2657
+	Flags uint32
2658
+}
2659
+
2660
+const (
2661
+	LWTUNNEL_ENCAP_NONE       = 0x0
2662
+	LWTUNNEL_ENCAP_MPLS       = 0x1
2663
+	LWTUNNEL_ENCAP_IP         = 0x2
2664
+	LWTUNNEL_ENCAP_ILA        = 0x3
2665
+	LWTUNNEL_ENCAP_IP6        = 0x4
2666
+	LWTUNNEL_ENCAP_SEG6       = 0x5
2667
+	LWTUNNEL_ENCAP_BPF        = 0x6
2668
+	LWTUNNEL_ENCAP_SEG6_LOCAL = 0x7
2669
+	LWTUNNEL_ENCAP_RPL        = 0x8
2670
+	LWTUNNEL_ENCAP_MAX        = 0x8
2671
+
2672
+	MPLS_IPTUNNEL_UNSPEC = 0x0
2673
+	MPLS_IPTUNNEL_DST    = 0x1
2674
+	MPLS_IPTUNNEL_TTL    = 0x2
2675
+	MPLS_IPTUNNEL_MAX    = 0x2
2676
+)
2677
+
2678
+const (
2679
+	ETHTOOL_ID_UNSPEC                                                       = 0x0
2680
+	ETHTOOL_RX_COPYBREAK                                                    = 0x1
2681
+	ETHTOOL_TX_COPYBREAK                                                    = 0x2
2682
+	ETHTOOL_PFC_PREVENTION_TOUT                                             = 0x3
2683
+	ETHTOOL_TUNABLE_UNSPEC                                                  = 0x0
2684
+	ETHTOOL_TUNABLE_U8                                                      = 0x1
2685
+	ETHTOOL_TUNABLE_U16                                                     = 0x2
2686
+	ETHTOOL_TUNABLE_U32                                                     = 0x3
2687
+	ETHTOOL_TUNABLE_U64                                                     = 0x4
2688
+	ETHTOOL_TUNABLE_STRING                                                  = 0x5
2689
+	ETHTOOL_TUNABLE_S8                                                      = 0x6
2690
+	ETHTOOL_TUNABLE_S16                                                     = 0x7
2691
+	ETHTOOL_TUNABLE_S32                                                     = 0x8
2692
+	ETHTOOL_TUNABLE_S64                                                     = 0x9
2693
+	ETHTOOL_PHY_ID_UNSPEC                                                   = 0x0
2694
+	ETHTOOL_PHY_DOWNSHIFT                                                   = 0x1
2695
+	ETHTOOL_PHY_FAST_LINK_DOWN                                              = 0x2
2696
+	ETHTOOL_PHY_EDPD                                                        = 0x3
2697
+	ETHTOOL_LINK_EXT_STATE_AUTONEG                                          = 0x0
2698
+	ETHTOOL_LINK_EXT_STATE_LINK_TRAINING_FAILURE                            = 0x1
2699
+	ETHTOOL_LINK_EXT_STATE_LINK_LOGICAL_MISMATCH                            = 0x2
2700
+	ETHTOOL_LINK_EXT_STATE_BAD_SIGNAL_INTEGRITY                             = 0x3
2701
+	ETHTOOL_LINK_EXT_STATE_NO_CABLE                                         = 0x4
2702
+	ETHTOOL_LINK_EXT_STATE_CABLE_ISSUE                                      = 0x5
2703
+	ETHTOOL_LINK_EXT_STATE_EEPROM_ISSUE                                     = 0x6
2704
+	ETHTOOL_LINK_EXT_STATE_CALIBRATION_FAILURE                              = 0x7
2705
+	ETHTOOL_LINK_EXT_STATE_POWER_BUDGET_EXCEEDED                            = 0x8
2706
+	ETHTOOL_LINK_EXT_STATE_OVERHEAT                                         = 0x9
2707
+	ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_PARTNER_DETECTED                        = 0x1
2708
+	ETHTOOL_LINK_EXT_SUBSTATE_AN_ACK_NOT_RECEIVED                           = 0x2
2709
+	ETHTOOL_LINK_EXT_SUBSTATE_AN_NEXT_PAGE_EXCHANGE_FAILED                  = 0x3
2710
+	ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_PARTNER_DETECTED_FORCE_MODE             = 0x4
2711
+	ETHTOOL_LINK_EXT_SUBSTATE_AN_FEC_MISMATCH_DURING_OVERRIDE               = 0x5
2712
+	ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_HCD                                     = 0x6
2713
+	ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_FRAME_LOCK_NOT_ACQUIRED                 = 0x1
2714
+	ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_LINK_INHIBIT_TIMEOUT                    = 0x2
2715
+	ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_LINK_PARTNER_DID_NOT_SET_RECEIVER_READY = 0x3
2716
+	ETHTOOL_LINK_EXT_SUBSTATE_LT_REMOTE_FAULT                               = 0x4
2717
+	ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_ACQUIRE_BLOCK_LOCK            = 0x1
2718
+	ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_ACQUIRE_AM_LOCK               = 0x2
2719
+	ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_GET_ALIGN_STATUS              = 0x3
2720
+	ETHTOOL_LINK_EXT_SUBSTATE_LLM_FC_FEC_IS_NOT_LOCKED                      = 0x4
2721
+	ETHTOOL_LINK_EXT_SUBSTATE_LLM_RS_FEC_IS_NOT_LOCKED                      = 0x5
2722
+	ETHTOOL_LINK_EXT_SUBSTATE_BSI_LARGE_NUMBER_OF_PHYSICAL_ERRORS           = 0x1
2723
+	ETHTOOL_LINK_EXT_SUBSTATE_BSI_UNSUPPORTED_RATE                          = 0x2
2724
+	ETHTOOL_LINK_EXT_SUBSTATE_CI_UNSUPPORTED_CABLE                          = 0x1
2725
+	ETHTOOL_LINK_EXT_SUBSTATE_CI_CABLE_TEST_FAILURE                         = 0x2
2726
+	ETHTOOL_FLASH_ALL_REGIONS                                               = 0x0
2727
+	ETHTOOL_F_UNSUPPORTED__BIT                                              = 0x0
2728
+	ETHTOOL_F_WISH__BIT                                                     = 0x1
2729
+	ETHTOOL_F_COMPAT__BIT                                                   = 0x2
2730
+	ETHTOOL_FEC_NONE_BIT                                                    = 0x0
2731
+	ETHTOOL_FEC_AUTO_BIT                                                    = 0x1
2732
+	ETHTOOL_FEC_OFF_BIT                                                     = 0x2
2733
+	ETHTOOL_FEC_RS_BIT                                                      = 0x3
2734
+	ETHTOOL_FEC_BASER_BIT                                                   = 0x4
2735
+	ETHTOOL_FEC_LLRS_BIT                                                    = 0x5
2736
+	ETHTOOL_LINK_MODE_10baseT_Half_BIT                                      = 0x0
2737
+	ETHTOOL_LINK_MODE_10baseT_Full_BIT                                      = 0x1
2738
+	ETHTOOL_LINK_MODE_100baseT_Half_BIT                                     = 0x2
2739
+	ETHTOOL_LINK_MODE_100baseT_Full_BIT                                     = 0x3
2740
+	ETHTOOL_LINK_MODE_1000baseT_Half_BIT                                    = 0x4
2741
+	ETHTOOL_LINK_MODE_1000baseT_Full_BIT                                    = 0x5
2742
+	ETHTOOL_LINK_MODE_Autoneg_BIT                                           = 0x6
2743
+	ETHTOOL_LINK_MODE_TP_BIT                                                = 0x7
2744
+	ETHTOOL_LINK_MODE_AUI_BIT                                               = 0x8
2745
+	ETHTOOL_LINK_MODE_MII_BIT                                               = 0x9
2746
+	ETHTOOL_LINK_MODE_FIBRE_BIT                                             = 0xa
2747
+	ETHTOOL_LINK_MODE_BNC_BIT                                               = 0xb
2748
+	ETHTOOL_LINK_MODE_10000baseT_Full_BIT                                   = 0xc
2749
+	ETHTOOL_LINK_MODE_Pause_BIT                                             = 0xd
2750
+	ETHTOOL_LINK_MODE_Asym_Pause_BIT                                        = 0xe
2751
+	ETHTOOL_LINK_MODE_2500baseX_Full_BIT                                    = 0xf
2752
+	ETHTOOL_LINK_MODE_Backplane_BIT                                         = 0x10
2753
+	ETHTOOL_LINK_MODE_1000baseKX_Full_BIT                                   = 0x11
2754
+	ETHTOOL_LINK_MODE_10000baseKX4_Full_BIT                                 = 0x12
2755
+	ETHTOOL_LINK_MODE_10000baseKR_Full_BIT                                  = 0x13
2756
+	ETHTOOL_LINK_MODE_10000baseR_FEC_BIT                                    = 0x14
2757
+	ETHTOOL_LINK_MODE_20000baseMLD2_Full_BIT                                = 0x15
2758
+	ETHTOOL_LINK_MODE_20000baseKR2_Full_BIT                                 = 0x16
2759
+	ETHTOOL_LINK_MODE_40000baseKR4_Full_BIT                                 = 0x17
2760
+	ETHTOOL_LINK_MODE_40000baseCR4_Full_BIT                                 = 0x18
2761
+	ETHTOOL_LINK_MODE_40000baseSR4_Full_BIT                                 = 0x19
2762
+	ETHTOOL_LINK_MODE_40000baseLR4_Full_BIT                                 = 0x1a
2763
+	ETHTOOL_LINK_MODE_56000baseKR4_Full_BIT                                 = 0x1b
2764
+	ETHTOOL_LINK_MODE_56000baseCR4_Full_BIT                                 = 0x1c
2765
+	ETHTOOL_LINK_MODE_56000baseSR4_Full_BIT                                 = 0x1d
2766
+	ETHTOOL_LINK_MODE_56000baseLR4_Full_BIT                                 = 0x1e
2767
+	ETHTOOL_LINK_MODE_25000baseCR_Full_BIT                                  = 0x1f
2768
+	ETHTOOL_LINK_MODE_25000baseKR_Full_BIT                                  = 0x20
2769
+	ETHTOOL_LINK_MODE_25000baseSR_Full_BIT                                  = 0x21
2770
+	ETHTOOL_LINK_MODE_50000baseCR2_Full_BIT                                 = 0x22
2771
+	ETHTOOL_LINK_MODE_50000baseKR2_Full_BIT                                 = 0x23
2772
+	ETHTOOL_LINK_MODE_100000baseKR4_Full_BIT                                = 0x24
2773
+	ETHTOOL_LINK_MODE_100000baseSR4_Full_BIT                                = 0x25
2774
+	ETHTOOL_LINK_MODE_100000baseCR4_Full_BIT                                = 0x26
2775
+	ETHTOOL_LINK_MODE_100000baseLR4_ER4_Full_BIT                            = 0x27
2776
+	ETHTOOL_LINK_MODE_50000baseSR2_Full_BIT                                 = 0x28
2777
+	ETHTOOL_LINK_MODE_1000baseX_Full_BIT                                    = 0x29
2778
+	ETHTOOL_LINK_MODE_10000baseCR_Full_BIT                                  = 0x2a
2779
+	ETHTOOL_LINK_MODE_10000baseSR_Full_BIT                                  = 0x2b
2780
+	ETHTOOL_LINK_MODE_10000baseLR_Full_BIT                                  = 0x2c
2781
+	ETHTOOL_LINK_MODE_10000baseLRM_Full_BIT                                 = 0x2d
2782
+	ETHTOOL_LINK_MODE_10000baseER_Full_BIT                                  = 0x2e
2783
+	ETHTOOL_LINK_MODE_2500baseT_Full_BIT                                    = 0x2f
2784
+	ETHTOOL_LINK_MODE_5000baseT_Full_BIT                                    = 0x30
2785
+	ETHTOOL_LINK_MODE_FEC_NONE_BIT                                          = 0x31
2786
+	ETHTOOL_LINK_MODE_FEC_RS_BIT                                            = 0x32
2787
+	ETHTOOL_LINK_MODE_FEC_BASER_BIT                                         = 0x33
2788
+	ETHTOOL_LINK_MODE_50000baseKR_Full_BIT                                  = 0x34
2789
+	ETHTOOL_LINK_MODE_50000baseSR_Full_BIT                                  = 0x35
2790
+	ETHTOOL_LINK_MODE_50000baseCR_Full_BIT                                  = 0x36
2791
+	ETHTOOL_LINK_MODE_50000baseLR_ER_FR_Full_BIT                            = 0x37
2792
+	ETHTOOL_LINK_MODE_50000baseDR_Full_BIT                                  = 0x38
2793
+	ETHTOOL_LINK_MODE_100000baseKR2_Full_BIT                                = 0x39
2794
+	ETHTOOL_LINK_MODE_100000baseSR2_Full_BIT                                = 0x3a
2795
+	ETHTOOL_LINK_MODE_100000baseCR2_Full_BIT                                = 0x3b
2796
+	ETHTOOL_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT                        = 0x3c
2797
+	ETHTOOL_LINK_MODE_100000baseDR2_Full_BIT                                = 0x3d
2798
+	ETHTOOL_LINK_MODE_200000baseKR4_Full_BIT                                = 0x3e
2799
+	ETHTOOL_LINK_MODE_200000baseSR4_Full_BIT                                = 0x3f
2800
+	ETHTOOL_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT                        = 0x40
2801
+	ETHTOOL_LINK_MODE_200000baseDR4_Full_BIT                                = 0x41
2802
+	ETHTOOL_LINK_MODE_200000baseCR4_Full_BIT                                = 0x42
2803
+	ETHTOOL_LINK_MODE_100baseT1_Full_BIT                                    = 0x43
2804
+	ETHTOOL_LINK_MODE_1000baseT1_Full_BIT                                   = 0x44
2805
+	ETHTOOL_LINK_MODE_400000baseKR8_Full_BIT                                = 0x45
2806
+	ETHTOOL_LINK_MODE_400000baseSR8_Full_BIT                                = 0x46
2807
+	ETHTOOL_LINK_MODE_400000baseLR8_ER8_FR8_Full_BIT                        = 0x47
2808
+	ETHTOOL_LINK_MODE_400000baseDR8_Full_BIT                                = 0x48
2809
+	ETHTOOL_LINK_MODE_400000baseCR8_Full_BIT                                = 0x49
2810
+	ETHTOOL_LINK_MODE_FEC_LLRS_BIT                                          = 0x4a
2811
+	ETHTOOL_LINK_MODE_100000baseKR_Full_BIT                                 = 0x4b
2812
+	ETHTOOL_LINK_MODE_100000baseSR_Full_BIT                                 = 0x4c
2813
+	ETHTOOL_LINK_MODE_100000baseLR_ER_FR_Full_BIT                           = 0x4d
2814
+	ETHTOOL_LINK_MODE_100000baseCR_Full_BIT                                 = 0x4e
2815
+	ETHTOOL_LINK_MODE_100000baseDR_Full_BIT                                 = 0x4f
2816
+	ETHTOOL_LINK_MODE_200000baseKR2_Full_BIT                                = 0x50
2817
+	ETHTOOL_LINK_MODE_200000baseSR2_Full_BIT                                = 0x51
2818
+	ETHTOOL_LINK_MODE_200000baseLR2_ER2_FR2_Full_BIT                        = 0x52
2819
+	ETHTOOL_LINK_MODE_200000baseDR2_Full_BIT                                = 0x53
2820
+	ETHTOOL_LINK_MODE_200000baseCR2_Full_BIT                                = 0x54
2821
+	ETHTOOL_LINK_MODE_400000baseKR4_Full_BIT                                = 0x55
2822
+	ETHTOOL_LINK_MODE_400000baseSR4_Full_BIT                                = 0x56
2823
+	ETHTOOL_LINK_MODE_400000baseLR4_ER4_FR4_Full_BIT                        = 0x57
2824
+	ETHTOOL_LINK_MODE_400000baseDR4_Full_BIT                                = 0x58
2825
+	ETHTOOL_LINK_MODE_400000baseCR4_Full_BIT                                = 0x59
2826
+	ETHTOOL_LINK_MODE_100baseFX_Half_BIT                                    = 0x5a
2827
+	ETHTOOL_LINK_MODE_100baseFX_Full_BIT                                    = 0x5b
2828
+
2829
+	ETHTOOL_MSG_USER_NONE                     = 0x0
2830
+	ETHTOOL_MSG_STRSET_GET                    = 0x1
2831
+	ETHTOOL_MSG_LINKINFO_GET                  = 0x2
2832
+	ETHTOOL_MSG_LINKINFO_SET                  = 0x3
2833
+	ETHTOOL_MSG_LINKMODES_GET                 = 0x4
2834
+	ETHTOOL_MSG_LINKMODES_SET                 = 0x5
2835
+	ETHTOOL_MSG_LINKSTATE_GET                 = 0x6
2836
+	ETHTOOL_MSG_DEBUG_GET                     = 0x7
2837
+	ETHTOOL_MSG_DEBUG_SET                     = 0x8
2838
+	ETHTOOL_MSG_WOL_GET                       = 0x9
2839
+	ETHTOOL_MSG_WOL_SET                       = 0xa
2840
+	ETHTOOL_MSG_FEATURES_GET                  = 0xb
2841
+	ETHTOOL_MSG_FEATURES_SET                  = 0xc
2842
+	ETHTOOL_MSG_PRIVFLAGS_GET                 = 0xd
2843
+	ETHTOOL_MSG_PRIVFLAGS_SET                 = 0xe
2844
+	ETHTOOL_MSG_RINGS_GET                     = 0xf
2845
+	ETHTOOL_MSG_RINGS_SET                     = 0x10
2846
+	ETHTOOL_MSG_CHANNELS_GET                  = 0x11
2847
+	ETHTOOL_MSG_CHANNELS_SET                  = 0x12
2848
+	ETHTOOL_MSG_COALESCE_GET                  = 0x13
2849
+	ETHTOOL_MSG_COALESCE_SET                  = 0x14
2850
+	ETHTOOL_MSG_PAUSE_GET                     = 0x15
2851
+	ETHTOOL_MSG_PAUSE_SET                     = 0x16
2852
+	ETHTOOL_MSG_EEE_GET                       = 0x17
2853
+	ETHTOOL_MSG_EEE_SET                       = 0x18
2854
+	ETHTOOL_MSG_TSINFO_GET                    = 0x19
2855
+	ETHTOOL_MSG_CABLE_TEST_ACT                = 0x1a
2856
+	ETHTOOL_MSG_CABLE_TEST_TDR_ACT            = 0x1b
2857
+	ETHTOOL_MSG_TUNNEL_INFO_GET               = 0x1c
2858
+	ETHTOOL_MSG_USER_MAX                      = 0x1c
2859
+	ETHTOOL_MSG_KERNEL_NONE                   = 0x0
2860
+	ETHTOOL_MSG_STRSET_GET_REPLY              = 0x1
2861
+	ETHTOOL_MSG_LINKINFO_GET_REPLY            = 0x2
2862
+	ETHTOOL_MSG_LINKINFO_NTF                  = 0x3
2863
+	ETHTOOL_MSG_LINKMODES_GET_REPLY           = 0x4
2864
+	ETHTOOL_MSG_LINKMODES_NTF                 = 0x5
2865
+	ETHTOOL_MSG_LINKSTATE_GET_REPLY           = 0x6
2866
+	ETHTOOL_MSG_DEBUG_GET_REPLY               = 0x7
2867
+	ETHTOOL_MSG_DEBUG_NTF                     = 0x8
2868
+	ETHTOOL_MSG_WOL_GET_REPLY                 = 0x9
2869
+	ETHTOOL_MSG_WOL_NTF                       = 0xa
2870
+	ETHTOOL_MSG_FEATURES_GET_REPLY            = 0xb
2871
+	ETHTOOL_MSG_FEATURES_SET_REPLY            = 0xc
2872
+	ETHTOOL_MSG_FEATURES_NTF                  = 0xd
2873
+	ETHTOOL_MSG_PRIVFLAGS_GET_REPLY           = 0xe
2874
+	ETHTOOL_MSG_PRIVFLAGS_NTF                 = 0xf
2875
+	ETHTOOL_MSG_RINGS_GET_REPLY               = 0x10
2876
+	ETHTOOL_MSG_RINGS_NTF                     = 0x11
2877
+	ETHTOOL_MSG_CHANNELS_GET_REPLY            = 0x12
2878
+	ETHTOOL_MSG_CHANNELS_NTF                  = 0x13
2879
+	ETHTOOL_MSG_COALESCE_GET_REPLY            = 0x14
2880
+	ETHTOOL_MSG_COALESCE_NTF                  = 0x15
2881
+	ETHTOOL_MSG_PAUSE_GET_REPLY               = 0x16
2882
+	ETHTOOL_MSG_PAUSE_NTF                     = 0x17
2883
+	ETHTOOL_MSG_EEE_GET_REPLY                 = 0x18
2884
+	ETHTOOL_MSG_EEE_NTF                       = 0x19
2885
+	ETHTOOL_MSG_TSINFO_GET_REPLY              = 0x1a
2886
+	ETHTOOL_MSG_CABLE_TEST_NTF                = 0x1b
2887
+	ETHTOOL_MSG_CABLE_TEST_TDR_NTF            = 0x1c
2888
+	ETHTOOL_MSG_TUNNEL_INFO_GET_REPLY         = 0x1d
2889
+	ETHTOOL_MSG_KERNEL_MAX                    = 0x1d
2890
+	ETHTOOL_A_HEADER_UNSPEC                   = 0x0
2891
+	ETHTOOL_A_HEADER_DEV_INDEX                = 0x1
2892
+	ETHTOOL_A_HEADER_DEV_NAME                 = 0x2
2893
+	ETHTOOL_A_HEADER_FLAGS                    = 0x3
2894
+	ETHTOOL_A_HEADER_MAX                      = 0x3
2895
+	ETHTOOL_A_BITSET_BIT_UNSPEC               = 0x0
2896
+	ETHTOOL_A_BITSET_BIT_INDEX                = 0x1
2897
+	ETHTOOL_A_BITSET_BIT_NAME                 = 0x2
2898
+	ETHTOOL_A_BITSET_BIT_VALUE                = 0x3
2899
+	ETHTOOL_A_BITSET_BIT_MAX                  = 0x3
2900
+	ETHTOOL_A_BITSET_BITS_UNSPEC              = 0x0
2901
+	ETHTOOL_A_BITSET_BITS_BIT                 = 0x1
2902
+	ETHTOOL_A_BITSET_BITS_MAX                 = 0x1
2903
+	ETHTOOL_A_BITSET_UNSPEC                   = 0x0
2904
+	ETHTOOL_A_BITSET_NOMASK                   = 0x1
2905
+	ETHTOOL_A_BITSET_SIZE                     = 0x2
2906
+	ETHTOOL_A_BITSET_BITS                     = 0x3
2907
+	ETHTOOL_A_BITSET_VALUE                    = 0x4
2908
+	ETHTOOL_A_BITSET_MASK                     = 0x5
2909
+	ETHTOOL_A_BITSET_MAX                      = 0x5
2910
+	ETHTOOL_A_STRING_UNSPEC                   = 0x0
2911
+	ETHTOOL_A_STRING_INDEX                    = 0x1
2912
+	ETHTOOL_A_STRING_VALUE                    = 0x2
2913
+	ETHTOOL_A_STRING_MAX                      = 0x2
2914
+	ETHTOOL_A_STRINGS_UNSPEC                  = 0x0
2915
+	ETHTOOL_A_STRINGS_STRING                  = 0x1
2916
+	ETHTOOL_A_STRINGS_MAX                     = 0x1
2917
+	ETHTOOL_A_STRINGSET_UNSPEC                = 0x0
2918
+	ETHTOOL_A_STRINGSET_ID                    = 0x1
2919
+	ETHTOOL_A_STRINGSET_COUNT                 = 0x2
2920
+	ETHTOOL_A_STRINGSET_STRINGS               = 0x3
2921
+	ETHTOOL_A_STRINGSET_MAX                   = 0x3
2922
+	ETHTOOL_A_STRINGSETS_UNSPEC               = 0x0
2923
+	ETHTOOL_A_STRINGSETS_STRINGSET            = 0x1
2924
+	ETHTOOL_A_STRINGSETS_MAX                  = 0x1
2925
+	ETHTOOL_A_STRSET_UNSPEC                   = 0x0
2926
+	ETHTOOL_A_STRSET_HEADER                   = 0x1
2927
+	ETHTOOL_A_STRSET_STRINGSETS               = 0x2
2928
+	ETHTOOL_A_STRSET_COUNTS_ONLY              = 0x3
2929
+	ETHTOOL_A_STRSET_MAX                      = 0x3
2930
+	ETHTOOL_A_LINKINFO_UNSPEC                 = 0x0
2931
+	ETHTOOL_A_LINKINFO_HEADER                 = 0x1
2932
+	ETHTOOL_A_LINKINFO_PORT                   = 0x2
2933
+	ETHTOOL_A_LINKINFO_PHYADDR                = 0x3
2934
+	ETHTOOL_A_LINKINFO_TP_MDIX                = 0x4
2935
+	ETHTOOL_A_LINKINFO_TP_MDIX_CTRL           = 0x5
2936
+	ETHTOOL_A_LINKINFO_TRANSCEIVER            = 0x6
2937
+	ETHTOOL_A_LINKINFO_MAX                    = 0x6
2938
+	ETHTOOL_A_LINKMODES_UNSPEC                = 0x0
2939
+	ETHTOOL_A_LINKMODES_HEADER                = 0x1
2940
+	ETHTOOL_A_LINKMODES_AUTONEG               = 0x2
2941
+	ETHTOOL_A_LINKMODES_OURS                  = 0x3
2942
+	ETHTOOL_A_LINKMODES_PEER                  = 0x4
2943
+	ETHTOOL_A_LINKMODES_SPEED                 = 0x5
2944
+	ETHTOOL_A_LINKMODES_DUPLEX                = 0x6
2945
+	ETHTOOL_A_LINKMODES_MASTER_SLAVE_CFG      = 0x7
2946
+	ETHTOOL_A_LINKMODES_MASTER_SLAVE_STATE    = 0x8
2947
+	ETHTOOL_A_LINKMODES_MAX                   = 0x8
2948
+	ETHTOOL_A_LINKSTATE_UNSPEC                = 0x0
2949
+	ETHTOOL_A_LINKSTATE_HEADER                = 0x1
2950
+	ETHTOOL_A_LINKSTATE_LINK                  = 0x2
2951
+	ETHTOOL_A_LINKSTATE_SQI                   = 0x3
2952
+	ETHTOOL_A_LINKSTATE_SQI_MAX               = 0x4
2953
+	ETHTOOL_A_LINKSTATE_EXT_STATE             = 0x5
2954
+	ETHTOOL_A_LINKSTATE_EXT_SUBSTATE          = 0x6
2955
+	ETHTOOL_A_LINKSTATE_MAX                   = 0x6
2956
+	ETHTOOL_A_DEBUG_UNSPEC                    = 0x0
2957
+	ETHTOOL_A_DEBUG_HEADER                    = 0x1
2958
+	ETHTOOL_A_DEBUG_MSGMASK                   = 0x2
2959
+	ETHTOOL_A_DEBUG_MAX                       = 0x2
2960
+	ETHTOOL_A_WOL_UNSPEC                      = 0x0
2961
+	ETHTOOL_A_WOL_HEADER                      = 0x1
2962
+	ETHTOOL_A_WOL_MODES                       = 0x2
2963
+	ETHTOOL_A_WOL_SOPASS                      = 0x3
2964
+	ETHTOOL_A_WOL_MAX                         = 0x3
2965
+	ETHTOOL_A_FEATURES_UNSPEC                 = 0x0
2966
+	ETHTOOL_A_FEATURES_HEADER                 = 0x1
2967
+	ETHTOOL_A_FEATURES_HW                     = 0x2
2968
+	ETHTOOL_A_FEATURES_WANTED                 = 0x3
2969
+	ETHTOOL_A_FEATURES_ACTIVE                 = 0x4
2970
+	ETHTOOL_A_FEATURES_NOCHANGE               = 0x5
2971
+	ETHTOOL_A_FEATURES_MAX                    = 0x5
2972
+	ETHTOOL_A_PRIVFLAGS_UNSPEC                = 0x0
2973
+	ETHTOOL_A_PRIVFLAGS_HEADER                = 0x1
2974
+	ETHTOOL_A_PRIVFLAGS_FLAGS                 = 0x2
2975
+	ETHTOOL_A_PRIVFLAGS_MAX                   = 0x2
2976
+	ETHTOOL_A_RINGS_UNSPEC                    = 0x0
2977
+	ETHTOOL_A_RINGS_HEADER                    = 0x1
2978
+	ETHTOOL_A_RINGS_RX_MAX                    = 0x2
2979
+	ETHTOOL_A_RINGS_RX_MINI_MAX               = 0x3
2980
+	ETHTOOL_A_RINGS_RX_JUMBO_MAX              = 0x4
2981
+	ETHTOOL_A_RINGS_TX_MAX                    = 0x5
2982
+	ETHTOOL_A_RINGS_RX                        = 0x6
2983
+	ETHTOOL_A_RINGS_RX_MINI                   = 0x7
2984
+	ETHTOOL_A_RINGS_RX_JUMBO                  = 0x8
2985
+	ETHTOOL_A_RINGS_TX                        = 0x9
2986
+	ETHTOOL_A_RINGS_MAX                       = 0x9
2987
+	ETHTOOL_A_CHANNELS_UNSPEC                 = 0x0
2988
+	ETHTOOL_A_CHANNELS_HEADER                 = 0x1
2989
+	ETHTOOL_A_CHANNELS_RX_MAX                 = 0x2
2990
+	ETHTOOL_A_CHANNELS_TX_MAX                 = 0x3
2991
+	ETHTOOL_A_CHANNELS_OTHER_MAX              = 0x4
2992
+	ETHTOOL_A_CHANNELS_COMBINED_MAX           = 0x5
2993
+	ETHTOOL_A_CHANNELS_RX_COUNT               = 0x6
2994
+	ETHTOOL_A_CHANNELS_TX_COUNT               = 0x7
2995
+	ETHTOOL_A_CHANNELS_OTHER_COUNT            = 0x8
2996
+	ETHTOOL_A_CHANNELS_COMBINED_COUNT         = 0x9
2997
+	ETHTOOL_A_CHANNELS_MAX                    = 0x9
2998
+	ETHTOOL_A_COALESCE_UNSPEC                 = 0x0
2999
+	ETHTOOL_A_COALESCE_HEADER                 = 0x1
3000
+	ETHTOOL_A_COALESCE_RX_USECS               = 0x2
3001
+	ETHTOOL_A_COALESCE_RX_MAX_FRAMES          = 0x3
3002
+	ETHTOOL_A_COALESCE_RX_USECS_IRQ           = 0x4
3003
+	ETHTOOL_A_COALESCE_RX_MAX_FRAMES_IRQ      = 0x5
3004
+	ETHTOOL_A_COALESCE_TX_USECS               = 0x6
3005
+	ETHTOOL_A_COALESCE_TX_MAX_FRAMES          = 0x7
3006
+	ETHTOOL_A_COALESCE_TX_USECS_IRQ           = 0x8
3007
+	ETHTOOL_A_COALESCE_TX_MAX_FRAMES_IRQ      = 0x9
3008
+	ETHTOOL_A_COALESCE_STATS_BLOCK_USECS      = 0xa
3009
+	ETHTOOL_A_COALESCE_USE_ADAPTIVE_RX        = 0xb
3010
+	ETHTOOL_A_COALESCE_USE_ADAPTIVE_TX        = 0xc
3011
+	ETHTOOL_A_COALESCE_PKT_RATE_LOW           = 0xd
3012
+	ETHTOOL_A_COALESCE_RX_USECS_LOW           = 0xe
3013
+	ETHTOOL_A_COALESCE_RX_MAX_FRAMES_LOW      = 0xf
3014
+	ETHTOOL_A_COALESCE_TX_USECS_LOW           = 0x10
3015
+	ETHTOOL_A_COALESCE_TX_MAX_FRAMES_LOW      = 0x11
3016
+	ETHTOOL_A_COALESCE_PKT_RATE_HIGH          = 0x12
3017
+	ETHTOOL_A_COALESCE_RX_USECS_HIGH          = 0x13
3018
+	ETHTOOL_A_COALESCE_RX_MAX_FRAMES_HIGH     = 0x14
3019
+	ETHTOOL_A_COALESCE_TX_USECS_HIGH          = 0x15
3020
+	ETHTOOL_A_COALESCE_TX_MAX_FRAMES_HIGH     = 0x16
3021
+	ETHTOOL_A_COALESCE_RATE_SAMPLE_INTERVAL   = 0x17
3022
+	ETHTOOL_A_COALESCE_MAX                    = 0x17
3023
+	ETHTOOL_A_PAUSE_UNSPEC                    = 0x0
3024
+	ETHTOOL_A_PAUSE_HEADER                    = 0x1
3025
+	ETHTOOL_A_PAUSE_AUTONEG                   = 0x2
3026
+	ETHTOOL_A_PAUSE_RX                        = 0x3
3027
+	ETHTOOL_A_PAUSE_TX                        = 0x4
3028
+	ETHTOOL_A_PAUSE_STATS                     = 0x5
3029
+	ETHTOOL_A_PAUSE_MAX                       = 0x5
3030
+	ETHTOOL_A_PAUSE_STAT_UNSPEC               = 0x0
3031
+	ETHTOOL_A_PAUSE_STAT_PAD                  = 0x1
3032
+	ETHTOOL_A_PAUSE_STAT_TX_FRAMES            = 0x2
3033
+	ETHTOOL_A_PAUSE_STAT_RX_FRAMES            = 0x3
3034
+	ETHTOOL_A_PAUSE_STAT_MAX                  = 0x3
3035
+	ETHTOOL_A_EEE_UNSPEC                      = 0x0
3036
+	ETHTOOL_A_EEE_HEADER                      = 0x1
3037
+	ETHTOOL_A_EEE_MODES_OURS                  = 0x2
3038
+	ETHTOOL_A_EEE_MODES_PEER                  = 0x3
3039
+	ETHTOOL_A_EEE_ACTIVE                      = 0x4
3040
+	ETHTOOL_A_EEE_ENABLED                     = 0x5
3041
+	ETHTOOL_A_EEE_TX_LPI_ENABLED              = 0x6
3042
+	ETHTOOL_A_EEE_TX_LPI_TIMER                = 0x7
3043
+	ETHTOOL_A_EEE_MAX                         = 0x7
3044
+	ETHTOOL_A_TSINFO_UNSPEC                   = 0x0
3045
+	ETHTOOL_A_TSINFO_HEADER                   = 0x1
3046
+	ETHTOOL_A_TSINFO_TIMESTAMPING             = 0x2
3047
+	ETHTOOL_A_TSINFO_TX_TYPES                 = 0x3
3048
+	ETHTOOL_A_TSINFO_RX_FILTERS               = 0x4
3049
+	ETHTOOL_A_TSINFO_PHC_INDEX                = 0x5
3050
+	ETHTOOL_A_TSINFO_MAX                      = 0x5
3051
+	ETHTOOL_A_CABLE_TEST_UNSPEC               = 0x0
3052
+	ETHTOOL_A_CABLE_TEST_HEADER               = 0x1
3053
+	ETHTOOL_A_CABLE_TEST_MAX                  = 0x1
3054
+	ETHTOOL_A_CABLE_RESULT_CODE_UNSPEC        = 0x0
3055
+	ETHTOOL_A_CABLE_RESULT_CODE_OK            = 0x1
3056
+	ETHTOOL_A_CABLE_RESULT_CODE_OPEN          = 0x2
3057
+	ETHTOOL_A_CABLE_RESULT_CODE_SAME_SHORT    = 0x3
3058
+	ETHTOOL_A_CABLE_RESULT_CODE_CROSS_SHORT   = 0x4
3059
+	ETHTOOL_A_CABLE_PAIR_A                    = 0x0
3060
+	ETHTOOL_A_CABLE_PAIR_B                    = 0x1
3061
+	ETHTOOL_A_CABLE_PAIR_C                    = 0x2
3062
+	ETHTOOL_A_CABLE_PAIR_D                    = 0x3
3063
+	ETHTOOL_A_CABLE_RESULT_UNSPEC             = 0x0
3064
+	ETHTOOL_A_CABLE_RESULT_PAIR               = 0x1
3065
+	ETHTOOL_A_CABLE_RESULT_CODE               = 0x2
3066
+	ETHTOOL_A_CABLE_RESULT_MAX                = 0x2
3067
+	ETHTOOL_A_CABLE_FAULT_LENGTH_UNSPEC       = 0x0
3068
+	ETHTOOL_A_CABLE_FAULT_LENGTH_PAIR         = 0x1
3069
+	ETHTOOL_A_CABLE_FAULT_LENGTH_CM           = 0x2
3070
+	ETHTOOL_A_CABLE_FAULT_LENGTH_MAX          = 0x2
3071
+	ETHTOOL_A_CABLE_TEST_NTF_STATUS_UNSPEC    = 0x0
3072
+	ETHTOOL_A_CABLE_TEST_NTF_STATUS_STARTED   = 0x1
3073
+	ETHTOOL_A_CABLE_TEST_NTF_STATUS_COMPLETED = 0x2
3074
+	ETHTOOL_A_CABLE_NEST_UNSPEC               = 0x0
3075
+	ETHTOOL_A_CABLE_NEST_RESULT               = 0x1
3076
+	ETHTOOL_A_CABLE_NEST_FAULT_LENGTH         = 0x2
3077
+	ETHTOOL_A_CABLE_NEST_MAX                  = 0x2
3078
+	ETHTOOL_A_CABLE_TEST_NTF_UNSPEC           = 0x0
3079
+	ETHTOOL_A_CABLE_TEST_NTF_HEADER           = 0x1
3080
+	ETHTOOL_A_CABLE_TEST_NTF_STATUS           = 0x2
3081
+	ETHTOOL_A_CABLE_TEST_NTF_NEST             = 0x3
3082
+	ETHTOOL_A_CABLE_TEST_NTF_MAX              = 0x3
3083
+	ETHTOOL_A_CABLE_TEST_TDR_CFG_UNSPEC       = 0x0
3084
+	ETHTOOL_A_CABLE_TEST_TDR_CFG_FIRST        = 0x1
3085
+	ETHTOOL_A_CABLE_TEST_TDR_CFG_LAST         = 0x2
3086
+	ETHTOOL_A_CABLE_TEST_TDR_CFG_STEP         = 0x3
3087
+	ETHTOOL_A_CABLE_TEST_TDR_CFG_PAIR         = 0x4
3088
+	ETHTOOL_A_CABLE_TEST_TDR_CFG_MAX          = 0x4
3089
+	ETHTOOL_A_CABLE_TEST_TDR_UNSPEC           = 0x0
3090
+	ETHTOOL_A_CABLE_TEST_TDR_HEADER           = 0x1
3091
+	ETHTOOL_A_CABLE_TEST_TDR_CFG              = 0x2
3092
+	ETHTOOL_A_CABLE_TEST_TDR_MAX              = 0x2
3093
+	ETHTOOL_A_CABLE_AMPLITUDE_UNSPEC          = 0x0
3094
+	ETHTOOL_A_CABLE_AMPLITUDE_PAIR            = 0x1
3095
+	ETHTOOL_A_CABLE_AMPLITUDE_mV              = 0x2
3096
+	ETHTOOL_A_CABLE_AMPLITUDE_MAX             = 0x2
3097
+	ETHTOOL_A_CABLE_PULSE_UNSPEC              = 0x0
3098
+	ETHTOOL_A_CABLE_PULSE_mV                  = 0x1
3099
+	ETHTOOL_A_CABLE_PULSE_MAX                 = 0x1
3100
+	ETHTOOL_A_CABLE_STEP_UNSPEC               = 0x0
3101
+	ETHTOOL_A_CABLE_STEP_FIRST_DISTANCE       = 0x1
3102
+	ETHTOOL_A_CABLE_STEP_LAST_DISTANCE        = 0x2
3103
+	ETHTOOL_A_CABLE_STEP_STEP_DISTANCE        = 0x3
3104
+	ETHTOOL_A_CABLE_STEP_MAX                  = 0x3
3105
+	ETHTOOL_A_CABLE_TDR_NEST_UNSPEC           = 0x0
3106
+	ETHTOOL_A_CABLE_TDR_NEST_STEP             = 0x1
3107
+	ETHTOOL_A_CABLE_TDR_NEST_AMPLITUDE        = 0x2
3108
+	ETHTOOL_A_CABLE_TDR_NEST_PULSE            = 0x3
3109
+	ETHTOOL_A_CABLE_TDR_NEST_MAX              = 0x3
3110
+	ETHTOOL_A_CABLE_TEST_TDR_NTF_UNSPEC       = 0x0
3111
+	ETHTOOL_A_CABLE_TEST_TDR_NTF_HEADER       = 0x1
3112
+	ETHTOOL_A_CABLE_TEST_TDR_NTF_STATUS       = 0x2
3113
+	ETHTOOL_A_CABLE_TEST_TDR_NTF_NEST         = 0x3
3114
+	ETHTOOL_A_CABLE_TEST_TDR_NTF_MAX          = 0x3
3115
+	ETHTOOL_UDP_TUNNEL_TYPE_VXLAN             = 0x0
3116
+	ETHTOOL_UDP_TUNNEL_TYPE_GENEVE            = 0x1
3117
+	ETHTOOL_UDP_TUNNEL_TYPE_VXLAN_GPE         = 0x2
3118
+	ETHTOOL_A_TUNNEL_UDP_ENTRY_UNSPEC         = 0x0
3119
+	ETHTOOL_A_TUNNEL_UDP_ENTRY_PORT           = 0x1
3120
+	ETHTOOL_A_TUNNEL_UDP_ENTRY_TYPE           = 0x2
3121
+	ETHTOOL_A_TUNNEL_UDP_ENTRY_MAX            = 0x2
3122
+	ETHTOOL_A_TUNNEL_UDP_TABLE_UNSPEC         = 0x0
3123
+	ETHTOOL_A_TUNNEL_UDP_TABLE_SIZE           = 0x1
3124
+	ETHTOOL_A_TUNNEL_UDP_TABLE_TYPES          = 0x2
3125
+	ETHTOOL_A_TUNNEL_UDP_TABLE_ENTRY          = 0x3
3126
+	ETHTOOL_A_TUNNEL_UDP_TABLE_MAX            = 0x3
3127
+	ETHTOOL_A_TUNNEL_UDP_UNSPEC               = 0x0
3128
+	ETHTOOL_A_TUNNEL_UDP_TABLE                = 0x1
3129
+	ETHTOOL_A_TUNNEL_UDP_MAX                  = 0x1
3130
+	ETHTOOL_A_TUNNEL_INFO_UNSPEC              = 0x0
3131
+	ETHTOOL_A_TUNNEL_INFO_HEADER              = 0x1
3132
+	ETHTOOL_A_TUNNEL_INFO_UDP_PORTS           = 0x2
3133
+	ETHTOOL_A_TUNNEL_INFO_MAX                 = 0x2
3134
+)
... ...
@@ -1,4 +1,4 @@
1
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m32 linux/types.go | go run mkpost.go
1
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m32 /build/linux/types.go | go run mkpost.go
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 // +build 386,linux
... ...
@@ -602,3 +602,18 @@ type TIPCSIOCNodeIDReq struct {
602 602
 	Peer uint32
603 603
 	Id   [16]int8
604 604
 }
605
+
606
+type PPSKInfo struct {
607
+	Assert_sequence uint32
608
+	Clear_sequence  uint32
609
+	Assert_tu       PPSKTime
610
+	Clear_tu        PPSKTime
611
+	Current_mode    int32
612
+}
613
+
614
+const (
615
+	PPS_GETPARAMS = 0x800470a1
616
+	PPS_SETPARAMS = 0x400470a2
617
+	PPS_GETCAP    = 0x800470a3
618
+	PPS_FETCH     = 0xc00470a4
619
+)
... ...
@@ -1,4 +1,4 @@
1
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m64 linux/types.go | go run mkpost.go
1
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m64 /build/linux/types.go | go run mkpost.go
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 // +build amd64,linux
... ...
@@ -619,3 +619,19 @@ type TIPCSIOCNodeIDReq struct {
619 619
 	Peer uint32
620 620
 	Id   [16]int8
621 621
 }
622
+
623
+type PPSKInfo struct {
624
+	Assert_sequence uint32
625
+	Clear_sequence  uint32
626
+	Assert_tu       PPSKTime
627
+	Clear_tu        PPSKTime
628
+	Current_mode    int32
629
+	_               [4]byte
630
+}
631
+
632
+const (
633
+	PPS_GETPARAMS = 0x800870a1
634
+	PPS_SETPARAMS = 0x400870a2
635
+	PPS_GETCAP    = 0x800870a3
636
+	PPS_FETCH     = 0xc00870a4
637
+)
... ...
@@ -1,4 +1,4 @@
1
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go
1
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/linux/types.go | go run mkpost.go
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 // +build arm,linux
... ...
@@ -596,3 +596,19 @@ type TIPCSIOCNodeIDReq struct {
596 596
 	Peer uint32
597 597
 	Id   [16]uint8
598 598
 }
599
+
600
+type PPSKInfo struct {
601
+	Assert_sequence uint32
602
+	Clear_sequence  uint32
603
+	Assert_tu       PPSKTime
604
+	Clear_tu        PPSKTime
605
+	Current_mode    int32
606
+	_               [4]byte
607
+}
608
+
609
+const (
610
+	PPS_GETPARAMS = 0x800470a1
611
+	PPS_SETPARAMS = 0x400470a2
612
+	PPS_GETCAP    = 0x800470a3
613
+	PPS_FETCH     = 0xc00470a4
614
+)
... ...
@@ -1,4 +1,4 @@
1
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char linux/types.go | go run mkpost.go
1
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char /build/linux/types.go | go run mkpost.go
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 // +build arm64,linux
... ...
@@ -598,3 +598,19 @@ type TIPCSIOCNodeIDReq struct {
598 598
 	Peer uint32
599 599
 	Id   [16]int8
600 600
 }
601
+
602
+type PPSKInfo struct {
603
+	Assert_sequence uint32
604
+	Clear_sequence  uint32
605
+	Assert_tu       PPSKTime
606
+	Clear_tu        PPSKTime
607
+	Current_mode    int32
608
+	_               [4]byte
609
+}
610
+
611
+const (
612
+	PPS_GETPARAMS = 0x800870a1
613
+	PPS_SETPARAMS = 0x400870a2
614
+	PPS_GETCAP    = 0x800870a3
615
+	PPS_FETCH     = 0xc00870a4
616
+)
... ...
@@ -1,4 +1,4 @@
1
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go
1
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/linux/types.go | go run mkpost.go
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 // +build mips,linux
... ...
@@ -602,3 +602,19 @@ type TIPCSIOCNodeIDReq struct {
602 602
 	Peer uint32
603 603
 	Id   [16]int8
604 604
 }
605
+
606
+type PPSKInfo struct {
607
+	Assert_sequence uint32
608
+	Clear_sequence  uint32
609
+	Assert_tu       PPSKTime
610
+	Clear_tu        PPSKTime
611
+	Current_mode    int32
612
+	_               [4]byte
613
+}
614
+
615
+const (
616
+	PPS_GETPARAMS = 0x400470a1
617
+	PPS_SETPARAMS = 0x800470a2
618
+	PPS_GETCAP    = 0x400470a3
619
+	PPS_FETCH     = 0xc00470a4
620
+)
... ...
@@ -1,4 +1,4 @@
1
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go
1
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/linux/types.go | go run mkpost.go
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 // +build mips64,linux
... ...
@@ -601,3 +601,19 @@ type TIPCSIOCNodeIDReq struct {
601 601
 	Peer uint32
602 602
 	Id   [16]int8
603 603
 }
604
+
605
+type PPSKInfo struct {
606
+	Assert_sequence uint32
607
+	Clear_sequence  uint32
608
+	Assert_tu       PPSKTime
609
+	Clear_tu        PPSKTime
610
+	Current_mode    int32
611
+	_               [4]byte
612
+}
613
+
614
+const (
615
+	PPS_GETPARAMS = 0x400870a1
616
+	PPS_SETPARAMS = 0x800870a2
617
+	PPS_GETCAP    = 0x400870a3
618
+	PPS_FETCH     = 0xc00870a4
619
+)
... ...
@@ -1,4 +1,4 @@
1
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go
1
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/linux/types.go | go run mkpost.go
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 // +build mips64le,linux
... ...
@@ -601,3 +601,19 @@ type TIPCSIOCNodeIDReq struct {
601 601
 	Peer uint32
602 602
 	Id   [16]int8
603 603
 }
604
+
605
+type PPSKInfo struct {
606
+	Assert_sequence uint32
607
+	Clear_sequence  uint32
608
+	Assert_tu       PPSKTime
609
+	Clear_tu        PPSKTime
610
+	Current_mode    int32
611
+	_               [4]byte
612
+}
613
+
614
+const (
615
+	PPS_GETPARAMS = 0x400870a1
616
+	PPS_SETPARAMS = 0x800870a2
617
+	PPS_GETCAP    = 0x400870a3
618
+	PPS_FETCH     = 0xc00870a4
619
+)
... ...
@@ -1,4 +1,4 @@
1
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go
1
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/linux/types.go | go run mkpost.go
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 // +build mipsle,linux
... ...
@@ -602,3 +602,19 @@ type TIPCSIOCNodeIDReq struct {
602 602
 	Peer uint32
603 603
 	Id   [16]int8
604 604
 }
605
+
606
+type PPSKInfo struct {
607
+	Assert_sequence uint32
608
+	Clear_sequence  uint32
609
+	Assert_tu       PPSKTime
610
+	Clear_tu        PPSKTime
611
+	Current_mode    int32
612
+	_               [4]byte
613
+}
614
+
615
+const (
616
+	PPS_GETPARAMS = 0x400470a1
617
+	PPS_SETPARAMS = 0x800470a2
618
+	PPS_GETCAP    = 0x400470a3
619
+	PPS_FETCH     = 0xc00470a4
620
+)
... ...
@@ -1,4 +1,4 @@
1
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go
1
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/linux/types.go | go run mkpost.go
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 // +build ppc64,linux
... ...
@@ -608,3 +608,19 @@ type TIPCSIOCNodeIDReq struct {
608 608
 	Peer uint32
609 609
 	Id   [16]uint8
610 610
 }
611
+
612
+type PPSKInfo struct {
613
+	Assert_sequence uint32
614
+	Clear_sequence  uint32
615
+	Assert_tu       PPSKTime
616
+	Clear_tu        PPSKTime
617
+	Current_mode    int32
618
+	_               [4]byte
619
+}
620
+
621
+const (
622
+	PPS_GETPARAMS = 0x400870a1
623
+	PPS_SETPARAMS = 0x800870a2
624
+	PPS_GETCAP    = 0x400870a3
625
+	PPS_FETCH     = 0xc00870a4
626
+)
... ...
@@ -1,4 +1,4 @@
1
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go
1
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/linux/types.go | go run mkpost.go
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 // +build ppc64le,linux
... ...
@@ -608,3 +608,19 @@ type TIPCSIOCNodeIDReq struct {
608 608
 	Peer uint32
609 609
 	Id   [16]uint8
610 610
 }
611
+
612
+type PPSKInfo struct {
613
+	Assert_sequence uint32
614
+	Clear_sequence  uint32
615
+	Assert_tu       PPSKTime
616
+	Clear_tu        PPSKTime
617
+	Current_mode    int32
618
+	_               [4]byte
619
+}
620
+
621
+const (
622
+	PPS_GETPARAMS = 0x400870a1
623
+	PPS_SETPARAMS = 0x800870a2
624
+	PPS_GETCAP    = 0x400870a3
625
+	PPS_FETCH     = 0xc00870a4
626
+)
... ...
@@ -1,4 +1,4 @@
1
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go
1
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/linux/types.go | go run mkpost.go
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 // +build riscv64,linux
... ...
@@ -626,3 +626,19 @@ type TIPCSIOCNodeIDReq struct {
626 626
 	Peer uint32
627 627
 	Id   [16]uint8
628 628
 }
629
+
630
+type PPSKInfo struct {
631
+	Assert_sequence uint32
632
+	Clear_sequence  uint32
633
+	Assert_tu       PPSKTime
634
+	Clear_tu        PPSKTime
635
+	Current_mode    int32
636
+	_               [4]byte
637
+}
638
+
639
+const (
640
+	PPS_GETPARAMS = 0x800870a1
641
+	PPS_SETPARAMS = 0x400870a2
642
+	PPS_GETCAP    = 0x800870a3
643
+	PPS_FETCH     = 0xc00870a4
644
+)
... ...
@@ -1,4 +1,4 @@
1
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char linux/types.go | go run mkpost.go
1
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char /build/linux/types.go | go run mkpost.go
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 // +build s390x,linux
... ...
@@ -622,3 +622,19 @@ type TIPCSIOCNodeIDReq struct {
622 622
 	Peer uint32
623 623
 	Id   [16]int8
624 624
 }
625
+
626
+type PPSKInfo struct {
627
+	Assert_sequence uint32
628
+	Clear_sequence  uint32
629
+	Assert_tu       PPSKTime
630
+	Clear_tu        PPSKTime
631
+	Current_mode    int32
632
+	_               [4]byte
633
+}
634
+
635
+const (
636
+	PPS_GETPARAMS = 0x800870a1
637
+	PPS_SETPARAMS = 0x400870a2
638
+	PPS_GETCAP    = 0x800870a3
639
+	PPS_FETCH     = 0xc00870a4
640
+)
... ...
@@ -1,4 +1,4 @@
1
-// cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go
1
+// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/linux/types.go | go run mkpost.go
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 // +build sparc64,linux
... ...
@@ -603,3 +603,19 @@ type TIPCSIOCNodeIDReq struct {
603 603
 	Peer uint32
604 604
 	Id   [16]int8
605 605
 }
606
+
607
+type PPSKInfo struct {
608
+	Assert_sequence uint32
609
+	Clear_sequence  uint32
610
+	Assert_tu       PPSKTime
611
+	Clear_tu        PPSKTime
612
+	Current_mode    int32
613
+	_               [4]byte
614
+}
615
+
616
+const (
617
+	PPS_GETPARAMS = 0x400870a1
618
+	PPS_SETPARAMS = 0x800870a2
619
+	PPS_GETCAP    = 0x400870a3
620
+	PPS_FETCH     = 0xc00870a4
621
+)
... ...
@@ -248,6 +248,7 @@ const (
248 248
 	SizeofSockaddrUnix     = 0x6a
249 249
 	SizeofSockaddrDatalink = 0x14
250 250
 	SizeofLinger           = 0x8
251
+	SizeofIovec            = 0x8
251 252
 	SizeofIPMreq           = 0x8
252 253
 	SizeofIPv6Mreq         = 0x14
253 254
 	SizeofMsghdr           = 0x1c
... ...
@@ -255,6 +255,7 @@ const (
255 255
 	SizeofSockaddrUnix     = 0x6a
256 256
 	SizeofSockaddrDatalink = 0x14
257 257
 	SizeofLinger           = 0x8
258
+	SizeofIovec            = 0x10
258 259
 	SizeofIPMreq           = 0x8
259 260
 	SizeofIPv6Mreq         = 0x14
260 261
 	SizeofMsghdr           = 0x30
... ...
@@ -253,6 +253,7 @@ const (
253 253
 	SizeofSockaddrUnix     = 0x6a
254 254
 	SizeofSockaddrDatalink = 0x14
255 255
 	SizeofLinger           = 0x8
256
+	SizeofIovec            = 0x8
256 257
 	SizeofIPMreq           = 0x8
257 258
 	SizeofIPv6Mreq         = 0x14
258 259
 	SizeofMsghdr           = 0x1c
... ...
@@ -255,6 +255,7 @@ const (
255 255
 	SizeofSockaddrUnix     = 0x6a
256 256
 	SizeofSockaddrDatalink = 0x14
257 257
 	SizeofLinger           = 0x8
258
+	SizeofIovec            = 0x10
258 259
 	SizeofIPMreq           = 0x8
259 260
 	SizeofIPv6Mreq         = 0x14
260 261
 	SizeofMsghdr           = 0x30
... ...
@@ -231,6 +231,7 @@ const (
231 231
 	SizeofSockaddrUnix     = 0x6a
232 232
 	SizeofSockaddrDatalink = 0x20
233 233
 	SizeofLinger           = 0x8
234
+	SizeofIovec            = 0x8
234 235
 	SizeofIPMreq           = 0x8
235 236
 	SizeofIPv6Mreq         = 0x14
236 237
 	SizeofMsghdr           = 0x1c
... ...
@@ -235,6 +235,7 @@ const (
235 235
 	SizeofSockaddrUnix     = 0x6a
236 236
 	SizeofSockaddrDatalink = 0x20
237 237
 	SizeofLinger           = 0x8
238
+	SizeofIovec            = 0x10
238 239
 	SizeofIPMreq           = 0x8
239 240
 	SizeofIPv6Mreq         = 0x14
240 241
 	SizeofMsghdr           = 0x30
... ...
@@ -235,6 +235,7 @@ const (
235 235
 	SizeofSockaddrUnix     = 0x6a
236 236
 	SizeofSockaddrDatalink = 0x20
237 237
 	SizeofLinger           = 0x8
238
+	SizeofIovec            = 0x8
238 239
 	SizeofIPMreq           = 0x8
239 240
 	SizeofIPv6Mreq         = 0x14
240 241
 	SizeofMsghdr           = 0x1c
... ...
@@ -231,6 +231,7 @@ const (
231 231
 	SizeofSockaddrUnix     = 0x6a
232 232
 	SizeofSockaddrDatalink = 0x20
233 233
 	SizeofLinger           = 0x8
234
+	SizeofIovec            = 0x10
234 235
 	SizeofIPMreq           = 0x8
235 236
 	SizeofIPv6Mreq         = 0x14
236 237
 	SizeofMsghdr           = 0x30
... ...
@@ -231,6 +231,7 @@ const (
231 231
 	SizeofSockaddrUnix     = 0x6a
232 232
 	SizeofSockaddrDatalink = 0x20
233 233
 	SizeofLinger           = 0x8
234
+	SizeofIovec            = 0x10
234 235
 	SizeofIPMreq           = 0x8
235 236
 	SizeofIPv6Mreq         = 0x14
236 237
 	SizeofMsghdr           = 0x30
... ...
@@ -234,6 +234,7 @@ const (
234 234
 	SizeofSockaddrUnix     = 0x6e
235 235
 	SizeofSockaddrDatalink = 0xfc
236 236
 	SizeofLinger           = 0x8
237
+	SizeofIovec            = 0x10
237 238
 	SizeofIPMreq           = 0x8
238 239
 	SizeofIPv6Mreq         = 0x14
239 240
 	SizeofMsghdr           = 0x30
... ...
@@ -32,6 +32,8 @@ type DLLError struct {
32 32
 
33 33
 func (e *DLLError) Error() string { return e.Msg }
34 34
 
35
+func (e *DLLError) Unwrap() error { return e.Err }
36
+
35 37
 // A DLL implements access to a single DLL.
36 38
 type DLL struct {
37 39
 	Name   string
... ...
@@ -389,7 +391,6 @@ func loadLibraryEx(name string, system bool) (*DLL, error) {
389 389
 	var flags uintptr
390 390
 	if system {
391 391
 		if canDoSearchSystem32() {
392
-			const LOAD_LIBRARY_SEARCH_SYSTEM32 = 0x00000800
393 392
 			flags = LOAD_LIBRARY_SEARCH_SYSTEM32
394 393
 		} else if isBaseName(name) {
395 394
 			// WindowsXP or unpatched Windows machine
... ...
@@ -16,13 +16,19 @@ const (
16 16
 	MEM_RESET_UNDO  = 0x01000000
17 17
 	MEM_LARGE_PAGES = 0x20000000
18 18
 
19
-	PAGE_NOACCESS          = 0x01
20
-	PAGE_READONLY          = 0x02
21
-	PAGE_READWRITE         = 0x04
22
-	PAGE_WRITECOPY         = 0x08
23
-	PAGE_EXECUTE_READ      = 0x20
24
-	PAGE_EXECUTE_READWRITE = 0x40
25
-	PAGE_EXECUTE_WRITECOPY = 0x80
19
+	PAGE_NOACCESS          = 0x00000001
20
+	PAGE_READONLY          = 0x00000002
21
+	PAGE_READWRITE         = 0x00000004
22
+	PAGE_WRITECOPY         = 0x00000008
23
+	PAGE_EXECUTE           = 0x00000010
24
+	PAGE_EXECUTE_READ      = 0x00000020
25
+	PAGE_EXECUTE_READWRITE = 0x00000040
26
+	PAGE_EXECUTE_WRITECOPY = 0x00000080
27
+	PAGE_GUARD             = 0x00000100
28
+	PAGE_NOCACHE           = 0x00000200
29
+	PAGE_WRITECOMBINE      = 0x00000400
30
+	PAGE_TARGETS_INVALID   = 0x40000000
31
+	PAGE_TARGETS_NO_UPDATE = 0x40000000
26 32
 
27 33
 	QUOTA_LIMITS_HARDWS_MIN_DISABLE = 0x00000002
28 34
 	QUOTA_LIMITS_HARDWS_MIN_ENABLE  = 0x00000001
... ...
@@ -19,6 +19,7 @@ const (
19 19
 
20 20
 var (
21 21
 	errERROR_IO_PENDING error = syscall.Errno(errnoERROR_IO_PENDING)
22
+	errERROR_EINVAL     error = syscall.EINVAL
22 23
 )
23 24
 
24 25
 // errnoErr returns common boxed Errno values, to prevent
... ...
@@ -26,7 +27,7 @@ var (
26 26
 func errnoErr(e syscall.Errno) error {
27 27
 	switch e {
28 28
 	case 0:
29
-		return syscall.EINVAL
29
+		return errERROR_EINVAL
30 30
 	case errnoERROR_IO_PENDING:
31 31
 		return errERROR_IO_PENDING
32 32
 	}
... ...
@@ -624,6 +624,7 @@ func (tml *Tokenmandatorylabel) Size() uint32 {
624 624
 
625 625
 // Authorization Functions
626 626
 //sys	checkTokenMembership(tokenHandle Token, sidToCheck *SID, isMember *int32) (err error) = advapi32.CheckTokenMembership
627
+//sys	isTokenRestricted(tokenHandle Token) (ret bool, err error) [!failretval] = advapi32.IsTokenRestricted
627 628
 //sys	OpenProcessToken(process Handle, access uint32, token *Token) (err error) = advapi32.OpenProcessToken
628 629
 //sys	OpenThreadToken(thread Handle, access uint32, openAsSelf bool, token *Token) (err error) = advapi32.OpenThreadToken
629 630
 //sys	ImpersonateSelf(impersonationlevel uint32) (err error) = advapi32.ImpersonateSelf
... ...
@@ -837,6 +838,16 @@ func (t Token) IsMember(sid *SID) (bool, error) {
837 837
 	return b != 0, nil
838 838
 }
839 839
 
840
+// IsRestricted reports whether the access token t is a restricted token.
841
+func (t Token) IsRestricted() (isRestricted bool, err error) {
842
+	isRestricted, err = isTokenRestricted(t)
843
+	if !isRestricted && err == syscall.EINVAL {
844
+		// If err is EINVAL, this returned ERROR_SUCCESS indicating a non-restricted token.
845
+		err = nil
846
+	}
847
+	return
848
+}
849
+
840 850
 const (
841 851
 	WTS_CONSOLE_CONNECT        = 0x1
842 852
 	WTS_CONSOLE_DISCONNECT     = 0x2
... ...
@@ -1103,9 +1114,10 @@ type OBJECTS_AND_NAME struct {
1103 1103
 }
1104 1104
 
1105 1105
 //sys	getSecurityInfo(handle Handle, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION, owner **SID, group **SID, dacl **ACL, sacl **ACL, sd **SECURITY_DESCRIPTOR) (ret error) = advapi32.GetSecurityInfo
1106
-//sys	SetSecurityInfo(handle Handle, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION, owner *SID, group *SID, dacl *ACL, sacl *ACL) = advapi32.SetSecurityInfo
1106
+//sys	SetSecurityInfo(handle Handle, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION, owner *SID, group *SID, dacl *ACL, sacl *ACL) (ret error) = advapi32.SetSecurityInfo
1107 1107
 //sys	getNamedSecurityInfo(objectName string, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION, owner **SID, group **SID, dacl **ACL, sacl **ACL, sd **SECURITY_DESCRIPTOR) (ret error) = advapi32.GetNamedSecurityInfoW
1108 1108
 //sys	SetNamedSecurityInfo(objectName string, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION, owner *SID, group *SID, dacl *ACL, sacl *ACL) (ret error) = advapi32.SetNamedSecurityInfoW
1109
+//sys	SetKernelObjectSecurity(handle Handle, securityInformation SECURITY_INFORMATION, securityDescriptor *SECURITY_DESCRIPTOR) (err error) = advapi32.SetKernelObjectSecurity
1109 1110
 
1110 1111
 //sys	buildSecurityDescriptor(owner *TRUSTEE, group *TRUSTEE, countAccessEntries uint32, accessEntries *EXPLICIT_ACCESS, countAuditEntries uint32, auditEntries *EXPLICIT_ACCESS, oldSecurityDescriptor *SECURITY_DESCRIPTOR, sizeNewSecurityDescriptor *uint32, newSecurityDescriptor **SECURITY_DESCRIPTOR) (ret error) = advapi32.BuildSecurityDescriptorW
1111 1112
 //sys	initializeSecurityDescriptor(absoluteSD *SECURITY_DESCRIPTOR, revision uint32) (err error) = advapi32.InitializeSecurityDescriptor
... ...
@@ -128,6 +128,10 @@ const (
128 128
 	SERVICE_NOTIFY_CREATED          = 0x00000080
129 129
 	SERVICE_NOTIFY_DELETED          = 0x00000100
130 130
 	SERVICE_NOTIFY_DELETE_PENDING   = 0x00000200
131
+
132
+	SC_EVENT_DATABASE_CHANGE = 0
133
+	SC_EVENT_PROPERTY_CHANGE = 1
134
+	SC_EVENT_STATUS_CHANGE   = 2
131 135
 )
132 136
 
133 137
 type SERVICE_STATUS struct {
... ...
@@ -229,3 +233,5 @@ type QUERY_SERVICE_LOCK_STATUS struct {
229 229
 //sys	EnumServicesStatusEx(mgr Handle, infoLevel uint32, serviceType uint32, serviceState uint32, services *byte, bufSize uint32, bytesNeeded *uint32, servicesReturned *uint32, resumeHandle *uint32, groupName *uint16) (err error) = advapi32.EnumServicesStatusExW
230 230
 //sys	QueryServiceStatusEx(service Handle, infoLevel uint32, buff *byte, buffSize uint32, bytesNeeded *uint32) (err error) = advapi32.QueryServiceStatusEx
231 231
 //sys	NotifyServiceStatusChange(service Handle, notifyMask uint32, notifier *SERVICE_NOTIFY) (ret error) = advapi32.NotifyServiceStatusChangeW
232
+//sys	SubscribeServiceChangeNotifications(service Handle, eventType uint32, callback uintptr, callbackCtx uintptr, subscription *uintptr) (ret error) = sechost.SubscribeServiceChangeNotifications?
233
+//sys	UnsubscribeServiceChangeNotifications(subscription uintptr) = sechost.UnsubscribeServiceChangeNotifications?
232 234
new file mode 100644
... ...
@@ -0,0 +1,100 @@
0
+// Copyright 2020 The Go Authors. All rights reserved.
1
+// Use of this source code is governed by a BSD-style
2
+// license that can be found in the LICENSE file.
3
+
4
+package windows
5
+
6
+import "syscall"
7
+
8
+const (
9
+	ERROR_EXPECTED_SECTION_NAME                  syscall.Errno = 0x20000000 | 0xC0000000 | 0
10
+	ERROR_BAD_SECTION_NAME_LINE                  syscall.Errno = 0x20000000 | 0xC0000000 | 1
11
+	ERROR_SECTION_NAME_TOO_LONG                  syscall.Errno = 0x20000000 | 0xC0000000 | 2
12
+	ERROR_GENERAL_SYNTAX                         syscall.Errno = 0x20000000 | 0xC0000000 | 3
13
+	ERROR_WRONG_INF_STYLE                        syscall.Errno = 0x20000000 | 0xC0000000 | 0x100
14
+	ERROR_SECTION_NOT_FOUND                      syscall.Errno = 0x20000000 | 0xC0000000 | 0x101
15
+	ERROR_LINE_NOT_FOUND                         syscall.Errno = 0x20000000 | 0xC0000000 | 0x102
16
+	ERROR_NO_BACKUP                              syscall.Errno = 0x20000000 | 0xC0000000 | 0x103
17
+	ERROR_NO_ASSOCIATED_CLASS                    syscall.Errno = 0x20000000 | 0xC0000000 | 0x200
18
+	ERROR_CLASS_MISMATCH                         syscall.Errno = 0x20000000 | 0xC0000000 | 0x201
19
+	ERROR_DUPLICATE_FOUND                        syscall.Errno = 0x20000000 | 0xC0000000 | 0x202
20
+	ERROR_NO_DRIVER_SELECTED                     syscall.Errno = 0x20000000 | 0xC0000000 | 0x203
21
+	ERROR_KEY_DOES_NOT_EXIST                     syscall.Errno = 0x20000000 | 0xC0000000 | 0x204
22
+	ERROR_INVALID_DEVINST_NAME                   syscall.Errno = 0x20000000 | 0xC0000000 | 0x205
23
+	ERROR_INVALID_CLASS                          syscall.Errno = 0x20000000 | 0xC0000000 | 0x206
24
+	ERROR_DEVINST_ALREADY_EXISTS                 syscall.Errno = 0x20000000 | 0xC0000000 | 0x207
25
+	ERROR_DEVINFO_NOT_REGISTERED                 syscall.Errno = 0x20000000 | 0xC0000000 | 0x208
26
+	ERROR_INVALID_REG_PROPERTY                   syscall.Errno = 0x20000000 | 0xC0000000 | 0x209
27
+	ERROR_NO_INF                                 syscall.Errno = 0x20000000 | 0xC0000000 | 0x20A
28
+	ERROR_NO_SUCH_DEVINST                        syscall.Errno = 0x20000000 | 0xC0000000 | 0x20B
29
+	ERROR_CANT_LOAD_CLASS_ICON                   syscall.Errno = 0x20000000 | 0xC0000000 | 0x20C
30
+	ERROR_INVALID_CLASS_INSTALLER                syscall.Errno = 0x20000000 | 0xC0000000 | 0x20D
31
+	ERROR_DI_DO_DEFAULT                          syscall.Errno = 0x20000000 | 0xC0000000 | 0x20E
32
+	ERROR_DI_NOFILECOPY                          syscall.Errno = 0x20000000 | 0xC0000000 | 0x20F
33
+	ERROR_INVALID_HWPROFILE                      syscall.Errno = 0x20000000 | 0xC0000000 | 0x210
34
+	ERROR_NO_DEVICE_SELECTED                     syscall.Errno = 0x20000000 | 0xC0000000 | 0x211
35
+	ERROR_DEVINFO_LIST_LOCKED                    syscall.Errno = 0x20000000 | 0xC0000000 | 0x212
36
+	ERROR_DEVINFO_DATA_LOCKED                    syscall.Errno = 0x20000000 | 0xC0000000 | 0x213
37
+	ERROR_DI_BAD_PATH                            syscall.Errno = 0x20000000 | 0xC0000000 | 0x214
38
+	ERROR_NO_CLASSINSTALL_PARAMS                 syscall.Errno = 0x20000000 | 0xC0000000 | 0x215
39
+	ERROR_FILEQUEUE_LOCKED                       syscall.Errno = 0x20000000 | 0xC0000000 | 0x216
40
+	ERROR_BAD_SERVICE_INSTALLSECT                syscall.Errno = 0x20000000 | 0xC0000000 | 0x217
41
+	ERROR_NO_CLASS_DRIVER_LIST                   syscall.Errno = 0x20000000 | 0xC0000000 | 0x218
42
+	ERROR_NO_ASSOCIATED_SERVICE                  syscall.Errno = 0x20000000 | 0xC0000000 | 0x219
43
+	ERROR_NO_DEFAULT_DEVICE_INTERFACE            syscall.Errno = 0x20000000 | 0xC0000000 | 0x21A
44
+	ERROR_DEVICE_INTERFACE_ACTIVE                syscall.Errno = 0x20000000 | 0xC0000000 | 0x21B
45
+	ERROR_DEVICE_INTERFACE_REMOVED               syscall.Errno = 0x20000000 | 0xC0000000 | 0x21C
46
+	ERROR_BAD_INTERFACE_INSTALLSECT              syscall.Errno = 0x20000000 | 0xC0000000 | 0x21D
47
+	ERROR_NO_SUCH_INTERFACE_CLASS                syscall.Errno = 0x20000000 | 0xC0000000 | 0x21E
48
+	ERROR_INVALID_REFERENCE_STRING               syscall.Errno = 0x20000000 | 0xC0000000 | 0x21F
49
+	ERROR_INVALID_MACHINENAME                    syscall.Errno = 0x20000000 | 0xC0000000 | 0x220
50
+	ERROR_REMOTE_COMM_FAILURE                    syscall.Errno = 0x20000000 | 0xC0000000 | 0x221
51
+	ERROR_MACHINE_UNAVAILABLE                    syscall.Errno = 0x20000000 | 0xC0000000 | 0x222
52
+	ERROR_NO_CONFIGMGR_SERVICES                  syscall.Errno = 0x20000000 | 0xC0000000 | 0x223
53
+	ERROR_INVALID_PROPPAGE_PROVIDER              syscall.Errno = 0x20000000 | 0xC0000000 | 0x224
54
+	ERROR_NO_SUCH_DEVICE_INTERFACE               syscall.Errno = 0x20000000 | 0xC0000000 | 0x225
55
+	ERROR_DI_POSTPROCESSING_REQUIRED             syscall.Errno = 0x20000000 | 0xC0000000 | 0x226
56
+	ERROR_INVALID_COINSTALLER                    syscall.Errno = 0x20000000 | 0xC0000000 | 0x227
57
+	ERROR_NO_COMPAT_DRIVERS                      syscall.Errno = 0x20000000 | 0xC0000000 | 0x228
58
+	ERROR_NO_DEVICE_ICON                         syscall.Errno = 0x20000000 | 0xC0000000 | 0x229
59
+	ERROR_INVALID_INF_LOGCONFIG                  syscall.Errno = 0x20000000 | 0xC0000000 | 0x22A
60
+	ERROR_DI_DONT_INSTALL                        syscall.Errno = 0x20000000 | 0xC0000000 | 0x22B
61
+	ERROR_INVALID_FILTER_DRIVER                  syscall.Errno = 0x20000000 | 0xC0000000 | 0x22C
62
+	ERROR_NON_WINDOWS_NT_DRIVER                  syscall.Errno = 0x20000000 | 0xC0000000 | 0x22D
63
+	ERROR_NON_WINDOWS_DRIVER                     syscall.Errno = 0x20000000 | 0xC0000000 | 0x22E
64
+	ERROR_NO_CATALOG_FOR_OEM_INF                 syscall.Errno = 0x20000000 | 0xC0000000 | 0x22F
65
+	ERROR_DEVINSTALL_QUEUE_NONNATIVE             syscall.Errno = 0x20000000 | 0xC0000000 | 0x230
66
+	ERROR_NOT_DISABLEABLE                        syscall.Errno = 0x20000000 | 0xC0000000 | 0x231
67
+	ERROR_CANT_REMOVE_DEVINST                    syscall.Errno = 0x20000000 | 0xC0000000 | 0x232
68
+	ERROR_INVALID_TARGET                         syscall.Errno = 0x20000000 | 0xC0000000 | 0x233
69
+	ERROR_DRIVER_NONNATIVE                       syscall.Errno = 0x20000000 | 0xC0000000 | 0x234
70
+	ERROR_IN_WOW64                               syscall.Errno = 0x20000000 | 0xC0000000 | 0x235
71
+	ERROR_SET_SYSTEM_RESTORE_POINT               syscall.Errno = 0x20000000 | 0xC0000000 | 0x236
72
+	ERROR_SCE_DISABLED                           syscall.Errno = 0x20000000 | 0xC0000000 | 0x238
73
+	ERROR_UNKNOWN_EXCEPTION                      syscall.Errno = 0x20000000 | 0xC0000000 | 0x239
74
+	ERROR_PNP_REGISTRY_ERROR                     syscall.Errno = 0x20000000 | 0xC0000000 | 0x23A
75
+	ERROR_REMOTE_REQUEST_UNSUPPORTED             syscall.Errno = 0x20000000 | 0xC0000000 | 0x23B
76
+	ERROR_NOT_AN_INSTALLED_OEM_INF               syscall.Errno = 0x20000000 | 0xC0000000 | 0x23C
77
+	ERROR_INF_IN_USE_BY_DEVICES                  syscall.Errno = 0x20000000 | 0xC0000000 | 0x23D
78
+	ERROR_DI_FUNCTION_OBSOLETE                   syscall.Errno = 0x20000000 | 0xC0000000 | 0x23E
79
+	ERROR_NO_AUTHENTICODE_CATALOG                syscall.Errno = 0x20000000 | 0xC0000000 | 0x23F
80
+	ERROR_AUTHENTICODE_DISALLOWED                syscall.Errno = 0x20000000 | 0xC0000000 | 0x240
81
+	ERROR_AUTHENTICODE_TRUSTED_PUBLISHER         syscall.Errno = 0x20000000 | 0xC0000000 | 0x241
82
+	ERROR_AUTHENTICODE_TRUST_NOT_ESTABLISHED     syscall.Errno = 0x20000000 | 0xC0000000 | 0x242
83
+	ERROR_AUTHENTICODE_PUBLISHER_NOT_TRUSTED     syscall.Errno = 0x20000000 | 0xC0000000 | 0x243
84
+	ERROR_SIGNATURE_OSATTRIBUTE_MISMATCH         syscall.Errno = 0x20000000 | 0xC0000000 | 0x244
85
+	ERROR_ONLY_VALIDATE_VIA_AUTHENTICODE         syscall.Errno = 0x20000000 | 0xC0000000 | 0x245
86
+	ERROR_DEVICE_INSTALLER_NOT_READY             syscall.Errno = 0x20000000 | 0xC0000000 | 0x246
87
+	ERROR_DRIVER_STORE_ADD_FAILED                syscall.Errno = 0x20000000 | 0xC0000000 | 0x247
88
+	ERROR_DEVICE_INSTALL_BLOCKED                 syscall.Errno = 0x20000000 | 0xC0000000 | 0x248
89
+	ERROR_DRIVER_INSTALL_BLOCKED                 syscall.Errno = 0x20000000 | 0xC0000000 | 0x249
90
+	ERROR_WRONG_INF_TYPE                         syscall.Errno = 0x20000000 | 0xC0000000 | 0x24A
91
+	ERROR_FILE_HASH_NOT_IN_CATALOG               syscall.Errno = 0x20000000 | 0xC0000000 | 0x24B
92
+	ERROR_DRIVER_STORE_DELETE_FAILED             syscall.Errno = 0x20000000 | 0xC0000000 | 0x24C
93
+	ERROR_UNRECOVERABLE_STACK_OVERFLOW           syscall.Errno = 0x20000000 | 0xC0000000 | 0x300
94
+	EXCEPTION_SPAPI_UNRECOVERABLE_STACK_OVERFLOW syscall.Errno = ERROR_UNRECOVERABLE_STACK_OVERFLOW
95
+	ERROR_NO_DEFAULT_INTERFACE_DEVICE            syscall.Errno = ERROR_NO_DEFAULT_DEVICE_INTERFACE
96
+	ERROR_INTERFACE_DEVICE_ACTIVE                syscall.Errno = ERROR_DEVICE_INTERFACE_ACTIVE
97
+	ERROR_INTERFACE_DEVICE_REMOVED               syscall.Errno = ERROR_DEVICE_INTERFACE_REMOVED
98
+	ERROR_NO_SUCH_INTERFACE_DEVICE               syscall.Errno = ERROR_NO_SUCH_DEVICE_INTERFACE
99
+)
... ...
@@ -98,6 +98,12 @@ func (s *Service) Config() (Config, error) {
98 98
 		delayedStart = true
99 99
 	}
100 100
 
101
+	b, err = s.queryServiceConfig2(windows.SERVICE_CONFIG_SERVICE_SID_INFO)
102
+	if err != nil {
103
+		return Config{}, err
104
+	}
105
+	sidType := *(*uint32)(unsafe.Pointer(&b[0]))
106
+
101 107
 	return Config{
102 108
 		ServiceType:      p.ServiceType,
103 109
 		StartType:        p.StartType,
... ...
@@ -110,6 +116,7 @@ func (s *Service) Config() (Config, error) {
110 110
 		DisplayName:      windows.UTF16PtrToString(p.DisplayName),
111 111
 		Description:      windows.UTF16PtrToString(p2.Description),
112 112
 		DelayedAutoStart: delayedStart,
113
+		SidType:          sidType,
113 114
 	}, nil
114 115
 }
115 116
 
... ...
@@ -117,9 +117,6 @@ func (m *Mgr) CreateService(name, exepath string, c Config, args ...string) (*Se
117 117
 	if c.StartType == 0 {
118 118
 		c.StartType = StartManual
119 119
 	}
120
-	if c.ErrorControl == 0 {
121
-		c.ErrorControl = ErrorNormal
122
-	}
123 120
 	if c.ServiceType == 0 {
124 121
 		c.ServiceType = windows.SERVICE_WIN32_OWN_PROCESS
125 122
 	}
... ...
@@ -68,8 +68,10 @@ func (s *Service) Query() (svc.Status, error) {
68 68
 		return svc.Status{}, err
69 69
 	}
70 70
 	return svc.Status{
71
-		State:     svc.State(t.CurrentState),
72
-		Accepts:   svc.Accepted(t.ControlsAccepted),
73
-		ProcessId: t.ProcessId,
71
+		State:                   svc.State(t.CurrentState),
72
+		Accepts:                 svc.Accepted(t.ControlsAccepted),
73
+		ProcessId:               t.ProcessId,
74
+		Win32ExitCode:           t.Win32ExitCode,
75
+		ServiceSpecificExitCode: t.ServiceSpecificExitCode,
74 76
 	}, nil
75 77
 }
... ...
@@ -71,11 +71,13 @@ const (
71 71
 
72 72
 // Status combines State and Accepted commands to fully describe running service.
73 73
 type Status struct {
74
-	State      State
75
-	Accepts    Accepted
76
-	CheckPoint uint32 // used to report progress during a lengthy operation
77
-	WaitHint   uint32 // estimated time required for a pending operation, in milliseconds
78
-	ProcessId  uint32 // if the service is running, the process identifier of it, and otherwise zero
74
+	State                   State
75
+	Accepts                 Accepted
76
+	CheckPoint              uint32 // used to report progress during a lengthy operation
77
+	WaitHint                uint32 // estimated time required for a pending operation, in milliseconds
78
+	ProcessId               uint32 // if the service is running, the process identifier of it, and otherwise zero
79
+	Win32ExitCode           uint32 // set if the service has exited with a win32 exit code
80
+	ServiceSpecificExitCode uint32 // set if the service has exited with a service-specific exit code
79 81
 }
80 82
 
81 83
 // ChangeRequest is sent to the service Handler to request service status change.
... ...
@@ -25,17 +25,20 @@
25 25
 package windows // import "golang.org/x/sys/windows"
26 26
 
27 27
 import (
28
+	"bytes"
29
+	"strings"
28 30
 	"syscall"
31
+	"unsafe"
32
+
33
+	"golang.org/x/sys/internal/unsafeheader"
29 34
 )
30 35
 
31 36
 // ByteSliceFromString returns a NUL-terminated slice of bytes
32 37
 // containing the text of s. If s contains a NUL byte at any
33 38
 // location, it returns (nil, syscall.EINVAL).
34 39
 func ByteSliceFromString(s string) ([]byte, error) {
35
-	for i := 0; i < len(s); i++ {
36
-		if s[i] == 0 {
37
-			return nil, syscall.EINVAL
38
-		}
40
+	if strings.IndexByte(s, 0) != -1 {
41
+		return nil, syscall.EINVAL
39 42
 	}
40 43
 	a := make([]byte, len(s)+1)
41 44
 	copy(a, s)
... ...
@@ -53,6 +56,41 @@ func BytePtrFromString(s string) (*byte, error) {
53 53
 	return &a[0], nil
54 54
 }
55 55
 
56
+// ByteSliceToString returns a string form of the text represented by the slice s, with a terminating NUL and any
57
+// bytes after the NUL removed.
58
+func ByteSliceToString(s []byte) string {
59
+	if i := bytes.IndexByte(s, 0); i != -1 {
60
+		s = s[:i]
61
+	}
62
+	return string(s)
63
+}
64
+
65
+// BytePtrToString takes a pointer to a sequence of text and returns the corresponding string.
66
+// If the pointer is nil, it returns the empty string. It assumes that the text sequence is terminated
67
+// at a zero byte; if the zero byte is not present, the program may crash.
68
+func BytePtrToString(p *byte) string {
69
+	if p == nil {
70
+		return ""
71
+	}
72
+	if *p == 0 {
73
+		return ""
74
+	}
75
+
76
+	// Find NUL terminator.
77
+	n := 0
78
+	for ptr := unsafe.Pointer(p); *(*byte)(ptr) != 0; n++ {
79
+		ptr = unsafe.Pointer(uintptr(ptr) + 1)
80
+	}
81
+
82
+	var s []byte
83
+	h := (*unsafeheader.Slice)(unsafe.Pointer(&s))
84
+	h.Data = unsafe.Pointer(p)
85
+	h.Len = n
86
+	h.Cap = n
87
+
88
+	return string(s)
89
+}
90
+
56 91
 // Single-word zero for use when we need a valid pointer to 0 bytes.
57 92
 // See mksyscall.pl.
58 93
 var _zero uintptr
... ...
@@ -18,6 +18,7 @@ import (
18 18
 )
19 19
 
20 20
 type Handle uintptr
21
+type HWND uintptr
21 22
 
22 23
 const (
23 24
 	InvalidHandle = ^Handle(0)
... ...
@@ -92,11 +93,11 @@ func UTF16FromString(s string) ([]uint16, error) {
92 92
 }
93 93
 
94 94
 // UTF16ToString returns the UTF-8 encoding of the UTF-16 sequence s,
95
-// with a terminating NUL removed.
95
+// with a terminating NUL and any bytes after the NUL removed.
96 96
 func UTF16ToString(s []uint16) string {
97 97
 	for i, v := range s {
98 98
 		if v == 0 {
99
-			s = s[0:i]
99
+			s = s[:i]
100 100
 			break
101 101
 		}
102 102
 	}
... ...
@@ -120,7 +121,7 @@ func UTF16PtrFromString(s string) (*uint16, error) {
120 120
 }
121 121
 
122 122
 // UTF16PtrToString takes a pointer to a UTF-16 sequence and returns the corresponding UTF-8 encoded string.
123
-// If the pointer is nil, this returns the empty string. This assumes that the UTF-16 sequence is terminated
123
+// If the pointer is nil, it returns the empty string. It assumes that the UTF-16 sequence is terminated
124 124
 // at a zero word; if the zero word is not present, the program may crash.
125 125
 func UTF16PtrToString(p *uint16) string {
126 126
 	if p == nil {
... ...
@@ -170,10 +171,13 @@ func NewCallbackCDecl(fn interface{}) uintptr {
170 170
 //sys	GetProcAddress(module Handle, procname string) (proc uintptr, err error)
171 171
 //sys	GetModuleFileName(module Handle, filename *uint16, size uint32) (n uint32, err error) = kernel32.GetModuleFileNameW
172 172
 //sys	GetModuleHandleEx(flags uint32, moduleName *uint16, module *Handle) (err error) = kernel32.GetModuleHandleExW
173
+//sys	SetDefaultDllDirectories(directoryFlags uint32) (err error)
174
+//sys	SetDllDirectory(path string) (err error) = kernel32.SetDllDirectoryW
173 175
 //sys	GetVersion() (ver uint32, err error)
174 176
 //sys	FormatMessage(flags uint32, msgsrc uintptr, msgid uint32, langid uint32, buf []uint16, args *byte) (n uint32, err error) = FormatMessageW
175 177
 //sys	ExitProcess(exitcode uint32)
176 178
 //sys	IsWow64Process(handle Handle, isWow64 *bool) (err error) = IsWow64Process
179
+//sys	IsWow64Process2(handle Handle, processMachine *uint16, nativeMachine *uint16) (err error) = IsWow64Process2?
177 180
 //sys	CreateFile(name *uint16, access uint32, mode uint32, sa *SecurityAttributes, createmode uint32, attrs uint32, templatefile Handle) (handle Handle, err error) [failretval==InvalidHandle] = CreateFileW
178 181
 //sys	ReadFile(handle Handle, buf []byte, done *uint32, overlapped *Overlapped) (err error)
179 182
 //sys	WriteFile(handle Handle, buf []byte, done *uint32, overlapped *Overlapped) (err error)
... ...
@@ -187,6 +191,7 @@ func NewCallbackCDecl(fn interface{}) uintptr {
187 187
 //sys	FindClose(handle Handle) (err error)
188 188
 //sys	GetFileInformationByHandle(handle Handle, data *ByHandleFileInformation) (err error)
189 189
 //sys	GetFileInformationByHandleEx(handle Handle, class uint32, outBuffer *byte, outBufferLen uint32) (err error)
190
+//sys	SetFileInformationByHandle(handle Handle, class uint32, inBuffer *byte, inBufferLen uint32) (err error)
190 191
 //sys	GetCurrentDirectory(buflen uint32, buf *uint16) (n uint32, err error) = GetCurrentDirectoryW
191 192
 //sys	SetCurrentDirectory(path *uint16) (err error) = SetCurrentDirectoryW
192 193
 //sys	CreateDirectory(path *uint16, sa *SecurityAttributes) (err error) = CreateDirectoryW
... ...
@@ -210,6 +215,10 @@ func NewCallbackCDecl(fn interface{}) uintptr {
210 210
 //sys	CreateProcess(appName *uint16, commandLine *uint16, procSecurity *SecurityAttributes, threadSecurity *SecurityAttributes, inheritHandles bool, creationFlags uint32, env *uint16, currentDir *uint16, startupInfo *StartupInfo, outProcInfo *ProcessInformation) (err error) = CreateProcessW
211 211
 //sys	OpenProcess(desiredAccess uint32, inheritHandle bool, processId uint32) (handle Handle, err error)
212 212
 //sys	ShellExecute(hwnd Handle, verb *uint16, file *uint16, args *uint16, cwd *uint16, showCmd int32) (err error) [failretval<=32] = shell32.ShellExecuteW
213
+//sys	GetWindowThreadProcessId(hwnd HWND, pid *uint32) (tid uint32) = user32.GetWindowThreadProcessId
214
+//sys	GetShellWindow() (shellWindow HWND) = user32.GetShellWindow
215
+//sys	MessageBox(hwnd HWND, text *uint16, caption *uint16, boxtype uint32) (ret int32, err error) [failretval==0] = user32.MessageBoxW
216
+//sys	ExitWindowsEx(flags uint32, reason uint32) (err error) = user32.ExitWindowsEx
213 217
 //sys	shGetKnownFolderPath(id *KNOWNFOLDERID, flags uint32, token Token, path **uint16) (ret error) = shell32.SHGetKnownFolderPath
214 218
 //sys	TerminateProcess(handle Handle, exitcode uint32) (err error)
215 219
 //sys	GetExitCodeProcess(handle Handle, exitcode *uint32) (err error)
... ...
@@ -243,6 +252,7 @@ func NewCallbackCDecl(fn interface{}) uintptr {
243 243
 //sys	GetFullPathName(path *uint16, buflen uint32, buf *uint16, fname **uint16) (n uint32, err error) = kernel32.GetFullPathNameW
244 244
 //sys	GetLongPathName(path *uint16, buf *uint16, buflen uint32) (n uint32, err error) = kernel32.GetLongPathNameW
245 245
 //sys	GetShortPathName(longpath *uint16, shortpath *uint16, buflen uint32) (n uint32, err error) = kernel32.GetShortPathNameW
246
+//sys	GetFinalPathNameByHandle(file Handle, filePath *uint16, filePathSize uint32, flags uint32) (n uint32, err error) = kernel32.GetFinalPathNameByHandleW
246 247
 //sys	CreateFileMapping(fhandle Handle, sa *SecurityAttributes, prot uint32, maxSizeHigh uint32, maxSizeLow uint32, name *uint16) (handle Handle, err error) = kernel32.CreateFileMappingW
247 248
 //sys	MapViewOfFile(handle Handle, access uint32, offsetHigh uint32, offsetLow uint32, length uintptr) (addr uintptr, err error)
248 249
 //sys	UnmapViewOfFile(addr uintptr) (err error)
... ...
@@ -255,10 +265,13 @@ func NewCallbackCDecl(fn interface{}) uintptr {
255 255
 //sys	TransmitFile(s Handle, handle Handle, bytesToWrite uint32, bytsPerSend uint32, overlapped *Overlapped, transmitFileBuf *TransmitFileBuffers, flags uint32) (err error) = mswsock.TransmitFile
256 256
 //sys	ReadDirectoryChanges(handle Handle, buf *byte, buflen uint32, watchSubTree bool, mask uint32, retlen *uint32, overlapped *Overlapped, completionRoutine uintptr) (err error) = kernel32.ReadDirectoryChangesW
257 257
 //sys	CertOpenSystemStore(hprov Handle, name *uint16) (store Handle, err error) = crypt32.CertOpenSystemStoreW
258
-//sys   CertOpenStore(storeProvider uintptr, msgAndCertEncodingType uint32, cryptProv uintptr, flags uint32, para uintptr) (handle Handle, err error) [failretval==InvalidHandle] = crypt32.CertOpenStore
258
+//sys   CertOpenStore(storeProvider uintptr, msgAndCertEncodingType uint32, cryptProv uintptr, flags uint32, para uintptr) (handle Handle, err error) = crypt32.CertOpenStore
259 259
 //sys	CertEnumCertificatesInStore(store Handle, prevContext *CertContext) (context *CertContext, err error) [failretval==nil] = crypt32.CertEnumCertificatesInStore
260 260
 //sys   CertAddCertificateContextToStore(store Handle, certContext *CertContext, addDisposition uint32, storeContext **CertContext) (err error) = crypt32.CertAddCertificateContextToStore
261 261
 //sys	CertCloseStore(store Handle, flags uint32) (err error) = crypt32.CertCloseStore
262
+//sys	CertDeleteCertificateFromStore(certContext *CertContext) (err error) = crypt32.CertDeleteCertificateFromStore
263
+//sys	CertDuplicateCertificateContext(certContext *CertContext) (dupContext *CertContext) = crypt32.CertDuplicateCertificateContext
264
+//sys   PFXImportCertStore(pfx *CryptDataBlob, password *uint16, flags uint32) (store Handle, err error) = crypt32.PFXImportCertStore
262 265
 //sys   CertGetCertificateChain(engine Handle, leaf *CertContext, time *Filetime, additionalStore Handle, para *CertChainPara, flags uint32, reserved uintptr, chainCtx **CertChainContext) (err error) = crypt32.CertGetCertificateChain
263 266
 //sys   CertFreeCertificateChain(ctx *CertChainContext) = crypt32.CertFreeCertificateChain
264 267
 //sys   CertCreateCertificateContext(certEncodingType uint32, certEncoded *byte, encodedLen uint32) (context *CertContext, err error) [failretval==nil] = crypt32.CertCreateCertificateContext
... ...
@@ -269,12 +282,13 @@ func NewCallbackCDecl(fn interface{}) uintptr {
269 269
 //sys	RegQueryInfoKey(key Handle, class *uint16, classLen *uint32, reserved *uint32, subkeysLen *uint32, maxSubkeyLen *uint32, maxClassLen *uint32, valuesLen *uint32, maxValueNameLen *uint32, maxValueLen *uint32, saLen *uint32, lastWriteTime *Filetime) (regerrno error) = advapi32.RegQueryInfoKeyW
270 270
 //sys	RegEnumKeyEx(key Handle, index uint32, name *uint16, nameLen *uint32, reserved *uint32, class *uint16, classLen *uint32, lastWriteTime *Filetime) (regerrno error) = advapi32.RegEnumKeyExW
271 271
 //sys	RegQueryValueEx(key Handle, name *uint16, reserved *uint32, valtype *uint32, buf *byte, buflen *uint32) (regerrno error) = advapi32.RegQueryValueExW
272
+//sys	RegNotifyChangeKeyValue(key Handle, watchSubtree bool, notifyFilter uint32, event Handle, asynchronous bool) (regerrno error) = advapi32.RegNotifyChangeKeyValue
272 273
 //sys	GetCurrentProcessId() (pid uint32) = kernel32.GetCurrentProcessId
273 274
 //sys	ProcessIdToSessionId(pid uint32, sessionid *uint32) (err error) = kernel32.ProcessIdToSessionId
274 275
 //sys	GetConsoleMode(console Handle, mode *uint32) (err error) = kernel32.GetConsoleMode
275 276
 //sys	SetConsoleMode(console Handle, mode uint32) (err error) = kernel32.SetConsoleMode
276 277
 //sys	GetConsoleScreenBufferInfo(console Handle, info *ConsoleScreenBufferInfo) (err error) = kernel32.GetConsoleScreenBufferInfo
277
-//sys	SetConsoleCursorPosition(console Handle, position Coord) (err error) = kernel32.SetConsoleCursorPosition
278
+//sys	setConsoleCursorPosition(console Handle, position uint32) (err error) = kernel32.SetConsoleCursorPosition
278 279
 //sys	WriteConsole(console Handle, buf *uint16, towrite uint32, written *uint32, reserved *byte) (err error) = kernel32.WriteConsoleW
279 280
 //sys	ReadConsole(console Handle, buf *uint16, toread uint32, read *uint32, inputControl *byte) (err error) = kernel32.ReadConsoleW
280 281
 //sys	CreateToolhelp32Snapshot(flags uint32, processId uint32) (handle Handle, err error) [failretval==InvalidHandle] = kernel32.CreateToolhelp32Snapshot
... ...
@@ -335,8 +349,6 @@ func NewCallbackCDecl(fn interface{}) uintptr {
335 335
 //sys	QueryDosDevice(deviceName *uint16, targetPath *uint16, max uint32) (n uint32, err error) [failretval==0] = QueryDosDeviceW
336 336
 //sys	SetVolumeLabel(rootPathName *uint16, volumeName *uint16) (err error) = SetVolumeLabelW
337 337
 //sys	SetVolumeMountPoint(volumeMountPoint *uint16, volumeName *uint16) (err error) = SetVolumeMountPointW
338
-//sys	MessageBox(hwnd Handle, text *uint16, caption *uint16, boxtype uint32) (ret int32, err error) [failretval==0] = user32.MessageBoxW
339
-//sys	ExitWindowsEx(flags uint32, reason uint32) (err error) = user32.ExitWindowsEx
340 338
 //sys	InitiateSystemShutdownEx(machineName *uint16, message *uint16, timeout uint32, forceAppsClosed bool, rebootAfterShutdown bool, reason uint32) (err error) = advapi32.InitiateSystemShutdownExW
341 339
 //sys	SetProcessShutdownParameters(level uint32, flags uint32) (err error) = kernel32.SetProcessShutdownParameters
342 340
 //sys	GetProcessShutdownParameters(level *uint32, flags *uint32) (err error) = kernel32.GetProcessShutdownParameters
... ...
@@ -1478,3 +1490,7 @@ func getUILanguages(flags uint32, f func(flags uint32, numLanguages *uint32, buf
1478 1478
 		return languages, nil
1479 1479
 	}
1480 1480
 }
1481
+
1482
+func SetConsoleCursorPosition(console Handle, position Coord) error {
1483
+	return setConsoleCursorPosition(console, *((*uint32)(unsafe.Pointer(&position))))
1484
+}
... ...
@@ -249,24 +249,27 @@ const (
249 249
 
250 250
 const (
251 251
 	// wincrypt.h
252
-	PROV_RSA_FULL                    = 1
253
-	PROV_RSA_SIG                     = 2
254
-	PROV_DSS                         = 3
255
-	PROV_FORTEZZA                    = 4
256
-	PROV_MS_EXCHANGE                 = 5
257
-	PROV_SSL                         = 6
258
-	PROV_RSA_SCHANNEL                = 12
259
-	PROV_DSS_DH                      = 13
260
-	PROV_EC_ECDSA_SIG                = 14
261
-	PROV_EC_ECNRA_SIG                = 15
262
-	PROV_EC_ECDSA_FULL               = 16
263
-	PROV_EC_ECNRA_FULL               = 17
264
-	PROV_DH_SCHANNEL                 = 18
265
-	PROV_SPYRUS_LYNKS                = 20
266
-	PROV_RNG                         = 21
267
-	PROV_INTEL_SEC                   = 22
268
-	PROV_REPLACE_OWF                 = 23
269
-	PROV_RSA_AES                     = 24
252
+	/* certenrolld_begin -- PROV_RSA_*/
253
+	PROV_RSA_FULL      = 1
254
+	PROV_RSA_SIG       = 2
255
+	PROV_DSS           = 3
256
+	PROV_FORTEZZA      = 4
257
+	PROV_MS_EXCHANGE   = 5
258
+	PROV_SSL           = 6
259
+	PROV_RSA_SCHANNEL  = 12
260
+	PROV_DSS_DH        = 13
261
+	PROV_EC_ECDSA_SIG  = 14
262
+	PROV_EC_ECNRA_SIG  = 15
263
+	PROV_EC_ECDSA_FULL = 16
264
+	PROV_EC_ECNRA_FULL = 17
265
+	PROV_DH_SCHANNEL   = 18
266
+	PROV_SPYRUS_LYNKS  = 20
267
+	PROV_RNG           = 21
268
+	PROV_INTEL_SEC     = 22
269
+	PROV_REPLACE_OWF   = 23
270
+	PROV_RSA_AES       = 24
271
+
272
+	/* dwFlags definitions for CryptAcquireContext */
270 273
 	CRYPT_VERIFYCONTEXT              = 0xF0000000
271 274
 	CRYPT_NEWKEYSET                  = 0x00000008
272 275
 	CRYPT_DELETEKEYSET               = 0x00000010
... ...
@@ -274,6 +277,17 @@ const (
274 274
 	CRYPT_SILENT                     = 0x00000040
275 275
 	CRYPT_DEFAULT_CONTAINER_OPTIONAL = 0x00000080
276 276
 
277
+	/* Flags for PFXImportCertStore */
278
+	CRYPT_EXPORTABLE                   = 0x00000001
279
+	CRYPT_USER_PROTECTED               = 0x00000002
280
+	CRYPT_USER_KEYSET                  = 0x00001000
281
+	PKCS12_PREFER_CNG_KSP              = 0x00000100
282
+	PKCS12_ALWAYS_CNG_KSP              = 0x00000200
283
+	PKCS12_ALLOW_OVERWRITE_KEY         = 0x00004000
284
+	PKCS12_NO_PERSIST_KEY              = 0x00008000
285
+	PKCS12_INCLUDE_EXTENDED_PROPERTIES = 0x00000010
286
+
287
+	/* Default usage match type is AND with value zero */
277 288
 	USAGE_MATCH_TYPE_AND = 0
278 289
 	USAGE_MATCH_TYPE_OR  = 1
279 290
 
... ...
@@ -409,6 +423,10 @@ const (
409 409
 	CERT_CHAIN_POLICY_EV                = 8
410 410
 	CERT_CHAIN_POLICY_SSL_F12           = 9
411 411
 
412
+	/* Certificate Store close flags */
413
+	CERT_CLOSE_STORE_FORCE_FLAG = 0x00000001
414
+	CERT_CLOSE_STORE_CHECK_FLAG = 0x00000002
415
+
412 416
 	/* AuthType values for SSLExtraCertChainPolicyPara struct */
413 417
 	AUTHTYPE_CLIENT = 1
414 418
 	AUTHTYPE_SERVER = 2
... ...
@@ -1139,6 +1157,11 @@ type CertChainPolicyStatus struct {
1139 1139
 	ExtraPolicyStatus Pointer
1140 1140
 }
1141 1141
 
1142
+type CryptDataBlob struct {
1143
+	Size uint32
1144
+	Data *byte
1145
+}
1146
+
1142 1147
 const (
1143 1148
 	// do not reorder
1144 1149
 	HKEY_CLASSES_ROOT = 0x80000000 + iota
... ...
@@ -1772,3 +1795,69 @@ const (
1772 1772
 	MUI_LANGUAGE_INSTALLED = 0x20
1773 1773
 	MUI_LANGUAGE_LICENSED  = 0x40
1774 1774
 )
1775
+
1776
+// FILE_INFO_BY_HANDLE_CLASS constants for SetFileInformationByHandle/GetFileInformationByHandleEx
1777
+const (
1778
+	FileBasicInfo                  = 0
1779
+	FileStandardInfo               = 1
1780
+	FileNameInfo                   = 2
1781
+	FileRenameInfo                 = 3
1782
+	FileDispositionInfo            = 4
1783
+	FileAllocationInfo             = 5
1784
+	FileEndOfFileInfo              = 6
1785
+	FileStreamInfo                 = 7
1786
+	FileCompressionInfo            = 8
1787
+	FileAttributeTagInfo           = 9
1788
+	FileIdBothDirectoryInfo        = 10
1789
+	FileIdBothDirectoryRestartInfo = 11
1790
+	FileIoPriorityHintInfo         = 12
1791
+	FileRemoteProtocolInfo         = 13
1792
+	FileFullDirectoryInfo          = 14
1793
+	FileFullDirectoryRestartInfo   = 15
1794
+	FileStorageInfo                = 16
1795
+	FileAlignmentInfo              = 17
1796
+	FileIdInfo                     = 18
1797
+	FileIdExtdDirectoryInfo        = 19
1798
+	FileIdExtdDirectoryRestartInfo = 20
1799
+	FileDispositionInfoEx          = 21
1800
+	FileRenameInfoEx               = 22
1801
+	FileCaseSensitiveInfo          = 23
1802
+	FileNormalizedNameInfo         = 24
1803
+)
1804
+
1805
+// LoadLibrary flags for determining from where to search for a DLL
1806
+const (
1807
+	DONT_RESOLVE_DLL_REFERENCES               = 0x1
1808
+	LOAD_LIBRARY_AS_DATAFILE                  = 0x2
1809
+	LOAD_WITH_ALTERED_SEARCH_PATH             = 0x8
1810
+	LOAD_IGNORE_CODE_AUTHZ_LEVEL              = 0x10
1811
+	LOAD_LIBRARY_AS_IMAGE_RESOURCE            = 0x20
1812
+	LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE        = 0x40
1813
+	LOAD_LIBRARY_REQUIRE_SIGNED_TARGET        = 0x80
1814
+	LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR          = 0x100
1815
+	LOAD_LIBRARY_SEARCH_APPLICATION_DIR       = 0x200
1816
+	LOAD_LIBRARY_SEARCH_USER_DIRS             = 0x400
1817
+	LOAD_LIBRARY_SEARCH_SYSTEM32              = 0x800
1818
+	LOAD_LIBRARY_SEARCH_DEFAULT_DIRS          = 0x1000
1819
+	LOAD_LIBRARY_SAFE_CURRENT_DIRS            = 0x00002000
1820
+	LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER = 0x00004000
1821
+	LOAD_LIBRARY_OS_INTEGRITY_CONTINUITY      = 0x00008000
1822
+)
1823
+
1824
+// RegNotifyChangeKeyValue notifyFilter flags.
1825
+const (
1826
+	// REG_NOTIFY_CHANGE_NAME notifies the caller if a subkey is added or deleted.
1827
+	REG_NOTIFY_CHANGE_NAME = 0x00000001
1828
+
1829
+	// REG_NOTIFY_CHANGE_ATTRIBUTES notifies the caller of changes to the attributes of the key, such as the security descriptor information.
1830
+	REG_NOTIFY_CHANGE_ATTRIBUTES = 0x00000002
1831
+
1832
+	// REG_NOTIFY_CHANGE_LAST_SET notifies the caller of changes to a value of the key. This can include adding or deleting a value, or changing an existing value.
1833
+	REG_NOTIFY_CHANGE_LAST_SET = 0x00000004
1834
+
1835
+	// REG_NOTIFY_CHANGE_SECURITY notifies the caller of changes to the security descriptor of the key.
1836
+	REG_NOTIFY_CHANGE_SECURITY = 0x00000008
1837
+
1838
+	// REG_NOTIFY_THREAD_AGNOSTIC indicates that the lifetime of the registration must not be tied to the lifetime of the thread issuing the RegNotifyChangeKeyValue call. Note: This flag value is only supported in Windows 8 and later.
1839
+	REG_NOTIFY_THREAD_AGNOSTIC = 0x10000000
1840
+)
... ...
@@ -17,6 +17,7 @@ const (
17 17
 
18 18
 var (
19 19
 	errERROR_IO_PENDING error = syscall.Errno(errnoERROR_IO_PENDING)
20
+	errERROR_EINVAL     error = syscall.EINVAL
20 21
 )
21 22
 
22 23
 // errnoErr returns common boxed Errno values, to prevent
... ...
@@ -24,7 +25,7 @@ var (
24 24
 func errnoErr(e syscall.Errno) error {
25 25
 	switch e {
26 26
 	case 0:
27
-		return syscall.EINVAL
27
+		return errERROR_EINVAL
28 28
 	case errnoERROR_IO_PENDING:
29 29
 		return errERROR_IO_PENDING
30 30
 	}
... ...
@@ -45,6 +46,7 @@ var (
45 45
 	modntdll    = NewLazySystemDLL("ntdll.dll")
46 46
 	modole32    = NewLazySystemDLL("ole32.dll")
47 47
 	modpsapi    = NewLazySystemDLL("psapi.dll")
48
+	modsechost  = NewLazySystemDLL("sechost.dll")
48 49
 	modsecur32  = NewLazySystemDLL("secur32.dll")
49 50
 	modshell32  = NewLazySystemDLL("shell32.dll")
50 51
 	moduser32   = NewLazySystemDLL("user32.dll")
... ...
@@ -94,6 +96,7 @@ var (
94 94
 	procImpersonateSelf                                      = modadvapi32.NewProc("ImpersonateSelf")
95 95
 	procInitializeSecurityDescriptor                         = modadvapi32.NewProc("InitializeSecurityDescriptor")
96 96
 	procInitiateSystemShutdownExW                            = modadvapi32.NewProc("InitiateSystemShutdownExW")
97
+	procIsTokenRestricted                                    = modadvapi32.NewProc("IsTokenRestricted")
97 98
 	procIsValidSecurityDescriptor                            = modadvapi32.NewProc("IsValidSecurityDescriptor")
98 99
 	procIsValidSid                                           = modadvapi32.NewProc("IsValidSid")
99 100
 	procIsWellKnownSid                                       = modadvapi32.NewProc("IsWellKnownSid")
... ...
@@ -114,6 +117,7 @@ var (
114 114
 	procQueryServiceStatusEx                                 = modadvapi32.NewProc("QueryServiceStatusEx")
115 115
 	procRegCloseKey                                          = modadvapi32.NewProc("RegCloseKey")
116 116
 	procRegEnumKeyExW                                        = modadvapi32.NewProc("RegEnumKeyExW")
117
+	procRegNotifyChangeKeyValue                              = modadvapi32.NewProc("RegNotifyChangeKeyValue")
117 118
 	procRegOpenKeyExW                                        = modadvapi32.NewProc("RegOpenKeyExW")
118 119
 	procRegQueryInfoKeyW                                     = modadvapi32.NewProc("RegQueryInfoKeyW")
119 120
 	procRegQueryValueExW                                     = modadvapi32.NewProc("RegQueryValueExW")
... ...
@@ -121,6 +125,7 @@ var (
121 121
 	procReportEventW                                         = modadvapi32.NewProc("ReportEventW")
122 122
 	procRevertToSelf                                         = modadvapi32.NewProc("RevertToSelf")
123 123
 	procSetEntriesInAclW                                     = modadvapi32.NewProc("SetEntriesInAclW")
124
+	procSetKernelObjectSecurity                              = modadvapi32.NewProc("SetKernelObjectSecurity")
124 125
 	procSetNamedSecurityInfoW                                = modadvapi32.NewProc("SetNamedSecurityInfoW")
125 126
 	procSetSecurityDescriptorControl                         = modadvapi32.NewProc("SetSecurityDescriptorControl")
126 127
 	procSetSecurityDescriptorDacl                            = modadvapi32.NewProc("SetSecurityDescriptorDacl")
... ...
@@ -137,6 +142,8 @@ var (
137 137
 	procCertAddCertificateContextToStore                     = modcrypt32.NewProc("CertAddCertificateContextToStore")
138 138
 	procCertCloseStore                                       = modcrypt32.NewProc("CertCloseStore")
139 139
 	procCertCreateCertificateContext                         = modcrypt32.NewProc("CertCreateCertificateContext")
140
+	procCertDeleteCertificateFromStore                       = modcrypt32.NewProc("CertDeleteCertificateFromStore")
141
+	procCertDuplicateCertificateContext                      = modcrypt32.NewProc("CertDuplicateCertificateContext")
140 142
 	procCertEnumCertificatesInStore                          = modcrypt32.NewProc("CertEnumCertificatesInStore")
141 143
 	procCertFreeCertificateChain                             = modcrypt32.NewProc("CertFreeCertificateChain")
142 144
 	procCertFreeCertificateContext                           = modcrypt32.NewProc("CertFreeCertificateContext")
... ...
@@ -144,6 +151,7 @@ var (
144 144
 	procCertOpenStore                                        = modcrypt32.NewProc("CertOpenStore")
145 145
 	procCertOpenSystemStoreW                                 = modcrypt32.NewProc("CertOpenSystemStoreW")
146 146
 	procCertVerifyCertificateChainPolicy                     = modcrypt32.NewProc("CertVerifyCertificateChainPolicy")
147
+	procPFXImportCertStore                                   = modcrypt32.NewProc("PFXImportCertStore")
147 148
 	procDnsNameCompare_W                                     = moddnsapi.NewProc("DnsNameCompare_W")
148 149
 	procDnsQuery_W                                           = moddnsapi.NewProc("DnsQuery_W")
149 150
 	procDnsRecordListFree                                    = moddnsapi.NewProc("DnsRecordListFree")
... ...
@@ -208,6 +216,7 @@ var (
208 208
 	procGetFileInformationByHandle                           = modkernel32.NewProc("GetFileInformationByHandle")
209 209
 	procGetFileInformationByHandleEx                         = modkernel32.NewProc("GetFileInformationByHandleEx")
210 210
 	procGetFileType                                          = modkernel32.NewProc("GetFileType")
211
+	procGetFinalPathNameByHandleW                            = modkernel32.NewProc("GetFinalPathNameByHandleW")
211 212
 	procGetFullPathNameW                                     = modkernel32.NewProc("GetFullPathNameW")
212 213
 	procGetLastError                                         = modkernel32.NewProc("GetLastError")
213 214
 	procGetLogicalDriveStringsW                              = modkernel32.NewProc("GetLogicalDriveStringsW")
... ...
@@ -245,6 +254,7 @@ var (
245 245
 	procGetVolumePathNamesForVolumeNameW                     = modkernel32.NewProc("GetVolumePathNamesForVolumeNameW")
246 246
 	procGetWindowsDirectoryW                                 = modkernel32.NewProc("GetWindowsDirectoryW")
247 247
 	procIsWow64Process                                       = modkernel32.NewProc("IsWow64Process")
248
+	procIsWow64Process2                                      = modkernel32.NewProc("IsWow64Process2")
248 249
 	procLoadLibraryExW                                       = modkernel32.NewProc("LoadLibraryExW")
249 250
 	procLoadLibraryW                                         = modkernel32.NewProc("LoadLibraryW")
250 251
 	procLocalFree                                            = modkernel32.NewProc("LocalFree")
... ...
@@ -274,12 +284,15 @@ var (
274 274
 	procSetConsoleCursorPosition                             = modkernel32.NewProc("SetConsoleCursorPosition")
275 275
 	procSetConsoleMode                                       = modkernel32.NewProc("SetConsoleMode")
276 276
 	procSetCurrentDirectoryW                                 = modkernel32.NewProc("SetCurrentDirectoryW")
277
+	procSetDefaultDllDirectories                             = modkernel32.NewProc("SetDefaultDllDirectories")
278
+	procSetDllDirectoryW                                     = modkernel32.NewProc("SetDllDirectoryW")
277 279
 	procSetEndOfFile                                         = modkernel32.NewProc("SetEndOfFile")
278 280
 	procSetEnvironmentVariableW                              = modkernel32.NewProc("SetEnvironmentVariableW")
279 281
 	procSetErrorMode                                         = modkernel32.NewProc("SetErrorMode")
280 282
 	procSetEvent                                             = modkernel32.NewProc("SetEvent")
281 283
 	procSetFileAttributesW                                   = modkernel32.NewProc("SetFileAttributesW")
282 284
 	procSetFileCompletionNotificationModes                   = modkernel32.NewProc("SetFileCompletionNotificationModes")
285
+	procSetFileInformationByHandle                           = modkernel32.NewProc("SetFileInformationByHandle")
283 286
 	procSetFilePointer                                       = modkernel32.NewProc("SetFilePointer")
284 287
 	procSetFileTime                                          = modkernel32.NewProc("SetFileTime")
285 288
 	procSetHandleInformation                                 = modkernel32.NewProc("SetHandleInformation")
... ...
@@ -320,12 +333,16 @@ var (
320 320
 	procCoTaskMemFree                                        = modole32.NewProc("CoTaskMemFree")
321 321
 	procStringFromGUID2                                      = modole32.NewProc("StringFromGUID2")
322 322
 	procEnumProcesses                                        = modpsapi.NewProc("EnumProcesses")
323
+	procSubscribeServiceChangeNotifications                  = modsechost.NewProc("SubscribeServiceChangeNotifications")
324
+	procUnsubscribeServiceChangeNotifications                = modsechost.NewProc("UnsubscribeServiceChangeNotifications")
323 325
 	procGetUserNameExW                                       = modsecur32.NewProc("GetUserNameExW")
324 326
 	procTranslateNameW                                       = modsecur32.NewProc("TranslateNameW")
325 327
 	procCommandLineToArgvW                                   = modshell32.NewProc("CommandLineToArgvW")
326 328
 	procSHGetKnownFolderPath                                 = modshell32.NewProc("SHGetKnownFolderPath")
327 329
 	procShellExecuteW                                        = modshell32.NewProc("ShellExecuteW")
328 330
 	procExitWindowsEx                                        = moduser32.NewProc("ExitWindowsEx")
331
+	procGetShellWindow                                       = moduser32.NewProc("GetShellWindow")
332
+	procGetWindowThreadProcessId                             = moduser32.NewProc("GetWindowThreadProcessId")
329 333
 	procMessageBoxW                                          = moduser32.NewProc("MessageBoxW")
330 334
 	procCreateEnvironmentBlock                               = moduserenv.NewProc("CreateEnvironmentBlock")
331 335
 	procDestroyEnvironmentBlock                              = moduserenv.NewProc("DestroyEnvironmentBlock")
... ...
@@ -750,6 +767,15 @@ func InitiateSystemShutdownEx(machineName *uint16, message *uint16, timeout uint
750 750
 	return
751 751
 }
752 752
 
753
+func isTokenRestricted(tokenHandle Token) (ret bool, err error) {
754
+	r0, _, e1 := syscall.Syscall(procIsTokenRestricted.Addr(), 1, uintptr(tokenHandle), 0, 0)
755
+	ret = r0 != 0
756
+	if !ret {
757
+		err = errnoErr(e1)
758
+	}
759
+	return
760
+}
761
+
753 762
 func isValidSecurityDescriptor(sd *SECURITY_DESCRIPTOR) (isValid bool) {
754 763
 	r0, _, _ := syscall.Syscall(procIsValidSecurityDescriptor.Addr(), 1, uintptr(unsafe.Pointer(sd)), 0, 0)
755 764
 	isValid = r0 != 0
... ...
@@ -910,6 +936,22 @@ func RegEnumKeyEx(key Handle, index uint32, name *uint16, nameLen *uint32, reser
910 910
 	return
911 911
 }
912 912
 
913
+func RegNotifyChangeKeyValue(key Handle, watchSubtree bool, notifyFilter uint32, event Handle, asynchronous bool) (regerrno error) {
914
+	var _p0 uint32
915
+	if watchSubtree {
916
+		_p0 = 1
917
+	}
918
+	var _p1 uint32
919
+	if asynchronous {
920
+		_p1 = 1
921
+	}
922
+	r0, _, _ := syscall.Syscall6(procRegNotifyChangeKeyValue.Addr(), 5, uintptr(key), uintptr(_p0), uintptr(notifyFilter), uintptr(event), uintptr(_p1), 0)
923
+	if r0 != 0 {
924
+		regerrno = syscall.Errno(r0)
925
+	}
926
+	return
927
+}
928
+
913 929
 func RegOpenKeyEx(key Handle, subkey *uint16, options uint32, desiredAccess uint32, result *Handle) (regerrno error) {
914 930
 	r0, _, _ := syscall.Syscall6(procRegOpenKeyExW.Addr(), 5, uintptr(key), uintptr(unsafe.Pointer(subkey)), uintptr(options), uintptr(desiredAccess), uintptr(unsafe.Pointer(result)), 0)
915 931
 	if r0 != 0 {
... ...
@@ -967,6 +1009,14 @@ func setEntriesInAcl(countExplicitEntries uint32, explicitEntries *EXPLICIT_ACCE
967 967
 	return
968 968
 }
969 969
 
970
+func SetKernelObjectSecurity(handle Handle, securityInformation SECURITY_INFORMATION, securityDescriptor *SECURITY_DESCRIPTOR) (err error) {
971
+	r1, _, e1 := syscall.Syscall(procSetKernelObjectSecurity.Addr(), 3, uintptr(handle), uintptr(securityInformation), uintptr(unsafe.Pointer(securityDescriptor)))
972
+	if r1 == 0 {
973
+		err = errnoErr(e1)
974
+	}
975
+	return
976
+}
977
+
970 978
 func SetNamedSecurityInfo(objectName string, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION, owner *SID, group *SID, dacl *ACL, sacl *ACL) (ret error) {
971 979
 	var _p0 *uint16
972 980
 	_p0, ret = syscall.UTF16PtrFromString(objectName)
... ...
@@ -1053,8 +1103,11 @@ func setSecurityDescriptorSacl(sd *SECURITY_DESCRIPTOR, saclPresent bool, sacl *
1053 1053
 	return
1054 1054
 }
1055 1055
 
1056
-func SetSecurityInfo(handle Handle, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION, owner *SID, group *SID, dacl *ACL, sacl *ACL) {
1057
-	syscall.Syscall9(procSetSecurityInfo.Addr(), 7, uintptr(handle), uintptr(objectType), uintptr(securityInformation), uintptr(unsafe.Pointer(owner)), uintptr(unsafe.Pointer(group)), uintptr(unsafe.Pointer(dacl)), uintptr(unsafe.Pointer(sacl)), 0, 0)
1056
+func SetSecurityInfo(handle Handle, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION, owner *SID, group *SID, dacl *ACL, sacl *ACL) (ret error) {
1057
+	r0, _, _ := syscall.Syscall9(procSetSecurityInfo.Addr(), 7, uintptr(handle), uintptr(objectType), uintptr(securityInformation), uintptr(unsafe.Pointer(owner)), uintptr(unsafe.Pointer(group)), uintptr(unsafe.Pointer(dacl)), uintptr(unsafe.Pointer(sacl)), 0, 0)
1058
+	if r0 != 0 {
1059
+		ret = syscall.Errno(r0)
1060
+	}
1058 1061
 	return
1059 1062
 }
1060 1063
 
... ...
@@ -1123,6 +1176,20 @@ func CertCreateCertificateContext(certEncodingType uint32, certEncoded *byte, en
1123 1123
 	return
1124 1124
 }
1125 1125
 
1126
+func CertDeleteCertificateFromStore(certContext *CertContext) (err error) {
1127
+	r1, _, e1 := syscall.Syscall(procCertDeleteCertificateFromStore.Addr(), 1, uintptr(unsafe.Pointer(certContext)), 0, 0)
1128
+	if r1 == 0 {
1129
+		err = errnoErr(e1)
1130
+	}
1131
+	return
1132
+}
1133
+
1134
+func CertDuplicateCertificateContext(certContext *CertContext) (dupContext *CertContext) {
1135
+	r0, _, _ := syscall.Syscall(procCertDuplicateCertificateContext.Addr(), 1, uintptr(unsafe.Pointer(certContext)), 0, 0)
1136
+	dupContext = (*CertContext)(unsafe.Pointer(r0))
1137
+	return
1138
+}
1139
+
1126 1140
 func CertEnumCertificatesInStore(store Handle, prevContext *CertContext) (context *CertContext, err error) {
1127 1141
 	r0, _, e1 := syscall.Syscall(procCertEnumCertificatesInStore.Addr(), 2, uintptr(store), uintptr(unsafe.Pointer(prevContext)), 0)
1128 1142
 	context = (*CertContext)(unsafe.Pointer(r0))
... ...
@@ -1156,7 +1223,7 @@ func CertGetCertificateChain(engine Handle, leaf *CertContext, time *Filetime, a
1156 1156
 func CertOpenStore(storeProvider uintptr, msgAndCertEncodingType uint32, cryptProv uintptr, flags uint32, para uintptr) (handle Handle, err error) {
1157 1157
 	r0, _, e1 := syscall.Syscall6(procCertOpenStore.Addr(), 5, uintptr(storeProvider), uintptr(msgAndCertEncodingType), uintptr(cryptProv), uintptr(flags), uintptr(para), 0)
1158 1158
 	handle = Handle(r0)
1159
-	if handle == InvalidHandle {
1159
+	if handle == 0 {
1160 1160
 		err = errnoErr(e1)
1161 1161
 	}
1162 1162
 	return
... ...
@@ -1179,6 +1246,15 @@ func CertVerifyCertificateChainPolicy(policyOID uintptr, chain *CertChainContext
1179 1179
 	return
1180 1180
 }
1181 1181
 
1182
+func PFXImportCertStore(pfx *CryptDataBlob, password *uint16, flags uint32) (store Handle, err error) {
1183
+	r0, _, e1 := syscall.Syscall(procPFXImportCertStore.Addr(), 3, uintptr(unsafe.Pointer(pfx)), uintptr(unsafe.Pointer(password)), uintptr(flags))
1184
+	store = Handle(r0)
1185
+	if store == 0 {
1186
+		err = errnoErr(e1)
1187
+	}
1188
+	return
1189
+}
1190
+
1182 1191
 func DnsNameCompare(name1 *uint16, name2 *uint16) (same bool) {
1183 1192
 	r0, _, _ := syscall.Syscall(procDnsNameCompare_W.Addr(), 2, uintptr(unsafe.Pointer(name1)), uintptr(unsafe.Pointer(name2)), 0)
1184 1193
 	same = r0 != 0
... ...
@@ -1716,6 +1792,15 @@ func GetFileType(filehandle Handle) (n uint32, err error) {
1716 1716
 	return
1717 1717
 }
1718 1718
 
1719
+func GetFinalPathNameByHandle(file Handle, filePath *uint16, filePathSize uint32, flags uint32) (n uint32, err error) {
1720
+	r0, _, e1 := syscall.Syscall6(procGetFinalPathNameByHandleW.Addr(), 4, uintptr(file), uintptr(unsafe.Pointer(filePath)), uintptr(filePathSize), uintptr(flags), 0, 0)
1721
+	n = uint32(r0)
1722
+	if n == 0 {
1723
+		err = errnoErr(e1)
1724
+	}
1725
+	return
1726
+}
1727
+
1719 1728
 func GetFullPathName(path *uint16, buflen uint32, buf *uint16, fname **uint16) (n uint32, err error) {
1720 1729
 	r0, _, e1 := syscall.Syscall6(procGetFullPathNameW.Addr(), 4, uintptr(unsafe.Pointer(path)), uintptr(buflen), uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(fname)), 0, 0)
1721 1730
 	n = uint32(r0)
... ...
@@ -2035,6 +2120,18 @@ func IsWow64Process(handle Handle, isWow64 *bool) (err error) {
2035 2035
 	return
2036 2036
 }
2037 2037
 
2038
+func IsWow64Process2(handle Handle, processMachine *uint16, nativeMachine *uint16) (err error) {
2039
+	err = procIsWow64Process2.Find()
2040
+	if err != nil {
2041
+		return
2042
+	}
2043
+	r1, _, e1 := syscall.Syscall(procIsWow64Process2.Addr(), 3, uintptr(handle), uintptr(unsafe.Pointer(processMachine)), uintptr(unsafe.Pointer(nativeMachine)))
2044
+	if r1 == 0 {
2045
+		err = errnoErr(e1)
2046
+	}
2047
+	return
2048
+}
2049
+
2038 2050
 func LoadLibraryEx(libname string, zero Handle, flags uintptr) (handle Handle, err error) {
2039 2051
 	var _p0 *uint16
2040 2052
 	_p0, err = syscall.UTF16PtrFromString(libname)
... ...
@@ -2296,8 +2393,8 @@ func ResumeThread(thread Handle) (ret uint32, err error) {
2296 2296
 	return
2297 2297
 }
2298 2298
 
2299
-func SetConsoleCursorPosition(console Handle, position Coord) (err error) {
2300
-	r1, _, e1 := syscall.Syscall(procSetConsoleCursorPosition.Addr(), 2, uintptr(console), uintptr(*((*uint32)(unsafe.Pointer(&position)))), 0)
2299
+func setConsoleCursorPosition(console Handle, position uint32) (err error) {
2300
+	r1, _, e1 := syscall.Syscall(procSetConsoleCursorPosition.Addr(), 2, uintptr(console), uintptr(position), 0)
2301 2301
 	if r1 == 0 {
2302 2302
 		err = errnoErr(e1)
2303 2303
 	}
... ...
@@ -2320,6 +2417,31 @@ func SetCurrentDirectory(path *uint16) (err error) {
2320 2320
 	return
2321 2321
 }
2322 2322
 
2323
+func SetDefaultDllDirectories(directoryFlags uint32) (err error) {
2324
+	r1, _, e1 := syscall.Syscall(procSetDefaultDllDirectories.Addr(), 1, uintptr(directoryFlags), 0, 0)
2325
+	if r1 == 0 {
2326
+		err = errnoErr(e1)
2327
+	}
2328
+	return
2329
+}
2330
+
2331
+func SetDllDirectory(path string) (err error) {
2332
+	var _p0 *uint16
2333
+	_p0, err = syscall.UTF16PtrFromString(path)
2334
+	if err != nil {
2335
+		return
2336
+	}
2337
+	return _SetDllDirectory(_p0)
2338
+}
2339
+
2340
+func _SetDllDirectory(path *uint16) (err error) {
2341
+	r1, _, e1 := syscall.Syscall(procSetDllDirectoryW.Addr(), 1, uintptr(unsafe.Pointer(path)), 0, 0)
2342
+	if r1 == 0 {
2343
+		err = errnoErr(e1)
2344
+	}
2345
+	return
2346
+}
2347
+
2323 2348
 func SetEndOfFile(handle Handle) (err error) {
2324 2349
 	r1, _, e1 := syscall.Syscall(procSetEndOfFile.Addr(), 1, uintptr(handle), 0, 0)
2325 2350
 	if r1 == 0 {
... ...
@@ -2366,6 +2488,14 @@ func SetFileCompletionNotificationModes(handle Handle, flags uint8) (err error)
2366 2366
 	return
2367 2367
 }
2368 2368
 
2369
+func SetFileInformationByHandle(handle Handle, class uint32, inBuffer *byte, inBufferLen uint32) (err error) {
2370
+	r1, _, e1 := syscall.Syscall6(procSetFileInformationByHandle.Addr(), 4, uintptr(handle), uintptr(class), uintptr(unsafe.Pointer(inBuffer)), uintptr(inBufferLen), 0, 0)
2371
+	if r1 == 0 {
2372
+		err = errnoErr(e1)
2373
+	}
2374
+	return
2375
+}
2376
+
2369 2377
 func SetFilePointer(handle Handle, lowoffset int32, highoffsetptr *int32, whence uint32) (newlowoffset uint32, err error) {
2370 2378
 	r0, _, e1 := syscall.Syscall6(procSetFilePointer.Addr(), 4, uintptr(handle), uintptr(lowoffset), uintptr(unsafe.Pointer(highoffsetptr)), uintptr(whence), 0, 0)
2371 2379
 	newlowoffset = uint32(r0)
... ...
@@ -2698,6 +2828,27 @@ func EnumProcesses(processIds []uint32, bytesReturned *uint32) (err error) {
2698 2698
 	return
2699 2699
 }
2700 2700
 
2701
+func SubscribeServiceChangeNotifications(service Handle, eventType uint32, callback uintptr, callbackCtx uintptr, subscription *uintptr) (ret error) {
2702
+	ret = procSubscribeServiceChangeNotifications.Find()
2703
+	if ret != nil {
2704
+		return
2705
+	}
2706
+	r0, _, _ := syscall.Syscall6(procSubscribeServiceChangeNotifications.Addr(), 5, uintptr(service), uintptr(eventType), uintptr(callback), uintptr(callbackCtx), uintptr(unsafe.Pointer(subscription)), 0)
2707
+	if r0 != 0 {
2708
+		ret = syscall.Errno(r0)
2709
+	}
2710
+	return
2711
+}
2712
+
2713
+func UnsubscribeServiceChangeNotifications(subscription uintptr) (err error) {
2714
+	err = procUnsubscribeServiceChangeNotifications.Find()
2715
+	if err != nil {
2716
+		return
2717
+	}
2718
+	syscall.Syscall(procUnsubscribeServiceChangeNotifications.Addr(), 1, uintptr(subscription), 0, 0)
2719
+	return
2720
+}
2721
+
2701 2722
 func GetUserNameEx(nameFormat uint32, nameBuffre *uint16, nSize *uint32) (err error) {
2702 2723
 	r1, _, e1 := syscall.Syscall(procGetUserNameExW.Addr(), 3, uintptr(nameFormat), uintptr(unsafe.Pointer(nameBuffre)), uintptr(unsafe.Pointer(nSize)))
2703 2724
 	if r1&0xff == 0 {
... ...
@@ -2747,7 +2898,19 @@ func ExitWindowsEx(flags uint32, reason uint32) (err error) {
2747 2747
 	return
2748 2748
 }
2749 2749
 
2750
-func MessageBox(hwnd Handle, text *uint16, caption *uint16, boxtype uint32) (ret int32, err error) {
2750
+func GetShellWindow() (shellWindow HWND) {
2751
+	r0, _, _ := syscall.Syscall(procGetShellWindow.Addr(), 0, 0, 0, 0)
2752
+	shellWindow = HWND(r0)
2753
+	return
2754
+}
2755
+
2756
+func GetWindowThreadProcessId(hwnd HWND, pid *uint32) (tid uint32) {
2757
+	r0, _, _ := syscall.Syscall(procGetWindowThreadProcessId.Addr(), 2, uintptr(hwnd), uintptr(unsafe.Pointer(pid)), 0)
2758
+	tid = uint32(r0)
2759
+	return
2760
+}
2761
+
2762
+func MessageBox(hwnd HWND, text *uint16, caption *uint16, boxtype uint32) (ret int32, err error) {
2751 2763
 	r0, _, e1 := syscall.Syscall6(procMessageBoxW.Addr(), 4, uintptr(hwnd), uintptr(unsafe.Pointer(text)), uintptr(unsafe.Pointer(caption)), uintptr(boxtype), 0, 0)
2752 2764
 	ret = int32(r0)
2753 2765
 	if ret == 0 {